Browse Source

fix:[表单管理]GSP005

luojie
15881625488@163.com 3 weeks ago
parent
commit
f5b0ef4d83
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      src/views/business/comps/template/comps/gsp/GSP005.vue

+ 7
- 6
src/views/business/comps/template/comps/gsp/GSP005.vue View File

@ -701,7 +701,7 @@ export default {
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。'); callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。');
} }
/// ///
if (key === "rjbhphSub" && !isCommonUnit(selectData.row.nddw, [formFields.rjsjndUnit])) {
if (key === "rjbhphSub" && selectData.row.kcdw!==formFields.rjsjtjUnit) {
callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。'); callback.prevent('浓度单位与预制不符,请重新选择或申请废止并重新预制。');
} }
}, },
@ -724,13 +724,13 @@ export default {
const { selectData, callback, key, formFields } = data; const { selectData, callback, key, formFields } = data;
debugger debugger
/// ///
if (key === "rjbhphSub" && !isCommonUnit(selectData.row.nddw, [formFields.rjsjndUnit])) {
if (key === "rjbhphSub" && selectData.row.kcdw!==formFields.rjsjtjUnit) {
callback.prevent('库存单位与预制不符,请重新选择或申请废止并重新预制。');
}
///
if (key === "sywzbhphSub" && !isCommonUnit(selectData.row.kcdw, [formFields.sywzsjclzUnit])) {
callback.prevent('库存单位与预制不符,请重新选择或申请废止并重新预制。'); callback.prevent('库存单位与预制不符,请重新选择或申请废止并重新预制。');
} }
// ///
// if (key === "sywzbhphSub" && !isCommonUnit(selectData.row.kcdw, [formFields.sywzsjclzUnit])) {
// callback.prevent('');
// }
}, },
onTableRegentZlSubmit(zlIndex, data) { onTableRegentZlSubmit(zlIndex, data) {
if (data.key === 'sywzbhphSub') { if (data.key === 'sywzbhphSub') {
@ -892,6 +892,7 @@ export default {
if (tableListZl && tableListZl.length > 0) { if (tableListZl && tableListZl.length > 0) {
for (let i = 0; i < tableListZl.length; i++) { for (let i = 0; i < tableListZl.length; i++) {
let item = tableListZl[i] let item = tableListZl[i]
debugger
tmpResource.push({ tmpResource.push({
mc: item.targetName, mc: item.targetName,
bh: item.targetCode + item.targetCodeSn, bh: item.targetCode + item.targetCodeSn,

Loading…
Cancel
Save