把多级审核的提交流程按钮移到编辑界面

This commit is contained in:
季圣华
2023-05-04 23:08:54 +08:00
parent 923cc423de
commit 6e69c7828f
23 changed files with 129 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
import { FormTypes, getListData } from '@/utils/JEditableTableUtil'
import {findBySelectSup,findBySelectCus,findBySelectRetail,getMaterialByBarCode,findStockByDepotAndBarCode,getAccount,
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig} from '@/api/api'
getPersonByNumType, getBatchNumberList, getCurrentSystemConfig, getPlatformConfigByKey} from '@/api/api'
import { getAction,putAction } from '@/api/manage'
import { getMpListShort, getNowFormatDateTime, getCheckFlag } from "@/utils/util"
import { USER_INFO } from "@/store/mutation-types"
@@ -812,5 +812,19 @@ export const BillModalMixin = {
this.billStatus = '1'
this.handleOk()
},
//发起流程
handleWorkflow() {
if(this.model && this.model.number) {
getPlatformConfigByKey({ "platformKey": "send_workflow_url" }).then((res) => {
if (res && res.code === 200) {
let sendWorkflowUrl = res.data.platformValue + '?no=' + this.model.number + '&type=1'
this.$refs.modalWorkflow.show(this.model, sendWorkflowUrl, 320)
this.$refs.modalWorkflow.title = "发起流程"
}
})
} else {
this.$message.warning('请先保存单据后再提交流程');
}
}
}
}