From 1ef838c9614bd80fce3baec905450ee0b2151700 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 20 May 2024 16:36:06 +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=B7=A5=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/operation/pendingclaim.js | 10 +- yxt-as-ui/src/router/index.js | 6 + .../operation/pendingclaim/pendingclaim.vue | 105 +++++++++++++++++- 3 files changed, 116 insertions(+), 5 deletions(-) diff --git a/yxt-as-ui/src/api/operation/pendingclaim.js b/yxt-as-ui/src/api/operation/pendingclaim.js index a8ac47c4cd..f4ced4e853 100644 --- a/yxt-as-ui/src/api/operation/pendingclaim.js +++ b/yxt-as-ui/src/api/operation/pendingclaim.js @@ -4,10 +4,18 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/as/v1/asbusrepairbillreversesettle/listPage', + url: '/as/v1/AsBusrepairBill/billPageList', method: 'post', data: params, headers: { 'Content-Type': 'application/json' } }) }, + save: function(data) { + return request({ + url: '/as/v1/AsBusclaimBill/save', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + } } diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 67300e3eba..c52ec6616a 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -98,6 +98,12 @@ export const constantRoutes = [{ name: 'WorkSLRSettlement', meta: { title: '工单反结算管理', noCache: true } }, + { + path: '/pendingclaim/pendingclaim', + component: () => import('@/views/operation/pendingclaim/pendingclaim.vue'), + name: 'PendingClaim', + meta: { title: '待索赔维修工单', noCache: true } + }, ] }, { diff --git a/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue b/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue index 4671a0f5a8..01674953b7 100644 --- a/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue +++ b/yxt-as-ui/src/views/operation/pendingclaim/pendingclaim.vue @@ -27,8 +27,9 @@ - - + + + @@ -120,6 +121,44 @@ + + + + +
维修工单编号
+ {{ formobj.repairBillNo }} +
+
+ + +
客户名称
+ {{ formobj.customerName }} +
+
+ + +
车牌号
+ {{ formobj.vehMark }} +
+
+ + +
车架号
+ {{ formobj.vinNo }} +
+
+ + +
厂家索赔单号
+ +
+
+
+ +
@@ -128,6 +167,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/pendingclaim' +import { typeValues } from '@/api/Common/dictcommons' export default { name: 'PendingClaim', @@ -139,6 +179,7 @@ export default { data() { return { btndisabled: false, + dialogVisible: false, btnList: [ { type: 'primary', @@ -161,7 +202,8 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - supplier_list: [], + multipleSelection: [], + billType_list: [], FormLoading: false, listLoading: false, // 翻页 @@ -193,6 +235,16 @@ export default { groupName: '', mainRepairers: '' } + }, + formobj: { + repairBillSid: '', + repairBillNo: '', + customerName: '', + vehMark: '', + vinNo: '', + billNo: '', + createBySid: '', + orgPath: '' } } }, @@ -206,6 +258,11 @@ export default { }, methods: { init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) }, // 搜索条件效果 clicksearchShow() { @@ -232,6 +289,7 @@ export default { // 信息条数 获取点击时当前的sid handleSelectionChange(row) { const aa = [] + this.multipleSelection = row row.forEach(element => { aa.push(element.sid) }) @@ -298,11 +356,44 @@ export default { }, toMaintain() { if (this.sids.length === 1) { - + this.dialogVisible = true + this.formobj.repairBillNo = this.multipleSelection[0].billNo + this.formobj.repairBillSid = this.multipleSelection[0].sid + this.formobj.customerName = this.multipleSelection[0].customerName + this.formobj.vehMark = this.multipleSelection[0].vehMark + this.formobj.vinNo = this.multipleSelection[0].vinNo } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) } }, + handleConfirm() { + if (this.formobj.billNo === '') { + this.$message({ showClose: true, type: 'error', message: '厂家索赔单号不能为空' }) + return + } + this.formobj.createBySid = window.sessionStorage.getItem('userSid') + this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') + req.save(this.formobj).then((resp) => { + if (resp.success) { + this.$message({ showClose: true, type: 'success', message: '保存成功' }) + this.getList() + this.handleClose() + } + }) + }, + handleClose() { + this.dialogVisible = false + this.formobj = { + repairBillSid: '', + repairBillNo: '', + customerName: '', + vehMark: '', + vinNo: '', + billNo: '', + createBySid: '', + orgPath: '' + } + }, doClose() { this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1) @@ -311,4 +402,10 @@ export default { }