通过开关兼容多级审核功能
This commit is contained in:
@@ -81,8 +81,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" />
|
||||
@@ -203,6 +203,7 @@
|
||||
computed: {
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
},
|
||||
|
||||
@@ -81,8 +81,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" />
|
||||
@@ -203,6 +203,7 @@
|
||||
computed: {
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
},
|
||||
|
||||
@@ -81,8 +81,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" />
|
||||
@@ -203,6 +203,7 @@
|
||||
computed: {
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
},
|
||||
|
||||
@@ -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" />
|
||||
@@ -220,6 +220,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -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" />
|
||||
@@ -220,6 +220,7 @@
|
||||
computed: {
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -104,8 +104,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" />
|
||||
@@ -248,6 +248,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -112,8 +112,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" />
|
||||
@@ -271,6 +271,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -83,8 +83,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" />
|
||||
@@ -223,6 +223,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initUser()
|
||||
},
|
||||
|
||||
@@ -104,8 +104,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" />
|
||||
@@ -245,6 +245,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -99,8 +99,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" />
|
||||
@@ -239,6 +239,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -105,8 +105,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" />
|
||||
@@ -248,6 +248,7 @@
|
||||
computed: {
|
||||
},
|
||||
created () {
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -84,8 +84,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" />
|
||||
@@ -227,6 +227,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initUser()
|
||||
this.getSystemConfig()
|
||||
|
||||
@@ -113,8 +113,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" />
|
||||
@@ -271,6 +271,7 @@
|
||||
computed: {
|
||||
},
|
||||
created() {
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.getDepotData()
|
||||
this.initUser()
|
||||
|
||||
@@ -36,8 +36,10 @@
|
||||
<a-button v-if="billType === '组装单'||billType === '拆卸单'" @click="assembleExportExcel()">导出</a-button>
|
||||
<a-button v-if="billType === '盘点复盘'" @click="stockCheckReplayExportExcel()">导出</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">
|
||||
<!--零售出库-->
|
||||
@@ -1001,6 +1003,7 @@
|
||||
</template>
|
||||
</a-form>
|
||||
<bill-print-iframe ref="modalDetail"></bill-print-iframe>
|
||||
<workflow-iframe ref="modalWorkflow"></workflow-iframe>
|
||||
<financial-detail ref="financialDetailModal"></financial-detail>
|
||||
</j-modal>
|
||||
</template>
|
||||
@@ -1011,6 +1014,7 @@
|
||||
import { findBillDetailByNumber, findFinancialDetailByNumber, getPlatformConfigByKey, getCurrentSystemConfig} from '@/api/api'
|
||||
import { getMpListShort, openDownloadDialog, sheet2blob } from "@/utils/util"
|
||||
import BillPrintIframe from './BillPrintIframe'
|
||||
import WorkflowIframe from '@/components/tools/WorkflowIframe'
|
||||
import FinancialDetail from '../../financial/dialog/FinancialDetail'
|
||||
import JUpload from '@/components/jeecg/JUpload'
|
||||
import Vue from 'vue'
|
||||
@@ -1018,6 +1022,7 @@
|
||||
name: 'BillDetail',
|
||||
components: {
|
||||
BillPrintIframe,
|
||||
WorkflowIframe,
|
||||
FinancialDetail,
|
||||
JUpload
|
||||
},
|
||||
@@ -1035,6 +1040,8 @@
|
||||
purchaseBySaleFlag: false,
|
||||
linkNumberList: [],
|
||||
financialBillNoList: [],
|
||||
/* 原始审核是否开启 */
|
||||
checkFlag: true,
|
||||
tableWidth: {
|
||||
'width': '1500px'
|
||||
},
|
||||
@@ -1450,6 +1457,7 @@
|
||||
getCurrentSystemConfig().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false
|
||||
this.checkFlag = res.data.multiLevelApprovalFlag==='1'?false:true
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -1575,8 +1583,18 @@
|
||||
if (res && res.code === 200) {
|
||||
let billPrintUrl = res.data.platformValue + '?no=' + this.model.number
|
||||
let billPrintHeight = this.dataSource.length*50 + 600
|
||||
this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight);
|
||||
this.$refs.modalDetail.title = this.billType + "-三联打印预览";
|
||||
this.$refs.modalDetail.show(this.model, billPrintUrl, billPrintHeight)
|
||||
this.$refs.modalDetail.title = this.billType + "-三联打印预览"
|
||||
}
|
||||
})
|
||||
},
|
||||
//发起流程
|
||||
handleWorkflow() {
|
||||
getPlatformConfigByKey({"platformKey": "send_workflow_url"}).then((res)=> {
|
||||
if (res && res.code === 200) {
|
||||
let sendWorkflowUrl = res.data.platformValue + '?no=' + this.model.number
|
||||
this.$refs.modalWorkflow.show(this.model, sendWorkflowUrl, 500)
|
||||
this.$refs.modalWorkflow.title = "发起流程"
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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)=>{
|
||||
|
||||
@@ -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">
|
||||
@@ -213,6 +213,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
|
||||
@@ -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">
|
||||
@@ -211,6 +211,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
|
||||
@@ -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">
|
||||
@@ -210,6 +210,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initDepot()
|
||||
},
|
||||
//提交单据时整理成formData
|
||||
|
||||
@@ -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">
|
||||
@@ -237,6 +237,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initDepot()
|
||||
},
|
||||
|
||||
@@ -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">
|
||||
@@ -237,6 +237,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initDepot()
|
||||
},
|
||||
|
||||
@@ -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">
|
||||
@@ -340,6 +340,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
|
||||
@@ -14,7 +14,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">
|
||||
@@ -378,6 +378,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
|
||||
@@ -14,7 +14,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">
|
||||
@@ -324,6 +324,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initSupplier()
|
||||
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">
|
||||
@@ -317,6 +317,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initDepot()
|
||||
this.initAccount()
|
||||
|
||||
@@ -14,7 +14,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">
|
||||
@@ -327,6 +327,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initRetail()
|
||||
this.initDepot()
|
||||
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">
|
||||
@@ -347,6 +347,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initSalesman()
|
||||
this.initDepot()
|
||||
|
||||
@@ -14,7 +14,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">
|
||||
@@ -307,6 +307,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initSalesman()
|
||||
this.initAccount()
|
||||
|
||||
@@ -14,7 +14,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">
|
||||
@@ -396,6 +396,7 @@
|
||||
this.model.tenantId = ''
|
||||
this.copyAddInit(this.prefixNo)
|
||||
}
|
||||
this.initSystemConfig()
|
||||
this.initCustomer()
|
||||
this.initSalesman()
|
||||
this.initDepot()
|
||||
|
||||
Reference in New Issue
Block a user