控制单据中转下一个页面的保存并审核的按钮的权限
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.purchaseOrder && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购订单')">转采购订单</a-button>
|
<a-button v-if="quickBtn.purchaseOrder.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购订单', quickBtn.purchaseOrder)">转采购订单</a-button>
|
||||||
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.purchaseBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购退货')">转采购退货</a-button>
|
<a-button v-if="quickBtn.purchaseBack.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购退货', quickBtn.purchaseBack)">转采购退货</a-button>
|
||||||
<a-tooltip title="可将状态是部分入库的单据强制完成">
|
<a-tooltip title="可将状态是部分入库的单据强制完成">
|
||||||
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.purchaseIn && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购入库')">转采购入库</a-button>
|
<a-button v-if="quickBtn.purchaseIn.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购入库', quickBtn.purchaseIn)">转采购入库</a-button>
|
||||||
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
<a-tooltip title="可将状态是部分采购的单据强制完成">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.retailBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转零售退货')">转零售退货</a-button>
|
<a-button v-if="quickBtn.retailBack.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转零售退货', quickBtn.retailBack)">转零售退货</a-button>
|
||||||
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(2)>-1" icon="check" @click="batchSetStatus(1)">审核</a-button>
|
||||||
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
<a-button v-if="checkFlag && btnEnableList.indexOf(7)>-1" icon="stop" @click="batchSetStatus(0)">反审核</a-button>
|
||||||
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
|
<a-button v-if="isShowExcel && btnEnableList.indexOf(3)>-1" icon="download" @click="handleExport">导出</a-button>
|
||||||
|
|||||||
@@ -85,8 +85,8 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.saleOut && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售出库')">转销售出库</a-button>
|
<a-button v-if="quickBtn.saleOut.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售出库', quickBtn.saleOut)">转销售出库</a-button>
|
||||||
<a-button v-if="quickBtn.purchaseOrder && purchaseBySaleFlag && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购订单-以销定购')">转采购订单-以销定购</a-button>
|
<a-button v-if="quickBtn.purchaseOrder.indexOf(1)>-1 && purchaseBySaleFlag && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转采购订单-以销定购', quickBtn.purchaseOrder)">转采购订单-以销定购</a-button>
|
||||||
<a-tooltip title="可将状态是部分销售的单据强制完成">
|
<a-tooltip title="可将状态是部分销售的单据强制完成">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<div class="table-operator" style="margin-top: 5px">
|
<div class="table-operator" style="margin-top: 5px">
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" @click="myHandleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
<a-button v-if="btnEnableList.indexOf(1)>-1" icon="delete" @click="batchDel">删除</a-button>
|
||||||
<a-button v-if="quickBtn.saleBack && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售退货')">转销售退货</a-button>
|
<a-button v-if="quickBtn.saleBack.indexOf(1)>-1 && btnEnableList.indexOf(1)>-1" icon="share-alt" @click="transferBill('转销售退货', quickBtn.saleBack)">转销售退货</a-button>
|
||||||
<a-tooltip title="可将状态是部分出库的单据强制完成">
|
<a-tooltip title="可将状态是部分出库的单据强制完成">
|
||||||
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
<a-button v-if="inOutManageFlag && btnEnableList.indexOf(1)>-1" icon="issues-close" @click="batchForceClose">强制结单</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
|||||||
@@ -399,12 +399,12 @@ export const BillListMixin = {
|
|||||||
{ title: '备注', dataIndex: 'remark'}
|
{ title: '备注', dataIndex: 'remark'}
|
||||||
],
|
],
|
||||||
quickBtn: {
|
quickBtn: {
|
||||||
retailBack: false,
|
retailBack: '',
|
||||||
purchaseOrder: false,
|
purchaseOrder: '',
|
||||||
purchaseIn: false,
|
purchaseIn: '',
|
||||||
purchaseBack: false,
|
purchaseBack: '',
|
||||||
saleOut: false,
|
saleOut: '',
|
||||||
saleBack: false
|
saleBack: ''
|
||||||
},
|
},
|
||||||
queryParam: {
|
queryParam: {
|
||||||
beginTime: getPrevMonthFormatDate(3),
|
beginTime: getPrevMonthFormatDate(3),
|
||||||
@@ -699,12 +699,12 @@ export const BillListMixin = {
|
|||||||
if (btnStrList) {
|
if (btnStrList) {
|
||||||
for (let i = 0; i < btnStrList.length; i++) {
|
for (let i = 0; i < btnStrList.length; i++) {
|
||||||
if (btnStrList[i].btnStr) {
|
if (btnStrList[i].btnStr) {
|
||||||
this.quickBtn.retailBack = btnStrList[i].url === '/bill/retail_back'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.retailBack
|
this.quickBtn.retailBack = btnStrList[i].url === '/bill/retail_back'?btnStrList[i].btnStr:this.quickBtn.retailBack
|
||||||
this.quickBtn.purchaseOrder = btnStrList[i].url === '/bill/purchase_order'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.purchaseOrder
|
this.quickBtn.purchaseOrder = btnStrList[i].url === '/bill/purchase_order'?btnStrList[i].btnStr:this.quickBtn.purchaseOrder
|
||||||
this.quickBtn.purchaseIn = btnStrList[i].url === '/bill/purchase_in'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.purchaseIn
|
this.quickBtn.purchaseIn = btnStrList[i].url === '/bill/purchase_in'?btnStrList[i].btnStr:this.quickBtn.purchaseIn
|
||||||
this.quickBtn.purchaseBack = btnStrList[i].url === '/bill/purchase_back'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.purchaseBack
|
this.quickBtn.purchaseBack = btnStrList[i].url === '/bill/purchase_back'?btnStrList[i].btnStr:this.quickBtn.purchaseBack
|
||||||
this.quickBtn.saleOut = btnStrList[i].url === '/bill/sale_out'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.saleOut
|
this.quickBtn.saleOut = btnStrList[i].url === '/bill/sale_out'?btnStrList[i].btnStr:this.quickBtn.saleOut
|
||||||
this.quickBtn.saleBack = btnStrList[i].url === '/bill/sale_back'?btnStrList[i].btnStr.indexOf(1)>-1:this.quickBtn.saleBack
|
this.quickBtn.saleBack = btnStrList[i].url === '/bill/sale_back'?btnStrList[i].btnStr:this.quickBtn.saleBack
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -725,7 +725,7 @@ export const BillListMixin = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
//跳转到下一个单据页面
|
//跳转到下一个单据页面
|
||||||
transferBill(type) {
|
transferBill(type, quickBtnStr) {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning('请选择一条记录!')
|
this.$message.warning('请选择一条记录!')
|
||||||
} else if (this.selectedRowKeys.length > 1) {
|
} else if (this.selectedRowKeys.length > 1) {
|
||||||
@@ -758,18 +758,22 @@ export const BillListMixin = {
|
|||||||
}
|
}
|
||||||
if(type === '转采购订单-以销定购') {
|
if(type === '转采购订单-以销定购') {
|
||||||
this.$refs.transferPurchaseModalForm.action = "add"
|
this.$refs.transferPurchaseModalForm.action = "add"
|
||||||
this.$refs.transferPurchaseModalForm.isCanCheck = false
|
|
||||||
this.$refs.transferPurchaseModalForm.transferParam = transferParam
|
this.$refs.transferPurchaseModalForm.transferParam = transferParam
|
||||||
this.$refs.transferPurchaseModalForm.defaultDepotId = this.defaultDepotId
|
this.$refs.transferPurchaseModalForm.defaultDepotId = this.defaultDepotId
|
||||||
this.$refs.transferPurchaseModalForm.add()
|
this.$refs.transferPurchaseModalForm.add()
|
||||||
this.$refs.transferPurchaseModalForm.title = type
|
this.$refs.transferPurchaseModalForm.title = type
|
||||||
|
if(quickBtnStr.indexOf(2)===-1) {
|
||||||
|
this.$refs.transferPurchaseModalForm.isCanCheck = false
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$refs.transferModalForm.action = "add"
|
this.$refs.transferModalForm.action = "add"
|
||||||
this.$refs.transferModalForm.isCanCheck = false
|
|
||||||
this.$refs.transferModalForm.transferParam = transferParam
|
this.$refs.transferModalForm.transferParam = transferParam
|
||||||
this.$refs.transferModalForm.defaultDepotId = this.defaultDepotId
|
this.$refs.transferModalForm.defaultDepotId = this.defaultDepotId
|
||||||
this.$refs.transferModalForm.add()
|
this.$refs.transferModalForm.add()
|
||||||
this.$refs.transferModalForm.title = type
|
this.$refs.transferModalForm.title = type
|
||||||
|
if(quickBtnStr.indexOf(2)===-1) {
|
||||||
|
this.$refs.transferModalForm.isCanCheck = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user