瀏覽代碼

修改 千海金 提货查询

huangbin 4 年之前
父節點
當前提交
9dd25edb2c

+ 30 - 22
src/views/platinum/platinum_pick_query/list/tab/compoments/complete_stocking/index.vue

@@ -1,31 +1,39 @@
 <template>
-    <!-- 提货查询 完成备货-->
-    <a-modal class="add-custom custom-detail" title="完成备货" centered v-model:visible="visible" :maskClosable="false" @cancel="cancel" width="890px">
-        <template #footer>
-            <a-button key="submit" type="primary" :loading="loading" @click="submit">完成备货</a-button>
-            <a-button key="cancel" type="primary" :loading="loading" @click="cancel">关闭</a-button>
-        </template>
-        <CommomDetail :selectedRow="selectedRow" />
-    </a-modal>
+  <!-- 提货查询 完成备货-->
+  <a-modal class="add-custom custom-detail"
+           title="完成备货"
+           centered
+           v-model:visible="visible"
+           :maskClosable="false"
+           @cancel="cancel"
+           width="890px">
+    <template #footer>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="submit">完成备货</a-button>
+      <a-button key="cancel"
+                type="primary"
+                :loading="loading"
+                @click="cancel">关闭</a-button>
+    </template>
+    <CommomDetail :selectedRow="selectedRow" />
+  </a-modal>
 </template>
 <script lang="ts">
-import { defineComponent, PropType, ref } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import CommomDetail from '../common-detail/index.vue';
-import { GoodsPickupConfirmReq, GoodsPickupOperateReq, t2bExchConfirmBusinessReq, TradeGoodsInfo } from '@/services/proto/manager/interface';
-import { getTimeValue } from '@/utils/time';
-import { getUserId } from '@/services/bus/user';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import { goodsPickupConfirm, goodsPickupOperate, t2bExchConfirmBusiness } from '@/services/proto/manager';
+import { _closeModal } from '@/common/setup/modal/modal';
+import { getUserId } from '@/services/bus/user';
 import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
-import { geLoginID_number } from '@/services/bus/login';
-import { getUUID } from 'ant-design-vue/es/vc-select/utils/commonUtil';
+import { goodsPickupConfirm } from '@/services/proto/manager';
+import { GoodsPickupConfirmReq } from '@/services/proto/manager/interface';
 import Long from 'long';
