Browse Source

代码补充

yuansh 4 weeks ago
parent
commit
80be46870a
36 changed files with 885 additions and 128 deletions
  1. 5 0
      src/views/cuspCode/SupplierProfile/CuspSupplierProfile.data.ts
  2. 2 2
      src/views/cuspCode/SupplierProfile/CuspSupplierProfileList.vue
  3. 84 0
      src/views/monitor/datalog/DataLogDetailModal.vue
  4. 4 4
      src/views/monitor/datalog/datalog.data.ts
  5. 29 1
      src/views/monitor/datalog/index.vue
  6. 19 1
      src/views/publicComponents/SelectSaleOrderModal.vue
  7. 1 0
      src/views/publicComponents/SelectShipSModal.vue
  8. 17 0
      src/views/publicComponents/SelectSupplierQuotation.vue
  9. 8 1
      src/views/publicComponents/SetChangeCostModal.vue
  10. 7 1
      src/views/purchase/arrivedGoods/ArriveGoodsForm.data.ts
  11. 38 18
      src/views/purchase/arrivedGoods/ArriveGoodsList.vue
  12. 8 0
      src/views/purchase/freightPurchaseOrder/FreightPurOrder.api.ts
  13. 91 27
      src/views/purchase/freightPurchaseOrder/FreightPurOrderForm.data.ts
  14. 7 7
      src/views/purchase/freightPurchaseOrder/FreightPurchaseOrderList.vue
  15. 138 11
      src/views/purchase/freightPurchaseOrder/components/FreightPurOrderForm.vue
  16. 124 24
      src/views/purchase/payment/components/paymentForm.vue
  17. 3 0
      src/views/purchase/purPaymentRequest/components/purPaymentRequestForm.vue
  18. 6 0
      src/views/purchase/purchaseInquiryForm/PurchaseInquiryForm.data.ts
  19. 17 4
      src/views/purchase/purchaseOrder/PurchaseOrderForm.data.ts
  20. 40 3
      src/views/purchase/purchaseOrder/PurchaseOrderFormList.vue
  21. 1 0
      src/views/purchase/purchaseOrder/components/AfterPurchaseOrderFormForm.vue
  22. 19 0
      src/views/purchase/purchaseOrder/components/PurchaseOrderFormForm.vue
  23. 7 1
      src/views/purchase/purchaseQuotationFrm/PurchaseQuotationForm.data.ts
  24. 7 1
      src/views/purchase/selectionQuotationForm/SelectionQuotationForm.data.ts
  25. 9 2
      src/views/report/deliveryNotice/deliveryNoticeList.vue
  26. 6 0
      src/views/saleCode/deliveryNotice/delivertNoticeForm.data.ts
  27. 36 3
      src/views/saleCode/deliveryNotice/deliveryNoticeList.vue
  28. 34 3
      src/views/saleCode/quotation/quotation.vue
  29. 12 0
      src/views/saleCode/quotation/quotationForm.data.ts
  30. 6 0
      src/views/saleCode/saleInquiryForm/SaleInquiryForm.data.ts
  31. 39 7
      src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue
  32. 1 1
      src/views/saleCode/saleInquiryForm/components/SaleInquiryFormForm.vue
  33. 12 2
      src/views/saleCode/saleInterfaceSync/SaleInterfaceSync.data.ts
  34. 6 0
      src/views/saleCode/salesInvoice/salesInvoiceForm.data.ts
  35. 6 0
      src/views/saleCode/salesOrder/SaleOrderForm.data.ts
  36. 36 4
      src/views/saleCode/salesOrder/SaleOrderFormList.vue

+ 5 - 0
src/views/cuspCode/SupplierProfile/CuspSupplierProfile.data.ts

@@ -51,6 +51,11 @@ export const columns: BasicColumn[] = [
     align: 'center',
     dataIndex: 'phone',
   },
+  {
+    title: '邮箱(email)',
+    align: 'center',
+    dataIndex: 'email',
+  },
   {
     title: '国家(country)',
     align: 'center',

+ 2 - 2
src/views/cuspCode/SupplierProfile/CuspSupplierProfileList.vue

@@ -7,7 +7,7 @@
           <a-button type="primary" v-auth="'cuspCode:cusp_supplier_profile:add'"  @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
           <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:exportXls'"  @click="onExportXls"> 导出(export)</a-button>
           <a-button  type="primary"  @click="getCatalog"> 供货目录(supply catalog)</a-button>
-          <a-button  type="primary"  @click="formallyConverted"> 申请转正式(apply for formal conversion)</a-button>
+          <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:add'" @click="formallyConverted"> 申请转正式(apply for formal conversion)</a-button>
           <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:approval'" @click="ApprovalFormallyConverted">申请转正式审批 (apply for formal conversion Approval)</a-button>
           <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:disable'" @click="getDisableInfo">禁用 (disable)</a-button>
           <a-button  type="primary" v-auth="'cuspCode:cusp_supplier_profile:enable'" @click="getEnableInfo">启用 (enable)</a-button>
@@ -61,6 +61,7 @@
   import { useMessage } from '/@/hooks/web/useMessage';
   import { useUserStore } from '/@/store/modules/user';
   import SetCloseReasonModal from '../../publicComponents/SetCloseReasonModal.vue'
+  import { Form, message } from 'ant-design-vue';
   const { createMessage} = useMessage();
   const queryParam = reactive<any>({});
   const checkedKeys = ref<Array<string | number>>([]);
@@ -169,7 +170,6 @@
 	  message.warning('请选择一条数据');
 	} else {
 	  var ids = selectedRowKeys.value.join(',');
-	  var ids=selectedRowKeys.value.join(',')
 	  SetCloseReasonModalRef.value.getTableDeactivate(ids)
 	}
 	  

+ 84 - 0
src/views/monitor/datalog/DataLogDetailModal.vue

@@ -0,0 +1,84 @@
+<!-- 数据日志详情 -->
+<template>
+  <BasicModal v-bind="$attrs" @register="registerModal" title="数据日志详情" width="80%" :minHeight="450" :showOkBtn="false">
+    <a-spin :spinning="confirmLoading">
+      <a-form :label-col="{ span: 6 }" :wrapper-col="{ span: 18 }">
+        <a-row :gutter="24">
+          <a-col :md="12" :sm="24">
+            <a-form-item label="表名">
+              <span>{{ detail.dataTable || '-' }}</span>
+            </a-form-item>
+          </a-col>
+          <a-col :md="12" :sm="24">
+            <a-form-item label="数据ID">
+              <span>{{ detail.dataId || '-' }}</span>
+            </a-form-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+         
+          <a-col :md="12" :sm="24">
+            <a-form-item label="创建人">
+              <span>{{ detail.createBy || '-' }}</span>
+            </a-form-item>
+          </a-col>
+           <a-col :md="12" :sm="24">
+            <a-form-item label="版本号">
+              <span>{{ detail.dataVersion || '-' }}</span>
+            </a-form-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24" v-if="detail.createTime">
+          <a-col :md="12" :sm="24">
+            <a-form-item label="创建时间">
+              <span>{{ detail.createTime }}</span>
+            </a-form-item>
+          </a-col>
+        </a-row>
+        <a-row :gutter="24">
+          <a-col :span="24">
+            <a-form-item label="数据内容" :label-col="{ span: 3 }" :wrapper-col="{ span: 20 }">
+              <a-textarea
+                v-model:value="dataContent"
+                :rows="22"
+                readonly
+                :auto-size="{ minRows: 16, maxRows: 30 }"
+                style="white-space: pre; font-family: Consolas, Monaco, monospace; background: #fafafa"
+              />
+            </a-form-item>
+          </a-col>
+        </a-row>
+      </a-form>
+    </a-spin>
+  </BasicModal>
+</template>
+<script lang="ts" setup>
+  import { reactive, ref } from 'vue';
+  import { BasicModal, useModalInner } from '/@/components/Modal';
+
+  const confirmLoading = ref(false);
+  const detail = reactive<any>({});
+  const dataContent = ref('');
+
+  const [registerModal] = useModalInner(async (data) => {
+    // 重置
+    Object.keys(detail).forEach((k) => delete detail[k]);
+    dataContent.value = '';
+    if (data && data.record) {
+      Object.assign(detail, data.record);
+      dataContent.value = formatDataContent(data.record.dataContent);
+    }
+  });
+
+  /**
+   * 格式化数据内容:JSON 字符串美化输出,非 JSON 原样展示
+   */
+  function formatDataContent(content) {
+    if (content === null || content === undefined || content === '') return '';
+    try {
+      return JSON.stringify(JSON.parse(content), null, 2);
+    } catch (e) {
+      return String(content);
+    }
+  }
+</script>

+ 4 - 4
src/views/monitor/datalog/datalog.data.ts

