Explorar el Código

feature:销售单执行明细列表id更改为自定义

chenqilong hace 2 años
padre
commit
7c14ce6c7f
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. 14 0
      src/views/supply/implement/implement_list.vue

+ 14 - 0
src/views/supply/implement/implement_list.vue

@@ -7,6 +7,7 @@
     :columnParsing="columnParsing"
     :tableAttributes="tableAttributes"
     :tableEvents="tableEvents"
+    :setModuleId="setModuleId"
   >
     <div slot="moreSearch">
       <el-radio-group @change="changeType" size="mini" v-model="radioType">
@@ -113,6 +114,19 @@ export default {
   },
 
   computed: {
+    setModuleId() {
+      let num = ''
+      if (this.radioType === '政策零售订单') {
+        num = 1
+      } else if (this.radioType === '零售订单') {
+        num = 2
+      } else if (this.radioType === '家用工程订单') {
+        num = 3
+      } else {
+        num = 4
+      }
+      return `${this.$route.meta.moduleId}${num}`
+    },
     exParams() {
       return {
         type: this.screenForm.status,