Commit 8ef6b19d6be01eabcf5bccd8e0ee9ac8c6602508
1 parent
c15651d9
feat: add check msg
Showing
1 changed file
with
15 additions
and
8 deletions
src/views/project/order/FormDetail/index.vue
@@ -22,6 +22,7 @@ | @@ -22,6 +22,7 @@ | ||
22 | :forceRender="true" | 22 | :forceRender="true" |
23 | v-if="role === ROLE.ADMIN || role === ROLE.TRACKER" | 23 | v-if="role === ROLE.ADMIN || role === ROLE.TRACKER" |
24 | > | 24 | > |
25 | + <span className="text-red-600">{{ checkingMsg }}</span> | ||
25 | <BaseFormPanel ref="baseFormPanelRef" :id="id" :businessUsers="businessUsers" /> | 26 | <BaseFormPanel ref="baseFormPanelRef" :id="id" :businessUsers="businessUsers" /> |
26 | </TabPanel> | 27 | </TabPanel> |
27 | <TabPanel | 28 | <TabPanel |
@@ -30,7 +31,8 @@ | @@ -30,7 +31,8 @@ | ||
30 | :forceRender="true" | 31 | :forceRender="true" |
31 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.BUSINESS)" | 32 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.BUSINESS)" |
32 | > | 33 | > |
33 | - <div v-if="isProfitUnderReview" className="text-red-500">当前修改在审核中。</div> | 34 | + <span className="text-red-600">{{ checkingMsg }}</span> |
35 | + | ||
34 | <ProfitFormPanel ref="profitFormPanelRef" :id="id" :profitFormData="profitFormData" /> | 36 | <ProfitFormPanel ref="profitFormPanelRef" :id="id" :profitFormData="profitFormData" /> |
35 | </TabPanel> | 37 | </TabPanel> |
36 | <TabPanel | 38 | <TabPanel |
@@ -39,7 +41,8 @@ | @@ -39,7 +41,8 @@ | ||
39 | :forceRender="true" | 41 | :forceRender="true" |
40 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.BUSINESS)" | 42 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.BUSINESS)" |
41 | > | 43 | > |
42 | - <div v-if="isReportUnderReview" className="text-red-500">当前修改在审核中。</div> | 44 | + <span className="text-red-600">{{ checkingMsg }}</span> |
45 | + | ||
43 | <ReportFormPanel ref="reportFormPanelRef" :id="id" :reportFormData="reportFormData" /> | 46 | <ReportFormPanel ref="reportFormPanelRef" :id="id" :reportFormData="reportFormData" /> |
44 | </TabPanel> | 47 | </TabPanel> |
45 | <TabPanel | 48 | <TabPanel |
@@ -48,6 +51,8 @@ | @@ -48,6 +51,8 @@ | ||
48 | :forceRender="true" | 51 | :forceRender="true" |
49 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.TRACKER)" | 52 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.TRACKER)" |
50 | > | 53 | > |
54 | + <span className="text-red-600">{{ checkingMsg }}</span> | ||
55 | + | ||
51 | <TrackFormPanel ref="trackFormPanelRef" :id="id" :trackFormData="trackFormData" /> | 56 | <TrackFormPanel ref="trackFormPanelRef" :id="id" :trackFormData="trackFormData" /> |
52 | </TabPanel> | 57 | </TabPanel> |
53 | <TabPanel | 58 | <TabPanel |
@@ -56,6 +61,8 @@ | @@ -56,6 +61,8 @@ | ||
56 | :forceRender="true" | 61 | :forceRender="true" |
57 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.INSPECT)" | 62 | v-if="!!id && (role === ROLE.ADMIN || role === ROLE.INSPECT)" |
58 | > | 63 | > |
64 | + <span className="text-red-600">{{ checkingMsg }}</span> | ||
65 | + | ||
59 | <InspectionFormPanel | 66 | <InspectionFormPanel |
60 | ref="inspectionFormPanelRef" | 67 | ref="inspectionFormPanelRef" |
61 | :id="id" | 68 | :id="id" |
@@ -124,8 +131,6 @@ | @@ -124,8 +131,6 @@ | ||
124 | const reportFormPanelRef = ref(); | 131 | const reportFormPanelRef = ref(); |
125 | const trackFormPanelRef = ref(); | 132 | const trackFormPanelRef = ref(); |
126 | const inspectionFormPanelRef = ref(); | 133 | const inspectionFormPanelRef = ref(); |
127 | - const isProfitUnderReview = ref(false); | ||
128 | - const isReportUnderReview = ref(false); | ||
129 | 134 | ||
130 | // 编辑从接口获取的value | 135 | // 编辑从接口获取的value |
131 | const baseFormData = ref(); | 136 | const baseFormData = ref(); |
@@ -138,6 +143,7 @@ | @@ -138,6 +143,7 @@ | ||
138 | const id = ref(''); | 143 | const id = ref(''); |
139 | const configList = ref([]); | 144 | const configList = ref([]); |
140 | const businessUsers = ref([]); | 145 | const businessUsers = ref([]); |
146 | + const checkingMsg = ref(''); | ||
141 | 147 | ||
142 | onMounted(async () => { | 148 | onMounted(async () => { |
143 | // 获取包装费用和客户编码的关联关系 | 149 | // 获取包装费用和客户编码的关联关系 |
@@ -166,6 +172,8 @@ | @@ -166,6 +172,8 @@ | ||
166 | const [register, { closeDrawer }] = useDrawerInner((data) => { | 172 | const [register, { closeDrawer }] = useDrawerInner((data) => { |
167 | activeKey.value = | 173 | activeKey.value = |
168 | role.value === ROLE.INSPECT ? '5' : role.value === ROLE.BUSINESS ? '2' : '1'; | 174 | role.value === ROLE.INSPECT ? '5' : role.value === ROLE.BUSINESS ? '2' : '1'; |
175 | + | ||
176 | + checkingMsg.value = ''; | ||
169 | if (!data.id) { | 177 | if (!data.id) { |
170 | id.value = ''; | 178 | id.value = ''; |
171 | picUrl.value = ''; | 179 | picUrl.value = ''; |
@@ -227,7 +235,7 @@ | @@ -227,7 +235,7 @@ | ||
227 | data?.orderUpdateInfoVO?.profitAnalysisFields || {}; | 235 | data?.orderUpdateInfoVO?.profitAnalysisFields || {}; |
228 | 236 | ||
229 | //给个审核中提示 | 237 | //给个审核中提示 |
230 | - isProfitUnderReview.value = true; | 238 | + checkingMsg.value = '当前订单利润分析审核中'; |
231 | 239 | ||
232 | // 编辑了但是还没审核,先将页面的值变化 | 240 | // 编辑了但是还没审核,先将页面的值变化 |
233 | profitFormPanelRef?.value?.setFieldsValue({ | 241 | profitFormPanelRef?.value?.setFieldsValue({ |
@@ -255,7 +263,7 @@ | @@ -255,7 +263,7 @@ | ||
255 | data?.orderUpdateInfoVO?.reportFields; | 263 | data?.orderUpdateInfoVO?.reportFields; |
256 | 264 | ||
257 | //给个审核中提示 | 265 | //给个审核中提示 |
258 | - isReportUnderReview.value = true; | 266 | + checkingMsg.value = '当前订单项目报告书审核中'; |
259 | 267 | ||
260 | // 编辑了但是还没审核,先将页面的值变化 | 268 | // 编辑了但是还没审核,先将页面的值变化 |
261 | reportFormPanelRef?.value?.setFieldsValue({ | 269 | reportFormPanelRef?.value?.setFieldsValue({ |
@@ -376,8 +384,7 @@ | @@ -376,8 +384,7 @@ | ||
376 | register, | 384 | register, |
377 | handleSubmit, | 385 | handleSubmit, |
378 | businessUsers, | 386 | businessUsers, |
379 | - isProfitUnderReview, | ||
380 | - isReportUnderReview, | 387 | + checkingMsg, |
381 | }; | 388 | }; |
382 | }, | 389 | }, |
383 | }); | 390 | }); |