From 6fc1010fe4268256934f7135a4df6d1304a2f487 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 21 Nov 2024 16:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BE=85=E7=B4=A2=E8=B5=94?= =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/operation/pendingclaim.js | 7 + .../operation/pendingclaim/pendingclaim.vue | 192 ++++++++++++++++-- 2 files changed, 178 insertions(+), 21 deletions(-) diff --git a/yxt-as-ui/src/api/operation/pendingclaim.js b/yxt-as-ui/src/api/operation/pendingclaim.js index f4ced4e853..b791b01206 100644 --- a/yxt-as-ui/src/api/operation/pendingclaim.js +++ b/yxt-as-ui/src/api/operation/pendingclaim.js @@ -10,6 +10,13 @@ export default { headers: { 'Content-Type': 'application/json' } }) }, + updateManuReportNo: function(data) { + return request({ + url: '/as/v1/AsBusrepairBill/updateManuReportNo', + method: 'post', + params: data + }) + }, save: function(data) { return request({ url: '/as/v1/AsBusclaimBill/save', diff --git a/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue b/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue index 4a6bbb4b5e..c353583f3e 100644 --- a/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue +++ b/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue @@ -8,7 +8,7 @@
{{ searchxianshitit }}
+ @@ -165,6 +178,56 @@ 取消 + + + + + +
维修单编号
+ {{ report.repairBillNo }} +
+
+ + +
客户名称
+ {{ report.customerName }} +
+
+ + +
车牌号
+ {{ report.vehMark }} +
+
+ + +
车架号
+ {{ report.vinNo }} +
+
+ + +
厂家报告编号
+ +
+
+ + +
报告首次提报时间
+ +
+
+ + + 注:报告首次提报时间一旦保存后,就不能修改。 + + +
+ +
@@ -187,6 +250,13 @@ export default { btndisabled: false, dialogVisible: false, btnList: [ + { + type: 'primary', + size: 'small', + icon: '', + btnKey: 'toReport', + btnLabel: '维护厂家报告编号' + }, { type: 'primary', size: 'small', @@ -218,8 +288,9 @@ export default { size: 10, total: 0, params: { - orgPath: '', - createBySid: '', + menuUrl: '', + userSid: '', + orgPath: '' useOrgName: '', deptName: '', createByName: '', @@ -227,7 +298,6 @@ export default { createTimeStart: '', createTimeEnd: '', billType: '', - subject: '', entryTimeStart: '', entryTimeEnd: '', estimatedFinishTimeStart: '', @@ -239,7 +309,14 @@ export default { vinNo: '', waitorName: '', groupName: '', - mainRepairers: '' + mainRepairers: '', + shClaimTypeValue: '', + finishTimeStart: '', + finishTimeEnd: '', + settleTimeStart: '', + settleTimeEnd: '', + reportFirstDateStart: '', + reportFirstDateEnd: '' } }, formobj: { @@ -251,6 +328,18 @@ export default { billNo: '', createBySid: '', orgPath: '' + }, + dialogReportVisible: false, + report: { + repairBillSid: '', + repairBillNo: '', + customerName: '', + vehMark: '', + vinNo: '', + manuReportNo: '', + reportFirstDate: '', + createBySid: '', + orgPath: '' } } }, @@ -282,6 +371,9 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { + case 'toReport': + this.toReport() + break case 'toMaintain': this.toMaintain() break @@ -310,6 +402,8 @@ export default { // 查询列表信息 getList() { this.listLoading = true + this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') + this.listQuery.params.menuUrl = this.$route.path this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') req.listPage(this.listQuery).then((response) => { this.listLoading = false @@ -334,8 +428,9 @@ export default { size: 10, total: 0, params: { - orgPath: '', - createBySid: '', + menuUrl: '', + userSid: '', + orgPath: '' useOrgName: '', deptName: '', createByName: '', @@ -343,7 +438,6 @@ export default { createTimeStart: '', createTimeEnd: '', billType: '', - subject: '', entryTimeStart: '', entryTimeEnd: '', estimatedFinishTimeStart: '', @@ -355,10 +449,66 @@ export default { vinNo: '', waitorName: '', groupName: '', - mainRepairers: '' + mainRepairers: '', + shClaimTypeValue: '', + finishTimeStart: '', + finishTimeEnd: '', + settleTimeStart: '', + settleTimeEnd: '', + reportFirstDateStart: '', + reportFirstDateEnd: '' + } + } + this.getList() + }, + toReport() { + if (this.sids.length === 1) { + if (this.multipleSelection[0].reportFirstDate === '') { + this.$message({ showClose: true, type: 'error', message: '报告首次提报时间已存在,无法修改'}) + return } + this.dialogReportVisible = true + this.report.repairBillNo = this.multipleSelection[0].billNo + this.report.repairBillSid = this.multipleSelection[0].sid + this.report.customerName = this.multipleSelection[0].customerName + this.report.vehMark = this.multipleSelection[0].vehMark + this.report.vinNo = this.multipleSelection[0].vinNo + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } + }, + ReportConfirm() { + if (this.report.manuReportNo === '') { + this.$message({ showClose: true, type: 'error', message: '厂家报告编号不能为空' }) + return + } + if (this.report.reportFirstDate === '') { + this.$message({ showClose: true, type: 'error', message: '报告首次提报时间不能为空' }) + return + } + this.report.createBySid = window.sessionStorage.getItem('userSid') + this.report.orgPath = window.sessionStorage.getItem('defaultOrgPath') + req.updateManuReportNo({ sid: this.report.repairBillSid, manuReportNo: this.report.manuReportNo, reportFirstDate: this.report.reportFirstDate }).then((resp) => { + if (resp.success) { + this.$message({ showClose: true, type: 'success', message: '保存成功' }) + this.getList() + this.ReportColse() + } + }) + }, + ReportColse() { + this.dialogReportVisible = false + this.report = { + repairBillSid: '', + repairBillNo: '', + customerName: '', + vehMark: '', + vinNo: '', + manuReportNo: '', + reportFirstDate: '', + createBySid: '', + orgPath: '' } - this.init() }, toMaintain() { if (this.sids.length === 1) {