default.js 621 Bytes
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

/**
* Gitplb Default规则
*/
import Api from '~/service/Api';
import Utils from "~/utils/index"
import commonFunctions from '~/mixin/commonFunctions.js';




export default {
	mixins: [commonFunctions],
	methods: {
		defaultFunc () {
			// 根据max2的值是否大于0判断是否勾选附加金额字段
			let oldMax2Amt = this.model.gidgrp.cbs.max2.amt
			if (oldMax2Amt && Number(oldMax2Amt) > 0) {
				this.model.adaflg = 'X'
			}
    },
    setCfaflg() {
      if (this.model.cfagit.recgrp == null || this.model.cfagit.recgrp.bas.exguarancode =='' ){
        this.model.cfagit.cfaflg = '4';
      }
    },

	}
}