根据系统配置增加单据类型的选择来控制单据的审核按钮

This commit is contained in:
季圣华
2023-02-26 00:18:59 +08:00
parent 4b32add365
commit e17463f3ac
28 changed files with 97 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
import {findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
getUserList, getPersonByType, getAccount, getCurrentSystemConfig} from '@/api/api'
import { getCheckFlag } from "@/utils/util"
import Vue from 'vue'
export const FinancialListMixin = {
@@ -7,6 +8,7 @@ export const FinancialListMixin = {
return {
/* 原始审核是否开启 */
checkFlag: true,
prefixNo: '',
supList: [],
cusList: [],
organList: [],
@@ -64,11 +66,11 @@ export const FinancialListMixin = {
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";
@@ -85,7 +87,9 @@ export const FinancialListMixin = {
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)
}
})
},

View File

@@ -2,7 +2,7 @@ import { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTabl
import {findBySelectSup,findBySelectCus,findBySelectRetail,findBySelectOrgan,findStockByDepotAndBarCode,getAccount,
getPersonByType,findInOutItemByParam,getCurrentSystemConfig} from '@/api/api'
import { getAction,putAction } from '@/api/manage'
import { getMpListShort, getNowFormatDateTime } from "@/utils/util"
import { getCheckFlag, getNowFormatDateTime } from "@/utils/util"
import { USER_INFO } from "@/store/mutation-types"
import Vue from 'vue'
@@ -73,7 +73,9 @@ export const FinancialModalMixin = {
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)
}
})
},