Przeglądaj źródła

feat(销售订单管理):商品类型不是库存品的展示对应采购单状态

snow 2 lat temu
rodzic
commit
9c27048238

Plik diff jest za duży
+ 0 - 0
dist/static/js/0.js


+ 6 - 0
src/views/sellOut/salesOrder/columns.js

@@ -40,6 +40,12 @@ export default [
     _slot_: 'status',
     width: '120px'
   },
+  {
+    prop: 'cgd_status',
+    label: '采购单状态',
+    _slot_: 'cgd_status',
+    width: '120px'
+  },
   {
     prop: 'order_source',
     label: '订单来源',

+ 15 - 0
src/views/sellOut/salesOrder/index.vue

@@ -234,6 +234,13 @@
           </span>
         </template>
 
+        <template #cgd_status="{ scope }">
+          <el-tag size="mini">
+            <template  v-if="String(scope.row.order_type) === '1'">--</template>
+            <template v-else>{{(purchaseStatusOptions.find(({value}) => value === scope.row.cgd_status) || {}).label || '--'}}</template>            
+          </el-tag>
+        </template>
+
         <template #status="{ scope }">
           <el-tag
             :size="tablebtnSize"
@@ -359,6 +366,14 @@ export default {
         { id: "2", label: "发货已完成" },
         { id: "3", label: "订单已取消" },
       ],
+      /* 采购单状态 **/
+      purchaseStatusOptions:[
+        { value: '0', label: '待与供应商确认' },
+        { value: '1', label: '待入库' },
+        { value: '2', label: '部分入库' },
+        { value: '3', label: '入库完成' },
+        { value: '4', label: '已取消订单'}
+      ],
       xs_order_type_options,
       xs_order_source_options,
       loading: false,

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików