根据系统配置增加单据类型的选择来控制单据的审核按钮
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import Vue from 'vue'
|
||||
import {getAction } from '@/api/manage'
|
||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||
import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount, getCurrentSystemConfig} from '@/api/api'
|
||||
import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount,
|
||||
getCurrentSystemConfig} from '@/api/api'
|
||||
import { getCheckFlag } from "@/utils/util"
|
||||
|
||||
export const BillListMixin = {
|
||||
data () {
|
||||
return {
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
prefixNo: '',
|
||||
supList: [],
|
||||
cusList: [],
|
||||
retailList: [],
|
||||
@@ -79,11 +82,11 @@ export const BillListMixin = {
|
||||
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
||||
}
|
||||
},
|
||||
myHandleDetail(record, type) {
|
||||
myHandleDetail(record, type, prefixNo) {
|
||||
if(this.btnEnableList.indexOf(7)===-1) {
|
||||
this.$refs.modalDetail.isCanBackCheck = false
|
||||
}
|
||||
this.handleDetail(record, type);
|
||||
this.handleDetail(record, type, prefixNo);
|
||||
},
|
||||
handleApprove(record) {
|
||||
this.$refs.modalForm.action = "approve";
|
||||
@@ -108,7 +111,9 @@ export const BillListMixin = {
|
||||
initSystemConfig() {
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
let multiBillType = res.data.multiBillType
|
||||
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
|
||||
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -2,7 +2,7 @@ import { FormTypes, getListData } from '@/utils/JEditableTableUtil'
|
||||
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount,
|
||||
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig} from '@/api/api'
|
||||
import { getAction,putAction } from '@/api/manage'
|
||||
import { getMpListShort, getNowFormatDateTime } from "@/utils/util"
|
||||
import { getMpListShort, getNowFormatDateTime, getCheckFlag } from "@/utils/util"
|
||||
import { USER_INFO } from "@/store/mutation-types"
|
||||
import Vue from 'vue'
|
||||
|
||||
@@ -150,7 +150,9 @@ export const BillModalMixin = {
|
||||
initSystemConfig() {
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
let multiBillType = res.data.multiBillType
|
||||
let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag
|
||||
this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user