ysy 2 lat temu
rodzic
commit
86a37b2374

+ 3 - 3
src/views/factoryModel/station/index.vue

@@ -25,9 +25,9 @@
             添加
             添加
           </el-button>
           </el-button>
         </template>
         </template>
-        <template v-slot:workshop="{ row }">
-          <!-- {{ showWorkshop(row) }} -->
-        </template>
+        <!-- <template v-slot:workshop="{ row }">
+        {{ showWorkshop(row) }}
+        </template> -->
         <template v-slot:meterTime="{ row }">
         <template v-slot:meterTime="{ row }">
           <div v-if="row.extInfo.meterTime">
           <div v-if="row.extInfo.meterTime">
             {{ `${row.extInfo.meterTime}  ${row.extInfo.meterTimeUnit}/次 ` }}
             {{ `${row.extInfo.meterTime}  ${row.extInfo.meterTimeUnit}/次 ` }}

+ 1 - 1
src/views/material/product/components/mouldDialog.vue

@@ -301,7 +301,7 @@ export default {
             let _arr = this.$refs.table.getData()
             let _arr = this.$refs.table.getData()
             let param = {
             let param = {
                 categoryId: this.categoryId,
                 categoryId: this.categoryId,
-                takeList: _arr
+                taskList: _arr
             }
             }
             categoryTaskPallet(param).then((res) => {
             categoryTaskPallet(param).then((res) => {
                 console.log(res)
                 console.log(res)

+ 18 - 11
src/views/technology/productParam/components/ProductModal.vue

@@ -2,7 +2,8 @@
   <el-dialog :title="title" :visible.sync="visible" v-if="visible" :before-close="handleClose"
   <el-dialog :title="title" :visible.sync="visible" v-if="visible" :before-close="handleClose"
     :close-on-click-modal="false" :close-on-press-escape="false" append-to-body width="75%">
     :close-on-click-modal="false" :close-on-press-escape="false" append-to-body width="75%">
     <el-card shadow="never">
     <el-card shadow="never">
-      <ProductSearch @search="reload" />
+      <ProductSearch @search="reload" ref="searchRef" />
+
       <ele-split-layout width="244px" allow-collapse :right-style="{ overflow: 'hidden' }">
       <ele-split-layout width="244px" allow-collapse :right-style="{ overflow: 'hidden' }">
         <div class="ele-border-lighter split-layout-right-content">
         <div class="ele-border-lighter split-layout-right-content">
           <AssetTree ref="assetTreeRef" :id="categoryLevelId" @handleNodeClick="handleNodeClick" />
           <AssetTree ref="assetTreeRef" :id="categoryLevelId" @handleNodeClick="handleNodeClick" />
@@ -123,7 +124,9 @@ export default {
       title: null,
       title: null,
       categoryLevelId: null,
       categoryLevelId: null,
       radio: null,
       radio: null,
-      idx: null
+      idx: null,
+
+      isCategory: true
     }
     }
   },
   },
 
 
@@ -137,17 +140,21 @@ export default {
         ...where,
         ...where,
         pageNum: page,
         pageNum: page,
         size: limit,
         size: limit,
-        categoryLevelId: this.categoryLevelId,
+        categoryLevelId: this.isCategory ? this.categoryLevelId : null,
 
 
       });
       });
     },
     },
     handleNodeClick(data) {
     handleNodeClick(data) {
+      this.isCategory = true
       this.categoryLevelId = data.id;
       this.categoryLevelId = data.id;
-      this.reload();
+      this.$refs.table.reload({ pageNum: 1, where: {} });
+      this.$refs.searchRef.reset2()
+
+
     },
     },
     /* 刷新表格 */
     /* 刷新表格 */
     reload(where) {
     reload(where) {
-      this.categoryLevelId = null
+      this.isCategory = false
       this.$refs.table.reload({ pageNum: 1, where: where });
       this.$refs.table.reload({ pageNum: 1, where: where });
     },
     },
     open(item, title, categoryLevelId, idx) {
     open(item, title, categoryLevelId, idx) {
@@ -155,13 +162,13 @@ export default {
         this.title = title
         this.title = title
         this.categoryLevelId = categoryLevelId
         this.categoryLevelId = categoryLevelId
         this.idx = idx
         this.idx = idx
-        
+
         this.current = {
         this.current = {
-            id: item.categoryId,
-            name: item.categoryName,
-            code: item.categoryCode
-          }
-          this.radio = item.categoryId
+          id: item.categoryId,
+          name: item.categoryName,
+          code: item.categoryCode
+        }
+        this.radio = item.categoryId
 
 
       }
       }
       this.visible = true
       this.visible = true

+ 4 - 0
src/views/technology/productParam/components/product-search.vue

@@ -84,6 +84,10 @@
       reset () {
       reset () {
         this.where = { ...this.defaultWhere };
         this.where = { ...this.defaultWhere };
         this.search();
         this.search();
+      },
+      reset2 () {
+        this.where = { ...this.defaultWhere };
+
       }
       }
     }
     }
   };
   };