|
|
|
@ -1752,7 +1752,7 @@ export default {
|
|
|
|
url += contract?.flow_id
|
|
|
|
url += contract?.flow_id
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "other":
|
|
|
|
case "other":
|
|
|
|
let other = row.contract_flow_links.find(i => i.custom_model_id === row.flow_mod_id)
|
|
|
|
let other = row.contract_flow_links.find(i => i.custom_model_id == row.flow_mod_id)
|
|
|
|
url += other[0]?.flow_id
|
|
|
|
url += other[0]?.flow_id
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
@ -1879,12 +1879,14 @@ export default {
|
|
|
|
async buyProcess(row,flow) {
|
|
|
|
async buyProcess(row,flow) {
|
|
|
|
// flow 关联后的回调,打开哪种流程创建
|
|
|
|
// flow 关联后的回调,打开哪种流程创建
|
|
|
|
// 获取可以 oa自动发起的流程
|
|
|
|
// 获取可以 oa自动发起的流程
|
|
|
|
|
|
|
|
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
item.custom_model_id === row.flow_model_id
|
|
|
|
|
|
|
|
|
|
|
|
item.custom_model_id == row.flow_mod_id
|
|
|
|
);
|
|
|
|
);
|
|
|
|
console.log("row,flow",row,flow)
|
|
|
|
console.log("row,flow",row,flow,hasMatch)
|
|
|
|
if(!flow){
|
|
|
|
if(!flow){
|
|
|
|
if(true){
|
|
|
|
if(hasMatch){
|
|
|
|
this.$refs.oaLink.row = row
|
|
|
|
this.$refs.oaLink.row = row
|
|
|
|
this.$refs.oaLink.flow = 'buyProcess'
|
|
|
|
this.$refs.oaLink.flow = 'buyProcess'
|
|
|
|
this.$refs.oaLink.isShowOaLinkModal = true
|
|
|
|
this.$refs.oaLink.isShowOaLinkModal = true
|
|
|
|
@ -1932,7 +1934,7 @@ export default {
|
|
|
|
async signProcess(row,flow) {
|
|
|
|
async signProcess(row,flow) {
|
|
|
|
// 72
|
|
|
|
// 72
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
item.custom_model_id === row.flow_model_id
|
|
|
|
item.custom_model_id == row.flow_mod_id
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if(!flow){
|
|
|
|
if(!flow){
|
|
|
|
if(hasMatch){
|
|
|
|
if(hasMatch){
|
|
|
|
@ -1960,7 +1962,7 @@ export default {
|
|
|
|
async paying(row,flow) {
|
|
|
|
async paying(row,flow) {
|
|
|
|
// 75
|
|
|
|
// 75
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
const hasMatch = this.flowConfig.some(item =>
|
|
|
|
item.custom_model_id === row.flow_model_id
|
|
|
|
item.custom_model_id == row.flow_mod_id
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if(!flow){
|
|
|
|
if(!flow){
|
|
|
|
if(hasMatch){
|
|
|
|
if(hasMatch){
|
|
|
|
|