diff --git a/yxt-as-ui/src/api/operation/workslrsettlement.js b/yxt-as-ui/src/api/operation/workslrsettlement.js index c620422959..0a0ee512da 100644 --- a/yxt-as-ui/src/api/operation/workslrsettlement.js +++ b/yxt-as-ui/src/api/operation/workslrsettlement.js @@ -18,6 +18,15 @@ export default { headers: { 'Content-Type': 'application/json' } }) }, + // 查询维修单 + pageList: function(params) { + return request({ + url: '/as/v1/asbusrepairbillreversesettle/busrepairListPage', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, reverseSettleInit: function(data) { return request({ url: '/as/v1/asbusrepairbillreversesettle/reverseSettleInit', diff --git a/yxt-as-ui/src/views/operation/workslrsettlement/relation/selectRepairbill.vue b/yxt-as-ui/src/views/operation/workslrsettlement/relation/selectRepairbill.vue new file mode 100644 index 0000000000..2075bd84bb --- /dev/null +++ b/yxt-as-ui/src/views/operation/workslrsettlement/relation/selectRepairbill.vue @@ -0,0 +1,195 @@ + + + + diff --git a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlement.vue b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlement.vue index b2f7fb7f5c..5f37a87c99 100644 --- a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlement.vue +++ b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlement.vue @@ -142,6 +142,13 @@ export default { centerDialogVisible: false, btndisabled: false, btnList: [ + { + type: 'primary', + size: 'small', + icon: 'plus', + btnKey: 'toAdd', + btnLabel: '新增' + }, { type: 'danger', size: 'small', @@ -251,6 +258,9 @@ export default { btnHandle(btnKey) { console.log('XXXXXXXXXXXXXXX ' + btnKey) switch (btnKey) { + case 'toAdd': + this.toAdd() + break case 'doDel': this.doDel() break @@ -325,6 +335,10 @@ export default { } this.getList() }, + toAdd() { + this.viewState = 2 + this.$refs['divAdd'].showAdd() + }, toEdit(row) { this.viewState = 3 this.$refs['divAdd'].showEdit(row) diff --git a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue index 9c8999e796..e53cd39a92 100644 --- a/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue +++ b/yxt-as-ui/src/views/operation/workslrsettlement/workslrsettlementAdd.vue @@ -31,7 +31,10 @@ -
维修单信息
+
+
维修单信息
+ 选择维修单 +
维修单编号
@@ -56,8 +59,8 @@ {{ formobj.subject }}
-
结算时间
- {{ formobj.settleDate }} +
是否外出
+ {{ formobj.isGoOut == '1' ? '是' : '否' }}
@@ -76,13 +79,13 @@ -
合计金额
+
应收金额
{{ formobj.receivableAmount }} = 工时费:{{ formobj.hourAmount }} + 材料费:{{ formobj.goodsAmount }} + 附加费:{{ formobj.addAmount }}
-
应收金额
+
反结算金额
{{ formobj.actualAmount }} = 合计金额:{{ formobj.receivableAmount }} - 优惠:{{ formobj.discountAmount }}
@@ -98,12 +101,10 @@ - - -
商品
+
维修用料
@@ -115,14 +116,12 @@ - -
附加项目
- +
外出费(元)
@@ -131,22 +130,22 @@
- +
成本
- + 利润额:{{ formobj.outPrint }}
- +
备注
{{ formobj.outRemarks }}
- +
厂家补助(元)
@@ -155,22 +154,22 @@
- +
成本
- + 利润额:{{ formobj.subsidyPrint }}
- +
备注
{{ formobj.subsidyRemarks }}
- +
施救费(元)
@@ -179,20 +178,20 @@
- +
成本
- + 利润额:{{ formobj.rescuePrint }}
- +
备注
{{ formobj.rescueRemarks }}
- +
{{ item.name }} @@ -204,21 +203,25 @@ - -
+ + + diff --git a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue index 2e8367b8b9..aeb1026fcb 100644 --- a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue +++ b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementDaiBan.vue @@ -57,8 +57,8 @@ {{ formobj.subject }}
-
结算时间
- {{ formobj.settleDate }} +
是否外出
+ {{ formobj.isGoOut == '1' ? '是' : '否' }}
@@ -77,13 +77,13 @@ -
合计金额
+
应收合计
{{ formobj.receivableAmount }} = 工时费:{{ formobj.hourAmount }} + 材料费:{{ formobj.goodsAmount }} + 附加费:{{ formobj.addAmount }}
-
应收金额
+
反结算金额
{{ formobj.actualAmount }} = 合计金额:{{ formobj.receivableAmount }} - 优惠:{{ formobj.discountAmount }}
@@ -99,12 +99,12 @@ - - + + -
商品
+
维修用料
@@ -116,14 +116,14 @@ - - + +
附加项目
- +
外出费(元)
@@ -132,7 +132,7 @@
- +
成本
@@ -141,13 +141,13 @@
- +
备注
{{ formobj.outRemarks }}
- +
厂家补助(元)
@@ -156,7 +156,7 @@
- +
成本
@@ -165,13 +165,13 @@
- +
备注
{{ formobj.subsidyRemarks }}
- +
施救费(元)
@@ -180,7 +180,7 @@
- +
成本
@@ -189,11 +189,11 @@
- +
备注
{{ formobj.rescueRemarks }}
- +
{{ item.name }} @@ -205,8 +205,8 @@ - - + + @@ -264,6 +264,7 @@ export default { viewTitle: '', viewState: 1, submitdisabled: false, + conceal: false, tableKey: 0, index: 0, // service服务 @@ -273,6 +274,7 @@ export default { formobj: { sid: '', createByName: '', + createBySid: '', billNo: '', billType: '', subject: '', @@ -298,7 +300,7 @@ export default { coupon: '', scoreDeduct: '', sourceBillDate: '', - settleDate: '', + isGoOut: '', taxRate: '', taskId: '', instanceId: '', @@ -398,6 +400,9 @@ export default { this.$nextTick(() => { this.$refs['form_obj'].clearValidate() }) + if (this.formobj.createBySid !== window.sessionStorage.getItem('userSid')) { + this.conceal = true + } req.fetchBySid(sid).then((res) => { if (res.success) { this.formobj = res.data diff --git a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue index 609a9488e6..e8ed287c74 100644 --- a/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue +++ b/yxt-as-ui/src/views/workFlow/fanjiesuanFlow/workslrsettlementEdit.vue @@ -30,7 +30,10 @@ -
维修单信息
+
+
维修单信息
+ 选择维修单 +
维修单编号
@@ -55,8 +58,8 @@ {{ formobj.subject }}
-
结算时间
- {{ formobj.settleDate }} +
是否外出
+ {{ formobj.isGoOut == '1' ? '是' : '否' }}
@@ -75,13 +78,13 @@ -
合计金额
+
应收合计
{{ formobj.receivableAmount }} = 工时费:{{ formobj.hourAmount }} + 材料费:{{ formobj.goodsAmount }} + 附加费:{{ formobj.addAmount }}
-
应收金额
+
反结算金额
{{ formobj.actualAmount }} = 合计金额:{{ formobj.receivableAmount }} - 优惠:{{ formobj.discountAmount }}
@@ -97,8 +100,6 @@ - - @@ -114,14 +115,12 @@ - -
附加项目
- +
外出费(元)
@@ -130,22 +129,22 @@
- +
成本
- + 利润额:{{ formobj.outPrint }}
- +
备注
{{ formobj.outRemarks }}
- +
厂家补助(元)
@@ -154,22 +153,22 @@
- +
成本
- + 利润额:{{ formobj.subsidyPrint }}
- +
备注
{{ formobj.subsidyRemarks }}
- +
施救费(元)
@@ -178,20 +177,20 @@
- +
成本
- + 利润额:{{ formobj.rescuePrint }}
- +
备注
{{ formobj.rescueRemarks }}
- +
{{ item.name }} @@ -203,21 +202,25 @@ - -
+ +