提交 e45a7110 编写于 作者: KK's avatar KK

update:修复表单工作流启动未携带多表单数据

上级 97a6c631
...@@ -1237,8 +1237,18 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1237,8 +1237,18 @@ import { Util } from '@/ibiz-core/utils';
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
protected async wfstart(data: any, localdata?: any): Promise<any> { protected async wfstart(data: any, localdata?: any): Promise<any> {
if (!await this.validAll()) { this.currentAction = "wfstart";
return; if (this.data.srfuf =='1'? !await this.validAll():!await this.validAll('new')) {
this.$notice.error('值规则校验异常');
return Promise.reject();
}
if (isStateNext) {
this.drcounter = 1;
if (this.drcounter !== 0) {
this.formState.next({ type: 'beforewfstart', data: data });//先通知关系界面保存
this.saveState = Promise.resolve();
return Promise.reject();
}
} }
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
const formData = this.getData(); const formData = this.getData();
...@@ -1497,6 +1507,18 @@ import { Util } from '@/ibiz-core/utils'; ...@@ -1497,6 +1507,18 @@ import { Util } from '@/ibiz-core/utils';
if(this.drcounter > 0){ if(this.drcounter > 0){
return; return;
} }
if(Object.is(_this.currentAction, "wfstart")){
this.wfstart([this.data],false,false).then(response => {
if (!response || response.status !== 200) {
return;
}
const {
data: _data
} = response;
this.closeView(_data);
});
return;
}
this.save({}, undefined, false).then((res) =>{ this.save({}, undefined, false).then((res) =>{
//this.saveState(res); //this.saveState(res);
if(Object.is(_this.currentAction, "saveAndNew")){ if(Object.is(_this.currentAction, "saveAndNew")){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册