|
|
@@ -34,9 +34,13 @@
|
|
|
(val, item) => (workReport.executorJobNum = item.jobNumber)
|
|
|
"
|
|
|
/></el-form-item>
|
|
|
- <el-form-item label="执行日期" prop="executorTime" label-width="100px"
|
|
|
+ <el-form-item
|
|
|
+ label="执行日期"
|
|
|
+ required
|
|
|
+ prop="executeTime"
|
|
|
+ label-width="100px"
|
|
|
><el-date-picker
|
|
|
- v-model="workReport.executorTime"
|
|
|
+ v-model="workReport.executeTime"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
type="datetime"
|
|
|
format="yyyy-MM-dd HH:mm"
|
|
|
@@ -162,7 +166,8 @@
|
|
|
:controls="false"
|
|
|
:value="
|
|
|
(workReport.productInfo.noStandardWeight =
|
|
|
- workReport.noStandardNum * (infoData.productUnitWeight || 1))
|
|
|
+ workReport.productInfo.noStandardNum *
|
|
|
+ (infoData.productUnitWeight || 1))
|
|
|
"
|
|
|
:min="0"
|
|
|
clearable
|
|
|
@@ -305,7 +310,7 @@
|
|
|
qualityStandard: '',
|
|
|
executorId: '',
|
|
|
executorJobNum: '',
|
|
|
- executorTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm'),
|
|
|
+ executeTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm'),
|
|
|
remark: '',
|
|
|
productInfo: {
|
|
|
standardNum: '',
|
|
|
@@ -359,6 +364,26 @@
|
|
|
this.getReportCount();
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ infoData: {
|
|
|
+ immediate: true,
|
|
|
+ handler () {
|
|
|
+ if (this.infoData.id) {
|
|
|
+ // 设备
|
|
|
+ this.workReportDeviceList = Object.assign(
|
|
|
+ {},
|
|
|
+ this.workReportDeviceList,
|
|
|
+ {
|
|
|
+ code: this.infoData.deviceCode,
|
|
|
+ name: this.infoData.deviceName
|
|
|
+ // path: this.infoData.,
|
|
|
+ // model: this.infoData.,
|
|
|
+ // rootCategoryLevelId: this.infoData.,
|
|
|
+ // specification: this.infoData.
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
@@ -390,7 +415,7 @@
|
|
|
|
|
|
realTimeStorage({
|
|
|
categoryCode: res.categoryCode,
|
|
|
- factoryCode: this.infoData.werks || '14T1'
|
|
|
+ factoryCode: this.infoData.werks
|
|
|
}).then((res) => {
|
|
|
this.batchList = res;
|
|
|
});
|