|
@@ -2687,8 +2687,7 @@ const setTeams = async(row) => {
|
|
|
sczl_namekey=`sczl_name${i+1}`
|
|
sczl_namekey=`sczl_name${i+1}`
|
|
|
formData.value[sczl_bhkey] =row[i].split(' ')[0];
|
|
formData.value[sczl_bhkey] =row[i].split(' ')[0];
|
|
|
formData.value[sczl_namekey] = row[i].split(' ')[1];
|
|
formData.value[sczl_namekey] = row[i].split(' ')[1];
|
|
|
- console.log(formData)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // console.log(formData)
|
|
|
}
|
|
}
|
|
|
console.log(formData)
|
|
console.log(formData)
|
|
|
|
|
|
|
@@ -3315,16 +3314,28 @@ const RemodelGetTab = async() => {
|
|
|
}
|
|
}
|
|
|
//设置机台状态
|
|
//设置机台状态
|
|
|
const SetMachineStatus = async (row) => {
|
|
const SetMachineStatus = async (row) => {
|
|
|
|
|
+ let classString = '';
|
|
|
|
|
+ const sczl_bh_values = [formData.value.sczl_bh1, formData.value.sczl_bh2, formData.value.sczl_bh3, formData.value.sczl_bh4, formData.value.sczl_bh5, formData.value.sczl_bh6];
|
|
|
|
|
+
|
|
|
|
|
+ for (let i = 0; i < sczl_bh_values.length; i++) {
|
|
|
|
|
+ if (sczl_bh_values[i]) {
|
|
|
|
|
+ classString += sczl_bh_values[i] + ',';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 去除最后一个逗号
|
|
|
|
|
+ classString = classString.slice(0, -1);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const response = await setMachineStatus({
|
|
const response = await setMachineStatus({
|
|
|
machine: JTMC.split("#")[0],
|
|
machine: JTMC.split("#")[0],
|
|
|
order:row['工单编号|质量信息'].split('|')[0],
|
|
order:row['工单编号|质量信息'].split('|')[0],
|
|
|
yjno:'1',
|
|
yjno:'1',
|
|
|
gy_name:row['工序名称'],
|
|
gy_name:row['工序名称'],
|
|
|
- sczl_bzdh:BZMC.value,
|
|
|
|
|
status:'生产',
|
|
status:'生产',
|
|
|
production_now:0,
|
|
production_now:0,
|
|
|
production_all:0,
|
|
production_all:0,
|
|
|
- class:'ZM00361,ZM00743,ZM01269,ZM02842'
|
|
|
|
|
|
|
+ class:classString
|
|
|
});
|
|
});
|
|
|
if (response.code === 0) {
|
|
if (response.code === 0) {
|
|
|
}
|
|
}
|
|
@@ -4528,9 +4539,9 @@ const setMachineTeams = async(row) => {
|
|
|
production_all:0,
|
|
production_all:0,
|
|
|
team_id:formData.value.班组Id
|
|
team_id:formData.value.班组Id
|
|
|
})
|
|
})
|
|
|
|
|
+ MachineWorkOrderEdits(row)
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
- // EquipmentSchedulingEdits(row)
|
|
|
|
|
- MachineWorkOrderEdits(row)
|
|
|
|
|
|
|
+ // EquipmentSchedulingEdits(row)
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: '成功'
|
|
message: '成功'
|