lxf 1 year ago
parent
commit
aea5d9d497
1 changed files with 21 additions and 27 deletions
  1. 21 27
      src/views/group/order/product-management/index.vue

+ 21 - 27
src/views/group/order/product-management/index.vue

@@ -21,9 +21,6 @@
             <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.orderCode }}</a>
           </div>
         </template>
-        <template #blueprint="{ item }">
-          <div>图片</div>
-        </template>
         <template #subtotal="{ item }">
           <div style="color: #409eff">{{ subtotal(item) }}</div>
         </template>
@@ -116,44 +113,37 @@ const config = computed(() => {
   return [
     {
       attrs: {
-        label: "设计图",
-        slot: "blueprint",
-        width: 80,
-      },
-    },
-    {
-      attrs: {
         label: "产品规格编码",
         prop: "skuSpecCode",
-        width: 160,
+        width: 140,
       },
     },
     {
       attrs: {
         label: "产品规格名称",
         prop: "skuSpecName",
-        width: 240,
+        width: 220,
       },
     },
     {
       attrs: {
         label: "BOM规格编码",
         prop: "bomSpecCode",
-        width: 160,
+        width: 140,
       },
     },
     {
       attrs: {
         label: "BOM规格名称",
         prop: "bomSpecName",
-        width: 260,
+        width: 440,
       },
     },
     {
       attrs: {
         label: "事业部",
         prop: "departmentName",
-        width: 120,
+        width: 100,
       },
     },
     {
@@ -167,14 +157,14 @@ const config = computed(() => {
       attrs: {
         label: "万里牛单号",
         prop: "orderWlnCode",
-        width: 160,
+        width: 140,
       },
     },
     {
       attrs: {
         label: "订单状态",
         prop: "orderStatus",
-        width: 120,
+        width: 100,
       },
       render(val) {
         return proxy.dictKeyValue(val, proxy.useUserStore().allDict["order_status"]);
@@ -184,7 +174,7 @@ const config = computed(() => {
       attrs: {
         label: "结算状态",
         prop: "orderSettlementStatus",
-        width: 120,
+        width: 100,
       },
       render(val) {
         return proxy.dictKeyValue(val, proxy.useUserStore().allDict["settlement_status"]);
@@ -194,14 +184,14 @@ const config = computed(() => {
       attrs: {
         label: "数量",
         prop: "quantity",
-        width: 80,
+        width: 60,
       },
     },
     {
       attrs: {
         label: "小计 ¥",
         slot: "subtotal",
-        width: 120,
+        width: 100,
         align: "right",
       },
     },
@@ -209,7 +199,7 @@ const config = computed(() => {
       attrs: {
         label: "产品单价 ¥",
         prop: "unitPrice",
-        width: 120,
+        width: 100,
         align: "right",
       },
       render(val) {
@@ -220,7 +210,7 @@ const config = computed(() => {
       attrs: {
         label: "定制加工费 ¥",
         prop: "customProcessingFee",
-        width: 120,
+        width: 110,
         align: "right",
       },
       render(val) {
@@ -231,7 +221,7 @@ const config = computed(() => {
       attrs: {
         label: "代发费 ¥",
         prop: "lssueFee",
-        width: 120,
+        width: 100,
         align: "right",
       },
       render(val) {
@@ -264,7 +254,7 @@ const config = computed(() => {
       attrs: {
         label: "包材费 ¥",
         prop: "packagingMaterialCost",
-        width: 120,
+        width: 100,
         align: "right",
       },
       render(val) {
@@ -275,7 +265,7 @@ const config = computed(() => {
       attrs: {
         label: "管理费 ¥",
         prop: "managementFee",
-        width: 120,
+        width: 100,
         align: "right",
       },
       render(val) {
@@ -286,11 +276,15 @@ const config = computed(() => {
       attrs: {
         label: "外箱包装费 ¥",
         prop: "outerBoxPackingFee",
-        width: 120,
+        width: 110,
         align: "right",
       },
       render(val) {
-        return proxy.moneyFormat(val);
+        // if (val) {
+        //   return proxy.moneyFormat(val);
+        // } else {
+          return 0;
+        // }
       },
     },
     {