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