|
@@ -284,14 +284,28 @@ export default {
|
|
|
dispatchBillSn: obj.dispatchBillSn
|
|
|
}
|
|
|
_this.spinning = true
|
|
|
- printFun(dispatchDetailPrint, Object.assign(params, obj || {}), type, taskName, () => { _this.spinning = false })
|
|
|
+ printFun(
|
|
|
+ dispatchDetailPrint,
|
|
|
+ Object.assign(params, obj || {}),
|
|
|
+ type,
|
|
|
+ taskName,
|
|
|
+ (res) => {
|
|
|
+ _this.$message.info(res.message)
|
|
|
+ _this.spinning = false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ billType: 'DISPATCH',
|
|
|
+ billSn: params.dispatchBillSn,
|
|
|
+ billNo: obj.dispatchBillNo,
|
|
|
+ printType: taskName + '打印'
|
|
|
+ })
|
|
|
},
|
|
|
// 打印记录
|
|
|
viewPrint (row) {
|
|
|
this.showRecordModal = true
|
|
|
this.$refs.recordModal.setData(row, {
|
|
|
- billType: 'SETTLE_RECEIPT',
|
|
|
- billSn: row.accountReceiptSn
|
|
|
+ billType: 'DISPATCH',
|
|
|
+ billSn: row.dispatchBillSn
|
|
|
})
|
|
|
},
|
|
|
// 重置
|