Jelajahi Sumber

修改班结信息展示

MS-QJVSRANLTYEO\Administrator 4 tahun lalu
induk
melakukan
20ae4110b9

+ 26 - 6
Yijia-SaaS/yijia-ui/src/views/customer/manage/index.vue

@@ -107,7 +107,7 @@
         </template>
       </el-table-column>
       <el-table-column label="油站id" align="center" prop="stationId" v-if="false"/>
-      <el-table-column label="油站名称" align="center" prop="stationNam" />
+      <el-table-column label="油站名称" align="center" prop="stationName" />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
@@ -249,7 +249,7 @@
 </template>
 
 <script>
-import { listManage, getManage, delManage, addManage, updateManage, exportManage } from "@/api/customer/manage";
+import { listManage, getManage, delManage, addManage, updateManage, exportManage,getOrderInfo } from "@/api/customer/manage";
 import {stationinfo} from "@/api/station/gun";
 
 export default {
@@ -297,7 +297,7 @@ export default {
         specialCarType: null,
         regtime: null,
         stationId: null,
-        stationNam: null
+        stationName: null
       },
       queryOrder:{
         pageNum: 1,
@@ -322,6 +322,25 @@ export default {
     });
   },
   methods: {
+    payTypeFotmat(row, column){
+      if(row.payType === 'sxf'){
+        return '随行付'
+      }
+    },
+    payWayFotmat(row, column){
+      if(row.payWay === '02'){
+        return '公众号'
+      }else if(row.payWay === '03'){
+        return '小程序'
+      }
+    },
+    statusFotmat(row, column){
+      if(row.status === '0'){
+        return '未支付'
+      }else if(row.status === '1'){
+        return '已支付'
+      }
+    },
     /** 查询客户管理列表 */
     getList() {
       this.loading = true;
@@ -336,7 +355,7 @@ export default {
       obj = this.stationOptions.find((item)=>{//这里的userList就是上面遍历的数据源
         return item.stationId === e;//筛选出匹配数据
       })
-      this.form.stationNam=obj.stationName;
+      this.form.stationName=obj.stationName;
     },
     // 取消按钮
     cancel() {
@@ -359,7 +378,7 @@ export default {
         specialCarType: null,
         regtime: null,
         stationId: null,
-        stationNam: null
+        stationName: null
       };
       this.resetForm("form");
     },
@@ -400,8 +419,9 @@ export default {
       this.queryOrder.oilName=row.oilName;
       this.queryOrder.stationId=row.stationId;
       getOrderInfo(this.queryOrder).then(response => {
-        this.orderList = response.data;
+        this.orderList = response.rows;
         this.openOrderInfo = true;
+        this.totalOrderInfo = response.total;
         this.titleOrderInfo = "查看客户订单信息";
         this.loading = false;
       });

+ 1 - 1
Yijia-SaaS/yijia-ui/src/views/station/structure/index.vue

@@ -421,9 +421,9 @@ export default {
       this.form.classStructureMan=this.$store.state.user.name;
       addStructure(this.form).then(response => {
         this.msgSuccess("班结成功");
-
         this.open = false;
         this.getClassInfo();
+        this.isclose=false;
       });
     }
   }