Procházet zdrojové kódy

feat(goodsDetail): 添加发货状态列及其显示逻辑

xieyong před 5 dny
rodič
revize
73feb695e8
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 15 0
      src/views/entrust/components/goodsDetail.vue

+ 15 - 0
src/views/entrust/components/goodsDetail.vue

@@ -50,6 +50,12 @@
       <template v-slot:rootCategoryLevelId="{ row }">
         <el-tag>{{ typeName[Number(row.rootCategoryLevelId)] }}</el-tag>
       </template>
+
+      <template v-slot:status="{ row }">
+        <el-tag :type="Number(row.status) === 0 ? 'info' : 'success'">
+          {{ Number(row.status) === 0 ? '待发货' : '已发货' }}
+        </el-tag>
+      </template>
     </ele-pro-table>
 
     <template v-slot:footer v-if="type != 'detail' && itemData.sendStatus != 4">
@@ -195,6 +201,15 @@
             label: '类型',
             align: 'center',
             showOverflowTooltip: true
+          },
+          {
+            prop: 'status',
+            slot: 'status',
+            label: '状态',
+            align: 'center',
+            minWidth: 110,
+            showOverflowTooltip: true,
+            show: this.type == 'detail' ? true : false
           }
         ];
       }