5bf81f57 by lihua

fix: 修改江苏专区的产品上架重新提交问题

1 parent 2f6de1ec
...@@ -47,6 +47,7 @@ const isRegisterOptions = ref<any>([ ...@@ -47,6 +47,7 @@ const isRegisterOptions = ref<any>([
47 const damTypesOptions = ref<any>([ 47 const damTypesOptions = ref<any>([
48 { label: "自建", value: 1 }, 48 { label: "自建", value: 1 },
49 { label: "加工交付", value: 2 }, 49 { label: "加工交付", value: 2 },
50 { label: "江苏专区", value: 4 },
50 { label: "可信数据空间", value: 5 }, 51 { label: "可信数据空间", value: 5 },
51 ]) 52 ])
52 const searchItemList = ref([ 53 const searchItemList = ref([
......
...@@ -1191,9 +1191,6 @@ const setFormItems = (row: any = null, isDetail = false) => { ...@@ -1191,9 +1191,6 @@ const setFormItems = (row: any = null, isDetail = false) => {
1191 if (row.timeAreaStart && row.timeAreaEnd) { 1191 if (row.timeAreaStart && row.timeAreaEnd) {
1192 item.default = [row.timeAreaStart, row.timeAreaEnd]; 1192 item.default = [row.timeAreaStart, row.timeAreaEnd];
1193 } 1193 }
1194 if (row.foundMode == 5) {
1195 item.default = []
1196 }
1197 // else { 1194 // else {
1198 // item.default = row ? [row.timeAreaStart, row.timeAreaEnd] : null; 1195 // item.default = row ? [row.timeAreaStart, row.timeAreaEnd] : null;
1199 // } 1196 // }
...@@ -1228,6 +1225,7 @@ const setFormItems = (row: any = null, isDetail = false) => { ...@@ -1228,6 +1225,7 @@ const setFormItems = (row: any = null, isDetail = false) => {
1228 } 1225 }
1229 else { 1226 else {
1230 item.default = row[item.field] !== undefined ? row[item.field] : (item.default || ''); 1227 item.default = row[item.field] !== undefined ? row[item.field] : (item.default || '');
1228 item.field == 'productCode' && (item.visible = !!item.default)
1231 // if (item && item.hasOwnProperty('default')) { 1229 // if (item && item.hasOwnProperty('default')) {
1232 // item.default = row ? row[item.field] : (item.default || ''); 1230 // item.default = row ? row[item.field] : (item.default || '');
1233 // } else { 1231 // } else {
...@@ -1306,8 +1304,6 @@ const selectChange = async (val, row, info) => { ...@@ -1306,8 +1304,6 @@ const selectChange = async (val, row, info) => {
1306 } 1304 }
1307 } else if (row.field == 'pricingWay') { 1305 } else if (row.field == 'pricingWay') {
1308 await setFormItems({ ...info }); 1306 await setFormItems({ ...info });
1309 formInfo.value.items.at(10).visible = val != '4';
1310 formInfo.value.items.at(11).visible = val != '4';
1311 } 1307 }
1312 } 1308 }
1313 1309
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!