|
@@ -91,7 +91,7 @@
|
|
|
</a-card>
|
|
|
</a-spin>
|
|
|
<!-- 发货分类打印 -->
|
|
|
- <sendTypeModal ref="typePrint" :openModal="openModal" @ok="handlePrintOk" @close="openModal=false" />
|
|
|
+ <sendTypeModal ref="typePrint" :hasNoPrint="hasNoPrint" :openModal="openModal" @ok="handlePrintOk" @close="openModal=false" />
|
|
|
<!-- 导出Excel -->
|
|
|
<export-excel-modal :openModal="openExcelModal" :itemData="detailData" @ok="handleExcelOk" @close="openExcelModal=false" />
|
|
|
<!-- 打印 -->
|
|
@@ -166,6 +166,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ hasNoPrint () {
|
|
|
+ return this.detailData && (this.detailData.printStatus == 'UNABLE_PRINT' || this.detailData.printStatus == 'CANCEL_PRINT')
|
|
|
+ },
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
@@ -250,7 +253,7 @@ export default {
|
|
|
billSn: obj.dispatchBillSn,
|
|
|
billNo: obj.dispatchBillNo,
|
|
|
printType: taskName + '打印'
|
|
|
- }, this.detailData.printStatus == 'UNABLE_PRINT' || this.detailData.printStatus == 'CANCEL_PRINT')
|
|
|
+ }, this.hasNoPrint)
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|