通过开关兼容多级审核功能
This commit is contained in:
@@ -86,8 +86,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -202,6 +202,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
|
||||
@@ -86,8 +86,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -200,6 +200,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
|
||||
@@ -95,8 +95,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1"@click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -211,6 +211,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initOrgan()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
|
||||
@@ -95,8 +95,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -211,6 +211,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initOrgan()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
|
||||
@@ -100,8 +100,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -220,6 +220,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
|
||||
@@ -100,8 +100,8 @@
|
||||
<a-dropdown>
|
||||
<a-menu slot="overlay">
|
||||
<a-menu-item key="1" v-if="btnEnableList.indexOf(1)>-1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
||||
<a-menu-item key="2" v-if="btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
<a-menu-item key="2" v-if="checkFlag && btnEnableList.indexOf(2)>-1" @click="batchSetStatus(1)"><a-icon type="check"/>审核</a-menu-item>
|
||||
<a-menu-item key="3" v-if="checkFlag && btnEnableList.indexOf(7)>-1" @click="batchSetStatus(0)"><a-icon type="stop"/>反审核</a-menu-item>
|
||||
</a-menu>
|
||||
<a-button>
|
||||
批量操作 <a-icon type="down" />
|
||||
@@ -220,6 +220,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initUser()
|
||||
this.initPerson()
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
<a-button v-if="financialType === '收款'" v-print="'#moneyInPrint'" ghost type="primary">打印</a-button>
|
||||
<a-button v-if="financialType === '付款'" v-print="'#moneyOutPrint'" ghost type="primary">打印</a-button>
|
||||
<!--反审核-->
|
||||
<a-button v-if="isCanBackCheck && model.status==='1'" @click="handleBackCheck()">反审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanBackCheck && model.status==='1'" @click="handleBackCheck()">反审核</a-button>
|
||||
<a-button key="back" @click="handleCancel">取消</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag && model.status==='0'" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
<a-form :form="form">
|
||||
<!--收预付款-->
|
||||
@@ -394,16 +396,19 @@
|
||||
</a-row>
|
||||
</template>
|
||||
</a-form>
|
||||
<workflow-iframe ref="modalWorkflow"></workflow-iframe>
|
||||
</j-modal>
|
||||
</template>
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import { findFinancialDetailByNumber } from '@/api/api'
|
||||
import { findFinancialDetailByNumber, getCurrentSystemConfig, getPlatformConfigByKey } from '@/api/api'
|
||||
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
||||
import JUpload from '@/components/jeecg/JUpload'
|
||||
export default {
|
||||
name: 'FinancialDetail',
|
||||
components: {
|
||||
WorkflowIframe,
|
||||
JUpload
|
||||
},
|
||||
data () {
|
||||
@@ -416,6 +421,8 @@
|
||||
isCanBackCheck: true,
|
||||
financialType: '',
|
||||
fileList: [],
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 6 },
|
||||
@@ -495,6 +502,7 @@
|
||||
}
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params);
|
||||
this.getSystemConfig()
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -509,6 +517,23 @@
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
getSystemConfig() {
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
}
|
||||
})
|
||||
},
|
||||
//发起流程
|
||||
handleWorkflow() {
|
||||
getPlatformConfigByKey({"platformKey": "send_workflow_url"}).then((res)=> {
|
||||
if (res && res.code === 200) {
|
||||
let sendWorkflowUrl = res.data.platformValue + '?no=' + this.model.billNo
|
||||
this.$refs.modalWorkflow.show(this.model, sendWorkflowUrl, 500)
|
||||
this.$refs.modalWorkflow.title = "发起流程"
|
||||
}
|
||||
})
|
||||
},
|
||||
handleBackCheck() {
|
||||
let that = this
|
||||
this.$confirm({
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import {findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
|
||||
getUserList, getPersonByType, getAccount} from '@/api/api'
|
||||
getUserList, getPersonByType, getAccount, getCurrentSystemConfig} from '@/api/api'
|
||||
import Vue from 'vue'
|
||||
|
||||
export const FinancialListMixin = {
|
||||
data () {
|
||||
return {
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
supList: [],
|
||||
cusList: [],
|
||||
organList: [],
|
||||
@@ -80,6 +82,13 @@ export const FinancialListMixin = {
|
||||
}
|
||||
this.loadData(1);
|
||||
},
|
||||
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,5 +1,6 @@
|
||||
import { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTableUtil'
|
||||
import {findBySelectSup,findBySelectCus,findBySelectRetail,findBySelectOrgan,findStockByDepotAndBarCode,getAccount,getPersonByType,findInOutItemByParam} from '@/api/api'
|
||||
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 { USER_INFO } from "@/store/mutation-types"
|
||||
@@ -18,6 +19,8 @@ export const FinancialModalMixin = {
|
||||
billStatus: '0',
|
||||
isCanCheck: true,
|
||||
isTenant: false,
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
spans: {
|
||||
labelCol1: {span: 2},
|
||||
wrapperCol1: {span: 22},
|
||||
@@ -67,6 +70,13 @@ export const FinancialModalMixin = {
|
||||
})
|
||||
})
|
||||
},
|
||||
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)=>{
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -201,6 +201,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initPerson()
|
||||
this.initDetailAccount()
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -212,6 +212,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
this.initDetailAccount()
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -225,6 +225,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initOrgan()
|
||||
this.initPerson()
|
||||
this.initInOutItem('in')
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -225,6 +225,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initOrgan()
|
||||
this.initPerson()
|
||||
this.initInOutItem('out')
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -247,6 +247,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" @click="handleOk">保存</a-button>
|
||||
</template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
@@ -250,6 +250,7 @@
|
||||
let url = this.readOnly ? this.url.detailList : this.url.detailList;
|
||||
this.requestSubTableData(url, params, this.accountTable);
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initPerson()
|
||||
this.initAccount()
|
||||
|
||||
Reference in New Issue
Block a user