|
@ -123,6 +123,7 @@ |
|
|
const maintenanceShift = ref([]) |
|
|
const maintenanceShift = ref([]) |
|
|
const faultType = ref([]) |
|
|
const faultType = ref([]) |
|
|
const choosesingleColumnItem = ref() |
|
|
const choosesingleColumnItem = ref() |
|
|
|
|
|
const msg = ref('') |
|
|
// 扫描设备条码 |
|
|
// 扫描设备条码 |
|
|
function chickRightButton(field) { |
|
|
function chickRightButton(field) { |
|
|
if (!form.value.type) { |
|
|
if (!form.value.type) { |
|
@ -153,6 +154,7 @@ |
|
|
type: type.value |
|
|
type: type.value |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|
if (!res.data) { |
|
|
if (!res.data) { |
|
|
|
|
|
msg.value = res.msg |
|
|
form.value.deviceName = '' |
|
|
form.value.deviceName = '' |
|
|
form.value.factoryAreaName = '' |
|
|
form.value.factoryAreaName = '' |
|
|
form.value.factoryAreaNumber = '' |
|
|
form.value.factoryAreaNumber = '' |
|
@ -171,6 +173,7 @@ |
|
|
number: form.value.deviceNumber |
|
|
number: form.value.deviceNumber |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
if (!res.data) { |
|
|
if (!res.data) { |
|
|
|
|
|
msg.value = res.msg |
|
|
form.value.deviceName = '' |
|
|
form.value.deviceName = '' |
|
|
form.value.factoryAreaName = '' |
|
|
form.value.factoryAreaName = '' |
|
|
form.value.factoryAreaNumber = '' |
|
|
form.value.factoryAreaNumber = '' |
|
@ -197,6 +200,10 @@ |
|
|
proxy.$modal.showToast(`请选择${type.value == 'DEVICE' || type.value == 'TECH' ? '设备' : '模具'}名称`) |
|
|
proxy.$modal.showToast(`请选择${type.value == 'DEVICE' || type.value == 'TECH' ? '设备' : '模具'}名称`) |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if (!form.value.deviceName) { |
|
|
|
|
|
proxy.$modal.showToast(msg.value) |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
if (!form.value.factoryAreaName) { |
|
|
if (!form.value.factoryAreaName) { |
|
|
proxy.$modal.showToast('请输入区域') |
|
|
proxy.$modal.showToast('请输入区域') |
|
|
return; |
|
|
return; |
|
|