Quellcode durchsuchen

待出库页面: 出库完成数据应不显示出库按钮. 交接单附件显示增加间距

lxf vor 1 Jahr
Ursprung
Commit
11ebd54d6a

+ 1 - 1
src/views/EHSD/procurement/handoverSlipEHSD/index.vue

@@ -30,7 +30,7 @@
 
     <el-dialog title="交接单" v-if="openAllFile" v-model="openAllFile" width="500">
       <div>
-        <div v-for="(file, index) in rowData.fileList" :key="index">
+        <div v-for="(file, index) in rowData.fileList" :key="index" style="padding: 8px 0;">
           <a style="color: #409eff; cursor: pointer" @click="openFile(file.fileUrl)">{{ file.fileName }}</a>
         </div>
       </div>

+ 14 - 12
src/views/purchaseSales/outAndInWarehouse/waitingForDelivery/index.vue

@@ -70,7 +70,7 @@ const sourceList = ref({
     pageSize: 10,
     keyword: "",
     status: "",
-    type: 2
+    type: 2,
   },
 });
 const loading = ref(false);
@@ -162,17 +162,19 @@ const config = computed(() => {
       },
       renderHTML(row) {
         return [
-          {
-            attrs: {
-              label: "出库",
-              type: "primary",
-              text: true,
-            },
-            el: "button",
-            click() {
-              clickOperation(row);
-            },
-          },
+          row.status !== 2
+            ? {
+                attrs: {
+                  label: "出库",
+                  type: "primary",
+                  text: true,
+                },
+                el: "button",
+                click() {
+                  clickOperation(row);
+                },
+              }
+            : {},
         ];
       },
     },