Browse Source

收款单-接口联调

jingbb 4 months ago
parent
commit
d42c9b8e76

+ 5 - 28
src/views/purchase/purPaymentRequest/components/purPaymentRequestForm.vue

@@ -36,22 +36,22 @@
 						</a-col>
 						<a-col :span="12">
 							<a-form-item label="收款人(payee)" v-bind="validateInfos.payee" id="purPaymnetRequest-payee" name="payee">
-                <a-input v-model:value="formData.payee" placeholder="" ></a-input>
+                <a-input v-model:value="formData.payee" placeholder="" AutoComplete="off"></a-input>
 							</a-form-item>
 						</a-col>
 						<a-col :span="12">
 							<a-form-item label="开户行(opening bank)" v-bind="validateInfos.openingBank" id="purPaymnetRequest-openingBank" name="openingBank">
-                <a-input v-model:value="formData.openingBank" placeholder="请输入"  allow-clear ></a-input>
+                <a-input v-model:value="formData.openingBank" placeholder="请输入"  allow-clear AutoComplete="off"></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="12">
 							<a-form-item label="银行账号(bank account)" v-bind="validateInfos.bankAccount" id="purPaymnetRequest-bankAccount" name="bankAccount">
-                <a-input v-model:value="formData.bankAccount" placeholder="请输入"  allow-clear ></a-input>
+                <a-input v-model:value="formData.bankAccount" placeholder="请输入"  allow-clear AutoComplete="off"></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="12">
 							<a-form-item label="银行代码(swift code)" v-bind="validateInfos.swiftCode" id="purPaymnetRequest-swiftCode" name="swiftCode">
-                <a-input v-model:value="formData.swiftCode" placeholder="请输入"  allow-clear ></a-input>
+                <a-input v-model:value="formData.swiftCode" placeholder="请输入"  allow-clear AutoComplete="off"></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="12">
@@ -106,7 +106,6 @@
           </j-vxe-table>
       </a-tab-pane>
     </a-tabs>
-    <SelectProjectModal ref="SelectProjectModalRef" @selectProject="addProject"></SelectProjectModal>
     <SelectPurchaseOrderModal ref="SelectPurchaseOrderModalRef" @selectPurchaseOrder="addDetailList"></SelectPurchaseOrderModal>
   </a-spin>
 </template>
@@ -118,7 +117,6 @@
   import { listSupplier,queryPaymentDetailListByMainId,queryDataById, saveOrUpdate } from '../purPaymentRequestForm.api';
   import { JVxeTable } from '/@/components/jeecg/JVxeTable';
   import { paymentDetailColumns} from '../purPaymentRequest.data';
-  import SelectProjectModal from '../../../publicComponents/SelectProjectModal.vue';
   import SelectPurchaseOrderModal from '../../../publicComponents/SelectPurchaseOrderModal.vue';
   import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
   import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
@@ -135,7 +133,6 @@
       JVxeTable,
 			JFormContainer,
       JUpload,
-      SelectProjectModal,
       JDictSelectTag,
       SelectPurchaseOrderModal,
       ApiSelect
@@ -153,7 +150,6 @@
       const loading = ref(false);
       const formRef = ref();
       const SelectPurchaseOrderModalRef = ref()
-      var SelectProjectModalRef = ref()
       const paymentDetailsTableRef = ref();
       const paymentDetailsTable = reactive<Record<string, any>>({
         loading: false,
@@ -308,22 +304,6 @@
         //    notAllowEdit.value=false
         // }
       }
-      //选择项目
-      function addProject(data) {
-        if(data.length==0){
-          formData.project = 
-          formData.projectName = ''
-        }else{
-          formData.project = data[0].id
-          formData.projectName = data[0].name
-          // formData.customer =data[0].customerId
-          // formData.customerName =data[0].customerId_dictText
-        }
-      }
-        //选择项目  
-      function onSearchProject(){
-        SelectProjectModalRef.value.getTable()
-      }
       function changeValues(prop){
         
       }
@@ -335,7 +315,7 @@
           item.sourceId = item.childId
           item.purchaseCode =  item.billCode
           item.purchaseId =  item.id
-          item.orderMoney =  item.taxPrice
+          item.orderMoney =  item.taxAmount
         })
         var arrSonFormDelivery = data.concat(paymentDetailsTable.dataSource)
         paymentDetailsTable.dataSource=arrSonFormDelivery     
