Commit 82078dd3f7ac46d81718333bdbaa90df50ccb3f8

Authored by 曾国涛
1 parent 72eafa88

feat: bug修复

src/pages/Invoice/components/InvoiceDetailTable.tsx
... ... @@ -134,8 +134,15 @@ export default ({ recordId, details, updateDetails, readOnly }) => {
134 134 if (
135 135 record &&
136 136 item.tid === record.tid &&
137   - item.projectName !== record.projectName
  137 + item.projectName !==
  138 + '*' +
  139 + invoiceProject.productAndServiceCatagoryAbbreviation +
  140 + '*' +
  141 + invoiceProject?.name &&
  142 + item.specification !== invoiceProject?.specification
138 143 ) {
  144 + console.log(item.projectName);
  145 + console.log(invoiceProject?.name);
139 146 item.projectName =
140 147 '*' +
141 148 invoiceProject.productAndServiceCatagoryAbbreviation +
... ... @@ -151,7 +158,7 @@ export default ({ recordId, details, updateDetails, readOnly }) => {
151 158 },
152 159 }}
153 160 />
154   - {/*<ProCard title="表格数据" headerBordered collapsible defaultCollapsed>
  161 + {/*{<ProCard title="表格数据" headerBordered collapsible defaultCollapsed>
155 162 <ProFormField
156 163 ignoreFormItem
157 164 fieldProps={{
... ... @@ -163,7 +170,7 @@ export default ({ recordId, details, updateDetails, readOnly }) =&gt; {
163 170 valueType="jsonCode"
164 171 text={JSON.stringify(details)}
165 172 />
166   - </ProCard>*/}
  173 + </ProCard>}*/}
167 174 </>
168 175 );
169 176 };
... ...