根据系统配置增加单据类型的选择来控制单据的审核按钮
This commit is contained in:
@@ -274,8 +274,8 @@ export const JeecgListMixin = {
|
|||||||
// 新增/修改 成功时,重载列表
|
// 新增/修改 成功时,重载列表
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
handleDetail:function(record, type){
|
handleDetail:function(record, type, prefixNo){
|
||||||
this.$refs.modalDetail.show(record, type);
|
this.$refs.modalDetail.show(record, type, prefixNo);
|
||||||
this.$refs.modalDetail.title=type+"-详情";
|
this.$refs.modalDetail.title=type+"-详情";
|
||||||
},
|
},
|
||||||
/* 导出 */
|
/* 导出 */
|
||||||
|
|||||||
@@ -543,6 +543,21 @@ export function removeByVal(arrylist, val) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getCheckFlag(multiBillType, multiLevelApprovalFlag, prefixNo) {
|
||||||
|
if(multiLevelApprovalFlag==='1') {
|
||||||
|
//开启
|
||||||
|
if(multiBillType) {
|
||||||
|
let multiBillTypeArr = multiBillType.split(',')
|
||||||
|
return multiBillTypeArr.indexOf(prefixNo) <= -1
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//关闭
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将字符串中单个金额中的数值转为负数
|
* 将字符串中单个金额中的数值转为负数
|
||||||
* @param str
|
* @param str
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -163,6 +163,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'DBCK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -163,6 +163,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'ZZD',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -163,6 +163,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'CXD',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -179,6 +179,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'QTRK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -179,6 +179,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'QTCK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'CGTH',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -209,6 +209,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'CGRK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -169,6 +169,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'CGDD',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'LSTH',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -183,6 +183,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'LSCK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'XSTH',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -175,6 +175,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'XSDD',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -142,7 +142,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -209,6 +209,7 @@
|
|||||||
status: "",
|
status: "",
|
||||||
remark: ""
|
remark: ""
|
||||||
},
|
},
|
||||||
|
prefixNo: 'XSCK',
|
||||||
labelCol: {
|
labelCol: {
|
||||||
span: 5
|
span: 5
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1012,7 +1012,7 @@
|
|||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import { findBillDetailByNumber, findFinancialDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
|
import { findBillDetailByNumber, findFinancialDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
|
||||||
import { getMpListShort, openDownloadDialog, sheet2blob } from "@/utils/util"
|
import { getMpListShort, getCheckFlag, openDownloadDialog, sheet2blob } from "@/utils/util"
|
||||||
import BillPrintIframe from './BillPrintIframe'
|
import BillPrintIframe from './BillPrintIframe'
|
||||||
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
||||||
import FinancialDetail from '../../financial/dialog/FinancialDetail'
|
import FinancialDetail from '../../financial/dialog/FinancialDetail'
|
||||||
@@ -1040,7 +1040,7 @@
|
|||||||
purchaseBySaleFlag: false,
|
purchaseBySaleFlag: false,
|
||||||
linkNumberList: [],
|
linkNumberList: [],
|
||||||
financialBillNoList: [],
|
financialBillNoList: [],
|
||||||
/* 原始审核是否开启 */
|
/* 原始反审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
tableWidth: {
|
tableWidth: {
|
||||||
'width': '1500px'
|
'width': '1500px'
|
||||||
@@ -1457,7 +1457,9 @@
|
|||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
if(res.code === 200 && res.data){
|
||||||
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
|
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
|
||||||
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -1475,12 +1477,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
show(record, type) {
|
show(record, type, prefixNo) {
|
||||||
//查询单条单据信息
|
//查询单条单据信息
|
||||||
findBillDetailByNumber({ number: record.number }).then((res) => {
|
findBillDetailByNumber({ number: record.number }).then((res) => {
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
let item = res.data
|
let item = res.data
|
||||||
this.billType = type
|
this.billType = type
|
||||||
|
this.prefixNo = prefixNo
|
||||||
//附件下载
|
//附件下载
|
||||||
this.fileList = item.fileName
|
this.fileList = item.fileName
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import {getAction } from '@/api/manage'
|
import {getAction } from '@/api/manage'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
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 = {
|
export const BillListMixin = {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
/* 原始审核是否开启 */
|
/* 原始审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
|
prefixNo: '',
|
||||||
supList: [],
|
supList: [],
|
||||||
cusList: [],
|
cusList: [],
|
||||||
retailList: [],
|
retailList: [],
|
||||||
@@ -79,11 +82,11 @@ export const BillListMixin = {
|
|||||||
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
myHandleDetail(record, type) {
|
myHandleDetail(record, type, prefixNo) {
|
||||||
if(this.btnEnableList.indexOf(7)===-1) {
|
if(this.btnEnableList.indexOf(7)===-1) {
|
||||||
this.$refs.modalDetail.isCanBackCheck = false
|
this.$refs.modalDetail.isCanBackCheck = false
|
||||||
}
|
}
|
||||||
this.handleDetail(record, type);
|
this.handleDetail(record, type, prefixNo);
|
||||||
},
|
},
|
||||||
handleApprove(record) {
|
handleApprove(record) {
|
||||||
this.$refs.modalForm.action = "approve";
|
this.$refs.modalForm.action = "approve";
|
||||||
@@ -108,7 +111,9 @@ export const BillListMixin = {
|
|||||||
initSystemConfig() {
|
initSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
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,
|
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount,
|
||||||
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig} from '@/api/api'
|
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig} from '@/api/api'
|
||||||
import { getAction,putAction } from '@/api/manage'
|
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 { USER_INFO } from "@/store/mutation-types"
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
@@ -150,7 +150,9 @@ export const BillModalMixin = {
|
|||||||
initSystemConfig() {
|
initSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -172,6 +172,7 @@
|
|||||||
remark: "",
|
remark: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'SYF',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -172,6 +172,7 @@
|
|||||||
remark: "",
|
remark: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'ZZ',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -182,6 +182,7 @@
|
|||||||
remark: "",
|
remark: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'SR',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -182,6 +182,7 @@
|
|||||||
remark: "",
|
remark: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'ZC',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
number: "",
|
number: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'SK',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<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-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
<a v-if="btnEnableList.indexOf(1)>-1" @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
<a-divider v-if="btnEnableList.indexOf(1)>-1" type="vertical" />
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
number: "",
|
number: "",
|
||||||
roleType: Vue.ls.get('roleType')
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
|
prefixNo: 'FK',
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -403,6 +403,7 @@
|
|||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import { findFinancialDetailByNumber, getCurrentSystemConfig, getPlatformConfigByKey } from '@/api/api'
|
import { findFinancialDetailByNumber, getCurrentSystemConfig, getPlatformConfigByKey } from '@/api/api'
|
||||||
|
import { getCheckFlag } from "@/utils/util"
|
||||||
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
||||||
import JUpload from '@/components/jeecg/JUpload'
|
import JUpload from '@/components/jeecg/JUpload'
|
||||||
export default {
|
export default {
|
||||||
@@ -421,7 +422,7 @@
|
|||||||
isCanBackCheck: true,
|
isCanBackCheck: true,
|
||||||
financialType: '',
|
financialType: '',
|
||||||
fileList: [],
|
fileList: [],
|
||||||
/* 原始审核是否开启 */
|
/* 原始反审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
@@ -483,12 +484,13 @@
|
|||||||
this.width = realScreenWidth<1500?'1200px':'1550px'
|
this.width = realScreenWidth<1500?'1200px':'1550px'
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
show(record, type) {
|
show(record, type, prefixNo) {
|
||||||
//查询单条财务信息
|
//查询单条财务信息
|
||||||
findFinancialDetailByNumber({ billNo: record.billNo }).then((res) => {
|
findFinancialDetailByNumber({ billNo: record.billNo }).then((res) => {
|
||||||
if (res && res.code === 200) {
|
if (res && res.code === 200) {
|
||||||
let item = res.data
|
let item = res.data
|
||||||
this.financialType = type
|
this.financialType = type
|
||||||
|
this.prefixNo = prefixNo
|
||||||
//附件下载
|
//附件下载
|
||||||
this.fileList = item.fileName
|
this.fileList = item.fileName
|
||||||
this.visible = true
|
this.visible = true
|
||||||
@@ -520,7 +522,9 @@
|
|||||||
getSystemConfig() {
|
getSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import {findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
|
import {findFinancialDetailByNumber, findBySelectSup, findBySelectCus, findBySelectOrgan, findBySelectRetail,
|
||||||
getUserList, getPersonByType, getAccount, getCurrentSystemConfig} from '@/api/api'
|
getUserList, getPersonByType, getAccount, getCurrentSystemConfig} from '@/api/api'
|
||||||
|
import { getCheckFlag } from "@/utils/util"
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
export const FinancialListMixin = {
|
export const FinancialListMixin = {
|
||||||
@@ -7,6 +8,7 @@ export const FinancialListMixin = {
|
|||||||
return {
|
return {
|
||||||
/* 原始审核是否开启 */
|
/* 原始审核是否开启 */
|
||||||
checkFlag: true,
|
checkFlag: true,
|
||||||
|
prefixNo: '',
|
||||||
supList: [],
|
supList: [],
|
||||||
cusList: [],
|
cusList: [],
|
||||||
organList: [],
|
organList: [],
|
||||||
@@ -64,11 +66,11 @@ export const FinancialListMixin = {
|
|||||||
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
this.$message.warning("抱歉,只有未审核的单据才能删除!")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
myHandleDetail(record, type) {
|
myHandleDetail(record, type, prefixNo) {
|
||||||
if(this.btnEnableList.indexOf(7)===-1) {
|
if(this.btnEnableList.indexOf(7)===-1) {
|
||||||
this.$refs.modalDetail.isCanBackCheck = false
|
this.$refs.modalDetail.isCanBackCheck = false
|
||||||
}
|
}
|
||||||
this.handleDetail(record, type);
|
this.handleDetail(record, type, prefixNo);
|
||||||
},
|
},
|
||||||
handleApprove(record) {
|
handleApprove(record) {
|
||||||
this.$refs.modalForm.action = "approve";
|
this.$refs.modalForm.action = "approve";
|
||||||
@@ -85,7 +87,9 @@ export const FinancialListMixin = {
|
|||||||
initSystemConfig() {
|
initSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
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 { VALIDATE_NO_PASSED, validateFormAndTables } from '@/utils/JEditableTabl
|
|||||||
import {findBySelectSup,findBySelectCus,findBySelectRetail,findBySelectOrgan,findStockByDepotAndBarCode,getAccount,
|
import {findBySelectSup,findBySelectCus,findBySelectRetail,findBySelectOrgan,findStockByDepotAndBarCode,getAccount,
|
||||||
getPersonByType,findInOutItemByParam,getCurrentSystemConfig} from '@/api/api'
|
getPersonByType,findInOutItemByParam,getCurrentSystemConfig} from '@/api/api'
|
||||||
import { getAction,putAction } from '@/api/manage'
|
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 { USER_INFO } from "@/store/mutation-types"
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
@@ -73,7 +73,9 @@ export const FinancialModalMixin = {
|
|||||||
initSystemConfig() {
|
initSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200 && res.data){
|
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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -136,6 +136,7 @@
|
|||||||
multiLevelApprovalFlagSwitch: false, //多级审核
|
multiLevelApprovalFlagSwitch: false, //多级审核
|
||||||
originalMultiLevelApprovalFlag: '0', //原始多级审核状态
|
originalMultiLevelApprovalFlag: '0', //原始多级审核状态
|
||||||
multiBillTypeSelect: [], //单据类型
|
multiBillTypeSelect: [], //单据类型
|
||||||
|
originalMultiBillTypeSelect: [], //原始单据类型
|
||||||
isReadOnly: false,
|
isReadOnly: false,
|
||||||
isShowApproval: false,
|
isShowApproval: false,
|
||||||
labelCol: {
|
labelCol: {
|
||||||
@@ -246,6 +247,7 @@
|
|||||||
}
|
}
|
||||||
if (record.multiBillType != null && record.multiBillType != '') {
|
if (record.multiBillType != null && record.multiBillType != '') {
|
||||||
this.multiBillTypeSelect = record.multiBillType.split(',')
|
this.multiBillTypeSelect = record.multiBillType.split(',')
|
||||||
|
this.originalMultiBillTypeSelect = record.multiBillType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -280,7 +282,8 @@
|
|||||||
this.init()
|
this.init()
|
||||||
that.$message.info('保存成功!');
|
that.$message.info('保存成功!');
|
||||||
//如果多级审核切换状态需要刷新浏览器
|
//如果多级审核切换状态需要刷新浏览器
|
||||||
if(this.originalMultiLevelApprovalFlag!= formData.multiLevelApprovalFlag) {
|
if(this.originalMultiLevelApprovalFlag!= formData.multiLevelApprovalFlag ||
|
||||||
|
this.originalMultiBillTypeSelect!=formData.multiBillType) {
|
||||||
location.reload()
|
location.reload()
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user