|
@@ -39,8 +39,8 @@
|
|
|
</a-form-model>
|
|
|
<div class="btn-cont">
|
|
|
<a-button id="allocateBill-print-close" @click="handleClose('preview')">取消</a-button>
|
|
|
- <a-button id="allocateBill-print-save" @click="handleSave('preview')" style="margin-left: 15px;">打印预览</a-button>
|
|
|
- <a-button type="primary" id="allocateBill-print-back" @click="handleSave('print')" style="margin-left: 15px;">确定打印</a-button>
|
|
|
+ <a-button id="allocateBill-print-save" type="primary" class="button-info" @click="handleSave('preview')" style="margin-left: 15px;">打印预览</a-button>
|
|
|
+ <a-button v-if="hidePrint" type="primary" id="allocateBill-print-back" @click="handleSave('print')" style="margin-left: 15px;">确定打印</a-button>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</a-modal>
|
|
@@ -93,6 +93,9 @@ export default {
|
|
|
title = '调拨分类打印'
|
|
|
}
|
|
|
return title
|
|
|
+ },
|
|
|
+ hidePrint () {
|
|
|
+ return this.itemData && this.itemData.printState && this.itemData.printState != 'UNABLE_PRINT' && this.itemData.printState != 'CANCEL_PRINT'
|
|
|
}
|
|
|
},
|
|
|
methods: {
|