浏览代码

更正dialog数据不更新

zhaoyaxiong 1 年之前
父节点
当前提交
9f3d114d74

+ 6 - 4
ZRAdmin-vue-main/src/views/Business/Report/index.vue

@@ -64,8 +64,7 @@
     </el-row>
 
     <!-- 数据区域 -->
-    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row @sort-change="sortChange"
-      @selection-change="handleSelectionChange">
+    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row>
       <el-table-column type="index" label="序号" width="50" align="center" />
       <el-table-column prop="category" label="物料类型" align="center" :show-overflow-tooltip="true" width="80"
         v-if="columns.showColumn('category')">
@@ -110,7 +109,7 @@
       v-model:limit="queryParams.pageSize" @pagination="getList" />
 
     <!-- 关键件信息追溯对话框 -->
-    <el-dialog :title="title" :lock-scroll="false" v-model="open" width="70%">
+    <el-dialog :title="title" :lock-scroll="false" v-model="open" @close="closeDialog" width="70%">
       <QaRecord v-if="openType == 1" :tranceParams="tranceParams" />
       <InRecord v-if="openType == 2" :tranceParams="tranceParams" />
       <OutRecord v-if="openType == 3" :tranceParams="tranceParams" />
@@ -259,9 +258,12 @@ function handleReportAss(row) {
   open.value = true
 }
 // 关闭dialog
-function cancel() {
+function closeDialog() {
   openType.value = 0
   open.value = false
+  tranceParams.materialCode = undefined
+  tranceParams.bnSnCode = undefined
+  console.log('close')
 }
 
 handleQuery()

+ 1 - 2
ZRAdmin-vue-main/src/views/tables/AssembleRecord.vue

@@ -3,8 +3,7 @@
     <el-row :gutter="10" class="mb8">
       <right-toolbar :showSearchShow="false" :refreshShow="false" :columns="columns"></right-toolbar>
     </el-row>
-    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row @sort-change="sortChange"
-      @selection-change="handleSelectionChange">
+    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row>
       <!-- <el-table-column type="selection" width="50" align="center" /> -->
       <el-table-column type="index" label="序号" width="50" align="center" />
       <el-table-column prop="assembleId" label="ID" align="center" v-if="columns.showColumn('assembleId')" />

+ 1 - 2
ZRAdmin-vue-main/src/views/tables/InstoreRecord.vue

@@ -3,8 +3,7 @@
     <el-row :gutter="10" class="mb8">
       <right-toolbar :showSearchShow="false" :refreshShow="false" :columns="columns"></right-toolbar>
     </el-row>
-    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row @sort-change="sortChange"
-      @selection-change="handleSelectionChange">
+    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row>
       <!-- <el-table-column type="selection" width="50" align="center" /> -->
       <!-- <el-table-column type="index" label="序号" width="50" align="center" /> -->
       <el-table-column prop="inStoreId" label="ID" align="center" v-if="columns.showColumn('inStoreId')" />

+ 1 - 2
ZRAdmin-vue-main/src/views/tables/OutstoreRecord.vue

@@ -3,8 +3,7 @@
     <el-row :gutter="10" class="mb8">
       <right-toolbar :showSearchShow="false" :refreshShow="false" :columns="columns"></right-toolbar>
     </el-row>
-    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row @sort-change="sortChange"
-      @selection-change="handleSelectionChange">
+    <el-table :data="dataList" v-loading="loading" ref="table" highlight-current-row>
       <!-- <el-table-column type="selection" width="50" align="center" /> -->
       <!-- <el-table-column type="index" label="序号" width="50" align="center" /> -->
       <el-table-column prop="outStoreId" label="ID" align="center" v-if="columns.showColumn('outStoreId')" />