lilei 3 tygodni temu
rodzic
commit
5464b3e105

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1758866497685
+  "version": 1758870170260
 }

+ 28 - 0
src/api/settle.js

@@ -126,6 +126,34 @@ export const settleUnitExport = params => {
   })
 }
 
+// 单位首付款记录详情打印
+export const settleUnitDetailPrint = params => {
+  const data = {
+    url: `/settle/unit/record/print/${params.id}/${params.type}/${params.printDate}/${params.printNo}`,
+    data: params,
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(params.type == 'INK' ? '喷墨打印' : '针式打印')
+    }
+  }
+  // 喷墨打印
+  if (params.type == 'INK') {
+    data.responseType = 'blob'
+  }
+  return axios.request(data)
+}
+// 单位首付款记录详情导出
+export const settleUnitDetailExport = params => {
+  return axios.request({
+    url: `/settle/unit/record/excel/${params.id}`,
+    data: params,
+    method: 'post',
+    responseType: 'blob',
+    headers: {
+      'module': encodeURIComponent('单位首付款记录详情导出')
+    }
+  })
+}
 
 //  单位收付款 全部单据
 export const settleInfoAllList = (params) => {

+ 5 - 5
src/views/financialManagement/companyCollectionPayment/detail.vue

@@ -71,7 +71,7 @@ import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import PrintPanel from '@/views/common/printPanel.vue'
 import { hdPrint } from '@/libs/JGPrint'
-import { settleUnitDetailList, settleUnitDetail } from '@/api/settle'
+import { settleUnitDetailList, settleUnitDetail, settleUnitDetailPrint, settleUnitDetailExport } from '@/api/settle'
 export default {
   name: 'CompanyCollectionPaymentDetail',
   components: { STable, VSelect, PrintPanel },
@@ -85,7 +85,7 @@ export default {
         { title: '序号', dataIndex: 'no', align: 'center', width: '5%' },
         { title: '单据号', dataIndex: 'bizNo', align: 'center', width: '20%', customRender: function (text) { return text || '--' } },
         { title: '单据类型', dataIndex: 'bizTypeDictValue', align: 'center', width: '15%', customRender: function (text) { return text || '--' } },
-        { title: '审核时间', dataIndex: 'creatDate', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '审核时间', dataIndex: 'createDate', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '总款数', dataIndex: 'bizTotalCategory', align: 'center', width: '10%', customRender: function (text) { return (text || text == 0) ? text : '--' } },
         { title: '总数量', dataIndex: 'bizTotalQty', align: 'center', width: '10%', customRender: function (text) { return (text || text == 0) ? text : '--' } },
         { title: '金额', dataIndex: 'totalAmount', align: 'right', width: '10%', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
@@ -135,14 +135,14 @@ export default {
     handlePrint (type, printerType) {
       const _this = this
       _this.spinning = true
-      let url = salesDetailPrint
+      let url = settleUnitDetailPrint
       const params = {
-        sn: this.$route.params.id,
+        id: this.$route.params.id,
         printNo: this.printNo ? 1 : 0,
         printDate: this.printDate ? 1 : 0
       }
       if (type == 'export') { //  导出
-        url = salesDetailExport
+        url = settleUnitDetailExport
       }
       // 打印或导出
       hdPrint(printerType, type, url, params, '销售单', function () {