|
@@ -124,6 +124,17 @@ export default {
|
|
if (idx >= 0) {
|
|
if (idx >= 0) {
|
|
return mjs.com.toastError(`第【${idx + 1}】记录, 报销金额已大于发票金额!`)
|
|
return mjs.com.toastError(`第【${idx + 1}】记录, 报销金额已大于发票金额!`)
|
|
}
|
|
}
|
|
|
|
+ // prd 分类求和, 费用明细中的预付款金额, 不能大于预算金额
|
|
|
|
+ idx = -1;
|
|
|
|
+ mjs.$this.$('tableField_krmybpq6').getValue().forEach((item, index) => {
|
|
|
|
+ if ((item.numberField_kxr3f3zy || item.numberField_kwd4ep08) > (item.numberField_kxr3f3zx || item.numberField_kwd4ep06)) {
|
|
|
|
+ idx = index;
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ if (idx >= 0) {
|
|
|
|
+ return mjs.com.toastError(`第【${idx + 1}】记录, 支付金额已大于报销金额!`)
|
|
|
|
+ }
|
|
// 兼容: 退回为监听宜搭dom事件, 先执行接口调用, 才会校验宜搭必填, 过滤无效调用 || 先匹配校验是否可调用
|
|
// 兼容: 退回为监听宜搭dom事件, 先执行接口调用, 才会校验宜搭必填, 过滤无效调用 || 先匹配校验是否可调用
|
|
const bx = (mjs.$this.$("numberField_krn54uoe") || mjs.$this.$("numberField_kroa4wk1")).getValue();
|
|
const bx = (mjs.$this.$("numberField_krn54uoe") || mjs.$this.$("numberField_kroa4wk1")).getValue();
|
|
const fk = (mjs.$this.$("numberField_krn7ufyt") || mjs.$this.$("numberField_krf2spcw")).getValue();
|
|
const fk = (mjs.$this.$("numberField_krn7ufyt") || mjs.$this.$("numberField_krf2spcw")).getValue();
|