|
@@ -2,7 +2,7 @@ |
|
|
* @Author: zwq |
|
|
* @Author: zwq |
|
|
* @Date: 2021-11-18 14:16:25 |
|
|
* @Date: 2021-11-18 14:16:25 |
|
|
* @LastEditors: DY |
|
|
* @LastEditors: DY |
|
|
* @LastEditTime: 2024-02-28 14:45:58 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2024-02-28 16:05:10 |
|
|
* @Description: |
|
|
* @Description: |
|
|
--> |
|
|
--> |
|
|
<template> |
|
|
<template> |
|
@@ -409,25 +409,32 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
async confirmIns() { |
|
|
async confirmIns() { |
|
|
await this.getConfirmed().then(confirm => { |
|
|
|
|
|
this.$axios({ |
|
|
|
|
|
url: |
|
|
|
|
|
'/base/equipment-check-order/confirm?confirmPerson=' + |
|
|
|
|
|
this.$store.getters.userId, |
|
|
|
|
|
method: 'put', |
|
|
|
|
|
data: [this.dataForm.id], |
|
|
|
|
|
}).then(res =>{ |
|
|
|
|
|
if (res.code == 0) { |
|
|
|
|
|
|
|
|
this.$refs['dataForm'].validate((valid) => { |
|
|
|
|
|
if (!valid) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.getConfirmed().then(confirm => { |
|
|
|
|
|
this.$axios({ |
|
|
|
|
|
url: |
|
|
|
|
|
'/base/equipment-check-order/confirm?confirmPerson=' + |
|
|
|
|
|
this.$store.getters.userId, |
|
|
|
|
|
method: 'put', |
|
|
|
|
|
data: [this.dataForm.id], |
|
|
|
|
|
}).then(res =>{ |
|
|
|
|
|
if (res.code == 0) { |
|
|
|
|
|
this.visible = false; |
|
|
|
|
|
this.$emit("refreshDataList"); |
|
|
|
|
|
this.$message.success('已确认'); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { |
|
|
this.visible = false; |
|
|
this.visible = false; |
|
|
this.$emit("refreshDataList"); |
|
|
this.$emit("refreshDataList"); |
|
|
this.$message.success('已确认'); |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.visible = false; |
|
|
|
|
|
this.$emit("refreshDataList"); |
|
|
|
|
|
this.$message.success('取消确认'); |
|
|
|
|
|
|
|
|
this.$message.success('取消确认'); |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 表单提交 |
|
|
// 表单提交 |
|
|
dataFormSubmit() { |
|
|
dataFormSubmit() { |
|
|