零售管理、采购管理、销售管理和仓库管理下的单据控制打印按钮的状态
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
wrapClassName="ant-modal-cust-warp">
|
wrapClassName="ant-modal-cust-warp">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
|
<!--打印-->
|
||||||
|
<template v-if="isShowPrintBtn">
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag" @click="handlePrint">三联打印预览</a-button>
|
||||||
<!--此处为解决缓存问题-->
|
<!--此处为解决缓存问题-->
|
||||||
<a-button v-if="billType === '零售出库'" v-print="'#retailOutPrint'">普通打印</a-button>
|
<a-button v-if="billType === '零售出库'" v-print="'#retailOutPrint'">普通打印</a-button>
|
||||||
@@ -27,6 +29,7 @@
|
|||||||
<a-button v-if="billType === '组装单'" v-print="'#assemblePrint'">普通打印</a-button>
|
<a-button v-if="billType === '组装单'" v-print="'#assemblePrint'">普通打印</a-button>
|
||||||
<a-button v-if="billType === '拆卸单'" v-print="'#disassemblePrint'">普通打印</a-button>
|
<a-button v-if="billType === '拆卸单'" v-print="'#disassemblePrint'">普通打印</a-button>
|
||||||
<a-button v-if="billType === '盘点复盘'" v-print="'#stockCheckReplayPrint'">普通打印</a-button>
|
<a-button v-if="billType === '盘点复盘'" v-print="'#stockCheckReplayPrint'">普通打印</a-button>
|
||||||
|
</template>
|
||||||
<!--导出Excel-->
|
<!--导出Excel-->
|
||||||
<a-button v-if="billType === '零售出库'||billType === '零售退货入库'" @click="retailExportExcel()">导出</a-button>
|
<a-button v-if="billType === '零售出库'||billType === '零售退货入库'" @click="retailExportExcel()">导出</a-button>
|
||||||
<a-button v-if="billType === '请购单'" @click="applyExportExcel()">导出</a-button>
|
<a-button v-if="billType === '请购单'" @click="applyExportExcel()">导出</a-button>
|
||||||
@@ -1209,6 +1212,8 @@
|
|||||||
financialBillNoList: [],
|
financialBillNoList: [],
|
||||||
/* 原始反审核是否开启 */
|
/* 原始反审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
|
/* 是否显示打印按钮 */
|
||||||
|
isShowPrintBtn: true,
|
||||||
tableWidth: {
|
tableWidth: {
|
||||||
'width': '1500px'
|
'width': '1500px'
|
||||||
},
|
},
|
||||||
@@ -1679,6 +1684,15 @@
|
|||||||
let multiBillType = res.data.multiBillType
|
let multiBillType = res.data.multiBillType
|
||||||
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
|
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
|
||||||
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
||||||
|
if(res.data.auditPrintFlag==='1') {
|
||||||
|
if(this.model.status === '0' || this.model.status === '9') {
|
||||||
|
this.isShowPrintBtn = false
|
||||||
|
} else {
|
||||||
|
this.isShowPrintBtn = true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.isShowPrintBtn = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ export const BillModalMixin = {
|
|||||||
isCanCheck: true,
|
isCanCheck: true,
|
||||||
isTenant: false,
|
isTenant: false,
|
||||||
billPrintFlag: false,
|
billPrintFlag: false,
|
||||||
|
/* 是否显示打印按钮 */
|
||||||
|
isShowPrintBtn: true,
|
||||||
/* 原始审核是否开启 */
|
/* 原始审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
validatorRules:{
|
validatorRules:{
|
||||||
@@ -168,6 +170,15 @@ export const BillModalMixin = {
|
|||||||
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
||||||
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
|
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
|
||||||
this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false
|
this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false
|
||||||
|
if(res.data.auditPrintFlag==='1') {
|
||||||
|
if(this.model.status === '0' || this.model.status === '9') {
|
||||||
|
this.isShowPrintBtn = false
|
||||||
|
} else {
|
||||||
|
this.isShowPrintBtn = true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.isShowPrintBtn = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('调拨出库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('调拨出库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('组装单')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('组装单')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('拆卸单')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('拆卸单')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('其它入库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('其它入库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('其它出库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('其它出库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('请购单')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('请购单')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('采购退货出库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购退货出库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('采购入库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购入库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('采购订单')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购订单')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('零售退货入库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('零售退货入库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('零售出库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('零售出库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('销售退货入库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售退货入库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('销售订单')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售订单')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
style="top:20px;height: 95%;">
|
style="top:20px;height: 95%;">
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<a-button @click="handleCancel">取消</a-button>
|
<a-button @click="handleCancel">取消</a-button>
|
||||||
<a-button v-if="billPrintFlag" @click="handlePrint('销售出库')">三联打印预览</a-button>
|
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售出库')">三联打印预览</a-button>
|
||||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||||
<!--发起多级审核-->
|
<!--发起多级审核-->
|
||||||
|
|||||||
@@ -120,7 +120,7 @@
|
|||||||
<a-col :lg="12" :md="12" :sm="24">
|
<a-col :lg="12" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="先审核后打印">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="先审核后打印">
|
||||||
<a-switch checked-children="启用" un-checked-children="关闭" v-model="auditPrintFlagSwitch" @change="onAuditPrintChange"></a-switch>
|
<a-switch checked-children="启用" un-checked-children="关闭" v-model="auditPrintFlagSwitch" @change="onAuditPrintChange"></a-switch>
|
||||||
(启用后,零售、采购、销售、仓库、盘点、财务管理大菜单下的单据,都需要先审核之后才能进行打印)
|
(启用后,零售管理、采购管理、销售管理和仓库管理下的单据,都需要先审核之后才能进行打印)
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :sm="24" v-if="isShowApproval">
|
<a-col :lg="12" :md="12" :sm="24" v-if="isShowApproval">
|
||||||
|
|||||||
Reference in New Issue
Block a user