戴艳蓉 3 years ago
parent
commit
0250443926
1 changed files with 38 additions and 10 deletions
  1. 38 10
      src/views/stock/check/index.vue

+ 38 - 10
src/views/stock/check/index.vue

@@ -161,6 +161,16 @@
             "
           ></el-tag>
         </template>
+        <template #type="{ scope }">
+          <el-tag
+            :size="tablebtnSize"
+            :type="scope.row.type == '1' ? 'success' : ''"
+            v-text="
+              (typeOptions.find((item) => item.id == scope.row.type) || {})
+                .label || '--'
+            "
+          ></el-tag>
+        </template>
         <template #operation="{ scope }">
           <el-tooltip
             v-if="powers.some((item) => item == '007')"
@@ -269,6 +279,13 @@ export default {
         {
           prop: "check_code",
           label: "盘点编号",
+          width: "155px",
+        },
+
+        {
+          prop: "name",
+          label: "仓库名称",
+          width: "100px",
         },
         {
           prop: "wsm_code",
@@ -276,30 +293,41 @@ export default {
           width: "170px",
         },
         {
-          prop: "name",
-          label: "仓库名称",
+          prop: "caname",
+          label: "公司名称",
         },
         {
           prop: "code",
           label: "公司编码",
           width: "140px",
         },
+
         {
-          prop: "caname",
-          label: "公司名称",
+          prop: "status",
+          label: "盘点状态",
+          _slot_: "status",
+          width: "120px",
         },
 
-        // {
-        //   prop: "status",
-        //   label: "状态",
-        //   _slot_: "status",
-        //   width: "80px",
-        // },
+        {
+          prop: "type",
+          label: "盘点类型",
+          _slot_: "type",
+          width: "70px",
+        },
         {
           prop: "addtime",
           label: "创建时间",
           width: "140px",
         },
+        {
+          prop: "",
+          label: "操作",
+          fixed: "right",
+          _noset_: true,
+          width: "50px",
+          _slot_: "operation",
+        },
       ],
     };
   },