Ver código fonte

维多利亚申购修改

cz 2 anos atrás
pai
commit
3a7138e237

+ 0 - 0
src/components/WDLY/process/SendPurchase.vue → src/components/WDLY/process/SendPurchaseWDLY.vue


+ 0 - 0
src/components/WDLY/process/SendSubscribe.vue → src/components/WDLY/process/SendSubscribeWDLY.vue


+ 2 - 2
src/views/WDLY/purchaseManage/purchase/index.vue

@@ -510,9 +510,9 @@ const start = (type) => {
     row = selectData.value[0];
   }
   proxy.$router.replace({
-    path: "/WDLY/process/processApproval_wdly",
+    path: "/platform_manage/process/processApproval",
     query: {
-      flowKey: "purchase_flow",
+      flowKey: "wdly_purchase",
       ids,
     },
   });

+ 2 - 2
src/views/WDLY/purchaseManage/subscribe/index.vue

@@ -403,9 +403,9 @@ const getList = async (req) => {
 
 const openModal = () => {
   proxy.$router.replace({
-    path: "/WDLY/process/processApproval_wdly",
+    path: "/platform_manage/process/processApproval",
     query: {
-      flowKey: "subscribe_flow",
+      flowKey: "wdly_apply_purchase",
     },
   });
 };

+ 49 - 1
src/views/process/processApproval/index.vue

@@ -49,6 +49,16 @@
           v-else-if="flowForm.flowKey == 'service_contract_flow'"
           :queryData="queryData.data"
         ></ServiceContract>
+        <!-- 维多利亚 -->
+        <SendSubscribeWDLY
+          ref="makeDom"
+          v-if="flowForm.flowKey == 'wdly_apply_purchase'"
+        ></SendSubscribeWDLY>
+        <SendPurchaseWDLY
+          ref="makeDom"
+          v-else-if="flowForm.flowKey == 'wdly_purchase'"
+          :queryData="queryData.data"
+        ></SendPurchaseWDLY>
       </div>
       <div class="bottom">
         <div class="commons-title title">处理意见</div>
@@ -90,7 +100,7 @@
         <el-tab-pane label="决策辅助" name="second">决策辅助</el-tab-pane>
       </el-tabs>
     </div>
-    
+
     <el-dialog title="下一处理人" width="400" v-model="dialogVisible">
       <el-form :model="flowForm">
         <el-form-item prop="remark" label="处理人">
@@ -140,6 +150,11 @@ import PriceSheet from "@/components/process/PriceSheet";
 import Contract from "@/components/process/Contract";
 // 服务合同
 import ServiceContract from "@/components/process/ServiceContract";
+// /``````````````````````````````维多利亚专属 /
+//申购发起
+import SendSubscribeWDLY from "@/components/WDLY/process/SendSubscribeWDLY";
+//采购发起
+import SendPurchaseWDLY from "@/components/WDLY/process/SendPurchaseWDLY";
 
 const router = useRouter();
 const route = useRoute();
@@ -207,6 +222,31 @@ const handleSubmit = async () => {
           } else if (flowForm.flowKey == "account_request_funds_flow") {
           } else if (flowForm.flowKey == "sales_return_flow") {
           } else if (flowForm.flowKey == "refund_flow") {
+          } else if (flowForm.flowKey == "wdly_apply_purchase") {
+            data.subscribeDetailList = data.subscribeDetailList.map((x) => ({
+              bussinessId: x.bussinessId,
+              count: x.count,
+              remark: x.remark,
+            }));
+            const victoriatouristJson = {
+              planArrivalTime: data.planArrivalTime,
+              receiptWarehouseId: data.receiptWarehouseId,
+            };
+            data.victoriatouristJson = JSON.stringify(victoriatouristJson);
+          } else if (flowForm.flowKey == "wdly_purchase") {
+            data.purchaseDetailList = data.purchaseDetailList.map((x) => ({
+              bussinessId: x.bussinessId,
+              subscribeDetailId: x.id,
+              count: x.count,
+              price: x.price,
+              amount: x.amount,
+            }));
+            const victoriatouristJson = {
+              isAgreement: data.isAgreement,
+              paymentMethod: data.paymentMethod,
+              otherFeeList: data.otherFeeList,
+            };
+            data.victoriatouristJson = JSON.stringify(victoriatouristJson);
           }
           proxy
             .post("/flowProcess/initiate", {
@@ -265,6 +305,14 @@ const skipPage = () => {
     router.replace({
       path: "/salesMange/saleContract/serviceContract",
     });
+  } else if (flowForm.flowKey == "wdly_purchase") {
+    router.replace({
+      path: "/WDLY/purchaseManage/alreadyPurchase_wdly",
+    });
+  } else if (flowForm.flowKey == "wdly_apply_purchase") {
+    router.replace({
+      path: "/WDLY/purchaseManage/subscribe_wdly",
+    });
   }
 };
 let queryData = reactive({