linwenxin 4 mesi fa
parent
commit
8f7602c434

+ 25 - 54
src/views/workOrder/workOrderPool/detailModule/Payment/index.vue

@@ -689,61 +689,32 @@ export default {
           orderBaseId: this.id
         }).then(resData => {
           this.orderBaseDetail = resData.data
-          if (!!~[1, 2, 3].indexOf(this?.workOrderType)) {
-            changeOrderGetOrderList({
-              id: this.id
-            }).then(res => {
-              this.payData = res.data.map(item => {
-                return {
-                  ...item,
-                  gengduofeiyong: [
-                    {
-                      chargeType: 'SERV',
-                      amountName: '服务费用',
-                      normAmount: item.servicePrice || 0,
-                      sfsxf: Math.ceil((item.servicePrice || 0) * 0.6) / 100,
-                      sffzje: item.servicePrice - Math.ceil((item.servicePrice || 0) * 0.6) / 100
-                    },
-                    {
-                      chargeType: 'SERV',
-                      amountName: '其他费用',
-                      normAmount: item.otherPrice || 0,
-                      sfsxf: Math.ceil((item.otherPrice || 0) * 0.6) / 100,
-                      sffzje: item.otherPrice - Math.ceil((item.otherPrice || 0) * 0.6) / 100
-                    }
-                  ]
-                }
-              })
-              console.log(this.payData)
-            })
-          } else if (this?.workOrderType == 4) {
-            enginMaterialDetailWorker({
-              workerOrderId: this.id
-            }).then(res => {
-              this.payData = res.data.map(item => {
-                return {
-                  ...item,
-                  gengduofeiyong: [
-                    {
-                      chargeType: 'SERV',
-                      amountName: '服务费用',
-                      normAmount: item.servicePrice || 0,
-                      sfsxf: Math.ceil((item.servicePrice || 0) * 0.6) / 100,
-                      sffzje: item.servicePrice - Math.ceil((item.servicePrice || 0) * 0.6) / 100
-                    },
-                    {
-                      chargeType: 'SERV',
-                      amountName: '其他费用',
-                      normAmount: item.otherPrice || 0,
-                      sfsxf: Math.ceil((item.otherPrice || 0) * 0.6) / 100,
-                      sffzje: item.otherPrice - Math.ceil((item.otherPrice || 0) * 0.6) / 100
-                    }
-                  ]
-                }
-              })
-              console.log(this.payData)
+          changeOrderGetOrderList({
+            id: this.id
+          }).then(res => {
+            this.payData = res.data.map(item => {
+              return {
+                ...item,
+                gengduofeiyong: [
+                  {
+                    chargeType: 'SERV',
+                    amountName: '服务费用',
+                    normAmount: item.servicePrice || 0,
+                    sfsxf: Math.ceil((item.servicePrice || 0) * 0.6) / 100,
+                    sffzje: item.servicePrice - Math.ceil((item.servicePrice || 0) * 0.6) / 100
+                  },
+                  {
+                    chargeType: 'SERV',
+                    amountName: '其他费用',
+                    normAmount: item.otherPrice || 0,
+                    sfsxf: Math.ceil((item.otherPrice || 0) * 0.6) / 100,
+                    sffzje: item.otherPrice - Math.ceil((item.otherPrice || 0) * 0.6) / 100
+                  }
+                ]
+              }
             })
-          }
+            console.log(this.payData)
+          })
         })
       }
     },