|
@@ -375,11 +375,12 @@
|
|
|
this.workReportDeviceList,
|
|
this.workReportDeviceList,
|
|
|
{
|
|
{
|
|
|
code: this.infoData.deviceCode,
|
|
code: this.infoData.deviceCode,
|
|
|
- name: this.infoData.deviceName
|
|
|
|
|
- // path: this.infoData.,
|
|
|
|
|
- // model: this.infoData.,
|
|
|
|
|
- // rootCategoryLevelId: this.infoData.,
|
|
|
|
|
- // specification: this.infoData.
|
|
|
|
|
|
|
+ name: this.infoData.deviceName,
|
|
|
|
|
+ rootCategoryLevelId: this.infoData.rootCategoryLevelId,
|
|
|
|
|
+ path: this.infoData.path[0]?.pathName,
|
|
|
|
|
+ model: this.infoData.model,
|
|
|
|
|
+ sourceCategoryId: this.infoData.sourceCategoryId,
|
|
|
|
|
+ specification: this.infoData.specification
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -447,6 +448,10 @@
|
|
|
report (fun) {
|
|
report (fun) {
|
|
|
this.$refs.formRef.validate((value, error) => {
|
|
this.$refs.formRef.validate((value, error) => {
|
|
|
if (value) {
|
|
if (value) {
|
|
|
|
|
+ if (!this.workReportDeviceList.code) {
|
|
|
|
|
+ return this.$message.error('请选择设备');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.$confirm('是否确定要报工?', '提示').then(() => {
|
|
this.$confirm('是否确定要报工?', '提示').then(() => {
|
|
|
const workReportDeviceList = [];
|
|
const workReportDeviceList = [];
|
|
|
if (this.workReportDeviceList.code) {
|
|
if (this.workReportDeviceList.code) {
|