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

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

@@ -113,7 +113,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '收预付款')">查看</a>
<a @click="myHandleDetail(record, '收预付款', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -172,6 +172,7 @@
remark: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'SYF',
// 表头
columns: [
{

View File

@@ -113,7 +113,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '转账')">查看</a>
<a @click="myHandleDetail(record, '转账', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -172,6 +172,7 @@
remark: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'ZZ',
// 表头
columns: [
{

View File

@@ -122,7 +122,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '收入')">查看</a>
<a @click="myHandleDetail(record, '收入', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -182,6 +182,7 @@
remark: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'SR',
// 表头
columns: [
{

View File

@@ -122,7 +122,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '支出')">查看</a>
<a @click="myHandleDetail(record, '支出', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -182,6 +182,7 @@
remark: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'ZC',
// 表头
columns: [
{

View File

@@ -128,7 +128,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '收款')">查看</a>
<a @click="myHandleDetail(record, '收款', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -189,6 +189,7 @@
number: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'SK',
// 表头
columns: [
{

View File

@@ -128,7 +128,7 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="myHandleDetail(record, '付款')">查看</a>
<a @click="myHandleDetail(record, '付款', prefixNo)">查看</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
@@ -189,6 +189,7 @@
number: "",
roleType: Vue.ls.get('roleType')
},
prefixNo: 'FK',
// 表头
columns: [
{

View File

@@ -403,6 +403,7 @@
import pick from 'lodash.pick'
import { getAction, postAction } from '@/api/manage'
import { findFinancialDetailByNumber, getCurrentSystemConfig, getPlatformConfigByKey } from '@/api/api'
import { getCheckFlag } from "@/utils/util"
import WorkflowIframe from '@/components/tools/WorkflowIframe'
import JUpload from '@/components/jeecg/JUpload'
export default {
@@ -421,7 +422,7 @@
isCanBackCheck: true,
financialType: '',
fileList: [],
/* 原始审核是否开启 */
/* 原始审核是否开启 */
checkFlag: true,
labelCol: {
xs: { span: 24 },
@@ -483,12 +484,13 @@
this.width = realScreenWidth<1500?'1200px':'1550px'
},
methods: {
show(record, type) {
show(record, type, prefixNo) {
//查询单条财务信息
findFinancialDetailByNumber({ billNo: record.billNo }).then((res) => {
if (res && res.code === 200) {
let item = res.data
this.financialType = type
this.prefixNo = prefixNo
//附件下载
this.fileList = item.fileName
this.visible = true
@@ -520,7 +522,9 @@
getSystemConfig() {
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

@@ -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)
}
})
},