5bf81f57 by lihua

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

1 parent 2f6de1ec
......@@ -47,6 +47,7 @@ const isRegisterOptions = ref<any>([
const damTypesOptions = ref<any>([
{ label: "自建", value: 1 },
{ label: "加工交付", value: 2 },
{ label: "江苏专区", value: 4 },
{ label: "可信数据空间", value: 5 },
])
const searchItemList = ref([
......
......@@ -1191,9 +1191,6 @@ const setFormItems = (row: any = null, isDetail = false) => {
if (row.timeAreaStart && row.timeAreaEnd) {
item.default = [row.timeAreaStart, row.timeAreaEnd];
}
if (row.foundMode == 5) {
item.default = []
}
// else {
// item.default = row ? [row.timeAreaStart, row.timeAreaEnd] : null;
// }
......@@ -1228,6 +1225,7 @@ const setFormItems = (row: any = null, isDetail = false) => {
}
else {
item.default = row[item.field] !== undefined ? row[item.field] : (item.default || '');
item.field == 'productCode' && (item.visible = !!item.default)
// if (item && item.hasOwnProperty('default')) {
// item.default = row ? row[item.field] : (item.default || '');
// } else {
......@@ -1306,8 +1304,6 @@ const selectChange = async (val, row, info) => {
}
} else if (row.field == 'pricingWay') {
await setFormItems({ ...info });
formInfo.value.items.at(10).visible = val != '4';
formInfo.value.items.at(11).visible = val != '4';
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!