@@ -364,9 +344,6 @@
         edit,
         formRef,
         handleDelete1,
-        SelectProjectModalRef,
-        onSearchProject,
-        addProject,
         notAllowEdit,
         changeValues,
         SelectPurchaseOrderModalRef,

+ 40 - 37
src/views/saleCode/receiptOrder/components/SelectInvoiceModal.vue

@@ -13,8 +13,8 @@
                 <a-form :model="queryParams" :label-col="labelCol" :wrapper-col="wrapperCol" @keyup.enter.native="searchQuery">
                 <a-row :gutter="24">
                     <a-col :md="6" :sm="8">
-                        <a-form-item label="发票编号(bill code)">
-                            <a-input placeholder="请输入" v-model:value="queryParams.billCode"></a-input>
+                        <a-form-item label="发票编号(invoice code)">
+                            <a-input placeholder="请输入" v-model:value="queryParams.invoiceCode"></a-input>
                         </a-form-item>
                     </a-col>
                     <a-col :md="6" :sm="8">
@@ -37,11 +37,11 @@
                             </a-form-item>
                         </a-col>
                         <a-col :md="6" :sm="8">
-                            <a-form-item label="购方(buyer)" >
+                            <a-form-item label="购方(customer)" >
                                 <ApiSelect
-                                    :api="buyerListList"
+                                    :api="customerListList"
                                     showSearch
-                                    v-model:value="queryParams.buyer"
+                                    v-model:value="queryParams.customer"
                                     optionFilterProp="label"
                                     resultField="records"
                                     labelField="name"
@@ -80,7 +80,7 @@
             </a-alert>
             <a-table
                 :columns="columns"
-                :row-key="record => record.childId"
+                :row-key="record => record.id"
                 :data-source="dataSource"
                 bordered
                 size="small"
