通过开关兼容多级审核功能
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import Vue from 'vue'
|
||||
import {getAction } from '@/api/manage'
|
||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||
import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount} from '@/api/api'
|
||||
import {findBillDetailByNumber, findBySelectSup, findBySelectCus, findBySelectRetail, getUserList, getAccount, getCurrentSystemConfig} from '@/api/api'
|
||||
|
||||
export const BillListMixin = {
|
||||
data () {
|
||||
return {
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
supList: [],
|
||||
cusList: [],
|
||||
retailList: [],
|
||||
@@ -103,6 +105,13 @@ export const BillListMixin = {
|
||||
onDateOk(value) {
|
||||
console.log(value);
|
||||
},
|
||||
initSystemConfig() {
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
}
|
||||
})
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FormTypes, getListData } from '@/utils/JEditableTableUtil'
|
||||
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount,
|
||||
getPersonByNumType, getBatchNumberList} from '@/api/api'
|
||||
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig} from '@/api/api'
|
||||
import { getAction,putAction } from '@/api/manage'
|
||||
import { getMpListShort, getNowFormatDateTime } from "@/utils/util"
|
||||
import { USER_INFO } from "@/store/mutation-types"
|
||||
@@ -29,6 +29,8 @@ export const BillModalMixin = {
|
||||
minWidth: 1100,
|
||||
isCanCheck: true,
|
||||
isTenant: false,
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
validatorRules:{
|
||||
price:{
|
||||
rules: [
|
||||
@@ -145,6 +147,13 @@ export const BillModalMixin = {
|
||||
}
|
||||
}
|
||||
},
|
||||
initSystemConfig() {
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
}
|
||||
})
|
||||
},
|
||||
initSupplier() {
|
||||
let that = this;
|
||||
findBySelectSup({}).then((res)=>{
|
||||
|
||||
Reference in New Issue
Block a user