|
|
@ -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('找不到该设备') |
|
|
|