linwenxin пре 1 година
родитељ
комит
486f7ed8b3

+ 3 - 0
src/views/engineeringMaintenance/allInclusiveExpense/index.vue

@@ -48,6 +48,9 @@ export default {
       try {
         var pam = JSON.parse(JSON.stringify(p))
         pam.params.push({ "param": "is_all_fee", "compare": "=", "value": "YES" })
+        if (this.$route.query.rpProjectRepairId) {
+          pam.params.push({ "param": "rp_project_repair_id", "compare": "=", "value": this.$route.query.rpProjectRepairId })
+        }
         cb && cb(pam)
         return enginMaterialList(pam)
       } catch (err) {

+ 3 - 0
src/views/engineeringMaintenance/applicationWithoutFee/index.vue

@@ -97,6 +97,9 @@ export default {
         if (pam.examineStatus) {
           pam.params.push({ "param": "examine_status", "compare": "=", "value": pam.examineStatus })
         }
+        if (this.$route.query.rpProjectRepairId) {
+          pam.params.push({ "param": "rp_project_repair_id", "compare": "=", "value": this.$route.query.rpProjectRepairId })
+        }
         cb && cb(pam)
         return enginMaterialList(pam)
       } catch (err) {

+ 17 - 2
src/views/workOrder/workOrderPool/index.vue

@@ -221,7 +221,7 @@ export default {
           this.detailFormBool = false
           this.recordSelected = []
           this.$nextTick(() => {
-            this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
+            this.defaultSearchData = [{ "param": "a.sale_order_id", "compare": "=", "value": this.$route.query.saleOrderId, label: "销售订单号" }]
             this.$nextTick(() => {
               // this.defaultSearchData = []
               this.$router.push({ name: "workOrderPool", params: {}, query: {} })
@@ -233,7 +233,19 @@ export default {
           this.detailFormBool = false
           this.recordSelected = []
           this.$nextTick(() => {
-            this.defaultSearchData = [{ "param": "a.pg_incre_order_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" }]
+            this.defaultSearchData = [{ "param": "a.pg_incre_order_id", "compare": "=", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" }]
+            this.$nextTick(() => {
+              // this.defaultSearchData = []
+              this.$router.push({ name: "workOrderPool", params: {}, query: {} })
+            })
+          })
+        }
+        if (this.$route.query.rpProjectRepairId) {
+          this.createFormBool = false
+          this.detailFormBool = false
+          this.recordSelected = []
+          this.$nextTick(() => {
+            this.defaultSearchData = [{ "param": "a.rp_project_repair_id", "compare": "=", "value": this.$route.query.rpProjectRepairId, label: "维保配置ID" }]
             this.$nextTick(() => {
               // this.defaultSearchData = []
               this.$router.push({ name: "workOrderPool", params: {}, query: {} })
@@ -318,6 +330,9 @@ export default {
         if (this.$route.query.pgIncreItemId && !pam.params.find(item => item.param == "a.pg_incre_order_id")) {
           pam.params.push({ "param": "a.pg_incre_order_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" })
         }
+        if (this.$route.query.rpProjectRepairId  && !pam.params.find(item => item.param == "a.rp_project_repair_id")) {
+          pam.params.push({ "param": "a.rp_project_repair_id", "compare": "=", "value": this.$route.query.rpProjectRepairId })
+        }
         cb && cb(pam)
         return orderBaseList(pam)
       } catch (err) {