fix: 修复保洁绿植bug

This commit is contained in:
fyy
2025-07-11 11:37:04 +08:00
parent 031c744877
commit b44caa166a
5 changed files with 36 additions and 29 deletions

View File

@@ -103,14 +103,14 @@ const detailSchema = [
options: getDictOptions('pro_product_classification'),
},
},
{
label: '图片',
fieldName: 'imgPath',
component: 'InputNumber',
componentProps: {
disabled: true,
},
},
// {
// label: '图片',
// fieldName: 'imgPath',
// component: 'InputNumber',
// componentProps: {
// disabled: true,
// },
// },
{
label: '规格',
fieldName: 'specification',

View File

@@ -70,9 +70,9 @@ const [BasicModal, modalApi] = useVbenModal({
if ((isUpdate.value || isReadonly.value) && id) {
const record = await rentalPlanInfo(id);
// 后端返回绿植产品包列表结构处理
detailTable.value = record.productList.map((item:any) => {...item.product,Item.productNum});
console.log(detailTable.value);
// detailTable.value = record.productList.map((item:any) => {...item.product,item.productNum,});
detailTable.value = record.productList.map((item: any) => ({ ...item.product, productNum: item.productNum,productId: item.productId }));
// console.log(detailTable.value);
await formApi.setValues(record);
}
@@ -120,11 +120,11 @@ const detailColumns = [
{ title: '产品名称', dataIndex: 'plantName', key: 'plantName' },
{ title: '产品分类', dataIndex: 'plantType', key: 'plantType' },
{ title: '产品数量', dataIndex: 'productNum', key: 'productNum' },
{
title: '图片',
dataIndex: 'imgPath',
key: 'imgPath',
},
// {
// title: '图片',
// dataIndex: 'imgPath',
// key: 'imgPath',
// },
{
title: '规格',
dataIndex: 'specification',