瀏覽代碼

b2b页面

yuansh 5 天之前
父節點
當前提交
b16ef909b1

+ 16 - 1
src/views/inventiry/purchaseIn/purchaseInForm.api.ts

@@ -128,8 +128,23 @@ export const cancelBatchSubmit = (params, handleSuccess) => {
     }
   });
 }
+// 临时使用功能
+export const batchB2BAction = (params, handleSuccess) => {
+  createConfirm({
+    iconType: 'warning',
+    title: '确认执行',
+    content: '是否执行',
+    okText: '确认',
+    cancelText: '取消',
+    onOk: () => {
+      return defHttp.get({url: "/storeCode/storePurchaseIn/batchB2BAction", params}, {joinParamsToUrl: true}).then(() => {
+        handleSuccess();
+      });
+    }
+  });
+}
 //获取供应商列表
 export const supplierOption = (params) => defHttp.get({url: Api.supplierList, params});
 
 //获取项目下拉框列表
-export const ProjectOption = (params) => defHttp.get({ url: Api.projectList, params });
+export const ProjectOption = (params) => defHttp.get({ url: Api.projectList, params });

+ 11 - 0
src/views/inventiry/purchaseIn/purchaseInList.vue

@@ -110,6 +110,8 @@
     <BasicTable @register="registerTable" :rowSelection="rowSelection" size="small">
       <!--插槽:table标题-->
       <template #tableTitle>
+        
+        <a-button type="error" v-auth="'storeCode:store_purchase_in:B2BAction'" @click="B2BAction">运维功能,请勿点击</a-button>
         <a-button type="primary" v-auth="'storeCode:store_purchase_in:add'" @click="handleAdd" preIcon="ant-design:plus-outlined">
           新增(add)</a-button
         >
@@ -160,6 +162,7 @@
     getExportUrl,
     batchSubmit,
     cancelBatchSubmit,
+    batchB2BAction,
     supplierOption,
     ProjectOption,
     ClassList,
@@ -319,6 +322,14 @@
       cancelBatchSubmit({ ids: ids }, handleSuccess);
     }
   }
+  function B2BAction() {
+    if (selectedRowKeys.value.length != 3) {
+      message.warning('口令不正确');
+    } else {
+      var ids = selectedRowKeys.value.join(',');
+      batchB2BAction({ ids: ids }, handleSuccess);
+    }
+  }
 
   /* ----------------------以下为原生查询需要添加的-------------------------- */
   const toggleSearchStatus = ref<boolean>(false);

+ 2 - 2
src/views/purchase/purchaseOrderB2B/PurchaseOrderFormB2B.data.ts

@@ -34,12 +34,12 @@ export const columns: BasicColumn[] = [
    {
     title: '优先级(priority)',
     align:"center",
-    dataIndex: 'priority'
+    dataIndex: 'priority_dictText'
    },
    {
     title: '产品分类(production class)',
     align:"center",
-    dataIndex: 'productionClass'
+    dataIndex: 'productionClass_dictText'
    },
    {
     title: '机型(model)',

+ 2 - 2
src/views/saleCode/salesOrderB2B/SaleOrderB2BForm.data.ts

@@ -36,12 +36,12 @@ export const columns: BasicColumn[] = [
    {
     title: '优先级(priority)',
     align:"center",
-    dataIndex: 'priority'
+    dataIndex: 'priority_dictText'
    },
    {
     title: '产品分类(production class)',
     align:"center",
-    dataIndex: 'productionClass'
+    dataIndex: 'productionClass_dictText'
    },
    {
     title: '机型(model)',