维修管理,维修审核客户提出的问题整改

This commit is contained in:
hongchao 2025-07-10 15:06:38 +08:00
parent 74f01a0594
commit 37a77e120d
4 changed files with 76 additions and 30 deletions

View File

@ -603,6 +603,8 @@ export default {
taskId: '',
isRequired: false,
totalPrice: 0, //
currentUserId: '' //
}
},
mounted() {
@ -714,32 +716,36 @@ export default {
})
},
init() {
console.log('this.rowObj', this.rowObj)
getUserSelectApi({ roleIds: [133] }).then((response) => {
this.userSelectList = response.data;
if (this.rowObj.manageType == 0) {
this.dynamicValidateForm.premiumList = [];
this.dynamicValidateFormTwo.premiumListTwo = [];
this.addDomainOne();
} else {
this.dynamicValidateForm.premiumList = [];
this.dynamicValidateFormTwo.premiumListTwo = [];
this.addDomainTwo();
}
this.dynamicValidateForm.premiumList.forEach((item) => {
item.repairRemark = this.rowObj.repairRemark;
});
this.dynamicValidateFormTwo.premiumListTwo.forEach((item) => {
item.repairRemark = this.rowObj.repairRemark;
});
});
getInfo().then((res) => {
this.companyId = res.user.companyId
})
},
console.log('this.rowObj', this.rowObj)
getInfo()
.then((res) => {
this.companyId = res.user.companyId
this.currentUserId = res.user.userId
// getUserSelectApi Promise
return getUserSelectApi({ roleIds: [133] })
})
.then((response) => {
this.userSelectList = response.data
if (this.rowObj.manageType == 0) {
this.dynamicValidateForm.premiumList = []
this.dynamicValidateFormTwo.premiumListTwo = []
this.addDomainOne()
} else {
this.dynamicValidateForm.premiumList = []
this.dynamicValidateFormTwo.premiumListTwo = []
this.addDomainTwo()
}
this.dynamicValidateForm.premiumList.forEach((item) => {
item.repairRemark = this.rowObj.repairRemark
})
this.dynamicValidateFormTwo.premiumListTwo.forEach((item) => {
item.repairRemark = this.rowObj.repairRemark
})
})
.catch((error) => {
console.error('初始化出错:', error)
})
},
//
cancel() {
this.dialogShowFlag = false
@ -754,7 +760,8 @@ export default {
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
};
// currentUserId userSelectList userId
const isUserIdInList = this.userSelectList.some(user => user.userId === this.currentUserId);
// partId
// partType
// partNum
@ -764,7 +771,7 @@ export default {
const newDomain = {
selected: 'N',
// partId: '',
repairer: this.userSelectList.length > 0 ? this.userSelectList[0].userId : '', //
repairer: this.userSelectList.length > 0 && isUserIdInList ? this.currentUserId : '', //
partType: 0,
partNum: '',
partCost: '',
@ -797,10 +804,14 @@ export default {
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
};
// currentUserId userSelectList userId
const isUserIdInList = this.userSelectList.some(user => user.userId === this.currentUserId);
const newDomain = {
selected: 'N',
// partId: '',
repairer: this.userSelectList.length > 0 ? this.userSelectList[0].userId : '', //
repairer: this.userSelectList.length > 0 && isUserIdInList ? this.currentUserId : '', //
partType: 0,
partNum: '',
partCost: '',

View File

@ -117,6 +117,17 @@
style="width: 350px"
></el-input>
</el-form-item>
<el-form-item :prop="'premiumList.' + index + '.repairContent'" label="维修内容:">
<el-input
v-model="domain.repairContent"
maxlength="100"
placeholder="请输入"
show-word-limit
size="small"
style="width: 350px"
type="textarea"
></el-input>
</el-form-item>
<!-- <el-form-item :prop="'premiumList.' + index + '.repairContent'" label="维修内容:">
<el-input
v-model="domain.repairContent"
@ -305,7 +316,17 @@
style="width: 350px"
></el-input>
</el-form-item>
<el-form-item :prop="'premiumListTwo.' + index + '.repairContent'" label="维修内容:">
<el-input
v-model="domain.repairContent"
maxlength="100"
placeholder="请输入"
show-word-limit
size="small"
style="width: 350px"
type="textarea"
></el-input>
</el-form-item>
<!-- <el-form-item label="维修内容:">
<el-input
v-model="domain.repairContent"
@ -462,6 +483,7 @@ export default {
xiayoufeiyonge_unit: '',
fileList: [],
repairRemark: '', //
repairContent: '',
},
],
},
@ -480,6 +502,7 @@ export default {
xiayoufeiyonge_unit: '',
fileList: [],
repairRemark: '', //
repairContent: '',
},
],
},

View File

@ -545,6 +545,12 @@
type="index"
>
</el-table-column>
<el-table-column
label="配件名称"
align="center"
prop="partName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="配件数量"
align="center"

View File

@ -184,6 +184,12 @@
type="index"
>
</el-table-column>
<el-table-column
label="配件名称"
align="center"
prop="partName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="配件数量"
align="center"