|
@ -151,7 +151,8 @@ |
|
|
if (this.type == 'DEVICE'||this.type == 'TECH') { |
|
|
if (this.type == 'DEVICE'||this.type == 'TECH') { |
|
|
deviceApi.getDeviceDetailsByNumber({ |
|
|
deviceApi.getDeviceDetailsByNumber({ |
|
|
number:this.form.deviceNumber, |
|
|
number:this.form.deviceNumber, |
|
|
type:this.type |
|
|
type:this.type, |
|
|
|
|
|
flag:1 |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
// if (res.data && res.data.length > 0) { |
|
|
// if (res.data && res.data.length > 0) { |
|
|
// res.data.map(item => { |
|
|
// res.data.map(item => { |
|
@ -180,7 +181,8 @@ |
|
|
}) |
|
|
}) |
|
|
} else if (this.type == 'MOLD') { |
|
|
} else if (this.type == 'MOLD') { |
|
|
moldApi.getMoldDetailsByNumber({ |
|
|
moldApi.getMoldDetailsByNumber({ |
|
|
number:this.form.deviceNumber |
|
|
number:this.form.deviceNumber, |
|
|
|
|
|
flag:1 |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
if(!res.data){ |
|
|
if(!res.data){ |
|
|
this.$modal.showToast('找不到该设备') |
|
|
this.$modal.showToast('找不到该设备') |
|
|