Browse Source

优化追溯码上传

hsh 2 months ago
parent
commit
12e763dc8f
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/views/ypCodg/YpCodgUpload.vue

+ 4 - 5
src/views/ypCodg/YpCodgUpload.vue

@@ -86,6 +86,7 @@
                   :data="ypInvinfoUploadData.slice(pageSizeInvinfoCx * (currentPageInvinfoCx - 1), pageSizeInvinfoCx * currentPageInvinfoCx)"
                   border style="width: 100%" height="100%" stripe highlight-current-row @selection-change="handleInvinfoSelectionChangeCx"
                   class="normal-size">
+                <el-table-column type="selection" width="55" />
                 <el-table-column type="index" label="序号" width="60" />
                 <el-table-column prop="fixmedinsHilistId" label="id" width="100" v-if="false" />
                 <el-table-column prop="fixmedinsHilistName" label="name" width="100" v-if="false" />
@@ -338,7 +339,7 @@
                     <span v-else>{{ scope.row.uploadFlag }}</span>
                   </template>
                 </el-table-column>
-                <el-table-column prop="msgErr" label="上传信息" width="100">
+                <el-table-column prop="msgErr" label="上传信息" width="160">
                   <template #default="scope">
                     <span v-if="scope.row.msgErr">
                       <el-popover effect="light" trigger="click" placement="top-start" width="left">
@@ -944,14 +945,11 @@ const deleteYpGoods = () => {
   }).then(() => {
     let uploadData = ref([])
     if("ypInvinfoCx" === editableTabsValue.value){
-      selectInvinfoDataListCx.value[0].type = ztFlag.value
+      selectInvinfoDataListCx.value[0].type = '0'
       uploadData.value = selectInvinfoDataListCx.value
     } else if("ypPurchaseCx" === editableTabsValue.value){
       selectPurchaseDataListCx.value[0].type = ztFlag.value
       uploadData.value = selectPurchaseDataListCx.value
-    } else if("ypPurchaseCx" === editableTabsValue.value){
-      selectPurchaseDataListCx.value[0].type = ztFlag.value
-      uploadData.value = selectPurchaseDataListCx.value
     } else if("ypSelinfoCx" === editableTabsValue.value){
       selectSelinfoDataListCx.value[0].type = ztFlag.value
       uploadData.value = selectSelinfoDataListCx.value
@@ -981,6 +979,7 @@ const deleteYpGoods = () => {
           duration: 2500,
           showClose: true,
         })
+        queryItem()
       })
       .catch(() => {