Browse Source

Merge pull request 'projects/mesxc-dy' (#217) from projects/mesxc-dy into projects/mesxc-test

Reviewed-on: http://git.picaiba.com/mt-fe-group/yudao-dev/pulls/217
pull/219/head
juzi 6 months ago
parent
commit
e0aa0b7052
2 changed files with 25 additions and 18 deletions
  1. +24
    -17
      src/views/equipment/base/inspection/Confirm/add-or-updata.vue
  2. +1
    -1
      src/views/equipment/base/inspection/Confirm/index.vue

+ 24
- 17
src/views/equipment/base/inspection/Confirm/add-or-updata.vue View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: DY
* @LastEditTime: 2024-02-28 14:45:58
* @LastEditTime: 2024-02-28 16:05:10
* @Description:
-->
<template>
@@ -409,25 +409,32 @@ export default {
});
},
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.$emit("refreshDataList");
this.$message.success('已确认');
}
}).catch(() => {
this.visible = false;
this.$emit("refreshDataList");
this.$message.success('取消确认');
this.$message.success('取消确认');
})
})
})
});
},
// 表单提交
dataFormSubmit() {


+ 1
- 1
src/views/equipment/base/inspection/Confirm/index.vue View File

@@ -177,7 +177,7 @@ export default {
return;
}
this.$modal
.confirm('是否确认所有选中保养单"?')
.confirm('是否确认所有选中巡检单"?')
.then(() => {
return this.$axios({
url: '/base/equipment-check-order/confirm?confirmPerson=' + this.$store.getters.userId,


Loading…
Cancel
Save