From a0fa5bb64ba69d34dbf743668940429987be6ad3 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 15 May 2024 17:14:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/operation/repairbill.js | 9 ++++ .../operation/repairbill/repairbillAdd.vue | 12 ++--- .../repairbill/repairbillBYLeaveFactory.vue | 52 +++++++------------ .../repairbill/repairbillByBeCompleted.vue | 52 +++++++------------ .../repairbill/repairbillByMaintain.vue | 52 +++++++------------ .../repairbill/repairbillBySendWork.vue | 52 +++++++------------ .../repairbill/repairbillBySettleAccounts.vue | 52 +++++++------------ .../operation/repairbill/repairbillInfo.vue | 13 +++++ 8 files changed, 123 insertions(+), 171 deletions(-) diff --git a/yxt-as-ui/src/api/operation/repairbill.js b/yxt-as-ui/src/api/operation/repairbill.js index 865d8dd16a..05398b1422 100644 --- a/yxt-as-ui/src/api/operation/repairbill.js +++ b/yxt-as-ui/src/api/operation/repairbill.js @@ -48,5 +48,14 @@ export default { data: data, headers: { 'Content-Type': 'application/json' } }) + }, + // 确认材料费 + settle: function(data) { + return request({ + url: '/as/v1/AsBusrepairBill/settle', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) } } diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue index 63f3551b87..e4ab7f1c08 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue @@ -6,9 +6,9 @@
选择客户 保存 - 提交 + 提交 结算 - 确认材料费 + 确认材料费 关闭
@@ -442,7 +442,7 @@
付款人编号
- +
应收金额
@@ -470,7 +470,7 @@
其他结算方式
- + @@ -1072,7 +1072,6 @@ export default { }, settleAccounts() { this.settleVisible = true - // this.formobj.payableAmount = this.yfjeTotal }, settleChange(value) { const choose = this.settle_list.filter((item) => item.dictValue === value) @@ -1094,7 +1093,7 @@ export default { this.$refs['form_obj'].validate((valid) => { if (valid) { this.submitdisabled = true - req.settlement(this.formobj).then((res) => { + req.settle(this.formobj).then((res) => { if (res.success) { this.$message({ showClose: true, type: 'success', message: '结算成功' }) this.handleReturn('true') @@ -1221,6 +1220,7 @@ export default { }, showReSettleBtn: true } + this.settleVisible = false this.submitdisabled = false this.$emit('doback') } diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue index a8985f38b3..d6a35ca46c 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBYLeaveFactory.vue @@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/repairbill' import repairbillAdd from './repairbillAdd' import repairbillInfo from './repairbillInfo' +import { typeValues } from '@/api/Common/dictcommons' export default { name: 'RepairBYLeaveFactory', @@ -160,13 +161,6 @@ export default { return { btndisabled: false, btnList: [ - { - type: 'primary', - size: 'small', - icon: 'plus', - btnKey: 'toAdd', - btnLabel: '新增' - }, { type: 'primary', size: 'small', @@ -195,20 +189,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - billType_list: [ - { - dictKey: '0', - dictValue: '正常工单' - }, - { - dictKey: '1', - dictValue: '保险理赔' - }, - { - dictKey: '2', - dictValue: '协议单位' - } - ], + billType_list: [], state_list: [ { dictKey: '1', @@ -216,7 +197,7 @@ export default { }, { dictKey: '0', - dictValue: '是' + dictValue: '否' } ], FormLoading: false, @@ -224,7 +205,7 @@ export default { // 翻页 listQuery: { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -258,12 +239,20 @@ export default { }, created() { // 初始化变量 + this.init() this.getList() }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, methods: { + init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -276,9 +265,6 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { - case 'toAdd': - this.toAdd() - break case 'toEdit': this.toEdit() break @@ -333,7 +319,7 @@ export default { handleReset() { this.listQuery = { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -365,13 +351,13 @@ export default { } this.getList() }, - toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() - }, toEdit() { - this.viewState = 3 - this.$refs['divAdd'].showEdit() + if (this.sids.length === 1) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue index f8f0570c55..f8e9399dc8 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillByBeCompleted.vue @@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/repairbill' import repairbillAdd from './repairbillAdd' import repairbillInfo from './repairbillInfo' +import { typeValues } from '@/api/Common/dictcommons' export default { name: 'RepairBillByCompleted', @@ -160,13 +161,6 @@ export default { return { btndisabled: false, btnList: [ - { - type: 'primary', - size: 'small', - icon: 'plus', - btnKey: 'toAdd', - btnLabel: '新增' - }, { type: 'primary', size: 'small', @@ -195,20 +189,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - billType_list: [ - { - dictKey: '0', - dictValue: '正常工单' - }, - { - dictKey: '1', - dictValue: '保险理赔' - }, - { - dictKey: '2', - dictValue: '协议单位' - } - ], + billType_list: [], state_list: [ { dictKey: '1', @@ -216,7 +197,7 @@ export default { }, { dictKey: '0', - dictValue: '是' + dictValue: '否' } ], FormLoading: false, @@ -224,7 +205,7 @@ export default { // 翻页 listQuery: { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -258,12 +239,20 @@ export default { }, created() { // 初始化变量 + this.init() this.getList() }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, methods: { + init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -276,9 +265,6 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { - case 'toAdd': - this.toAdd() - break case 'toEdit': this.toEdit() break @@ -333,7 +319,7 @@ export default { handleReset() { this.listQuery = { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -365,13 +351,13 @@ export default { } this.getList() }, - toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() - }, toEdit() { - this.viewState = 3 - this.$refs['divAdd'].showEdit() + if (this.sids.length === 1) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue index 75809fbae7..658d316334 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillByMaintain.vue @@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/repairbill' import repairbillAdd from './repairbillAdd' import repairbillInfo from './repairbillInfo' +import {typeValues} from "@/api/Common/dictcommons"; export default { name: 'RepairBillByMaintain', @@ -160,13 +161,6 @@ export default { return { btndisabled: false, btnList: [ - { - type: 'primary', - size: 'small', - icon: 'plus', - btnKey: 'toAdd', - btnLabel: '新增' - }, { type: 'primary', size: 'small', @@ -195,20 +189,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - billType_list: [ - { - dictKey: '0', - dictValue: '正常工单' - }, - { - dictKey: '1', - dictValue: '保险理赔' - }, - { - dictKey: '2', - dictValue: '协议单位' - } - ], + billType_list: [], state_list: [ { dictKey: '1', @@ -216,7 +197,7 @@ export default { }, { dictKey: '0', - dictValue: '是' + dictValue: '否' } ], FormLoading: false, @@ -224,7 +205,7 @@ export default { // 翻页 listQuery: { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -258,12 +239,20 @@ export default { }, created() { // 初始化变量 + this.init() this.getList() }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, methods: { + init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -276,9 +265,6 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { - case 'toAdd': - this.toAdd() - break case 'toEdit': this.toEdit() break @@ -333,7 +319,7 @@ export default { handleReset() { this.listQuery = { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -365,13 +351,13 @@ export default { } this.getList() }, - toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() - }, toEdit() { - this.viewState = 3 - this.$refs['divAdd'].showEdit() + if (this.sids.length === 1) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue index aebb36169c..7496012378 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBySendWork.vue @@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/repairbill' import repairbillAdd from './repairbillAdd' import repairbillInfo from './repairbillInfo' +import { typeValues } from '@/api/Common/dictcommons' export default { name: 'RepairBillBySendWork', @@ -160,13 +161,6 @@ export default { return { btndisabled: false, btnList: [ - { - type: 'primary', - size: 'small', - icon: 'plus', - btnKey: 'toAdd', - btnLabel: '新增' - }, { type: 'primary', size: 'small', @@ -195,20 +189,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - billType_list: [ - { - dictKey: '0', - dictValue: '正常工单' - }, - { - dictKey: '1', - dictValue: '保险理赔' - }, - { - dictKey: '2', - dictValue: '协议单位' - } - ], + billType_list: [], state_list: [ { dictKey: '1', @@ -216,7 +197,7 @@ export default { }, { dictKey: '0', - dictValue: '是' + dictValue: '否' } ], FormLoading: false, @@ -224,7 +205,7 @@ export default { // 翻页 listQuery: { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -258,12 +239,20 @@ export default { }, created() { // 初始化变量 + this.init() this.getList() }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, methods: { + init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -276,9 +265,6 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { - case 'toAdd': - this.toAdd() - break case 'toEdit': this.toEdit() break @@ -333,7 +319,7 @@ export default { handleReset() { this.listQuery = { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -365,13 +351,13 @@ export default { } this.getList() }, - toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() - }, toEdit() { - this.viewState = 3 - this.$refs['divAdd'].showEdit() + if (this.sids.length === 1) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue index ef629b3ab7..34d0cbe26a 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillBySettleAccounts.vue @@ -146,6 +146,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/operation/repairbill' import repairbillAdd from './repairbillAdd' import repairbillInfo from './repairbillInfo' +import { typeValues } from '@/api/Common/dictcommons' export default { name: 'RepairBillBySettleAccounts', @@ -160,13 +161,6 @@ export default { return { btndisabled: false, btnList: [ - { - type: 'primary', - size: 'small', - icon: 'plus', - btnKey: 'toAdd', - btnLabel: '新增' - }, { type: 'primary', size: 'small', @@ -195,20 +189,7 @@ export default { tableKey: 0, list: [], sids: [], // 用于导出的时候保存已选择的SIDs - billType_list: [ - { - dictKey: '0', - dictValue: '正常工单' - }, - { - dictKey: '1', - dictValue: '保险理赔' - }, - { - dictKey: '2', - dictValue: '协议单位' - } - ], + billType_list: [], state_list: [ { dictKey: '1', @@ -216,7 +197,7 @@ export default { }, { dictKey: '0', - dictValue: '是' + dictValue: '否' } ], FormLoading: false, @@ -224,7 +205,7 @@ export default { // 翻页 listQuery: { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -258,12 +239,20 @@ export default { }, created() { // 初始化变量 + this.init() this.getList() }, mounted() { this.$refs['btnbar'].setButtonList(this.btnList) }, methods: { + init() { + typeValues({ type: 'billType' }).then((res) => { + if (res.success) { + this.billType_list = res.data + } + }) + }, // 搜索条件效果 clicksearchShow() { this.isSearchShow = !this.isSearchShow @@ -276,9 +265,6 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { - case 'toAdd': - this.toAdd() - break case 'toEdit': this.toEdit() break @@ -333,7 +319,7 @@ export default { handleReset() { this.listQuery = { current: 1, - size: 10, + size: 5, total: 0, params: { startTime: '', @@ -365,13 +351,13 @@ export default { } this.getList() }, - toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() - }, toEdit() { - this.viewState = 3 - this.$refs['divAdd'].showEdit() + if (this.sids.length === 1) { + this.viewState = 3 + this.$refs['divAdd'].showEdit(this.sids[0]) + } else { + this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) + } }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue index 3fa465871d..1071c960d0 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue @@ -4,6 +4,7 @@
{{ viewTitle }}
+ 反结算 关闭
@@ -271,14 +272,19 @@ + + diff --git a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue new file mode 100644 index 0000000000..4fdc527302 --- /dev/null +++ b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue @@ -0,0 +1,359 @@ + + + + + diff --git a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementInfo.vue b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementInfo.vue new file mode 100644 index 0000000000..61948d2d4d --- /dev/null +++ b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementInfo.vue @@ -0,0 +1,312 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue new file mode 100644 index 0000000000..69f8c8ada7 --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue @@ -0,0 +1,556 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue new file mode 100644 index 0000000000..bfe14204cf --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue @@ -0,0 +1,335 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementYiBan.vue b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementYiBan.vue new file mode 100644 index 0000000000..b941998ae9 --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementYiBan.vue @@ -0,0 +1,348 @@ + + + + +