+import { defineComponent, PropType, ref } from 'vue';
+import CommomDetail from '../common-detail/index.vue';
 
 export default defineComponent({
     name: 'platinum_pick_query_complete_stocking',
-    emits: ['refresh'],
+    emits: ['cancel', 'update'],
     components: { CommomDetail },
     props: {
         selectedRow: {
@@ -34,7 +42,8 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('platinum_pick_query_complete_stocking');
+        // 控制关闭弹窗
+        const { visible, cancel } = _closeModal(context);
         const loading = ref<boolean>(false);
         function submit() {
             let reqParams: GoodsPickupConfirmReq = {
@@ -45,8 +54,7 @@ export default defineComponent({
                 MarketID: props.selectedRow.marketid,
             };
             requestResultLoadingAndInfo(goodsPickupConfirm, reqParams, loading, ['完成备货成功', '完成备货失败:']).then(() => {
-                cancel();
-                context.emit('refresh');
+                cancel(true);
             });
         }
         return {

+ 31 - 20
src/views/platinum/platinum_pick_query/list/tab/compoments/confirm_pickup/index.vue

@@ -1,29 +1,40 @@
 <template>
-    <!-- 提货查询 确认提货-->
-    <a-modal class="add-custom custom-detail" title="确认提货" centered v-model:visible="visible" :maskClosable="false" @cancel="cancel" width="890px">
-        <template #footer>
-            <a-button key="submit" type="primary" :loading="loading" @click="submit">确认提货</a-button>
-            <a-button key="cancel" type="primary" :loading="loading" @click="cancel">关闭</a-button>
-        </template>
-        <CommomDetail :selectedRow="selectedRow" />
-    </a-modal>
+  <!-- 提货查询 确认提货-->
+  <a-modal class="add-custom custom-detail"
+           title="确认提货"
+           centered
+           v-model:visible="visible"
+           :maskClosable="false"
+           @cancel="cancel"
+           width="890px">
+    <template #footer>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="submit">确认提货</a-button>
+      <a-button key="cancel"
+                type="primary"
+                :loading="loading"
+                @click="cancel">关闭</a-button>
+    </template>
+    <CommomDetail :selectedRow="selectedRow" />
+  </a-modal>
 </template>
 <script lang="ts">
-import { defineComponent, PropType, ref } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import CommomDetail from '../common-detail/index.vue';
+import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import { _closeModal } from '@/common/setup/modal/modal';
+import { geLoginID_number } from '@/services/bus/login';
+import { getUserId } from '@/services/bus/user';
 import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
+import { goodsPickupOperate } from '@/services/proto/manager';
 import { GoodsPickupOperateReq } from '@/services/proto/manager/interface';
 import Long from 'long';
-import { getUserId } from '@/services/bus/user';
-import { geLoginID_number } from '@/services/bus/login';
-import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import { goodsPickupOperate } from '@/services/proto/manager';
+import { defineComponent, PropType, ref } from 'vue';
+import CommomDetail from '../common-detail/index.vue';
 
 export default defineComponent({
     name: 'platinum_pick_query_confirm_pickup',
-    emits: ['refresh'],
+    emits: ['cancel', 'update'],
     components: { CommomDetail },
     props: {
         selectedRow: {
@@ -32,7 +43,8 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('platinum_pick_query_confirm_pickup');
+        // 控制关闭弹窗
+        const { visible, cancel } = _closeModal(context);
         const loading = ref<boolean>(false);
         function submit() {
             let reqParams: GoodsPickupOperateReq = {
@@ -42,8 +54,7 @@ export default defineComponent({
                 loginid: Number(geLoginID_number()), // uint64 登录ID
             };
             requestResultLoadingAndInfo(goodsPickupOperate, reqParams, loading, ['确认取货成功', '确认取货失败:']).then(() => {
-                cancel();
-                context.emit('refresh');
+                cancel(true);
             });
         }
         return {

+ 0 - 59
src/views/platinum/platinum_pick_query/list/tab/compoments/controlModal/index.vue

@@ -1,59 +0,0 @@
-<template>
-    <div>
-        <!-- 详情 -->
-        <Detail :selectedRow="selectedRow" />
-        <!-- 完成备货- -->
-        <CompleteStocking :selectedRow="selectedRow" @refresh="refresh" />
-        <!-- 确认提货 -->
-        <ConfirmPickup :selectedRow="selectedRow" @refresh="refresh" />
-        <!-- 确认收货 -->
-        <Receipt :selectedRow="selectedRow" @refresh="refresh" />
-        <!-- 上传物流 -->
-        <UploadLogistics :selectedRow="selectedRow" @refresh="refresh" />
-    </div>
-</template>
-
-<script lang="ts">
-import { defineComponent, PropType } from 'vue';
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import Detail from '../detail/index.vue';
-import CompleteStocking from '../complete_stocking/index.vue';
-import ConfirmPickup from '../confirm_pickup/index.vue';
-import Receipt from '../query_receipt/index.vue';
-import UploadLogistics from '../upload_logistics/index.vue';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
-
-export default defineComponent({
-    name: 'custom-control-modal',
-    emits: ['refresh'],
-    components: { Detail, CompleteStocking, ConfirmPickup, Receipt, UploadLogistics },
-    props: {
-        selectedRow: {
-            type: Object as PropType<QhjTradeGoodsPickup>,
-            default: {},
-        },
-    },
-    setup(props, context) {
-        function refresh() {
-            context.emit('refresh');
-        }
-        return {
-            refresh,
-        };
-    },
-});
-</script>
-
-<style lang="less">
-.custom-detail {
-    .ant-form.inlineForm {
-        margin-top: 20px;
-    }
-    .upload {
-        .look {
-            margin-left: 0;
-        }
-    }
-}
-</style>;
-

+ 5 - 4
src/views/platinum/platinum_pick_query/list/tab/compoments/detail/index.vue

@@ -17,15 +17,15 @@
   </a-modal>
 </template>
 <script lang="ts">
+import { _closeModal } from '@/common/setup/modal/modal';
+import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
 import { defineComponent, PropType, ref } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import CommomDetail from '../common-detail/index.vue';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
 
 export default defineComponent({
     name: 'platinum_withdrawal_review_detail-desc',
     components: { CommomDetail },
+    emits: ['cancel', 'update'],
     props: {
         selectedRow: {
             type: Object as PropType<QhjTradeGoodsPickup>,
@@ -33,7 +33,8 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('detail');
+        // 控制关闭弹窗
+        const { visible, cancel } = _closeModal(context);
         const loading = ref<boolean>(false);
         return {
             cancel,

+ 31 - 20
src/views/platinum/platinum_pick_query/list/tab/compoments/query_receipt/index.vue

@@ -1,29 +1,40 @@
 <template>
-    <!-- 提货查询 确认收货-->
-    <a-modal class="add-custom custom-detail" title="确认收货" centered v-model:visible="visible" :maskClosable="false" @cancel="cancel" width="890px">
-        <template #footer>
-            <a-button key="submit" type="primary" :loading="loading" @click="submit">确认收货</a-button>
-            <a-button key="submit" type="primary" :loading="loading" @click="cancel">关闭</a-button>
-        </template>
-        <CommomDetail :selectedRow="selectedRow" />
-    </a-modal>
+  <!-- 提货查询 确认收货-->
+  <a-modal class="add-custom custom-detail"
+           title="确认收货"
+           centered
+           v-model:visible="visible"
+           :maskClosable="false"
+           @cancel="cancel"
+           width="890px">
+    <template #footer>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="submit">确认收货</a-button>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="cancel">关闭</a-button>
+    </template>
+    <CommomDetail :selectedRow="selectedRow" />
+  </a-modal>
 </template>
 <script lang="ts">
-import { defineComponent, PropType, ref } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
-import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
-import CommomDetail from '../common-detail/index.vue';
-import { GoodsPickupConfirmReq, GoodsPickupOperateReq, TradeGoodsInfo } from '@/services/proto/manager/interface';
-import { getUserId } from '@/services/bus/user';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
-import { goodsPickupConfirm, goodsPickupOperate } from '@/services/proto/manager';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
+import { _closeModal } from '@/common/setup/modal/modal';
 import { geLoginID_number } from '@/services/bus/login';
+import { getUserId } from '@/services/bus/user';
+import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
+import { goodsPickupOperate } from '@/services/proto/manager';
+import { GoodsPickupOperateReq } from '@/services/proto/manager/interface';
 import Long from 'long';
+import { defineComponent, PropType, ref } from 'vue';
+import CommomDetail from '../common-detail/index.vue';
 
 export default defineComponent({
     name: 'platinum_pick_query_receipt',
-    emits: ['refresh'],
+    emits: ['cancel', 'update'],
     components: { CommomDetail },
     props: {
         selectedRow: {
@@ -32,7 +43,8 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('platinum_pick_query_receipt');
+        // 控制关闭弹窗
+        const { visible, cancel } = _closeModal(context);
         const loading = ref<boolean>(false);
         function submit() {
             let reqParams: GoodsPickupOperateReq = {
@@ -42,8 +54,7 @@ export default defineComponent({
                 loginid: Number(geLoginID_number()), // uint64 登录ID
             };
             requestResultLoadingAndInfo(goodsPickupOperate, reqParams, loading, ['确认收货成功', '确认收货失败:']).then(() => {
-                cancel();
-                context.emit('refresh');
+                cancel(true);
             });
         }
         return {

+ 55 - 35
src/views/platinum/platinum_pick_query/list/tab/compoments/upload_logistics/index.vue

@@ -1,45 +1,65 @@
 <template>
-    <!-- 提货查询 上传物流-->
-    <a-modal class="add-custom upload_logistics" title="上传物流" centered v-model:visible="visible" :maskClosable="false" @cancel="cancel" width="600px">
-        <template #footer>
-            <a-button key="submit" type="primary" :loading="loading" @click="submit">上传 </a-button>
-        </template>
-        <a-form class="inlineForm mt10" :model="formState" :rules="rules" ref="formRef">
-            <a-row :gutter="24">
-                <a-col :span="24">
-                    <a-form-item label="物流公司" name="expresscompany">
-                        <a-input class="dialogInput" style="width: 200px" v-model:value="formState.expresscompany" placeholder="请输入物流单号" />
-                    </a-form-item>
-                </a-col>
-            </a-row>
-            <a-row :gutter="24">
-                <a-col :span="24">
-                    <a-form-item label="物流单号" name="expressnum">
-                        <a-input class="dialogInput" style="width: 200px" v-model:value="formState.expressnum" placeholder="请输入物流单号" />
-                    </a-form-item>
-                </a-col>
-            </a-row>
-        </a-form>
-    </a-modal>
+  <!-- 提货查询 上传物流-->
+  <a-modal class="add-custom upload_logistics"
+           title="上传物流"
+           centered
+           v-model:visible="visible"
+           :maskClosable="false"
+           @cancel="cancel"
+           width="600px">
+    <template #footer>
+      <a-button key="submit"
+                type="primary"
+                :loading="loading"
+                @click="submit">上传 </a-button>
+    </template>
+    <a-form class="inlineForm mt10"
+            :model="formState"
+            :rules="rules"
+            ref="formRef">
+      <a-row :gutter="24">
+        <a-col :span="24">
+          <a-form-item label="物流公司"
+                       name="expresscompany">
+            <a-input class="dialogInput"
+                     style="width: 200px"
+                     v-model:value="formState.expresscompany"
+                     placeholder="请输入物流单号" />
+          </a-form-item>
+        </a-col>
+      </a-row>
+      <a-row :gutter="24">
+        <a-col :span="24">
+          <a-form-item label="物流单号"
+                       name="expressnum">
+            <a-input class="dialogInput"
+                     style="width: 200px"
+                     v-model:value="formState.expressnum"
+                     placeholder="请输入物流单号" />
+          </a-form-item>
+        </a-col>
+      </a-row>
+    </a-form>
+  </a-modal>
 </template>
 <script lang="ts">
-import { defineComponent, PropType, ref } from 'vue';
-import { closeModal } from '@/common/setup/modal/index';
-import CommomDetail from '../common-detail/index.vue';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
-import { GoodsPickupOperateReq } from '@/services/proto/manager/interface';
-import { getUserId } from '@/services/bus/user';
-import { geLoginID_number } from '@/services/bus/login';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import { validateAction } from '@/common/setup/form';
+import { _closeModal } from '@/common/setup/modal/modal';
+import { geLoginID_number } from '@/services/bus/login';
+import { getUserId } from '@/services/bus/user';
+import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
 import { goodsPickupOperate } from '@/services/proto/manager';
+import { GoodsPickupOperateReq } from '@/services/proto/manager/interface';
 import Long from 'long';
-import { handleForm } from './setup';
-import { validateAction } from '@/common/setup/form';
+import { defineComponent, PropType, ref } from 'vue';
+import CommomDetail from '../common-detail/index.vue';
 import { FormState } from './interface';
+import { handleForm } from './setup';
 
 export default defineComponent({
     name: 'platinum_pick_query_upload_logistics',
-    emits: ['refresh'],
+    emits: ['cancel', 'update'],
     components: { CommomDetail },
     props: {
         selectedRow: {
@@ -48,7 +68,8 @@ export default defineComponent({
         },
     },
     setup(props, context) {
-        const { visible, cancel } = closeModal('platinum_pick_query_upload_logistics');
+        // 控制关闭弹窗
+        const { visible, cancel } = _closeModal(context);
         const loading = ref<boolean>(false);
         const { formRef, formState, rules } = handleForm();
         function submit() {
@@ -65,8 +86,7 @@ export default defineComponent({
                     },
                 };
                 requestResultLoadingAndInfo(goodsPickupOperate, reqParams, loading, ['上传物流信息成功', '上传物流信息失败:']).then(() => {
-                    cancel();
-                    context.emit('refresh');
+                    cancel(true);
                 });
             });
         }

+ 25 - 56
src/views/platinum/platinum_pick_query/list/tab/index.vue

@@ -1,9 +1,6 @@
 <template>
   <!-- 提货查询 -->
   <div class="platinum_pick_query_tab">
-    <Filter @search="updateColumn">
-    </Filter>
-
     <Filter @search="updateColumn" />
     <a-table :columns="columns"
              class="srcollYTable"
@@ -16,11 +13,8 @@
              :data-source="tableList">
       <!-- 额外的展开行 -->
       <template #expandedRowRender="{ record }">
-        <!-- <BtnList :btnList="handleTableList(firstBtn, record)"
-                   class="btn-list-sticky"
-                   @onClick="btnClick(record)" /> -->
         <mtp-table-button class="btn-list-sticky"
-                          :buttons="buttons"
+                          :buttons="handleBtn(record)"
                           :record="record"
                           @click="openComponent" />
       </template>
@@ -32,7 +26,6 @@
       <template #takemode="{ record }">
         <a>{{ getTakeStateName(record.takemode)}}</a>
       </template>
-
       <!-- 物流信息 -->
       <template #expresscompany="{ record }">
         <a>{{ record.expresscompany + "-" + record.expressnum}}</a>
@@ -52,12 +45,10 @@
         <a>{{ record.userinfotype === 1 ? '个人' : '企业' }}</a>
       </template>
     </a-table>
-    <ControlModal :selectedRow="selectedRow"
-                  @refresh="getData" />
     <!-- 右键 -->
     <contextMenu :contextMenu="contextMenu"
                  @cancel="closeContext"
-                 :list="buttons"> </contextMenu>
+                 :list="handleBtn(selectedRow)"> </contextMenu>
     <component :is="componentId"
                v-if="componentId"
                :selectedRow="selectedRow"
@@ -66,19 +57,13 @@
 </template>
 
 <script lang="ts">
-import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent, handleComposeTable, MtpTableButton, queryTableList, useRouteName } from '@/common/export/commonTable';
-
-import Filter from '../../compoments/filter/index.vue';
-import { handleTableList } from './setup';
-import ControlModal from './compoments/controlModal/index.vue';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
+import { EnumRouterName } from '@/common/constants/enumRouterName';
 import { getPickUpStateName, getTakeStateName } from '@/common/constants/enumsName';
-import { TableEventCB } from '@/common/setup/table/interface';
-import { BtnListType } from '@/common/components/btnList/interface';
-import { ref } from 'vue';
-import { queryTradeGoodsPickup } from '@/services/go/ermcp/qhj';
+import { ComposeTableParam, contextMenu, defineAsyncComponent, defineComponent, handleComposeTable, MtpTableButton, queryTableList } from '@/common/export/commonTable';
 import { getTableButton } from '@/common/setup/table/button';
-import { EnumRouterName } from '@/common/constants/enumRouterName';
+import { queryTradeGoodsPickup } from '@/services/go/ermcp/qhj';
+import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
+import Filter from '../../compoments/filter/index.vue';
 
 export default defineComponent({
     name: 'platinum_pick_query_tab',
@@ -93,22 +78,6 @@ export default defineComponent({
         confirm_receipt: defineAsyncComponent(() => import('./compoments/query_receipt/index.vue')), // 确认收货
     },
     setup() {
-        // 表格权限按钮
-        const buttons = getTableButton(['add'], true);
-
-        // 表头数据
-        // const { columns, registerColumn, updateColumn } = getTableColumns();
-        // // 表格操作按钮列表
-        // const [firstBtn] = _getBtnList('platinum_pick_query_tab', true).value;
-        // const btnList = ref<BtnListType[]>([]);
-        // const event: TableEventCB = {
-        //     contextmenuCB: (record: QhjTradeGoodsPickup) => {
-        //         btnList.value = handleTableList(firstBtn, record);
-        //     },
-        // };
-        // // 表格事件
-        // const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QhjTradeGoodsPickup>(event);
-
         // 表格列表数据
         const { loading, tableList, queryTable } = queryTableList<QhjTradeGoodsPickup>();
 
@@ -123,33 +92,33 @@ export default defineComponent({
             tableFilterKey: ['reqtime', 'pickupgoodsname', 'takeorderstatus', 'goodsname'],
             isDetail: true,
         };
-
-        // function getData() {
-        //     // 获取列表数据
-        //     queryTable(queryTradeGoodsPickup).then((res) => {
-        //         tableList.value = res.map((el) => {
-        //             return { ...el, key: String(el.takeorderid) };
-        //         });
-        //     });
-        // }
-
         // 1:备货中  完成备货
         // 2:待取货(自提) 确认取货
         // 4:待收货(邮寄) 上传物流信息、确认收货
-        // initData(() => {
-        //     // 获取列表数据
-        //     getData();
-        //     // 注册表头信息 过滤
-        //     registerColumn('table_pcweb_qhj_pickup_query', ['reqtime', 'pickupgoodsname', 'takeorderstatus', 'goodsname']);
-        // });
-
+        function handleBtn(record: QhjTradeGoodsPickup) {
+            if (!record) return;
+            const { takeorderstatus } = record;
+            const buttons = getTableButton();
+            if (takeorderstatus === 1) {
+                // 1:备货中  完成备货
+                return buttons.filter((e) => e.code === 'complete_stocking' || e.code === 'detail');
+            } else if (takeorderstatus === 2) {
+                // 2:待取货(自提) 确认取货
+                return buttons.filter((e) => e.code === 'confirm_pickup' || e.code === 'detail');
+            } else if (takeorderstatus === 4) {
+                // 4:待收货(邮寄) 上传物流信息、确认收货
+                return buttons.filter((e) => e.code === 'complete_stocking' || e.code === 'detail' || e.code === 'confirm_receipt');
+            } else {
+                return [];
+            }
+        }
         return {
             ...handleComposeTable<QhjTradeGoodsPickup>(param),
             loading,
             tableList,
             getPickUpStateName,
             getTakeStateName,
-            handleTableList,
+            handleBtn,
         };
     },
 });

+ 0 - 22
src/views/platinum/platinum_pick_query/list/tab/setup.ts

@@ -1,22 +0,0 @@
-import { BtnListType } from '@/common/components/btnList/interface';
-import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
-
-export function handleTableList(btnList: BtnListType[], record: QhjTradeGoodsPickup): BtnListType[] {
-    // 1:备货中  完成备货
-    // 2:待取货(自提) 确认取货
-    // 4:待收货(邮寄) 上传物流信息、确认收货
-    const arr: string[] = ['详情']
-    switch (record.takeorderstatus) {
-        case 1: // 1:备货中  完成备货
-            arr.push('完成备货')
-            break
-        case 2: // 2:待取货(自提) 确认取货
-            arr.push('确认取货')
-            break
-        case 4: // 4:待收货(邮寄) 上传物流信息、确认收货
-            arr.push('上传物流')
-            arr.push('确认收货')
-            break
-    }
-    return btnList.filter((e) => arr.includes(e.lable));
-}