Commit 8ef6b19d6be01eabcf5bccd8e0ee9ac8c6602508

Authored by sanmu
1 parent c15651d9

feat: add check msg

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