|
@@ -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);
|