Commit f82f92858113bc262ccbc77fdb7d124fe1b01550

Authored by boyang
1 parent 455e7b29

fix: bug修复042701

src/views/project/approve/ProduceFieldPanel.vue
@@ -130,7 +130,7 @@ @@ -130,7 +130,7 @@
130 const [registerTable, { reload }] = useTable({ 130 const [registerTable, { reload }] = useTable({
131 scroll: false, 131 scroll: false,
132 api: props.isApproved ? getApprovedListApi : getWaitListApi, 132 api: props.isApproved ? getApprovedListApi : getWaitListApi,
133 - searchInfo: { typeIn: [60, 70] }, 133 + searchInfo: { typeIn: [80, 90] },
134 columns, 134 columns,
135 useSearchForm: false, 135 useSearchForm: false,
136 formConfig: getFormConfig('true'), 136 formConfig: getFormConfig('true'),
src/views/project/approve/ProfitFieldPanel.vue
@@ -85,7 +85,11 @@ @@ -85,7 +85,11 @@
85 dataIndex: 'auditRoleCodes', 85 dataIndex: 'auditRoleCodes',
86 width: 150, 86 width: 150,
87 customRender: (column) => { 87 customRender: (column) => {
88 - return '业务研发净利字段'; 88 + if (column.record.type === 'FIELD_EDIT_APPLY') {
  89 + return '业务利润字段编辑申请';
  90 + } else if (column.record.type === 'INNER_PROFIT_FIELD_EDIT_APPLY') {
  91 + return '内部利润字段编辑申请';
  92 + }
89 }, 93 },
90 }, 94 },
91 { 95 {
src/views/project/finance/financeProfit/ProductProfit/InnerData/ApproveReason.vue
@@ -32,8 +32,9 @@ @@ -32,8 +32,9 @@
32 orderId: baseFieldValues.value.orderId, 32 orderId: baseFieldValues.value.orderId,
33 productionActualPrice: baseFieldValues.value.productionActualPrice, 33 productionActualPrice: baseFieldValues.value.productionActualPrice,
34 productionDepartmentPredictPrice: baseFieldValues.value.productionDepartmentPredictPrice, 34 productionDepartmentPredictPrice: baseFieldValues.value.productionDepartmentPredictPrice,
  35 + productionDepartmentPredictUnitPrice: baseFieldValues.value.productionDepartmentPredictUnitPrice,
35 applyRemark: baseFieldValues.value.applyRemark, 36 applyRemark: baseFieldValues.value.applyRemark,
36 - type: 70, 37 + type: 90,
37 }); 38 });
38 emit('success'); 39 emit('success');
39 setTimeout(() => { 40 setTimeout(() => {
src/views/project/finance/financeProfit/ProductProfit/InnerData/FinanceEdit.vue
@@ -142,18 +142,18 @@ @@ -142,18 +142,18 @@
142 const orderCount = ref(); 142 const orderCount = ref();
143 const id = ref(); 143 const id = ref();
144 const [register, { setDrawerProps, closeDrawer }] = useDrawerInner((data) => { 144 const [register, { setDrawerProps, closeDrawer }] = useDrawerInner((data) => {
  145 + console.log(data,'5656fdsfa');
145 // 方式1 146 // 方式1
146 if (data.data?.lockFields) { 147 if (data.data?.lockFields) {
147 status1.value = data.data?.lockFields?.productionDepartmentPredictPrice; 148 status1.value = data.data?.lockFields?.productionDepartmentPredictPrice;
148 status2.value = data.data?.lockFields?.productionActualPrice; 149 status2.value = data.data?.lockFields?.productionActualPrice;
149 - status3.value = data.data?.lockFields?.productionDepartmentPredictUnitprice; 150 + status3.value = data.data?.lockFields?.productionDepartmentPredictUnitPrice;
150 } 151 }
151 -  
152 id.value = data.data.orderId; 152 id.value = data.data.orderId;
153 - input1.value = data.data?.productionDepartmentPredictPrice.toFixed(2);  
154 - input2.value = data.data?.productionActualPrice.toFixed(2); 153 + input1.value = data.data?.productionDepartmentPredictPrice?.toFixed(2);
  154 + input2.value = data.data?.productionActualPrice?.toFixed(2);
155 orderCount.value = data.data?.orderCount; 155 orderCount.value = data.data?.orderCount;
156 - input3.value = data.data?.productionDepartmentPredictUnitprice.toFixed(2); 156 + input3.value = data.data?.productionDepartmentPredictUnitPrice?.toFixed(2);
157 resetFields(); 157 resetFields();
158 setDrawerProps({ confirmLoading: false }); 158 setDrawerProps({ confirmLoading: false });
159 // setFieldsValue({ 159 // setFieldsValue({
@@ -177,7 +177,7 @@ @@ -177,7 +177,7 @@
177 productionDepartmentPredictPrice: input1.value, 177 productionDepartmentPredictPrice: input1.value,
178 productionActualPrice: input2.value, 178 productionActualPrice: input2.value,
179 orderCount: orderCount.value, 179 orderCount: orderCount.value,
180 - productionDepartmentPredictUnitprice: input3.value, 180 + productionDepartmentPredictUnitPrice: input3.value,
181 }); 181 });
182 emit('success'); 182 emit('success');
183 closeDrawer(); 183 closeDrawer();
src/views/project/finance/financeProfit/ProductProfit/InnerData/data.tsx
@@ -139,9 +139,9 @@ export const COLUMNS = [ @@ -139,9 +139,9 @@ export const COLUMNS = [
139 { 139 {
140 title: '生产科预算单价¥', 140 title: '生产科预算单价¥',
141 width: 150, 141 width: 150,
142 - dataIndex: 'productionDepartmentPredictUnitprice', 142 + dataIndex: 'productionDepartmentPredictUnitPrice',
143 customRender: (column) => { 143 customRender: (column) => {
144 - return column.record?.productionDepartmentPredictUnitprice?.toFixed(2); 144 + return column.record?.productionDepartmentPredictUnitPrice?.toFixed(2);
145 }, 145 },
146 }, 146 },
147 { 147 {
src/views/project/finance/financeProfit/ProductProfit/InnerData/index.vue
@@ -170,7 +170,7 @@ @@ -170,7 +170,7 @@
170 popConfirm: { 170 popConfirm: {
171 title: '确认审批?', 171 title: '确认审批?',
172 confirm: () => { 172 confirm: () => {
173 - if (record.status === 0 && role.value === ROLE.ADMIN) { 173 + if (record.innerProduceStatus === 0 && role.value === ROLE.ADMIN) {
174 handleStatus(record, true); 174 handleStatus(record, true);
175 } 175 }
176 return; 176 return;
@@ -344,6 +344,7 @@ @@ -344,6 +344,7 @@
344 .catch((error) => { 344 .catch((error) => {
345 console.error(error); 345 console.error(error);
346 }); 346 });
  347 + handleClearChoose();
347 reload(); 348 reload();
348 } 349 }
349 350
src/views/project/finance/financeProfit/ProductProfit/InnerData/tableData.tsx
@@ -34,6 +34,13 @@ export const FIELDS_BASE_INFO = [ @@ -34,6 +34,13 @@ export const FIELDS_BASE_INFO = [
34 label: '实际发生费用', 34 label: '实际发生费用',
35 rules: [{ required: true }], 35 rules: [{ required: true }],
36 }, 36 },
  37 + {
  38 + field: 'productionDepartmentPredictUnitPrice',
  39 + component: 'Select',
  40 + labelWidth: 150,
  41 + label: '生产科预算单价',
  42 + rules: [{ required: true }],
  43 + },
37 ]; 44 ];
38 45
39 export const EDIT_INFO = [ 46 export const EDIT_INFO = [
@@ -58,5 +65,12 @@ export const EDIT_INFO = [ @@ -58,5 +65,12 @@ export const EDIT_INFO = [
58 label: '实际发生费用', 65 label: '实际发生费用',
59 rules: [{ required: true }], 66 rules: [{ required: true }],
60 }, 67 },
  68 + {
  69 + field: 'productionDepartmentPredictUnitPrice',
  70 + component: 'Select',
  71 + labelWidth: 150,
  72 + label: '生产科预算单价',
  73 + rules: [{ required: true }],
  74 + },
61 ]; 75 ];
62 76
src/views/project/finance/financeProfit/ProductProfit/InnerProduce/HistoryDetail.vue
@@ -134,12 +134,22 @@ @@ -134,12 +134,22 @@
134 const getOrderOptLogFunc = async (data, index, page) => { 134 const getOrderOptLogFunc = async (data, index, page) => {
135 console.log('%c [ data ]-135', 'font-size:13px; background:pink; color:#bf2c9f;', data); 135 console.log('%c [ data ]-135', 'font-size:13px; background:pink; color:#bf2c9f;', data);
136 if (index === 1) { 136 if (index === 1) {
137 - const res = await getProjectOptLog({ orderId: data, type: 30, page: page, pageSize: 20 }); 137 + const res = await getProjectOptLog({
  138 + projectNoPrefix: data,
  139 + type: 30,
  140 + page: page,
  141 + pageSize: 20
  142 + });
138 list1.value = res.items; 143 list1.value = res.items;
139 total1.value = res.total; 144 total1.value = res.total;
140 page1.value = page; 145 page1.value = page;
141 } else { 146 } else {
142 - const res = await getProjectOptLog({ orderId: data, type: 1, page: page, pageSize: 20 }); 147 + const res = await getProjectOptLog({
  148 + projectNoPrefix: data,
  149 + type: 1,
  150 + page: page,
  151 + pageSize: 20
  152 + });
143 list2.value = res.items; 153 list2.value = res.items;
144 total2.value = res.total; 154 total2.value = res.total;
145 page2.value = page; 155 page2.value = page;
src/views/project/finance/financeProfit/ProductProfit/InnerProduce/index.vue
@@ -171,7 +171,7 @@ @@ -171,7 +171,7 @@
171 popConfirm: { 171 popConfirm: {
172 title: '确认审核?', 172 title: '确认审核?',
173 confirm: () => { 173 confirm: () => {
174 - if (record.status === 0 && role.value === ROLE.ADMIN) { 174 + if (record.innerProductionStatus === 0 && role.value === ROLE.ADMIN) {
175 handleStatus(record, true); 175 handleStatus(record, true);
176 } 176 }
177 return; 177 return;
@@ -254,7 +254,7 @@ @@ -254,7 +254,7 @@
254 async function handleStatus(record, status) { 254 async function handleStatus(record, status) {
255 try { 255 try {
256 await setInnerProfitSetStatus({ 256 await setInnerProfitSetStatus({
257 - projectNo: record.projectNo, 257 + projectNo: record.projectNoPrefix,
258 customerCode: record.customerCode 258 customerCode: record.customerCode
259 }); 259 });
260 reload(); 260 reload();
@@ -405,6 +405,7 @@ @@ -405,6 +405,7 @@
405 .catch((error) => { 405 .catch((error) => {
406 console.error(error); 406 console.error(error);
407 }); 407 });
  408 + handleClearChoose();
408 reload(); 409 reload();
409 } 410 }
410 </script> 411 </script>
src/views/project/finance/financeProfit/ServiceProfit/PackageProfit/ApproveReason.vue
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 orderId: baseFieldValues.value.orderId, 32 orderId: baseFieldValues.value.orderId,
33 packetActualRmbTotalPrice: baseFieldValues.value.packetActualRmbTotalPrice, 33 packetActualRmbTotalPrice: baseFieldValues.value.packetActualRmbTotalPrice,
34 applyRemark: baseFieldValues.value.applyRemark, 34 applyRemark: baseFieldValues.value.applyRemark,
35 - type: 60, 35 + type: 80,
36 }); 36 });
37 emit('success'); 37 emit('success');
38 setTimeout(() => { 38 setTimeout(() => {
src/views/project/finance/financeProfit/ServiceProfit/PackageProfit/index.vue
@@ -176,7 +176,7 @@ @@ -176,7 +176,7 @@
176 popConfirm: { 176 popConfirm: {
177 title: '确认审核?', 177 title: '确认审核?',
178 confirm: () => { 178 confirm: () => {
179 - if (record.status === 0 && role.value === ROLE.ADMIN) { 179 + if (record.packStatus === 0 && role.value === ROLE.ADMIN) {
180 handleStatus(record, true); 180 handleStatus(record, true);
181 } 181 }
182 return; 182 return;
@@ -347,6 +347,7 @@ @@ -347,6 +347,7 @@
347 .catch((error) => { 347 .catch((error) => {
348 console.error(error); 348 console.error(error);
349 }); 349 });
  350 + handleClearChoose();
350 reload(); 351 reload();
351 } 352 }
352 async function onSelect(record, selected: boolean) { 353 async function onSelect(record, selected: boolean) {
src/views/project/finance/financeProfit/ServiceProfit/ServiceProfit/index.vue
@@ -79,6 +79,11 @@ @@ -79,6 +79,11 @@
79 bordered: true, 79 bordered: true,
80 columns: COLUMNS, 80 columns: COLUMNS,
81 clickToRowSelect: false, 81 clickToRowSelect: false,
  82 + formConfig: {
  83 + labelWidth: 120,
  84 + schemas: searchFormSchema,
  85 + autoSubmitOnEnter: true,
  86 + },
82 rowKey: (record) => record.detailProjectNo || record.id || record.serialNumber, 87 rowKey: (record) => record.detailProjectNo || record.id || record.serialNumber,
83 rowSelection: { 88 rowSelection: {
84 type: 'checkbox', 89 type: 'checkbox',
@@ -115,7 +120,7 @@ @@ -115,7 +120,7 @@
115 popConfirm: { 120 popConfirm: {
116 title: '确认审核?', 121 title: '确认审核?',
117 confirm: () => { 122 confirm: () => {
118 - if (record.status === 0 && role.value === ROLE.ADMIN) { 123 + if (record.developmentStatus === 0 && role.value === ROLE.ADMIN) {
119 handleStatus(record, true); 124 handleStatus(record, true);
120 } 125 }
121 return; 126 return;
@@ -187,7 +192,7 @@ @@ -187,7 +192,7 @@
187 try { 192 try {
188 await setBusinessProfitSetStatus({ 193 await setBusinessProfitSetStatus({
189 customerCode: record.customerCode, 194 customerCode: record.customerCode,
190 - projectNo: record.projectNo 195 + projectNo: record.projectNoPrefix,
191 }); 196 });
192 reload(); 197 reload();
193 } catch (error) { 198 } catch (error) {
@@ -247,6 +252,7 @@ @@ -247,6 +252,7 @@
247 .catch((error) => { 252 .catch((error) => {
248 console.error(error); 253 console.error(error);
249 }); 254 });
  255 + handleClearChoose();
250 reload(); 256 reload();
251 } 257 }
252 258