Prechádzať zdrojové kódy

commit 枚举问题

yu jie 4 rokov pred
rodič
commit
a6b5b096f7

+ 56 - 0
src/common/constants/enumsName.ts

@@ -841,6 +841,62 @@ export function getApplyStatusFinanceName(type: number) {
     return result
 }
 
+//:预约成功 1:待初审 2:初审通过 3:初审拒绝 4:初审失败 5复审通过 6:复审拒绝 7:复审失败 8:已撤销
+export function getPickUpTypeName(type: number) {
+    let result = "--"
+    switch (type) {
+        case 0:
+            result = "预约成功"
+            break;
+        case 1:
+            result = '待审核'
+            break
+        case 2:
+            result = '初审通过'
+            break
+        case 3:
+            result = '初审拒绝'
+            break
+        case 4:
+            result = '初审失败'
+            break
+        case 5:
+            result = '复审通过'
+            break
+        case 6:
+            result = '复审拒绝'
+            break
+        case 7:
+            result = '复审失败'
+            break
+        case 8:
+            result = '已撤销'
+            break
+    }
+    return result
+}
+
+//申请类型 - 1:预约入库 2:预约出库 3:入库注册 4:出库注销
+export function getPickUpStatusName(type: number) {
+    let result = "--"
+    switch (type) {
+        case 1:
+            result = '预约入库'
+            break
+        case 2:
+            result = '预约出库'
+            break
+        case 3:
+            result = '入库注册'
+            break
+        case 4:
+            result = '出库注销'
+            break
+    }
+    return result
+}
+
+
 /**
  * //合同状态 - 1:待确认 2:已确认 3:确认拒绝 4:已支付保证金 5:已激活 6:已违约 7:到期结束 8:延期结束 9:违约结束 1number;
  //:已注销 11:已关闭 99:未提交

+ 14 - 0
src/views/order/spot_warran/components/spot_warrant_in_and_out_warehouse/index.vue

@@ -19,6 +19,17 @@
                  class="btn-list-sticky"
                  @click="openComponent" />
       </template>
+
+        <!-- applytype 类型-->
+        <template #applytype="{ record }">
+            <span>{{ getPickUpStatusName(record.applytype) }}</span>
+        </template>
+
+        <!-- applystatus 状态 -->
+        <template #applystatus="{ record }">
+            <span>{{ getPickUpTypeName(record.applystatus) }}</span>
+        </template>
+
     </a-table>
     <component :is="componentId"
                v-if="componentId"
@@ -37,6 +48,7 @@ import { handleComposeOrderTable } from '@/common/setup/table/compose';
 import { ComposeOrderTableParam } from '@/common/setup/table/interface';
 import { expandIcon } from '@/common/setup/table/clolumn';
 import { BtnList as BtnListType } from '@/common/components/btnList/interface';
+import {getPickUpStatusName, getPickUpTypeName} from "@/common/constants/enumsName";
 
 export default defineComponent({
     name: enumOrderComponents.spot_warrant_in_and_out_warehouse,
@@ -74,6 +86,8 @@ export default defineComponent({
             tableList,
             expandIcon,
             handleBtnList,
+            getPickUpStatusName,
+            getPickUpTypeName
         };
     },
 });