@@ -105,8 +105,8 @@
     const columns = [
         {
             title: '发票编号(bill code)',
-            dataIndex: 'billCode',
-            key: 'billCode',
+            dataIndex: 'invoiceCode',
+            key: 'invoiceCode',
             align:"center",
             width:250,
             
@@ -127,15 +127,15 @@
         },
         {
             title: '购方(buyer)',
-            dataIndex: 'buyer',
-            key: 'buyer',
+            dataIndex: 'customer',
+            key: 'customer',
             align:"center",
             ellipsis: true,
         },
         {
             title: '购方税号(buyer tax number)',
-            dataIndex: 'priority_dictText',
-            key: 'priority_dictText',
+            dataIndex: 'buyerTaxNumber',
+            key: 'buyerTaxNumber',
             align:"center",
             width:250,
         },
@@ -168,12 +168,13 @@
     const toggleSearchStatus = ref(false);
     var billDate = ref([])
     const queryParams = ref({
-        billCode:'',
+        invoiceCode:'',
         project:'',
         projectName:'',
-        buyer:'',
+        customer:'',
         billDate_begin :'',
-        billDate_end :''
+        billDate_end :'',
+        submit:'1'
     });
     let pagination = ref({
       current: 1,
@@ -187,21 +188,21 @@
       size:'small'
     });
     function loadData(){
-        // let params = getQueryParams();
-        // defHttp.get({ url: '/saleCode/saleOrder/selectSaleOrderDetailAlert',params}, { isTransformResponse: false })
-        // .then((res) => {
-        //     if (res.success) {
-        //         dataSource.value = res.result.records;
-        //         pagination.value.total = res.result.total;
-        //         pagination.value.current = res.result.current;
-        //         pagination.value.pageSize = res.result.size;                
-        //     } else {
-        //         message.error(res.message);
-        //     }
-        // })
-        // .finally(() => {
-        //     // loading.value = false;
-        // });
+        let params = getQueryParams();
+        defHttp.get({ url: '/saleCode/saleInvoice/list',params}, { isTransformResponse: false })
+        .then((res) => {
+            if (res.success) {
+                dataSource.value = res.result.records;
+                pagination.value.total = res.result.total;
+                pagination.value.current = res.result.current;
+                pagination.value.pageSize = res.result.size;                
+            } else {
+                message.error(res.message);
+            }
+        })
+        .finally(() => {
+            // loading.value = false;
+        });
     }
     function getQueryParams(){
         let params = Object.assign(queryParams.value);
@@ -221,12 +222,13 @@
     function searchReset(){
         billDate.value = []
         queryParams.value = {
-            billCode:'',
+            invoiceCode:'',
             project:'',
             projectName:'',
-            buyer:'',
+            customer:'',
             billDate_begin :'',
-            billDate_end :''
+            billDate_end :'',
+            submit:'1'
         }
         pagination.value.current =1;
         pagination.value.pageSize = 10; 
@@ -249,12 +251,13 @@
         selectedRows.value=[]
         billDate.value = []
         queryParams.value = {
-            billCode:'',
+            invoiceCode:'',
             project:'',
             projectName:'',
-            buyer:'',
+            customer:'',
             billDate_begin :'',
-            billDate_end :''
+            billDate_end :'',
+            submit:'1'
         }
     }
     function getTable(){
@@ -277,7 +280,7 @@
         let params = {pageSize:-1}
         return defHttp.get({url:'/baseCode/baseProjectArchive/list',params});
     }
-    function buyerListList(){
+    function customerListList(){
         let params = {pageSize:-1}
         return defHttp.get({url:'/cuspCode/cuspCustomerProfile/list',params});
     }

+ 47 - 36
src/views/saleCode/receiptOrder/components/receiptOrderForm.vue

@@ -21,54 +21,55 @@
 						</a-col>
 						<a-col :span="24">
 							<a-form-item label="项目(project)" v-bind="validateInfos.projectName" id="saleInvoiceForm-projectName" name="projectName">
-								<a-input-search v-model:value="formData.projectName" placeholder="请输入项目(project)"  allow-clear enter-button="Search" @search="onSearchProject"></a-input-search>
+								<a-input v-model:value="formData.projectName" placeholder="请输入"  disabled></a-input>
 							</a-form-item>
 						</a-col>
 						<a-col :span="24">
 							<a-form-item label="销售订单(sale order)" v-bind="validateInfos.saleOrder" id="saleInvoiceForm-saleOrder" name="saleOrder">
-								<a-input-search v-model:value="formData.saleOrder" placeholder="请输入"  allow-clear enter-button="Search" ></a-input-search>
+								<a-input-search v-model:value="formData.saleOrder" placeholder="请输入"  allow-clear enter-button="Search" @search="onSearchSaleOrderMianModal"></a-input-search>
 							</a-form-item>
 						</a-col>
             <a-col :span="24">
-							<a-form-item label="购方(buyer)" v-bind="validateInfos.buyer" id="saleInvoiceForm-buyer" name="buyer" >
-                <JSelectInput   v-model:value="formData.buyer"  placeholder="请选择" :options="customerOption" ></JSelectInput>
+							<a-form-item label="购方(buyer)" v-bind="validateInfos.customer" id="saleInvoiceForm-customer" name="customer" >
+                <JSelectInput   v-model:value="formData.customer"  placeholder="请选择" :options="customerOption" ></JSelectInput>
 							</a-form-item>
 						</a-col>
 						<a-col :span="24">
-							<a-form-item label="发票金额(invoice money)" v-bind="validateInfos.invoiceMoney" id="saleInvoiceForm-invoiceMoney" name="invoiceMoney">
-                <a-input v-model:value="formData.invoiceMoney" placeholder="请输入"  allow-clear disabled></a-input>
+							<a-form-item label="发票金额(invoice money)" v-bind="validateInfos.invoiceAmount" id="saleInvoiceForm-invoiceAmount" name="invoiceAmount">
+                <a-input v-model:value="formData.invoiceAmount" placeholder="请输入"  allow-clear disabled></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="24">
 							<a-form-item label="收款金额(amount collected)" v-bind="validateInfos.amountCollected" id="saleInvoiceForm-amountCollected" name="amountCollected">
-                <a-input v-model:value="formData.amountCollected" placeholder="请输入"  allow-clear disabled></a-input>
+                <a-input v-model:value="formData.amountCollected" placeholder="请输入"  allow-clear AutoComplete="off"></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="24">
-							<a-form-item label="预收金额(advance payment amount)" v-bind="validateInfos.advancePaymentAmount" id="saleInvoiceForm-advancePaymentAmount" name="advancePaymentAmount">
-                <a-input v-model:value="formData.advancePaymentAmount" placeholder="请输入"  allow-clear disabled></a-input>
+							<a-form-item label="预收金额(advance payment amount)" v-bind="validateInfos.advanceAmount" id="saleInvoiceForm-advanceAmount" name="advanceAmount">
+                <a-input v-model:value="formData.advanceAmount" placeholder="请输入"  allow-clear disabled></a-input>
 							</a-form-item>
 						</a-col>
             <a-col :span="24">
-							<a-form-item label="预收比例(advance payment ratio)" v-bind="validateInfos.advancePaymentRatio" id="saleInvoiceForm-advancePaymentRatio" name="advancePaymentRatio">
-                <a-input v-model:value="formData.advancePaymentRatio" placeholder="请输入"  allow-clear ></a-input>
+							<a-form-item label="预收比例(advance payment ratio)" v-bind="validateInfos.advanceRatio" id="saleInvoiceForm-advanceRatio" name="advanceRatio">
+                <a-input v-model:value="formData.advanceRatio" placeholder="请输入"  allow-clear disabled></a-input>
 							</a-form-item>
 						</a-col>
           </a-row>
         </a-form>
       </template>
     </JFormContainer>
-    <SelectProjectModal ref="SelectProjectModalRef" @selectProject="addProject"></SelectProjectModal>
-    <SelectInvoiceModal ref="SelectInvoiceModalRef"></SelectInvoiceModal>
+    <SelectSaleOrderMianModal ref="SelectSaleOrderMianModalModalRef" @selectSaleOrderMian="addSaleOrderMain"></SelectSaleOrderMianModal>
+    <SelectInvoiceModal ref="SelectInvoiceModalRef" @selectInvoice="addInvoice"></SelectInvoiceModal>
   </a-spin>
 </template>
 
 <script lang="ts">
   import { defineComponent, ref, reactive, computed, toRaw, onMounted } from 'vue';
   import { defHttp } from '/@/utils/http/axios';
+  import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
   import {queryDataById, saveOrUpdate } from '../receiptOrderForm.api';
   import { JVxeTable } from '/@/components/jeecg/JVxeTable';
-  import SelectProjectModal from '../../../publicComponents/SelectProjectModal.vue';
+  import SelectSaleOrderMianModal from '../../../publicComponents/SelectSaleOrderMianModal.vue';
   import SelectInvoiceModal from './SelectInvoiceModal.vue';
   import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
   import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
@@ -85,7 +86,7 @@
       JVxeTable,
 			JFormContainer,
       JUpload,
-      SelectProjectModal,
+      SelectSaleOrderMianModal,
       JDictSelectTag,
       JSelectInput,
       JSelectMultiple,
@@ -103,7 +104,7 @@
     setup(props, {emit}) {
       const loading = ref(false);
       const formRef = ref();
-      var SelectProjectModalRef = ref()
+      var SelectSaleOrderMianModalModalRef = ref()
       const SelectInvoiceModalRef = ref()
       var customerOption =ref([]);
       const formData = reactive<Record<string, any>>({
@@ -113,15 +114,17 @@
         billDate: moment(new Date()).format('YYYY-MM-DD'),   
         billCode: '',   
         invoice:'',
+        invoiceId:'',
         project: '',   
         projectName: '',  
         saleOrder:'', 
-        buyer: '',   
-        buyerName: '',   
-        invoiceMoney: '',   
+        saleOrderId:'', 
+        customer: '',   
+        customerName: '',   
+        invoiceAmount: '',   
         amountCollected: '',   
-        advancePaymentAmount: '',   
-        advancePaymentRatio: '',         
+        advanceAmount: '',   
+        advanceRatio: '',         
       });
 
       //表单验证
@@ -175,6 +178,7 @@
         //赋值
         Object.assign(formData,tmpData);
       }
+      const {transformData} = useValidateAntFormAndTable();
       //获取表单信息
       async function getFormData() {
         try {
@@ -218,15 +222,21 @@
       function handleFormChange(key, value) {
         formData[key] = value;
       }
-      //选择项目
-      function addProject(data) {
-        if(data.length==0){
-          formData.project = 
-          formData.projectName = ''
-        }else{
-          formData.project = data[0].id
-          formData.projectName = data[0].name
-        }
+      function addSaleOrderMain(data) {
+        formData.saleOrder = data[0].billCode
+        formData.project = data[0].project
+        formData.projectName = data[0].projectName
+        formData.customer = data[0].customer
+        formData.customerName = data[0].customerName
+        formData.saleOrderId = data[0].id
+      }
+      function addInvoice(data){
+        debugger
+        formData.invoice = data[0].invoiceCode
+        formData.invoiceId = data[0].id
+        formData.invoiceAmount = data[0].taxMoney
+        formData.customer = data[0].customer
+        formData.customer =  data[0].buyerTaxNumber
       }
       //获取客户列表
       function getCustomerOptions(){
@@ -247,8 +257,8 @@
           })
       }
       //选择项目  
-      function onSearchProject(){
-        SelectProjectModalRef.value.getTable()
+      function onSearchSaleOrderMianModal(){
+        SelectSaleOrderMianModalModalRef.value.getTable()
       }
       function onSearchInvoice(){
         SelectInvoiceModalRef.value.getTable()
@@ -267,13 +277,14 @@
         add,
         edit,
         formRef,
-        SelectProjectModalRef,
-        onSearchProject,
-        addProject,
+        SelectSaleOrderMianModalModalRef,
+        onSearchSaleOrderMianModal, 
+        addSaleOrderMain,
         getCustomerOptions,
         customerOption,
         onSearchInvoice,
-        SelectInvoiceModalRef
+        SelectInvoiceModalRef,
+        addInvoice
       }
     }
   });

+ 10 - 10
src/views/saleCode/receiptOrder/receiptOrderForm.api.ts

@@ -4,16 +4,16 @@ import { useMessage } from "/@/hooks/web/useMessage";
 const { createConfirm } = useMessage();
 
 enum Api {
-  list = '/saleCode/saleQuotation/list',
-  save='/saleCode/saleQuotation/add',
-  edit='/saleCode/saleQuotation/edit',
-  deleteOne = '/saleCode/saleQuotation/delete',
-  deleteBatch = '/saleCode/saleQuotation/deleteBatch',
-  importExcel = '/saleCode/saleQuotation/importExcel',
-  exportXls = '/saleCode/saleQuotation/exportXls',
-  queryDataById = '/saleCode/saleQuotation/queryById',
-  submitBatch='/saleCode/saleQuotation/submitBatch',
-  cancelSubmitBatch='/saleCode/saleQuotation/returnSubmitBatch',
+  list = '/saleCode/saleReceipt/list',
+  save='/saleCode/saleReceipt/add',
+  edit='/saleCode/saleReceipt/edit',
+  deleteOne = '/saleCode/saleReceipt/delete',
+  deleteBatch = '/saleCode/saleReceipt/deleteBatch',
+  importExcel = '/saleCode/saleReceipt/importExcel',
+  exportXls = '/saleCode/saleReceipt/exportXls',
+  queryDataById = '/saleCode/saleReceipt/queryById',
+  submitBatch='/saleCode/saleReceipt/submitBatch',
+  cancelSubmitBatch='/saleCode/saleReceipt/returnSubmitBatch',
 }
 /**
  * 导出api

+ 3 - 3
src/views/saleCode/receiptOrder/receiptOrderForm.data.ts

@@ -21,7 +21,7 @@ export const columns: BasicColumn[] = [
     title: '购方(buyer)',
     align:"center",
     ellipsis:true,
-    dataIndex: 'buyer'
+    dataIndex: 'customerName'
    },
    {
     title: '购方税号(buyer tax number)',
@@ -49,13 +49,13 @@ export const columns: BasicColumn[] = [
     title: '发票号码(invoice code)',
     align:"center",
     ellipsis:true,
-    dataIndex: 'invoiceCode'
+    dataIndex: 'invoice'
    },
    {
     title: '发票金额(invoice money)',
     align:"center",
     ellipsis:true,
-    dataIndex: 'invoiceMoney'
+    dataIndex: 'invoiceAmount'
    },
    {
     title: '收款金额(amount collected)',

+ 12 - 12
src/views/saleCode/receiptOrder/receiptOrdertList.vue

@@ -18,21 +18,21 @@
             </a-col>          
             <template v-if="toggleSearchStatus">
               <a-col :lg="8">
-                <a-form-item name="project">
+                <a-form-item name="projectName">
                   <template #label><span title="项目(project)">项目(project)</span></template>
-                  <a-input v-model:value="queryParam.project" placeholder="请输入" AutoComplete="off"/>
+                  <a-input v-model:value="queryParam.projectName" placeholder="请输入" AutoComplete="off"/>
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
-                <a-form-item name="buyer">
+                <a-form-item name="customerName">
                   <template #label><span title="购方(buyer)">购方(buyer)</span></template>
-                  <a-input placeholder="请输入" v-model:value="queryParam.buyer" allow-clear AutoComplete="off"></a-input>
+                  <a-input placeholder="请输入" v-model:value="queryParam.customerName" allow-clear AutoComplete="off"></a-input>
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
-                <a-form-item name="saleOrderCode">
+                <a-form-item name="invoice">
                   <template #label><span title="发票号码(invoice code)">发票号码(invoice code)</span></template>
-                  <a-input placeholder="请输入" v-model:value="queryParam.invoiceCode" allow-clear AutoComplete="off"></a-input>
+                  <a-input placeholder="请输入" v-model:value="queryParam.invoice" allow-clear AutoComplete="off"></a-input>
                 </a-form-item>
               </a-col>
               <a-col :lg="8">
@@ -61,20 +61,20 @@
      <BasicTable @register="registerTable" :rowSelection="rowSelection" size="small" >
        <!--插槽:table标题-->
         <template #tableTitle>
-            <a-button type="primary" v-auth="'saleCode:sale_order:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
-            <a-button  type="primary" v-auth="'saleCode:sale_order:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
+            <a-button type="primary" v-auth="'saleCode:sale_receipt:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
+            <a-button  type="primary" v-auth="'saleCode:sale_receipt:exportXls'"  preIcon="ant-design:export-outlined" @click="onExportXls"> 导出(export)</a-button>
             <a-button  type="primary"  @click="submit" > 提交(submit)</a-button>
             <a-button  type="primary"  @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
             <a-dropdown v-if="selectedRowKeys.length > 0">
                 <template #overlay>
                   <a-menu>
-                    <a-menu-item key="1" @click="batchHandleDelete"  v-auth="'saleCode:sale_order_form:deleteBatch'">
+                    <a-menu-item key="1" @click="batchHandleDelete"  v-auth="'saleCode:sale_receipt:deleteBatch'">
                       <Icon icon="ant-design:delete-outlined"></Icon>
                       删除(delete)
                     </a-menu-item>
                   </a-menu>
                 </template>
-                <a-button v-auth="'saleCode:sale_order:delete'">批量操作
+                <a-button v-auth="'saleCode:sale_receipt:deleteBatch'">批量操作
                   <Icon icon="mdi:chevron-down"></Icon>
                 </a-button>
           </a-dropdown>
@@ -198,7 +198,7 @@
            {
              label: '编辑(edit)',
              onClick: handleEdit.bind(null, record),
-             auth: 'saleCode:sale_order:edit',
+             auth: 'saleCode:sale_receipt:edit',
              ifShow: record.submit=='0'||!record.submit
            },
            {
@@ -225,7 +225,7 @@
                confirm: handleDelete.bind(null, record),
                placement: 'topLeft'
              },
-             auth: 'saleCode:sale_order:delete',
+             auth: 'saleCode:sale_receipt:delete',
              ifShow: record.submit=='0'||!record.submit
            }
          ]