Compare commits
7 Commits
3aa3361559
...
0a1175075d
Author | SHA1 | Date | |
---|---|---|---|
|
0a1175075d | ||
|
50cfcc3af2 | ||
ac36dea881 | |||
|
063532567b | ||
873653b56d | |||
|
b2c6a5fae9 | ||
|
17b675cd13 |
@ -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-03-01 18:57:31
|
* @LastEditTime: 2024-03-04 11:14:28
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -431,16 +431,16 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getConfirmed().then(confirm => {
|
this.getConfirmed().then(confirm => {
|
||||||
let checkPersonParam = '';
|
// let checkPersonParam = '';
|
||||||
if (!this.dataForm.checkPerson || this.dataForm.checkPerson.trim() == '') {
|
// if (!this.dataForm.checkPerson || this.dataForm.checkPerson.trim() == '') {
|
||||||
/** 如有必要,更新巡检人 */
|
// /** 如有必要,更新巡检人 */
|
||||||
checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
// checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
||||||
} else {
|
// } else {
|
||||||
checkPersonParam = `&checkPerson=${this.dataForm.checkPerson}`
|
// checkPersonParam = `&checkPerson=${this.dataForm.checkPerson}`
|
||||||
}
|
// }
|
||||||
this.$axios({
|
this.$axios({
|
||||||
url:
|
url:
|
||||||
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: [this.dataForm.id],
|
data: [this.dataForm.id],
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
|
@ -179,13 +179,14 @@ export default {
|
|||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认所有选中巡检单"?')
|
.confirm('是否确认所有选中巡检单"?')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let checkPersonParam = '';
|
// let checkPersonParam = '';
|
||||||
if (!row.checkPerson || row.checkPerson.trim() == '') {
|
// if (!row.checkPerson || row.checkPerson.trim() == '') {
|
||||||
/** 如有必要,更新巡检人 */
|
// /** 如有必要,更新巡检人 */
|
||||||
checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
// checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
||||||
}
|
// }
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
||||||
|
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
||||||
(item) => item.id
|
(item) => item.id
|
||||||
@ -399,17 +400,17 @@ export default {
|
|||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认巡检单"' + row.name + '"?')
|
.confirm('是否确认巡检单"' + row.name + '"?')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let checkPersonParam = '';
|
// let checkPersonParam = '';
|
||||||
const nickname = this.$store.getters.nickname;
|
// const nickname = this.$store.getters.nickname;
|
||||||
if (!row.checkPerson || row.checkPerson.trim() == '') {
|
// if (!row.checkPerson || row.checkPerson.trim() == '') {
|
||||||
/** 如有必要,更新巡检人 */
|
// /** 如有必要,更新巡检人 */
|
||||||
checkPersonParam = `&checkPerson=${nickname}`;
|
// checkPersonParam = `&checkPerson=${nickname}`;
|
||||||
} else {
|
// } else {
|
||||||
checkPersonParam = `&checkPerson=${row.checkPerson}`
|
// checkPersonParam = `&checkPerson=${row.checkPerson}`
|
||||||
}
|
// }
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
url:
|
url:
|
||||||
`/base/equipment-check-order/confirm?confirmPerson=${nickname}` + checkPersonParam,
|
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: [row.id],
|
data: [row.id],
|
||||||
});
|
});
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
@close="cancel"
|
@close="cancel"
|
||||||
@cancel="cancel"
|
@cancel="cancel"
|
||||||
@confirm="handleConfirm">
|
@confirm="handleConfirm">
|
||||||
<add ref="add" @refreshDataList="successSubmit" />
|
<add ref="add" v-if="open" @refreshDataList="successSubmit" />
|
||||||
</base-dialog>
|
</base-dialog>
|
||||||
<!-- 添加巡检,查看详情 -->
|
<!-- 添加巡检,查看详情 -->
|
||||||
<addOrUpdata
|
<addOrUpdata
|
||||||
|
@ -262,7 +262,7 @@ export default {
|
|||||||
// checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
// checkPersonParam = `&checkPerson=${this.$store.getters.nickname}`;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
const res = this.$axios({
|
const res = await this.$axios({
|
||||||
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
// +checkPersonParam,
|
// +checkPersonParam,
|
||||||
// '/base/equipment-check-order/confirm?ids=' + JSON.stringify([id]).replaceAll("\"", ''),
|
// '/base/equipment-check-order/confirm?ids=' + JSON.stringify([id]).replaceAll("\"", ''),
|
||||||
|
@ -235,7 +235,7 @@ export default {
|
|||||||
...this.dataForm,
|
...this.dataForm,
|
||||||
special: true,
|
special: true,
|
||||||
status: 0,
|
status: 0,
|
||||||
groupClass: this.dataForm.groupClass.join(','),
|
groupClass: this.dataForm.groupClass?.join(','),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user