diff --git a/src/pages/deviceReport/addForm.vue b/src/pages/deviceReport/addForm.vue index acafdee..d175b0c 100644 --- a/src/pages/deviceReport/addForm.vue +++ b/src/pages/deviceReport/addForm.vue @@ -151,7 +151,8 @@ if (this.type == 'DEVICE'||this.type == 'TECH') { deviceApi.getDeviceDetailsByNumber({ number:this.form.deviceNumber, - type:this.type + type:this.type, + flag:1 }).then((res) => { // if (res.data && res.data.length > 0) { // res.data.map(item => { @@ -180,7 +181,8 @@ }) } else if (this.type == 'MOLD') { moldApi.getMoldDetailsByNumber({ - number:this.form.deviceNumber + number:this.form.deviceNumber, + flag:1 }).then((res) => { if(!res.data){ this.$modal.showToast('找不到该设备') diff --git a/src/pages/repairOrder/transfer.vue b/src/pages/repairOrder/transfer.vue index 0b620cc..ce1a886 100644 --- a/src/pages/repairOrder/transfer.vue +++ b/src/pages/repairOrder/transfer.vue @@ -177,7 +177,8 @@ if (this.type == 'DEVICE'||this.type == 'TECH') { deviceApi.getDeviceDetailsByNumber({ number:this.form.deviceNumber, - type:this.type + type:this.type, + flag:1 }).then(async (res) => { if(!res.data){ this.$modal.showToast('找不到该设备') @@ -200,7 +201,8 @@ }) } else if (this.type == 'MOLD') { moldApi.getMoldDetailsByNumber({ - number:this.form.deviceNumber + number:this.form.deviceNumber, + flag:1 }).then(async (res) => { if(!res.data){ this.$modal.showToast('找不到该设备')