|
@@ -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 () {
|