@@ -4,13 +4,13 @@ export const columns: BasicColumn[] = [
   {
     title: '表名',
     dataIndex: 'dataTable',
-    width: 150,
+    width: 210,
     align: 'left',
   },
   {
     title: '数据ID',
     dataIndex: 'dataId',
-    width: 350,
+    width: 300,
   },
   {
     title: '版本号',
@@ -25,7 +25,7 @@ export const columns: BasicColumn[] = [
     title: '创建人',
     dataIndex: 'createBy',
     sorter: true,
-    width: 200,
+    width: 150,
   },
 ];
 
@@ -33,7 +33,7 @@ export const searchFormSchema: FormSchema[] = [
   {
     field: 'dataTable',
     label: '表名',
-    component: 'Input',
+    component: 'JInput',
     colProps: { span: 8 },
   },
   {

+ 29 - 1
src/views/monitor/datalog/index.vue

@@ -4,15 +4,21 @@
       <template #tableTitle>
         <a-button preIcon="ant-design:plus-outlined" type="primary" @click="handleCompare" style="margin-right: 5px">数据比较</a-button>
       </template>
+      <template #action="{ record }">
+        <TableAction :actions="getTableAction(record)" />
+      </template>
     </BasicTable>
     <DataLogCompareModal @register="registerModal" @success="reload" />
+    <DataLogDetailModal @register="registerDetailModal" />
   </div>
 </template>
 <script lang="ts" name="monitor-datalog" setup>
   import { ref } from 'vue';
   import { BasicTable, TableAction } from '/@/components/Table';
   import DataLogCompareModal from './DataLogCompareModal.vue';
+  import DataLogDetailModal from './DataLogDetailModal.vue';
   const [registerModal, { openModal }] = useModal();
+  const [registerDetailModal, { openModal: openDetailModal }] = useModal();
   import { getDataLogList } from './datalog.api';
   import { columns, searchFormSchema } from './datalog.data';
   import { useMessage } from '/@/hooks/web/useMessage';
@@ -32,7 +38,7 @@
         labelWidth: 120,
         schemas: searchFormSchema,
       },
-      actionColumn: false,
+      actionColumn: { width: 100, title: '操作', fixed: 'right' },
     },
   });
 
@@ -54,4 +60,26 @@
       isUpdate: true,
     });
   }
+
+  /**
+   * 操作栏
+   */
+  function getTableAction(record) {
+    return [
+      {
+        label: '查看详情',
+        onClick: handleDetail.bind(null, record),
+      },
+    ];
+  }
+
+  /**
+   * 查看详情
+   */
+  function handleDetail(record) {
+    openDetailModal(true, {
+      record,
+      isUpdate: false,
+    });
+  }
 </script>

+ 19 - 1
src/views/publicComponents/SelectSaleOrderModal.vue

@@ -210,6 +210,24 @@
             // ellipsis: true,
             // className:showCustomer.value=='yes'?'tableShow':'tableHiddl
         },
+		
+		{
+		    title: '临时供应商(temp)',
+		    dataIndex: 'temporarySupplier',
+		    key: 'temporarySupplier',
+		    align:"center",
+		    ellipsis: true,
+		    ifShow:showCustomer.value=='no'?true:false,
+			customRender:({text,record}) =>{
+			  if(text==0){
+				return '是';
+			  }else if(text==1){
+				return '申请中'
+			  }else if(text==2){
+				return '否'
+			  }
+			}
+		},
         {
             title: '优先级(priority)',
             dataIndex: 'priority_dictText',
@@ -610,7 +628,7 @@
             showCustomer.value = 'yes'
             getListUrl.value ='/saleCode/saleOrder/selectSaleOrderDetailAlertDelivery'
             columns= columns1.filter(function(value, i) {
-                return i !== 4;
+                return i !== 4 && i !== 6 ;
             });
             if(formData.customer&&formData.customer!==''){            
                 fatherCustomer.value = formData.customer

+ 1 - 0
src/views/publicComponents/SelectShipSModal.vue

@@ -64,6 +64,7 @@
               y:'400px',
             },
             beforeFetch: (params) => {
+				queryParam.status = 1;
               return Object.assign(params, queryParam);
             },
       }

+ 17 - 0
src/views/publicComponents/SelectSupplierQuotation.vue

@@ -179,6 +179,23 @@
             align:"center",
             dataIndex: 'selectionSupplier_dictText'
         },
+       
+		{
+		    title: '临时供应商(temp)',
+		    dataIndex: 'temporarySupplier',
+		    key: 'temporarySupplier',
+		    align:"center",
+		    ellipsis: true,
+			customRender:({text,record}) =>{
+			  if(text==0){
+				return '是';
+			  }else if(text==1){
+				return '申请中'
+			  }else if(text==2){
+				return '否'
+			  }
+			}
+		},
         // {
         //     title: '询价供应商(quotation supplier)',
         //     align:"center",

+ 8 - 1
src/views/publicComponents/SetChangeCostModal.vue

@@ -101,10 +101,17 @@
         form.value.reportMemo = ''
         fatherIds.value = ''
     }
