From ecad399599cc91ebd70e2ed45262ca1579cbf9d2 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Fri, 01 Sep 2023 11:38:10 +0800
Subject: [PATCH] 订单管理接口调整

---
 src/views/qyp-project-order/admin.vue |  110 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 104 insertions(+), 6 deletions(-)

diff --git a/src/views/qyp-project-order/admin.vue b/src/views/qyp-project-order/admin.vue
index 8ae691e..7320164 100644
--- a/src/views/qyp-project-order/admin.vue
+++ b/src/views/qyp-project-order/admin.vue
@@ -131,16 +131,23 @@
             <el-descriptions-item label="项目名称">{{ orderDetail.projName }}</el-descriptions-item>
         </el-descriptions>
       </el-dialog>
+      <el-dialog top="2vh"  :title="subTitle" fullscreen :visible.sync="productShow" width="60%">
+          <history v-if="isWhith==1"></history>
+          <plan  v-else-if="isWhith==2"></plan>
+          <draw  v-else-if="isWhith==3"></draw>
+      </el-dialog>
     </div>
   </template>
-  
   <script>
-  import Etable from "../../components/table.vue";
+  import Etable from "@/components/table.vue";
+  import history from './history.vue';
+  import plan from './plan.vue';
+  import draw from './draw.vue';
   import {orderInit,orderDtl} from "@/api/credit";
   import uploadImg from "@/components/upload.vue";
   export default {
     name: "order",
-    components: { Etable,uploadImg },
+    components: { Etable,uploadImg,history,plan,draw },
     data() {
       return {
           formInline: {status:"all"},
@@ -205,7 +212,7 @@
             {
               lable: "操作",
               align: "center",
-              width: "200",
+              width: "300",
               fixed: "right",
               render: (h, scope) => {
                 return h("div", [
@@ -229,6 +236,76 @@
                       },
                     },
                     "查看详情"
+                  ),
+                  h(
+                    "el-button",
+                    {
+                      props:{
+                        type:'text'
+                      },
+                      style: {
+                        // display: this.filterBtnById(150101)
+                        //   ? "inline-block"
+                        //   : "none",
+                      },
+                      on: {
+                        click: () => {
+
+                          this.isWhith = 1;
+                          this.productShow  = true;
+                          // this.title = '订单详情'; 
+                          // let {orderId} = scope.row;
+                          // this.getProductDetail(orderId);
+                        },
+                      },
+                    },
+                    "支付历史"
+                  ),
+                  h(
+                    "el-button",
+                    {
+                      props:{
+                        type:'text'
+                      },
+                      style: {
+                        // display: this.filterBtnById(150101)
+                        //   ? "inline-block"
+                        //   : "none",
+                      },
+                      on: {
+                        click: () => {
+                          this.isWhith = 2;
+                          this.productShow  = true;
+                          // this.title = '订单详情'; 
+                          // let {orderId} = scope.row;
+                          // this.getProductDetail(orderId);
+                        },
+                      },
+                    },
+                    "扣款计划"
+                  ),
+                  h(
+                    "el-button",
+                    {
+                      props:{
+                        type:'text'
+                      },
+                      style: {
+                        // display: this.filterBtnById(150101)
+                        //   ? "inline-block"
+                        //   : "none",
+                      },
+                      on: {
+                        click: () => {
+                          this.isWhith = 3;
+                          this.productShow  = true;
+                          // this.title = '订单详情'; 
+                          // let {orderId} = scope.row;
+                          // this.getProductDetail(orderId);
+                        },
+                      },
+                    },
+                    "权益领取"
                   )
                 ]);
               },
@@ -236,10 +313,23 @@
           ],
           relustObj: {},
           addProd:false,
+          productShow:false,
           createdTime:[],
           title:"新增项目",
           orderDetail:{},
-          exportExcelList:[]
+          exportExcelList:[],
+          isWhith:''
+      }
+    },
+    computed:{
+      subTitle(){
+        let text ='支付历史';
+        if(this.isWhith==2){
+          text = '扣款计划'
+        }else if(this.isWhith==3){
+          text = '权益领取'
+        }
+        return text;
       }
     },
     watch:{
@@ -249,7 +339,15 @@
           }
         },
         deep: true
-      }
+      },
+      productShow:{
+        handler: function(val) {
+          if(!val){
+            this.isWhith ='';
+          }
+        },
+        deep: true
+      },
     },
     //生命周期 - 创建完成(可以访问当前this实例)
     created() {

--
Gitblit v1.8.0