referenceIgnore.js 877 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/**
 * 获取有引用关系动作的忽略字段
 * 应用存草稿功能或者是复制单据功能时,一些引用字段需要置为空。
 * 存草稿忽略字段三个来源:
 * 1.固定写死的系统字段id,billCode,billState,flowState,BILLSTATEAUDIT
 * 2.存草稿动作或者是复制单据动作,自行扩展的忽略字段
 * 3.有引用关系的动作配置的字段
 * 后续如果新增有引用类型的动作,需要考虑忽略字段
 * @author qiaoyanqi
 * @date 2022-01-24
 */
export function actionIgnoreField(bill) {
13 14
    let action = bill.curForm.content.actions;
    if (action && action.length > 0) {
qiaoyanqi committed
15
      let obj = action.find(v=>v.execute  == 'customerSelectAction')//引用申请单动作
16 17 18 19 20 21 22
      let str =''
      if(obj && obj.param && obj.param.field){
        str += Object.keys(obj.param.field).join();
      }
      return str;
    } 
  }