|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="设备名称" prop="deviceName">
|
|
|
|
|
<JnpfInput v-model="dataForm.deviceName" @change="changeData('deviceName', -1)"
|
|
|
|
|
placeholder="选择设备编码后自动带入,可能会有延迟" disabled clearable :style='{ "width": "100%" }'>
|
|
|
|
|
placeholder="选择设备编码后自动带入" disabled clearable :style='{ "width": "100%" }'>
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -119,7 +119,7 @@
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<jnpf-form-tip-item label="生产状态" prop="productionStatus">
|
|
|
|
|
<JnpfSelect v-model="dataForm.productionStatus"
|
|
|
|
|
@change="changeData('productionStatus', -1)" placeholder="请选择生产状态" clearable
|
|
|
|
|
@change="changeData('productionStatus', -1)" placeholder="请选择生产状态" clearable disabled
|
|
|
|
|
:style='{ "width": "100%" }' :options="productionStatusOptions"
|
|
|
|
|
:props="productionStatusProps">
|
|
|
|
|
</JnpfSelect>
|
|
|
|
@ -188,7 +188,7 @@ export default {
|
|
|
|
|
models: undefined,
|
|
|
|
|
measurementUnit: undefined,
|
|
|
|
|
planNumber: undefined,
|
|
|
|
|
productionStatus: undefined,
|
|
|
|
|
productionStatus: '1',
|
|
|
|
|
version: 0,
|
|
|
|
|
},
|
|
|
|
|
tableRequiredData: {},
|
|
|
|
@ -264,13 +264,6 @@ export default {
|
|
|
|
|
trigger: ["blur", "change"]
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
productionStatus: [
|
|
|
|
|
{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择生产状态',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
deviceCodecolumnOptions: [{ "label": "设备编码", "value": "device_code" }, { "label": "设备名称", "value": "device_name" }, { "label": "设备类型", "value": "device_desc" },],
|
|
|
|
|
postOptions: [{ "fullName": "旺季白班", "id": "1" }, { "fullName": "旺季晚班", "id": "2" }, { "fullName": "淡季白班", "id": "3" }, { "fullName": "淡季晚班", "id": "4" }],
|
|
|
|
@ -351,7 +344,9 @@ export default {
|
|
|
|
|
url: '/api/example/YysDevice/queryNameByCode/' + this.dataForm.deviceCode,
|
|
|
|
|
method: 'get'
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.dataForm.deviceName = res.msg;
|
|
|
|
|
let _dataForm = {...this.dataForm}
|
|
|
|
|
_dataForm.deviceName = res.msg
|
|
|
|
|
this.dataForm = {..._dataForm};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.isEdit = false
|
|
|
|
|