1236b879 by lxs

数据产品上架更新

1 parent 5cc5ea6e
......@@ -1198,13 +1198,16 @@ const setFormItems = (row: any = null, isDetail = false) => {
else if (item.field == 'qualityEvaluationFileInfo') {
item.default = row ? (row.evaluationFile ? row.evaluationFile : row[item.field] || []) : []
}
else if(item.field == 'pricingWay'){
item.default = row.fixPriceWay || row[item.field] || '';
}
else if (item.field == 'productPrice') {
item.default = row[item.field] || '';
item.visible = row?.pricingWay != '4';
item.default = row.pricingAmount || row[item.field] || '';
item.visible = (row.fixPriceWay || row.pricingWay) != '4';
}
else if (item.field == 'priceUnit') {
item.default = row[item.field] || '';
item.visible = row?.pricingWay != '4';
item.visible = (row.fixPriceWay || row.pricingWay) != '4';
}
else {
item.default = row[item.field] !== undefined ? row[item.field] : (item.default || '');
......@@ -1224,8 +1227,9 @@ const selectChange = async (val, row, info) => {
return;
}
const data = row.options.filter(o => o.damName == val);
const dataInfo = data.length ? data[0] : {};
let coverageArea = (data.length && data[0].coverageArea) ? data[0].coverageArea : [];
await setFormItems({ ...info, coverageArea: coverageArea });
await setFormItems({ ...info, ...dataInfo, coverageArea: coverageArea });
// formInfo.value.items.forEach((item: any) => {
// if (item.field == 'costAssessmentFileInfo') {
// item.default = data?.[0]?.assessmentFile || [];
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!