-    function getTable(ids){
+    function getTable(ids, record){
         visible.value = true
         fatherIds.value = ids
         title.value = "变更费用(Change Cost)"
+        if (record) {
+            form.value.reportCurrency = record.reportCurrency || ''
+            form.value.reportShippingCost = record.reportShippingCost || ''
+            form.value.reportCurrency2 = record.reportCurrency2 || ''
+            form.value.reportPackagingFee = record.reportPackagingFee || ''
+            form.value.reportMemo = record.reportMemo || ''
+        }
     }
     function getTableDeactivate(ids){
         visible.value = true

+ 7 - 1
src/views/purchase/arrivedGoods/ArriveGoodsForm.data.ts

@@ -95,7 +95,7 @@ export const columns: BasicColumn[] = [
       ifShow:false
      },
     {
-      title: '出库情况',
+      title: '入库情况',
       align:"center",
       dataIndex: 'outStatus',
      },
@@ -104,6 +104,12 @@ export const columns: BasicColumn[] = [
       align:"center",
       dataIndex: 'createBy',
     },
+	   {
+		title: '制单时间',
+		align:"center",
+		dataIndex: 'createTime',
+		width:180,
+	   },
 ];
 
 //子表表格配置

+ 38 - 18
src/views/purchase/arrivedGoods/ArriveGoodsList.vue

@@ -79,23 +79,7 @@
                 <JInput placeholder="请输入产品编号(product code)" v-model:value="queryParam.productCode" allow-clear ></JInput>
               </a-form-item>
             </a-col> -->
-            <a-col :lg="8">
-              <a-form-item name="purchaseDepartment" >
-                <template #label><span title="采购部门(purchase department)">采购部门(purchase department)</span></template>
-                <JInput
-                  placeholder="请输入采购部门(purchase department)"
-                  v-model:value="queryParam.purchaseDepartment"
-                  allow-clear
-                  AutoComplete="off"
-                />
-              </a-form-item>
-            </a-col>
-            <a-col :lg="8">
-              <a-form-item name="purchaseman">
-                <template #label><span title="采购员(purchaseman)">采购员(purchaseman)</span></template>
-                <JInput placeholder="请输入采购员(purchaseman)" v-model:value="queryParam.purchaseman" allow-clear AutoComplete="off" />
-              </a-form-item>
-            </a-col>
+            
             <a-col :lg="8">
               <a-form-item name="sourceCode">
                 <template #label><span title="来源(sourceCode)">来源(sourceCode)</span></template>
@@ -125,6 +109,42 @@
 				    </a-select>
 				  </a-form-item>
 				</a-col>
+				<a-col :lg="8">
+				  <a-form-item name="purchaseDepartment" >
+				    <template #label><span title="采购部门(purchase department)">采购部门(purchase department)</span></template>
+					<JSelectMultiple
+					  v-model:value="queryParam.purchaseDepartment"
+					  placeholder=""
+					  :multiple="true"
+					  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+					  page="false"
+					  showSearch
+					/>
+				    <!-- <JInput
+				      placeholder="请输入采购部门(purchase department)"
+				      v-model:value="queryParam.purchaseDepartment"
+				      allow-clear
+				      AutoComplete="off"
+				    /> -->
+				  </a-form-item>
+				</a-col>
+				<a-col :lg="8">
+				  <a-form-item name="purchaseman">
+				    <template #label><span title="采购员(purchaseman)">采购员(purchaseman)</span></template>
+					<JSelectMultiple
+					  v-model:value="queryParam.purchaseman"
+					  placeholder=""
+					  :multiple="true"
+					  dictCode="sys_user,realname,username,del_flag=0 and 
+					  id in(select user_id from sys_user_depart where dep_id 
+					  in(select id from sys_depart where del_flag=0 and 
+					  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+					  page="false"
+					  showSearch
+					/>
+				    <!-- <JInput placeholder="请输入采购员(purchaseman)" v-model:value="queryParam.purchaseman" allow-clear AutoComplete="off" /> -->
+				  </a-form-item>
+				</a-col>
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -205,7 +225,7 @@
   } from './ArriveGoodsForm.api';
   import { cloneDeep } from 'lodash-es';
   import { defHttp } from '/@/utils/http/axios';
-  import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput,JSelect,JSelectMultiple } from '/@/components/Form';
   import { message } from 'ant-design-vue';
   const formRef = ref();
   const queryParam = reactive<any>({});

+ 8 - 0
src/views/purchase/freightPurchaseOrder/FreightPurOrder.api.ts

@@ -5,6 +5,7 @@ const { createConfirm } = useMessage();
 
 enum Api {
   list = '/purCode/purShippingFee/list',
+  listRequest = '/purCode/purShippingFee/listRequest',
   supplierList='/cuspCode/cuspSupplierProfile/list',
   save='/purCode/purShippingFee/add',
   edit='/purCode/purShippingFee/edit',
@@ -54,6 +55,13 @@ export const queryFreightProDetailsByMainId = (id) => defHttp.get({url: Api.Frei
 export const list = (params) =>
   defHttp.get({url: Api.list, params});
 
+/**
+ * 列表接口
+ * @param params
+ */
+export const listRequest = (params) =>
+  defHttp.get({url: Api.listRequest, params});
+
 /**
  * 供应商列表接口
  * @param params

+ 91 - 27
src/views/purchase/freightPurchaseOrder/FreightPurOrderForm.data.ts

@@ -7,13 +7,15 @@ import { getWeekMonthQuarterYear } from '/@/utils';
 //列表数据
 export const columns: BasicColumn[] = [
    {
-    title: '单据编号(bill code)',
+    title: '编号(bill code)',
     align:"center",
-    dataIndex: 'billCode'
+    dataIndex: 'billCode',
+    width:140,
    },   
    {
-    title: '单据日期(bill date)',
+    title: '申请日期(bill date)',
     align:"center",
+    width:200,
     dataIndex: 'billDate',
     customRender:({text}) =>{
       text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text);
@@ -21,41 +23,103 @@ export const columns: BasicColumn[] = [
     },
    },
   
+  {
+   title: '预付款日期(expected payment date)',
+   align:"center",
+   dataIndex: 'expectedPaymentDate',
+   width:235,
+   ellipsis:true
+  },  
    {
-    title: '币种(cerrency)',
+    title: '供应商(supplier)',
     align:"center",
-    dataIndex: 'currency_dictText'
+    width:200,
+    dataIndex: 'supplierName'
    },
    {
-    title: '供应商(supplier)',
+    title: '类型(type)',
     align:"center",
-    dataIndex: 'supplierName'
+    ellipsis:true,
+    width:150,
+    dataIndex: 'type'
    },
-    {
-      title: '备注(notes)',
-      align:"center",
-      dataIndex: 'notes',
-    },
-    {
-      title: '关闭原因(close reason)',
-      align:"center",
-      dataIndex: 'closeReason'
-     },
+   {
+    title: '申请金额(approve money)',
+    align:"center",
+    ellipsis:true,
+    width:200,
+    dataIndex: 'approveMoney'
+   },
+   {
+    title: '币种(cerrency)',
+    align:"center",
+    width:140,
+    dataIndex: 'currency_dictText'
+   },
+   // {
+   //  title: '开户行(opening bank)',
+   //  align:"center",
+   //  dataIndex: 'openingBank'
+   // },
+   // {
+   //  title: '户名(opening name)',
+   //  align:"center",
+   //  dataIndex: 'openingName'
+   // },
+   // {
+   //  title: '银行代码(swift code)',
+   //  align:"center",
+   //  dataIndex: 'swiftCode'
+   // },
+   // {
+   //  title: '银行账号(bank account)',
+   //  align:"center",
+   //  dataIndex: 'bankAccount'
+   // },
+   //  {
+   //    title: '备注(notes)',
+   //    align:"center",
+   //    dataIndex: 'notes',
+   //  },
+   //  {
+   //    title: '关闭原因(close reason)',
+   //    align:"center",
+   //    dataIndex: 'closeReason'
+   //   },
     {
       title: '提交(submit)',
       align:"center",
+		width:140,
       dataIndex: 'submit_dictText',
     },
-    {
-      title: '关闭(close)',
-      align:"center",
-      dataIndex: 'close_dictText',
-    },
-    {
-      title: '确认(confirm)',
-      align:"center",
-      dataIndex: 'status_dictText',
-    },
+    // {
+    //   title: '关闭(close)',
+    //   align:"center",
+    //   dataIndex: 'close_dictText',
+    // },
+    // {
+    //   title: '确认(confirm)',
+    //   align:"center",
+    //   dataIndex: 'status_dictText',
+    // },
+	{
+	 title: '付款(payment)',
+	 align:"center",
+    width:140,
+	 dataIndex: 'payment_dictText',
+	},
+	{
+	 title: '创建人',
+	 align:"center",
+    width:140,
+	 dataIndex: 'createBy',
+	},
+	{
+	 title: '创建时间',
+	 align:"center",
+    width:200,
+	 dataIndex: 'createTime',
+	},
 ];
 
 //子表表格配置

+ 7 - 7
src/views/purchase/freightPurchaseOrder/FreightPurchaseOrderList.vue

@@ -6,13 +6,13 @@
         <a-row :gutter="24">
           <a-col :lg="8">
             <a-form-item name="billCode">
-              <template #label><span title="订单编号(bill code)">订单编号(bill code)</span></template>
+              <template #label><span title="订单编号(bill code)">编号(bill code)</span></template>
               <JInput placeholder="请输入订单编号(bill code)" v-model:value="queryParam.billCode" allow-clear AutoComplete="off" />
             </a-form-item>
           </a-col>
           <a-col :lg="8">
             <a-form-item name="billDate">
-              <template #label><span title="单据日期(bill date)">单据日期(bill date)</span></template>
+              <template #label><span title="申请日期(bill date)">申请日期(bill date)</span></template>
               <a-range-picker value-format="YYYY-MM-DD" v-model:value="queryParam.billDate" class="query-group-cust" />
             </a-form-item>
           </a-col>
@@ -53,12 +53,12 @@
         <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" v-auth="'purCode:pur_shipping_fee:exportXls'">
           导出(export)</a-button
         >
-        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="submit"> 提交(submit)</a-button>
-        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
-        <a-button type="primary" @click="close" v-auth="'purCode:pur_shipping_fee:close'"> 关闭(close)</a-button>
+        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:submit'" @click="submit"> 提交(submit)</a-button>
+        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:cancelSubmit'" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
+        <!-- <a-button type="primary" @click="close" v-auth="'purCode:pur_shipping_fee:close'"> 关闭(close)</a-button> -->
         <!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
-        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="confirm"> 确认(confirm)</a-button>
-        <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="cancelConfirm"> 取消确认(cancel confirm)</a-button>
+        <!-- <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="confirm"> 确认(confirm)</a-button> -->
+        <!-- <a-button type="primary" v-auth="'purCode:pur_shipping_fee:add'" @click="cancelConfirm"> 取消确认(cancel confirm)</a-button> -->
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <template #overlay>
             <a-menu>

+ 138 - 11
src/views/purchase/freightPurchaseOrder/components/FreightPurOrderForm.vue

@@ -10,9 +10,9 @@
               </a-form-item>
             </a-col>
             <a-col :span="12">
-              <a-form-item label="单据日期(arrival date)" v-bind="validateInfos.billDate" id="SaleOrderForm-billDate" name="billDate">
+              <a-form-item label="申请日期(bill date)" v-bind="validateInfos.billDate" id="SaleOrderForm-billDate" name="billDate">
                 <a-date-picker
-                  placeholder="请选择单据日期(arrival date)"
+                  placeholder="请选择申请日期(bill date)"
                   v-model:value="formData.billDate"
                   value-format="YYYY-MM-DD"
                   style="width: 100%"
@@ -21,10 +21,17 @@
               </a-form-item>
             </a-col>
             <a-col :span="12">
-              <a-form-item label="币种(currency)" v-bind="validateInfos.currency" id="SaleOrderForm-currency" name="currency">
-                <JDictSelectTag v-model:value="formData.currency" placeholder="请选择" dictCode="currency" />
+              <a-form-item label="预计付款日期(Expected payment date)" v-bind="validateInfos.expectedPaymentDate" id="SaleOrderForm-expectedPaymentDate" name="expectedPaymentDate">
+                <a-date-picker
+                  placeholder="请选择预计付款日期(Expected payment date)"
+                  v-model:value="formData.expectedPaymentDate"
+                  value-format="YYYY-MM-DD"
+                  style="width: 100%"
+                  allow-clear
+                />
               </a-form-item>
             </a-col>
+            
             <a-col :span="12">
               <a-form-item label="供应商(supplier)" v-bind="validateInfos.supplier" id="SaleOrderForm-supplierName" name="supplierName">
                 <JSelect
@@ -37,10 +44,55 @@
               </a-form-item>
             </a-col>
             <a-col :span="12">
-              <a-form-item label="备注(notes)" v-bind="validateInfos.notes" id="SaleOrderForm-notes" name="notes">
-                <a-input v-model:value="formData.notes" AutoComplete="off" />
+              <a-form-item label="类型(type)" v-bind="validateInfos.type" id="SaleOrderForm-type" name="type">
+                <a-select v-model:value="formData.type" placeholder="请选择类型(select type)" allow-clear>
+                  <a-select-option v-for="item in typeOptions" :key="item.value" :value="item.value">{{ item.label }}</a-select-option>
+                </a-select>
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="币种(currency)" v-bind="validateInfos.currency" id="SaleOrderForm-currency" name="currency">
+                <JDictSelectTag v-model:value="formData.currency" placeholder="请选择" dictCode="currency" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="开户行(opening bank)" v-bind="validateInfos.openingBank" id="SaleOrderForm-openingBank" name="openingBank">
+                <a-input v-model:value="formData.openingBank" placeholder="请输入" allow-clear AutoComplete="off" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="户名(opening name)" v-bind="validateInfos.openingName" id="SaleOrderForm-openingName" name="openingName">
+                <a-input v-model:value="formData.openingName" placeholder="请输入" allow-clear AutoComplete="off" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="银行代码(swift code)" v-bind="validateInfos.swiftCode" id="SaleOrderForm-swiftCode" name="swiftCode">
+                <a-input v-model:value="formData.swiftCode" placeholder="请输入" allow-clear AutoComplete="off" />
               </a-form-item>
             </a-col>
+            <a-col :span="12">
+              <a-form-item label="银行账号(bank account)" v-bind="validateInfos.bankAccount" id="SaleOrderForm-bankAccount" name="bankAccount">
+                <a-input v-model:value="formData.bankAccount" placeholder="请输入" allow-clear AutoComplete="off" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="12">
+              <a-form-item label="申请金额(approve Money)" v-bind="validateInfos.approveMoney" id="SaleOrderForm-approveMoney" name="approveMoney">
+                <a-input v-model:value="formData.approveMoney" disabled placeholder="请输入" allow-clear AutoComplete="off" />
+              </a-form-item>
+            </a-col>
+            <a-col :span="24" style="left: 2%;">
+				
+				
+              <a-form-item label="备注(notes)" v-bind="validateInfos.notes" id="SaleOrderForm-notes" name="notes" :label-col="{ xs: { span: 24 }, sm: { span: 2 } }" :wrapper-col="{ xs: { span: 24 }, sm: { span: 20 } }">
+                <a-textarea v-model:value="formData.notes"  :rows="4" placeholder="请输入备注(notes)" allow-clear AutoComplete="off"  />
+              </a-form-item> 
+            </a-col>
+			
+			<a-col :span="12">
+			  <a-form-item label="附件(attachs)" id="SaleOrderForm-attachs" name="attachs">
+			    <JUpload v-model:value="formData.attachs" bizPath="freightPurOrder" />
+			  </a-form-item>
+			</a-col>
           </a-row>
         </a-form>
       </template>
@@ -62,6 +114,7 @@
           :disabled="disabled"
           :rowNumber="true"
           :rowSelection="true"
+          @value-change="handleFreightValueChange"
         >
           <template #action="props">
             <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)" v-if="!disabled">
@@ -109,6 +162,7 @@
   import { ShippingNoticeColumns, FreightProDetailsColumns } from '../FreightPurOrderForm.data';
   import SelectPrpductModal from '../../../publicComponents/SelectPrpductModal.vue';
   import SelectDeliveryNoticeModal from './SelectDeliveryNoticeModal.vue';
+  import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
   import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
   import { JDictSelectTag, ApiSelect, JSelect } from '/@/components/Form';
   import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
@@ -122,6 +176,7 @@
       JFormContainer,
       JDictSelectTag,
       JSelectInput,
+      JUpload,
       SelectPrpductModal,
       SelectDeliveryNoticeModal,
       ApiSelect,
@@ -161,14 +216,31 @@
         delFlag: undefined,
         billCode: '',
         billDate: moment(new Date()).format('YYYY-MM-DD'),
+        expectedPaymentDate: '',
+        approveMoney: '',
+        type: undefined,
         supplier: '',
         supplierName: '',
         currency: '',
+        openingBank: '',
+        openingName: '',
+        swiftCode: '',
+        bankAccount: '',
+        attachs: '',
         notes: '',
       });
       //表单验证
+      //类型下拉选项
+      const typeOptions = ref([
+        { label: '预付款', value: '预付款' },
+        { label: '月结款', value: '月结款' },
+      ]);
+      //表单验证
       const validatorRules = reactive({
+        type: [{ required: true, message: '请选择类型(select type)' }],
         supplier: [{ required: true, message: '请选择供应商(select supplier)' }],
+        billDate: [{ required: true, message: '单据日期不能为空(billDate)' }],
+        currency: [{ required: true, message: '请选择币种(select currency)' }],
       });
       const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
       const dbData = {};
@@ -243,7 +315,7 @@
 
       async function submitForm() {
         var xTable = DeliveryDoticeTableableRef.value!.getXTable();
-        if (xTable.data.length == 0) {
+        if (xTable.data.length == -10) {
           message.error('请添加发货通知单!');
         } else {
           FreightProductDetailsTableRef.value!.validateTable().then(async (errMap) => {
@@ -275,6 +347,27 @@
         var newArray = [...xTable.data];
         newArray.splice(prop.rowIndex, 1);
         FreightProductDetailsTable.dataSource = newArray;
+        calcApproveMoney();
+      }
+      //计算运费产品明细运费金额总数并赋值到主表申请金额
+      function calcApproveMoney() {
+        var xTable = FreightProductDetailsTableRef.value ? FreightProductDetailsTableRef.value.getXTable() : null;
+        var rows = xTable && xTable.data ? xTable.data : FreightProductDetailsTable.dataSource || [];
+        var total = 0;
+        rows.forEach((item) => {
+          var val = Number(item.taxAmount);
+          if (!isNaN(val)) {
+            total += val;
+          }
+        });
+        formData.approveMoney = Number(total.toFixed(2));
+      }
+      //运费产品明细-值改变事件
+      function handleFreightValueChange(prop) {
+        var key = prop && prop.col ? prop.col.key : '';
+        if (key === 'taxAmount' || key === 'all') {
+          calcApproveMoney();
+        }
       }
       //发货通知单-删除行
       function handleDelete1(prop) {
@@ -287,10 +380,20 @@
         if (prop) {
           var params = { id: prop };
           var obj = await Supplierlist(params);
-          formData.supplierName = obj.records[0].name;
+          var supplier = obj.records[0] || {};
+          formData.supplierName = supplier.name;
+          // 带出供应商银行信息,允许后续编辑
+          formData.openingBank = supplier.openingBank || '';
+          formData.openingName = supplier.openingName || '';
+          formData.swiftCode = supplier.swiftCode || '';
+          formData.bankAccount = supplier.bankAccount || '';
         } else {
           formData.supplier = '';
           formData.supplierName = '';
+          formData.openingBank = '';
+          formData.openingName = '';
+          formData.swiftCode = '';
+          formData.bankAccount = '';
         }
       }
       function selectVirtualProducts() {
@@ -315,13 +418,34 @@
         SelectDeliveryNoticeModalRef.value.getTable();
       }
       function addDelivery(data) {
+        var xTable = DeliveryDoticeTableableRef.value!.getXTable();
+        // 当前子表已有数据,用于重复校验
+        var existList = [...xTable.data];
+        var addList: any[] = [];
         data.map((item) => {
+          // 通知单号重复或来源数据重复时,忽略新增
+          var isRepeat = existList.some((row) => {
+            if (item.id && row.sourceId && String(row.sourceId) === String(item.id)) {
+              return true;
+            }
+            return !!item.billCode && String(row.billCode) === String(item.billCode);
+          });
+          if (isRepeat) {
+            return;
+          }
           item.sourceId = item.id;
           item.id = undefined;
+          existList.push(item);
+          addList.push(item);
         });
-        var xTable = DeliveryDoticeTableableRef.value!.getXTable();
-        var arrDeliveryList = xTable.data.concat(data);
-        DeliveryDoticeTable.dataSource = arrDeliveryList;
+        if (addList.length === 0) {
+          message.warning('所选发货通知单已存在,无需重复添加!');
+          return;
+        }
+        if (addList.length < data.length) {
+          message.warning(`已忽略${data.length - addList.length}条重复的发货通知单!`);
+        }
+        DeliveryDoticeTable.dataSource = existList;
       }
       /**
        * 值改变事件触发-树控件回调
@@ -341,6 +465,7 @@
         activeKey,
         loading,
         formData,
+        typeOptions,
         setFieldsValue,
         handleFormChange,
         formItemLayout,
@@ -352,6 +477,8 @@
         formRef,
         handleDelete,
         handleDelete1,
+        calcApproveMoney,
+        handleFreightValueChange,
         Supplierlist,
         changeSupplier,
         SelectPrpductModalRef,

+ 124 - 24
src/views/purchase/payment/components/paymentForm.vue

@@ -29,7 +29,8 @@
 								id="saleInvoiceForm-applyBill" name="applyBill">
 								<ApiSelect :api="applyBillList" showSearch v-model:value="formData.applyBill"
 									:filterOption="true" resultField="records" labelField="billCode"
-									valueField="billCode" :params='{pageSize:-1,submit:1}' @change="changeApplyBill" />
+									valueField="billCode" :params="applyBillParams" @change="changeApplyBill"
+								@options-change="handleApplyBillOptionsChange" />
 
 								<a-button type="primary" style="width: 35%;" @click="viewDetail"> 查看详情(view
 									detail)</a-button>
@@ -43,7 +44,7 @@
 							</a-form-item>
 						</a-col>
 
-						<a-col :span="12">
+						<a-col :span="12" v-if="!isFreightPay">
 							<a-form-item label="采购订单(order Code)" v-bind="validateInfos.orderCode"
 								id="saleInvoiceForm-orderCode" name="orderCode">
 								<!-- <JDictSelectTag v-model:value="formData.orderCode" placeholder="请选择" 
@@ -53,6 +54,14 @@
 
 							</a-form-item>
 						</a-col>
+						<a-col :span="12" v-if="isFreightPay">
+							<a-form-item label="项目号(projectName)" v-bind="validateInfos.projectName"
+								id="saleInvoiceForm-projectName" name="projectName">
+								<JSelectMultiple v-model:value="formData.projectName"
+									placeholder="请选择项目号(select project)" :options="projectNameOptions"
+									page="false" showSearch />
+							</a-form-item>
+						</a-col>
 
 						<a-col :span="12">
 							<a-form-item label="币种(currency)" v-bind="validateInfos.currency"
@@ -105,7 +114,7 @@
 						</a-col>
 
 						<a-col :span="12">
-							<a-form-item label="备注(notes)" v-bind="validateInfos.quotationNotes"
+							<a-form-item label="备注(notes)" v-bind="validateInfos.notes"
 								id="saleInvoiceForm-notes" name="notes">
 								<!-- <a-input v-model:value="formData.notes" placeholder="请输入" allow-clear
 									AutoComplete="off"></a-input> -->
@@ -121,6 +130,7 @@
 		</purPaymentRequestFormModal>
 		<commissionPayRequestFormModal @register="registerModal" v-if="formData.payType=='佣金付款申请'">
 		</commissionPayRequestFormModal>
+		<freightPurOrderModal @register="registerModal" v-if="isFreightPay"></freightPurOrderModal>
 	</a-spin>
 </template>
 
@@ -128,6 +138,7 @@
 	import { defineComponent, ref, reactive, computed, toRaw, unref } from 'vue';
 	import { defHttp } from '/@/utils/http/axios';
 	import { queryDataById, saveOrUpdate, listPurPay, listCommissionPay } from '../paymentForm.api';
+	import { listRequest as listFreightPurOrder, queryDeliveryNoticeTable } from '../../freightPurchaseOrder/FreightPurOrder.api';
 	import { JVxeTable } from '/@/components/jeecg/JVxeTable';
 	import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
 	import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
@@ -136,8 +147,14 @@
 	import { useModal } from '/@/components/Modal';
 	import purPaymentRequestFormModal from '../../purPaymentRequest/components/purPaymentRequestFormModal.vue'
 	import commissionPayRequestFormModal from '../../commissionPayRequest/components/commissionPayRequestFormModal.vue'
+	import freightPurOrderModal from '../../freightPurchaseOrder/components/FreightPurOrderModal.vue'
 	import moment from 'moment';
 	const useForm = Form.useForm;
+	//物流类付款类型 -> 运费采购订单类型
+	const freightPayTypeMap = {
+		'物流付款申请': '月结款',
+		'物流预付款申请': '预付款'
+	};
 	export default defineComponent({
 		name: "paymentForm",
 		components: {
@@ -147,7 +164,8 @@
 			JDictSelectTag,
 			JSelectMultiple,
 			purPaymentRequestFormModal,
-			commissionPayRequestFormModal
+			commissionPayRequestFormModal,
+			freightPurOrderModal
 		},
 		props: {
 			formDisabled: {
@@ -162,8 +180,32 @@
 			const [registerModal, { openModal }] = useModal();
 			const loading = ref(false);
 			const formRef = ref();
-			var applyBillList = ref();
+			var applyBillList = ref<any>();
 			const orderCodeOptions = ref([]);
+			const projectNameOptions = ref<any[]>([]);
+			//申请单下拉数据源:固定入口,调用时按当前付款类型取值,避免切换类型时请求错乱/旧值残留
+			async function fetchApplyBillList(params) {
+				if (isFreightPay.value) {
+					//物流类付款:查询运费采购订单
+					return await listFreightPurOrder({ ...params, type: freightPayTypeMap[formData.payType] });
+				}
+				if (formData.payType == '采购付款申请') {
+					return await listPurPay(params);
+				}
+				if (formData.payType == '佣金付款申请') {
+					return await listCommissionPay(params);
+				}
+				return { records: [] };
+			}
+			//是否物流类付款(物流付款申请/物流预付款申请)
+			const isFreightPay = computed(() => freightPayTypeMap.hasOwnProperty(formData.payType));
+			//申请单下拉查询参数(物流类按运费采购订单类型过滤)
+			const applyBillParams = computed(() => {
+				if (isFreightPay.value) {
+					return { pageSize: -1, type: freightPayTypeMap[formData.payType] };
+				}
+				return { pageSize: -1, submit: 1 };
+			});
 			const formData = reactive<Record<string, any>>({
 				id: '',
 				status: undefined,
@@ -183,11 +225,14 @@
 				applyMoney: '',
 				paymentMoney: '',
 				paymentRate: '',
-				orderCode: ''
+				orderCode: '',
+				projectName: ''
 			});
+			//申请单下拉接口固定为该入口
+			applyBillList.value = fetchApplyBillList;
 
 			//表单验证
-			const validatorRules = reactive({
+			const validatorRules = reactive<Record<string, any>>({
 				payType: [
 					{ required: true, message: '请选择付款类型(select payType)' }
 				],
@@ -200,6 +245,7 @@
 				orderCode: [
 					{ required: true, message: '请选择付款订单' }
 				],
+				projectName: [],
 			});
 			const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
 			const dbData = {};
@@ -244,6 +290,33 @@
 				})
 				//赋值
 				Object.assign(formData, tmpData);
+				//编辑回填申请单接口与项目号选项
+				initByPayType(formData.payType);
+			}
+			//按付款类型初始化:必填规则、项目号选项
+			function initByPayType(payType) {
+				var isFreight = freightPayTypeMap.hasOwnProperty(payType);
+				//物流类显示项目号(非必填),其余显示采购订单(必填)
+				validatorRules.orderCode = isFreight ? [] : [{ required: true, message: '请选择付款订单' }];
+				if (isFreight && formData.applyBillId) {
+					loadProjectNameOptions(formData.applyBillId);
+				}
+			}
+			//加载运费采购订单子表"发货通知单"的项目号选项
+			async function loadProjectNameOptions(freightId) {
+				if (!freightId) {
+					projectNameOptions.value = [];
+					return;
+				}
+				var noticeList = (await queryDeliveryNoticeTable(freightId)) || [];
+				var projectArr: any[] = [];
+				(noticeList || []).map((item) => {
+					var name = item.projectName || item.project;
+					if (name && projectArr.indexOf(name) < 0) {
+						projectArr.push(name);
+					}
+				});
+				projectNameOptions.value = projectArr.map((item) => ({ label: item, value: item }));
 			}
 			const { transformData } = useValidateAntFormAndTable();
 			//获取表单信息
@@ -291,10 +364,12 @@
 			}
 			//切换付款类型
 			function handleChange(data) {
+				//即时更新付款类型,保证申请单的查询参数与数据源同步刷新
+				formData.payType = data
+				formData.notes = ''
 				formData.applyBillId = ''
 				formData.applyBill = ''
 				orderCodeOptions.value = []
-				applyBillList.value = [];
 				formData.orderCode = ''
 				formData.applyBillId = ''
 				formData.seller = ''
@@ -304,19 +379,22 @@
 				formData.bankAccount = ''
 				formData.swiftCode = ''
 				formData.applyMoney = ''
-				
-				if (data == '采购付款申请') {
-					applyBillList.value = listPurPay
-				} else if (data == '佣金付款申请') {
-					applyBillList.value = listCommissionPay
-				} else if (data == '佣金预付款') { //待开发
-
-				} else if (data == '采购预付款') {//待开发
-
+				formData.projectName = ''
+				projectNameOptions.value = []
+				//按付款类型切换申请单接口与必填项
+				initByPayType(data)
+			}
+			//申请单下拉数据为空时,清空申请单已选值
+			function handleApplyBillOptionsChange(options) {
+				if (!options || options.length == 0) {
+					formData.applyBill = ''
+					formData.applyBillId = ''
+					orderCodeOptions.value = []
+					projectNameOptions.value = []
 				}
 			}
 			async function changeApplyBill(value) {
-				var result = {}
+				var result: any = {}
 				var param = { billCode: value }
 				if (formData.payType == '采购付款申请') {
 					result = await listPurPay(param)
@@ -324,10 +402,17 @@
 					formData.afterId = result.records[0].afterId
 				} else if (formData.payType == '佣金付款申请') {
 					result = await listCommissionPay(param)
-				} else if (formData.payType == '佣金付款申请') {//待开发
+					
+				} else if (formData.payType == '佣金预付款') {//待开发
 
-				} else if (formData.payType == '佣金付款申请') {  //待开发
+				} else if (formData.payType == '采购预付款') {  //待开发
 
+				} else if (isFreightPay.value) {
+					//物流类付款:查询运费采购订单
+					result = await listFreightPurOrder({ billCode: value, type: freightPayTypeMap[formData.payType] })
+				}
+				if (!result.records || result.records.length == 0) {
+					return;
 				}
 				
 				formData.applyBillId = result.records[0].id
@@ -338,6 +423,14 @@
 				formData.bankAccount = result.records[0].bankAccount
 				formData.swiftCode = result.records[0].swiftCode
 				formData.applyMoney = result.records[0].approveMoney
+				formData.notes = result.records[0].notes
+				if (isFreightPay.value) {
+					//物流类:项目号取运费采购订单子表"发货通知单",多选
+					await loadProjectNameOptions(formData.applyBillId)
+					formData.projectName = ''
+					formData.orderCode = ''
+					return;
+				}
 				// 解析sourceCode字段,逗号分隔转数组作为下拉选项
 				const sourceCode = result.records[0].sourceCode || ''
 				if (sourceCode) {
@@ -354,18 +447,21 @@
 				if (formData.applyBillId == '') {
 					message.warning('请先选择申请单!')
 				} else {
-					var record = {}
+					var record: any = {}
 					var param = { id: formData.applyBillId }
 					if (formData.payType == '采购付款申请') {
 						record = await listPurPay(param)
 					} else if (formData.payType == '佣金付款申请') {
 						record = await listCommissionPay(param)
-					} else if (formData.payType == '佣金付款申请') {//待开发
+					} else if (formData.payType == '佣金预付款') {//待开发
 
-					} else if (formData.payType == '佣金付款申请') {  //待开发
+					} else if (formData.payType == '采购预付款') {  //待开发
 
+					} else if (isFreightPay.value) {
+						//物流类:查看运费采购订单详情
+						record = await listFreightPurOrder(param)
 					}
-					record = record.records[0]
+					record = record.records ? record.records[0] : {}
 					openModal(true, {
 						record,
 						isUpdate: true,
@@ -394,6 +490,10 @@
 				viewDetail,
 				registerModal,
 				orderCodeOptions,
+				projectNameOptions,
+				isFreightPay,
+				applyBillParams,
+				handleApplyBillOptionsChange,
 			}
 		}
 	});

+ 3 - 0
src/views/purchase/purPaymentRequest/components/purPaymentRequestForm.vue

@@ -198,6 +198,9 @@
       const validatorRules = reactive({
         supplier: [{ required: true, message: '请选择供应商(select supplier)' }],
         currency: [{ required: true, message: '请选择币种(select currency)' }],
+        payee: [{ required: true, message: '请填写收款人(no payee)' }],
+        openingBank: [{ required: true, message: '请填写开户行(no openingBank)' }],
+        bankAccount: [{ required: true, message: '请填写银行账号(no bankAccount)' }],
       });
       const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
       const dbData = {};

+ 6 - 0
src/views/purchase/purchaseInquiryForm/PurchaseInquiryForm.data.ts

@@ -105,6 +105,12 @@ export const columns: BasicColumn[] = [
       align:"center",
       dataIndex: 'createBy',
     },
+	   {
+		title: '制单时间',
+		align:"center",
+		dataIndex: 'createTime',
+		width:180,
+	   },
 ];
 
 //子表表格配置

+ 17 - 4
src/views/purchase/purchaseOrder/PurchaseOrderForm.data.ts

@@ -46,11 +46,18 @@ export const columns: BasicColumn[] = [
      width:280,
    dataIndex: 'supplierName'
   },
+  
   {
-    title: '优先级(priority)',
-    align: 'center',
-    dataIndex: 'priority_dictText',
+   title: '币种(currency)',
+   align:"center",
+   ellipsis:true,
+   dataIndex: 'currency'
   },
+  // {
+  //   title: '优先级(priority)',
+  //   align: 'center',
+  //   dataIndex: 'priority_dictText',
+  // },
   {
     title: '产品分类(production class)',
     align: 'center',
@@ -167,10 +174,16 @@ export const columns: BasicColumn[] = [
     width: 200,
   },
    {
-      title: '制单人',
+      title: '创建人',
       align:"center",
       dataIndex: 'createBy',
     },
+	   {
+		title: '创建时间',
+		align:"center",
+		dataIndex: 'createTime',
+		width:180,
+	   },
 	{
 	   title: '销售附件(attachs)',
 	   align:"center",

+ 40 - 3
src/views/purchase/purchaseOrder/PurchaseOrderFormList.vue

@@ -100,7 +100,7 @@
 			  </a-form-item>
 			</a-col>
 			
-            <a-col :lg="8">
+           <!-- <a-col :lg="8">
               <a-form-item name="purchaseman">
                 <template #label><span title="采购员(purchaseman)">采购员(purchaseman)</span></template>
                 <JSelectUser v-model:value="queryParam.purchaseman" placeholder="请选择" :multiple="false" />
@@ -111,7 +111,7 @@
                 <template #label><span title="采购部门(purchase saleDepartment)">采购部门(purchase department)</span></template>
                 <JSelectDept v-model:value="queryParam.purchaseDepartment" :multiple="false" />
               </a-form-item>
-            </a-col>
+            </a-col> -->
             <a-col :lg="8">
               <a-form-item name="submit">
                 <template #label><span title="提交(submit)">提交(submit)</span></template>
@@ -140,6 +140,43 @@
                 </a-select>
               </a-form-item>
             </a-col>
+			
+			<a-col :lg="8">
+			  <a-form-item name="purchaseDepartment" >
+			    <template #label><span title="采购部门(purchase department)">采购部门(purchase department)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.purchaseDepartment"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+				  page="false"
+				  showSearch
+				/>
+			    <!-- <JInput
+			      placeholder="请输入采购部门(purchase department)"
+			      v-model:value="queryParam.purchaseDepartment"
+			      allow-clear
+			      AutoComplete="off"
+			    /> -->
+			  </a-form-item>
+			</a-col>
+			<a-col :lg="8">
+			  <a-form-item name="purchaseman">
+			    <template #label><span title="采购员(purchaseman)">采购员(purchaseman)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.purchaseman"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_user,realname,username,del_flag=0 and 
+				  id in(select user_id from sys_user_depart where dep_id 
+				  in(select id from sys_depart where del_flag=0 and 
+				  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+				  page="false"
+				  showSearch
+				/>
+			    <!-- <JInput placeholder="请输入采购员(purchaseman)" v-model:value="queryParam.purchaseman" allow-clear AutoComplete="off" /> -->
+			  </a-form-item>
+			</a-col>
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -255,7 +292,7 @@
     ProjectOption
   } from './PurchaseOrderyForm.api';
   import { cloneDeep } from 'lodash-es';
-  import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput,JSelect,JSelectMultiple } from '/@/components/Form';
   import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
   import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
   import ViewFileListModal from './components/ViewFileListModal.vue';

+ 1 - 0
src/views/purchase/purchaseOrder/components/AfterPurchaseOrderFormForm.vue

@@ -566,6 +566,7 @@
         currency: [{ required: true, message: '请选择币种(select currency)' }],
         exchangeRate: [{ required: true, message: '请维护本月税率' }],
         organize: [{ required: true, message: '请选择组织(select organize)' }],
+		delivery: [{ required: true, message: '请选择发货方式(select delivery)' }],
         // currency:[
         //   { required: true, message: '请选择币种(currency)' }
         // ],

+ 19 - 0
src/views/purchase/purchaseOrder/components/PurchaseOrderFormForm.vue

@@ -489,6 +489,7 @@
 				currency: [{ required: true, message: '请选择币种(select currency)' }],
 				exchangeRate: [{ required: true, message: '请维护本月税率' }],
 				organize: [{ required: true, message: '请选择组织(select organize)' }],
+				delivery: [{ required: true, message: '请选择发货方式(select delivery)' }],
 				// currency:[
 				//   { required: true, message: '请选择币种(currency)' }
 				// ],
@@ -698,6 +699,7 @@
 			function addFormSaleOrder(data) {
 
 				let indexNum = 0;
+				let temporarySupplierNum = 0;
 				data.forEach((item) => {
 					item.model = item.childModel;
 					item.sourceId = item.childId;
@@ -707,6 +709,10 @@
 					item.taxAmount = (item.taxPrice * item.quantity).toFixed(2);
 					formData.notes = data[0].notes;
 					item.notes = item.childNotes;
+					
+					if(item.temporarySupplier != 2 && item.supplierId !=null && item.supplierId !=''){
+						temporarySupplierNum++;
+					}
 					if (indexNum < data.length) { // 安全检查,防止越界
 						if (data[indexNum].currencyGys == null || data[indexNum].currencyGys == '') {
 							indexNum++;
@@ -714,6 +720,11 @@
 					}
 					// item.productClass =data[0].productClass
 				});
+				
+				if(temporarySupplierNum > 0){
+					message.error('临时供应商,无法采购');
+					return false;
+				}
 				var xTable = purOrderFormShipFormProductTableRef.value!.getXTable();
 				var arrProduct = xTable.data.concat(data);
 				purOrderFormShipFormProductTable.dataSource = arrProduct;
@@ -754,6 +765,7 @@
 			function addFromQuotation(data) {
 				let supplierName = '';
 				let supplierState = true;
+				let temporarySupplierNum = 0;
 				data.map((item) => {
 
 					if (supplierName != '' && supplierName != item.selectionSupplier) {
@@ -765,12 +777,19 @@
 					item.sourceId = item.childId;
 					item.sourceType = 'Quo' + item.childId;
 					item.sourceCode = item.billCode;
+					if(item.temporarySupplier != 2 ){
+						temporarySupplierNum++;
+					}
 				});
 				if (supplierState == false) {
 					message.error('报价单非单一供应商,无法选中');
 					return false;
 				}
 
+				if(temporarySupplierNum > 0){
+					message.error('临时供应商,无法采购');
+					return false;
+				}
 				var arrProduct = data.concat(purOrderFormShipFormProductTable.dataSource);
 				purOrderFormShipFormProductTable.dataSource = arrProduct;
 				notAllowEdit.value = true;

+ 7 - 1
src/views/purchase/purchaseQuotationFrm/PurchaseQuotationForm.data.ts

@@ -114,10 +114,16 @@ export const columns: BasicColumn[] = [
       dataIndex: 'quotationType',
      },
    {
-      title: '制单人',
+      title: '创建人',
       align:"center",
       dataIndex: 'createBy',
     },
+	   {
+		title: '创建时间',
+		align:"center",
+		dataIndex: 'createTime',
+		width:180,
+	   },
 ];
 
 //子表表格配置

+ 7 - 1
src/views/purchase/selectionQuotationForm/SelectionQuotationForm.data.ts

@@ -92,10 +92,16 @@ export const columns: BasicColumn[] = [
       dataIndex: 'quotationType',
      },
    {
-      title: '制单人',
+      title: '创建人',
       align:"center",
       dataIndex: 'createBy',
     },
+	   {
+		title: '创建时间',
+		align:"center",
+		dataIndex: 'createTime',
+		width:180,
+	   },
 ];
 
 //子表表格配置

+ 9 - 2
src/views/report/deliveryNotice/deliveryNoticeList.vue

@@ -265,7 +265,7 @@
   });
 
 
-  const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
+  const [registerTable, { reload, getSelectRows }, { rowSelection, selectedRowKeys }] = tableContext;
 
   /**
    * 新增事件
@@ -417,7 +417,14 @@
       message.warning('请选择数据');
     } else {
       var ids = selectedRowKeys.value.join(',');
-      SetCloseReasonModalRef.value.getTable(ids)
+      var record = null;
+      if (selectedRowKeys.value.length == 1) {
+        var rows = getSelectRows();
+        if (rows && rows.length == 1) {
+          record = rows[0];
+        }
+      }
+      SetCloseReasonModalRef.value.getTable(ids, record)
     }
   }
   function successfullyClosed(formData,id){

+ 6 - 0
src/views/saleCode/deliveryNotice/delivertNoticeForm.data.ts

@@ -104,6 +104,12 @@ export const columns: BasicColumn[] = [
     align:"center",
     dataIndex: 'close_dictText',
    },
+   {
+    title: '创建时间',
+    align:"center",
+    dataIndex: 'createTime',
+	width:180,
+   },
 ];
 
 //子表表格配置

+ 36 - 3
src/views/saleCode/deliveryNotice/deliveryNoticeList.vue

@@ -73,7 +73,7 @@
                 <JDictSelectTag v-model:value="queryParam.maker" placeholder="请选择" dictCode="factory" />
               </a-form-item>
             </a-col>
-            <a-col :lg="8">
+           <!-- <a-col :lg="8">
               <a-form-item name="saleDepartment">
                 <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
                 <JInput placeholder="请输入销售部门(sale department)" v-model:value="queryParam.saleDepartment" allow-clear AutoComplete="off" />
@@ -84,7 +84,7 @@
                 <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
                 <JInput placeholder="请输入业务员(salesman)" v-model:value="queryParam.salesman" allow-clear AutoComplete="off" />
               </a-form-item>
-            </a-col>
+            </a-col> -->
             <a-col :lg="8">
               <a-form-item name="sourceCode">
                 <template #label><span title="来源(sourceCode)">来源(sourceCode)</span></template>
@@ -115,6 +115,39 @@
                 <JDictSelectTag v-model:value="queryParam.close" placeholder="请选择" dictCode="yes_or_no" />
               </a-form-item>
             </a-col>
+			
+			
+			<a-col :lg="8">
+			  <a-form-item name="saleDepartment" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.saleDepartment"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			<a-col :lg="8">
+			  <a-form-item name="salesman" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.salesman"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_user,realname,username,del_flag=0 and 
+				  id in(select user_id from sys_user_depart where dep_id 
+				  in(select id from sys_depart where del_flag=0 and 
+				  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			
+			
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -201,7 +234,7 @@
     getExportXlsMark,
     getExportXlsSigned
   } from './delivertNoticeForm.api';
-  import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput,JSelect,JSelectMultiple } from '/@/components/Form';
   import ViewFileListModal from './components/ViewFileListModal.vue';
   import deliveryNoticeFormModal from './components/deliveryNoticeFormModal.vue';
   import SetCloseReasonModal from '../../publicComponents/SetCloseReasonModal.vue'

+ 34 - 3
src/views/saleCode/quotation/quotation.vue

@@ -138,7 +138,7 @@
               </a-form-item>
             </a-col>
 			
-			<a-col :lg="8">
+			<!-- <a-col :lg="8">
 			  <a-form-item name="saleDepartment" :label-col="{ style: 'width: 200px' }">
 			    <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
 			    <JSelectDept rowKey="orgCode" v-model:value="queryParam.saleDepartment" :multiple="false" />
@@ -158,9 +158,40 @@
 			      :params="{ pageSize: -1 }"
 			      optionFilterProp="label"
 			    />
-			    <!-- <JSelectUser v-model:value="queryParam.salesman" placeholder="请选择" :multiple="false" /> -->
 			  </a-form-item>
 			</a-col>
+			 -->
+			
+			<a-col :lg="8">
+			  <a-form-item name="saleDepartment" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.saleDepartment"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			<a-col :lg="8">
+			  <a-form-item name="salesman" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.salesman"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_user,realname,username,del_flag=0 and 
+				  id in(select user_id from sys_user_depart where dep_id 
+				  in(select id from sys_depart where del_flag=0 and 
+				  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -259,7 +290,7 @@
 	SaleManOption
   } from './quotationForm.api';
   import { cloneDeep } from 'lodash-es';
-  import { JDictSelectTag, ApiSelect, JInput ,JSelect} from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput ,JSelect,JSelectMultiple} from '/@/components/Form';
   import SetToExamine from './components/SetToExamine.vue';
   import quotationFormModal from './components/quotationFormModal.vue';
   import ViewHistoryVersionModal from './components/ViewHistoryVersionModal.vue';

+ 12 - 0
src/views/saleCode/quotation/quotationForm.data.ts

@@ -114,6 +114,12 @@ export const columns: BasicColumn[] = [
     dataIndex: 'salesmanName',
     width:120,
    },
+   {
+    title: '销售部门(saleDepartmentName)',
+    align:"center",
+    dataIndex: 'saleDepartmentName',
+    width:120,
+   },
    {
     title: '金额(amount)',
     align:"center",
@@ -213,6 +219,12 @@ export const columns: BasicColumn[] = [
      width:120,
     dataIndex: 'version'
    },
+   {
+    title: '创建时间',
+    align:"center",
+    dataIndex: 'createTime',
+	width:180,
+   },
 ];
 
 //子表表格配置

+ 6 - 0
src/views/saleCode/saleInquiryForm/SaleInquiryForm.data.ts

@@ -171,6 +171,12 @@ export const columns: BasicColumn[] = [
       width:350,
       slots: { customRender: 'saleAttachs' },
     },
+   {
+    title: '创建时间',
+    align:"center",
+    dataIndex: 'createTime',
+	width:180,
+   },
 ];
 
 //子表表格配置

+ 39 - 7
src/views/saleCode/saleInquiryForm/SaleInquiryFormList.vue

@@ -93,12 +93,12 @@
                 <JInput placeholder="请输入厂家(maker)" v-model:value="queryParam.maker" allow-clear AutoComplete="off" />
               </a-form-item>
             </a-col>
-            <a-col :lg="8">
+           <!-- <a-col :lg="8">
               <a-form-item name="saleDepartment" >
                 <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
                 <JSelectDept rowKey="orgCode" v-model:value="queryParam.saleDepartment" :multiple="false" />
               </a-form-item>
-            </a-col>
+            </a-col> -->
 
             <a-col :lg="8">
               <a-form-item name="status" >
@@ -116,10 +116,10 @@
             <a-col :lg="8">
               <a-form-item name="inquiryTeam" >
                 <template #label><span title="采购询价组(procurement inquiry team)">采购询价组(procurement inquiry team)</span></template>
-                <JSelectDept v-model:value="queryParam.inquiryTeam" :multiple="false" />
+                <JSelectDept v-model:value="queryParam.inquiryTeam" :defaultExpandLevel="'1'" :multiple="false" />
               </a-form-item>
             </a-col>
-            <a-col :lg="8">
+            <!-- <a-col :lg="8">
               <a-form-item name="salesman" >
                 <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
                 <ApiSelect
@@ -133,9 +133,8 @@
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"
                 />
-                <!-- <JSelectUser v-model:value="queryParam.salesman" placeholder="请选择" :multiple="false" /> -->
               </a-form-item>
-            </a-col>
+            </a-col> -->
             <a-col :lg="8">
               <a-form-item name="submit" >
                 <template #label><span title="提交(submit)">提交(submit)</span></template>
@@ -165,6 +164,39 @@
                 <JInput placeholder="客户联系人(customer contact)" v-model:value="queryParam.liaisonInfo" allow-clear />
               </a-form-item>
             </a-col>
+			
+			
+			<a-col :lg="8">
+			  <a-form-item name="saleDepartment" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.saleDepartment"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			<a-col :lg="8">
+			  <a-form-item name="salesman" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.salesman"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_user,realname,username,del_flag=0 and 
+				  id in(select user_id from sys_user_depart where dep_id 
+				  in(select id from sys_depart where del_flag=0 and 
+				  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			
+			
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -263,7 +295,7 @@
   } from './SaleInquiryForm.api';
   import { cloneDeep } from 'lodash-es';
   import { defHttp } from '/@/utils/http/axios';
-  import { JDictSelectTag, ApiSelect, JInput ,JSelect} from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput ,JSelect,JSelectMultiple} from '/@/components/Form';
   import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
   import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
   import SelecSaleInquiryModal from './components/SelecSaleInquiryModal.vue';

+ 1 - 1
src/views/saleCode/saleInquiryForm/components/SaleInquiryFormForm.vue

@@ -124,7 +124,7 @@
 						<a-col :span="12">
 							<a-form-item label="采购询价组(procurement inquiry team)" v-bind="validateInfos.inquiryTeam"
 								id="SaleInquiryFormForm-inquiryTeam" name="inquiryTeam">
-								<JSelectDept v-model:value="formData.inquiryTeam" :multiple="false" />
+								<JSelectDept v-model:value="formData.inquiryTeam" :defaultExpandLevel="'1'" :multiple="false" />
 							</a-form-item>
 						</a-col>
 						<a-col :span="12">

+ 12 - 2
src/views/saleCode/saleInterfaceSync/SaleInterfaceSync.data.ts

@@ -239,9 +239,19 @@ export const columns: BasicColumn[] = [
     dataIndex:'inquiryNotes'
   },
    {
-    title: '获取日期',
+    title: '系统创建人',
     align:"center",
-    dataIndex: 'createdTime'
+    dataIndex: 'createBy'
+   },
+   {
+    title: '系统创建日期',
+    align:"center",
+    dataIndex: 'createTime'
+   },
+   {
+    title: '最后修改用户',
+    align:"center",
+    dataIndex: 'updateBy'
    },
    {
     title: '最后修改日期',

+ 6 - 0
src/views/saleCode/salesInvoice/salesInvoiceForm.data.ts

@@ -131,6 +131,12 @@ export const columns: BasicColumn[] = [
     align: 'center',
     dataIndex: 'fnumber',
   },
+   {
+    title: '创建时间',
+    align:"center",
+    dataIndex: 'createTime',
+	width:180,
+   },
 ];
 
 //子表表格配置

+ 6 - 0
src/views/saleCode/salesOrder/SaleOrderForm.data.ts

@@ -223,6 +223,12 @@ export const columns: BasicColumn[] = [
     align:"center",
     dataIndex: 'notified',
    },
+   {
+    title: '创建时间',
+    align:"center",
+    dataIndex: 'createTime',
+	width:180,
+   },
    // {
    //  title: '发票金额(invoice money)',
    //  align:"center",

+ 36 - 4
src/views/saleCode/salesOrder/SaleOrderFormList.vue

@@ -111,7 +111,7 @@
                 <JInput placeholder="请输入客户订单号(customer order)" v-model:value="queryParam.customerOrder" allow-clear ></JInput>
               </a-form-item>
             </a-col>
-            <a-col :lg="8">
+            <!-- <a-col :lg="8">
               <a-form-item name="saleDepartment">
                 <template #label><span title="销售部门(sale saleDepartment)">销售部门(sale department)</span></template>
                 <JSelectDept v-model:value="queryParam.saleDepartmentName" :multiple="false" :titleKey="'departName'"  :defaultExpandLevel="'1'" 
@@ -133,9 +133,8 @@
                   :params="{ pageSize: -1 }"
                   optionFilterProp="label"
                 />
-                <!-- <JSelectUser v-model:value="queryParam.salesman" placeholder="请选择" :multiple="false" /> -->
               </a-form-item>
-            </a-col>
+            </a-col> -->
             <a-col :lg="8">
               <a-form-item name="submit">
                 <template #label><span title="提交(submit)">状态(submit)</span></template>
@@ -202,6 +201,39 @@
 			    <JInput placeholder="客户联系人(customer contact)" v-model:value="queryParam.liaisonInfo" allow-clear />
 			  </a-form-item>
 			</a-col>
+			
+			
+			<a-col :lg="8">
+			  <a-form-item name="saleDepartment" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="销售部门(sale department)">销售部门(sale department)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.saleDepartment"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_depart,depart_name,org_code,del_flag=0 and (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%')"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			<a-col :lg="8">
+			  <a-form-item name="salesman" :label-col="{ style: 'width: 200px' }">
+			    <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
+				<JSelectMultiple
+				  v-model:value="queryParam.salesman"
+				  placeholder=""
+				  :multiple="true"
+				  dictCode="sys_user,realname,username,del_flag=0 and 
+				  id in(select user_id from sys_user_depart where dep_id 
+				  in(select id from sys_depart where del_flag=0 and 
+				  (org_code like 'A02A01%' or org_code like 'A02A02%' or org_code like 'A02A03%'))) order by realname"
+				  page="false"
+				  showSearch
+				/>
+			  </a-form-item>
+			</a-col>
+			
+			
           </template>
           <a-col :xl="6" :lg="7" :md="8" :sm="24">
             <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
@@ -303,7 +335,7 @@
     shipOption
   } from './SaleOrderyForm.api';
   import { cloneDeep } from 'lodash-es';
-  import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';
+  import { JDictSelectTag, ApiSelect, JInput,JSelect,JSelectMultiple} from '/@/components/Form';
   import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
   import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
   import ViewFileListModal from './components/ViewFileListModal.vue';