|
@@ -121,6 +121,11 @@
|
|
<span class="link-bule" v-if="$hasPermissions('B_dispatchDetail')" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
|
|
<span class="link-bule" v-if="$hasPermissions('B_dispatchDetail')" @click="handleDetail(record,1)">{{ record.dispatchBillNo }}</span>
|
|
<span v-else>{{ record.dispatchBillNo }}</span>
|
|
<span v-else>{{ record.dispatchBillNo }}</span>
|
|
</template>
|
|
</template>
|
|
|
|
+ <!-- 备货打印状态 -->
|
|
|
|
+ <template slot="printStatus" slot-scope="text, record">
|
|
|
|
+ <span v-if="record.printStatus=='NO_PRINT'" class="link-bule" @click="handlePrintStatus(record)">{{ record.printStatusDictValue }}</span>
|
|
|
|
+ <span v-else>{{ record.printStatusDictValue }}</span>
|
|
|
|
+ </template>
|
|
<div slot="costTitle">
|
|
<div slot="costTitle">
|
|
<a-tooltip placement="top">
|
|
<a-tooltip placement="top">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
@@ -163,6 +168,16 @@
|
|
<salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
|
|
<salesDetail v-if="detailType==0" ref="salesDetail" :bizSn="bizSn"></salesDetail>
|
|
<dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
|
|
<dispatchDetail v-if="detailType==1" ref="dispatchDetail" :bizSn="bizSn"></dispatchDetail>
|
|
</commonModal>
|
|
</commonModal>
|
|
|
|
+ <!-- 操作提示 -->
|
|
|
|
+ <commonModal modalTit="操作提示" :openModal="showPrintModal" @cancel="canselModal" @ok="updatePrintStatus">
|
|
|
|
+ <div style="text-align: center;">
|
|
|
|
+ <div style="margin-bottom: 15px;font-size: 14px;">如需将打印状态回退至<strong>【暂不打印】</strong>,请点击下方按钮</div>
|
|
|
|
+ <div style="line-height: 24px;">
|
|
|
|
+ <div>备货单号:{{ tipData&&tipData.dispatchBillNo }}</div>
|
|
|
|
+ <div>客户名称:{{ tipData&&tipData.buyerName }}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </commonModal>
|
|
</a-spin>
|
|
</a-spin>
|
|
</a-card>
|
|
</a-card>
|
|
</div>
|
|
</div>
|
|
@@ -180,7 +195,7 @@ import recordModal from './recordModal.vue'
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
import salesDetail from '@/views/salesManagement/salesQuery/detail.vue'
|
|
import salesDetail from '@/views/salesManagement/salesQuery/detail.vue'
|
|
import dispatchDetail from '@/views/salesManagement/pushOrderManagement/detail.vue'
|
|
import dispatchDetail from '@/views/salesManagement/pushOrderManagement/detail.vue'
|
|
-import { dispatchlList, dispatchDetailPrint } from '@/api/dispatch'
|
|
|
|
|
|
+import { dispatchlList, dispatchDetailPrint, dispatchPrintStatus } from '@/api/dispatch'
|
|
import { printFun } from '@/libs/JGPrint.js'
|
|
import { printFun } from '@/libs/JGPrint.js'
|
|
export default {
|
|
export default {
|
|
name: 'StockPrintList',
|
|
name: 'StockPrintList',
|
|
@@ -230,7 +245,9 @@ export default {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ tipData: null,
|
|
|
|
+ showPrintModal: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -251,7 +268,7 @@ export default {
|
|
// { title: '机油售价', dataIndex: 'receiveJyTotalAmount', width: '70px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
// { title: '机油售价', dataIndex: 'receiveJyTotalAmount', width: '70px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '业务状态', dataIndex: 'billStatusDictValue', width: '70px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '业务状态', dataIndex: 'billStatusDictValue', width: '70px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据状态', dataIndex: 'voidFlagDictValue', width: '70px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单据状态', dataIndex: 'voidFlagDictValue', width: '70px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '备货打印状态', dataIndex: 'printStatusDictValue', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '备货打印状态', width: '100px', align: 'center', scopedSlots: { customRender: 'printStatus' } },
|
|
{ title: '允许打印时间', dataIndex: 'allowPrintTime', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '允许打印时间', dataIndex: 'allowPrintTime', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '打印次数', dataIndex: 'stockUpPrintTimes', width: '70px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '打印次数', dataIndex: 'stockUpPrintTimes', width: '70px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center', fixed: 'right' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '100px', align: 'center', fixed: 'right' }
|
|
@@ -333,6 +350,24 @@ export default {
|
|
billSn: row.dispatchBillSn
|
|
billSn: row.dispatchBillSn
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 允许备货打印
|
|
|
|
+ handlePrintStatus (row) {
|
|
|
|
+ this.tipData = row
|
|
|
|
+ this.showPrintModal = true
|
|
|
|
+ },
|
|
|
|
+ canselModal () {
|
|
|
|
+ this.tipData = null
|
|
|
|
+ this.showPrintModal = false
|
|
|
|
+ },
|
|
|
|
+ updatePrintStatus () {
|
|
|
|
+ dispatchPrintStatus({ dispatchBillSn: this.tipData.dispatchBillSn, printStatus: 'UNABLE_PRINT' }).then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.canselModal()
|
|
|
|
+ this.$message.info(res.message)
|
|
|
|
+ this.$refs.table.refresh()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.time = []
|
|
this.time = []
|