Parcourir la source

物流数据增加按钮判断

cz il y a 1 an
Parent
commit
2182f7e588

+ 6 - 2
src/views/WDLY/outInBound/logistics/index.vue

@@ -447,6 +447,7 @@ const config = computed(() => {
       attrs: {
         label: "创建时间",
         prop: "createTime",
+        width: 155,
       },
     },
 
@@ -454,7 +455,8 @@ const config = computed(() => {
       attrs: {
         label: "操作",
         width: "200",
-        align: "right",
+        align: "center",
+        fixed: "right",
       },
       // 渲染 el-button,一般用在最后一列。
       renderHTML(row) {
@@ -481,7 +483,7 @@ const config = computed(() => {
               editStatus(row);
             },
           },
-          row.businessType == 1
+          row.businessType == 1 && row.arrivalStatus == 0
             ? {
                 attrs: {
                   label: "到货通知",
@@ -672,6 +674,7 @@ const submitForm = () => {
             type: "success",
           });
           dialogVisible.value = false;
+          submitLoading.value = false;
           loading.value = false;
           getList();
         },
@@ -743,6 +746,7 @@ const getLogisticsData = (row) => {
     }));
   });
 };
+
 const handleClickCode = (row) => {
   let id = row.id;
   proxy.post("/logisticsInfos/getLogistics", { id }).then((res) => {

+ 3 - 4
src/views/WDLY/stockManage/analysis/index.vue

@@ -97,6 +97,7 @@ const config = computed(() => {
         label: "商品类型",
         prop: "productType",
         fixed: "left",
+        width: 100,
       },
       render(type) {
         return proxy.dictValueLabel(type, productType.value);
@@ -107,7 +108,7 @@ const config = computed(() => {
         label: "商品编码",
         prop: "productCustomCode",
         fixed: "left",
-        width: 180,
+        width: 140,
       },
     },
     {
@@ -115,7 +116,6 @@ const config = computed(() => {
         label: "商品名称",
         prop: "productName",
         fixed: "left",
-        width: 180,
       },
     },
     {
@@ -123,7 +123,6 @@ const config = computed(() => {
         label: "规格型号",
         prop: "productSpec",
         fixed: "left",
-        width: 180,
       },
     },
     {
@@ -140,7 +139,7 @@ const config = computed(() => {
       attrs: {
         label: "管理部门",
         prop: "deptName",
-        width: 180,
+        width: 160,
       },
     },
     {