|
|
|
|
@ -355,11 +355,16 @@ export default { |
|
|
|
|
// ], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "", |
|
|
|
|
label: "是否检验标记", |
|
|
|
|
prop: "checkout", |
|
|
|
|
type: "checkbox", |
|
|
|
|
dicData: [{ label: "检验标记", value: 1 }], |
|
|
|
|
span: 8, |
|
|
|
|
type: "switch", |
|
|
|
|
// type: "checkbox", |
|
|
|
|
dicData: [ |
|
|
|
|
{ label:"否", value:0}, |
|
|
|
|
{ label: "是", value: 1 }, |
|
|
|
|
], |
|
|
|
|
// dicData: [{ label: "检验标记", value: 1 }], |
|
|
|
|
span: 24, |
|
|
|
|
hide: true, |
|
|
|
|
overflow: true, |
|
|
|
|
search: false, |
|
|
|
|
@ -372,11 +377,16 @@ export default { |
|
|
|
|
// ], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "", |
|
|
|
|
label: "是否镀后标记", |
|
|
|
|
prop: "whetherPlate", |
|
|
|
|
type: "checkbox", |
|
|
|
|
dicData: [{ label: "镀后标记", value: 1 }], |
|
|
|
|
span: 8, |
|
|
|
|
// type: "checkbox", |
|
|
|
|
type: "switch", |
|
|
|
|
dicData: [ |
|
|
|
|
{ label:"否", value:0}, |
|
|
|
|
{ label: "是", value: 1 }, |
|
|
|
|
], |
|
|
|
|
// dicData: [{ label: "镀后标记", value: 1 }], |
|
|
|
|
span: 24, |
|
|
|
|
hide: true, |
|
|
|
|
overflow: true, |
|
|
|
|
search: false, |
|
|
|
|
@ -389,11 +399,16 @@ export default { |
|
|
|
|
// ], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "", |
|
|
|
|
label: "是否大批量", |
|
|
|
|
prop: "bigBatch", |
|
|
|
|
type: "checkbox", |
|
|
|
|
dicData: [{ label: "是否大批量", value: 1 }], |
|
|
|
|
span: 8, |
|
|
|
|
// type: "checkbox", |
|
|
|
|
type:"switch", |
|
|
|
|
dicData:[ |
|
|
|
|
{ label:"否", value:0}, |
|
|
|
|
{ label: "是", value: 1 }, |
|
|
|
|
], |
|
|
|
|
// dicData: [{ label: "是否大批量", value: 1 }], |
|
|
|
|
span: 24, |
|
|
|
|
hide: true, |
|
|
|
|
overflow: true, |
|
|
|
|
search: false, |
|
|
|
|
@ -436,9 +451,15 @@ export default { |
|
|
|
|
console.log('form',this.form) |
|
|
|
|
this.form.jcId = this.form.jcId + '' |
|
|
|
|
this.form.leaderUser = this.form.leaderUser + '' |
|
|
|
|
this.form.checkout = this.form.checkout == 1 ? [1] : [] |
|
|
|
|
this.form.bigBatch = this.form.bigBatch == 1 ? [1] : [] |
|
|
|
|
this.form.whetherPlate = this.form.whetherPlate == 1 ? [1] : [] |
|
|
|
|
// this.form.checkout = this.form.checkout == 1 ? [1] : [] |
|
|
|
|
// this.form.bigBatch = this.form.bigBatch == 1 ? [1] : [] |
|
|
|
|
// this.form.whetherPlate = this.form.whetherPlate == 1 ? [1] : [] |
|
|
|
|
|
|
|
|
|
this.form.checkout = this.form.checkout == 1 ? 1 : 0 |
|
|
|
|
this.form.bigBatch = this.form.bigBatch == 1 ? 1 : 0 |
|
|
|
|
this.form.whetherPlate = this.form.whetherPlate == 1 ? 1 : 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAllUser({current:1,size:300}).then(res => { |
|
|
|
|
this.leaderUsers = res.data.data.records |
|
|
|
|
let tmp = this.leaderUsers.find(item => item.id == this.form.leaderUser) |
|
|
|
|
@ -458,11 +479,19 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
rowSave(row, done, loading){ |
|
|
|
|
console.log('row----------',row) |
|
|
|
|
// let params = { |
|
|
|
|
// ...row, |
|
|
|
|
// checkout:row.checkout.length != 0 ? 1 : 0, |
|
|
|
|
// bigBatch:row.bigBatch.length != 0 ? 1 : 0, |
|
|
|
|
// whetherPlate:row.whetherPlate.length != 0 ? 1 : 0, |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
...row, |
|
|
|
|
checkout:row.checkout.length != 0 ? 1 : 0, |
|
|
|
|
bigBatch:row.bigBatch.length != 0 ? 1 : 0, |
|
|
|
|
whetherPlate:row.whetherPlate.length != 0 ? 1 : 0, |
|
|
|
|
checkout:row.checkout == 1 ? 1 : 0, |
|
|
|
|
bigBatch:row.bigBatch == 1 ? 1 : 0, |
|
|
|
|
whetherPlate:row.whetherPlate == 1 ? 1 : 0, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
addWorkCenter(params).then(res =>{ |
|
|
|
|
@ -474,12 +503,20 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
rowUpdate(row, index, done, loading){ |
|
|
|
|
// let params = { |
|
|
|
|
// ...row, |
|
|
|
|
// checkout:row.checkout.length != 0 ? 1 : 0, |
|
|
|
|
// bigBatch:row.bigBatch.length != 0 ? 1 : 0, |
|
|
|
|
// whetherPlate:row.whetherPlate.length != 0 ? 1 : 0, |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
|
...row, |
|
|
|
|
checkout:row.checkout.length != 0 ? 1 : 0, |
|
|
|
|
bigBatch:row.bigBatch.length != 0 ? 1 : 0, |
|
|
|
|
whetherPlate:row.whetherPlate.length != 0 ? 1 : 0, |
|
|
|
|
checkout:row.checkout == 1 ? 1 : 0, |
|
|
|
|
bigBatch:row.bigBatch == 1 ? 1 : 0, |
|
|
|
|
whetherPlate:row.whetherPlate == 1 ? 1 : 0, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateWorkCenter(params).then(res =>{ |
|
|
|
|
if(res.data.code === 200){ |
|
|
|
|
this.$message.success('修改成功'); |
|
|
|
|
|