FIX
This commit is contained in:
parent
8778dc7ebd
commit
8c071dafbc
|
@ -269,17 +269,24 @@ export default {
|
||||||
},
|
},
|
||||||
getdefects(){
|
getdefects(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.qm.qct.list.req({page: 0, qctmat__material: that.itemObj.material,tags:'inm'}).then((res) => {
|
that.$API.qm.qct.getQct.req({ material: that.itemObj.material,type:'out',tag:'process' }).then((res) => {
|
||||||
if(res.length>0){
|
console.log(res)
|
||||||
that.qct = res[0].id;
|
res.qct_defects.forEach((item) => {
|
||||||
that.$API.qm.qct.item.req(res[0].id).then((res) => {
|
that.form[item.defect_name] = 0;
|
||||||
res.qct_defects.forEach((item) => {
|
})
|
||||||
that.form[item.defect_name] = 0;
|
that.qct_defects=res.qct_defects;
|
||||||
})
|
|
||||||
that.qct_defects=res.qct_defects;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
// that.$API.qm.qct.get.req({page: 0, qctmat__material: that.itemObj.material,tags:'inm'}).then((res) => {
|
||||||
|
// if(res.length>0){
|
||||||
|
// that.qct = res[0].id;
|
||||||
|
// that.$API.qm.qct.item.req(res[0].id).then((res) => {
|
||||||
|
// res.qct_defects.forEach((item) => {
|
||||||
|
// that.form[item.defect_name] = 0;
|
||||||
|
// })
|
||||||
|
// that.qct_defects=res.qct_defects;
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
//渲染工单提交按钮
|
//渲染工单提交按钮
|
||||||
getInit() {
|
getInit() {
|
||||||
|
|
Loading…
Reference in New Issue