update待确认巡检单
This commit is contained in:
@@ -157,12 +157,12 @@ export default {
|
||||
} catch (err) {}
|
||||
if (!valid) return;
|
||||
|
||||
let confirmed = false;
|
||||
try {
|
||||
confirmed = await this.getConfirmed();
|
||||
} catch (err) {
|
||||
confirmed = false;
|
||||
}
|
||||
// let confirmed = false;
|
||||
// try {
|
||||
// confirmed = await this.getConfirmed();
|
||||
// } catch (err) {
|
||||
// confirmed = false;
|
||||
// }
|
||||
const res = await this.$axios({
|
||||
url:
|
||||
'/base/equipment-check-order' +
|
||||
@@ -171,7 +171,8 @@ export default {
|
||||
data: {
|
||||
...this.dataForm,
|
||||
special: true,
|
||||
status: confirmed ? 2 : 1,
|
||||
status: 1,
|
||||
// status: confirmed ? 2 : 1,
|
||||
groupClass: this.dataForm.groupClass.join(','),
|
||||
checkPerson: this.$store.getters.userId,
|
||||
},
|
||||
@@ -179,7 +180,9 @@ export default {
|
||||
if (res.code == 0) {
|
||||
this.$emit('refreshDataList');
|
||||
this.$message.success(this.dataForm.id ? '更新成功' : '创建成功');
|
||||
return res.data;
|
||||
}
|
||||
return null;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user