Просмотр исходного кода

后端需求:私有协议应收-跟单费用应收-结算报表-保险公司报表-结算明细、开票明细按钮点击跳转页面增加携带当前数据月份参数

@dongkboy 3 недель назад
Родитель
Сommit
cdc5540d46

+ 1 - 1
.env.development

@@ -17,4 +17,4 @@ VITE_APP_DISABLE_DEVTOOL = false
 # 是否开启代理
 VITE_OPEN_PROXY = false
 # 是否开启开发者工具
-VITE_OPEN_DEVTOOLS = false
+VITE_OPEN_DEVTOOLS = true

+ 1 - 0
src/views/receivable/documentary/documentaryRecord.vue

@@ -527,6 +527,7 @@ const getSummaries = (param) => {
 onMounted(() => {
   if (route.query.invoiceType) {
     form.value.partnerCompanyId = route.query.partnerCompanyId || ''
+    form.value.signMonth = route.query.signMonth || ''
     if (route.query.invoiceType == '2') {
       form.value.accountsReceivable = '10'
     } else {

+ 10 - 22
src/views/receivable/documentary/documentaryReport.vue

@@ -546,6 +546,7 @@ const initData1 = () => {
 }
 const initData2 = () => {
   api.settlementApi.followSettlementExcel({
+    ...recordForm1.value,
     agreementType: '2',
     settlementId: recordForm1.value.settlementId,
     partnerCompanyId: recordForm1.value.partnerCompanyId,
@@ -629,13 +630,16 @@ const handleReset = (type) => {
   switch (type) {
     case 1:
       recordForm.value = {
+        signMonth: '',
         companyId: '',
         time: [],
         status: ''
-      }
+      },
+       initData1()
       break;
     case 2:
       recordForm1.value = {
+        signMonth: '',
         settlementId: '',
         companyId: '',
         invoiceParty: '',
@@ -644,34 +648,17 @@ const handleReset = (type) => {
         settlementPerson: '',
         settlementTime: [],
         invoiceId: ''
-      }
-      break;
-    case 3:
-      recordForm2.value = {
-        invoiceId: '',
-        companyId: '',
-        invoiceParty: '',
-        settlementPerson: '',
-        settlementTime: [],
-        status: ''
-      }
-      break;
-    case 4:
-      recordForm3.value = {
-        invoiceId: '',
-        companyId: '',
-        invoiceParty: '',
-        settlementPerson: '',
-        settlementTime: [],
-        status: ''
-      }
+      },
+       initData2()
       break;
+
   }
 }
 // 结算明细
 const handleSettlementDetail = (row) => {
   activeName.value = '2'
   recordForm1.value.partnerCompanyId = row.partnerCompanyId
+  recordForm1.value.signMonth = row.month
   if (row.invoiceType == '2') {
     recordForm1.value.invoiceRiskType = '10'
   } else {
@@ -686,6 +673,7 @@ const handleInvoiceRecord = (row) => {
     query: {
       partnerCompanyId: row.partnerCompanyId,
       invoiceType: row.invoiceType,
+      signMonth: row.month,
     }
   })
 }