Przeglądaj źródła

完善盲票组列表

hwb0 3 lat temu
rodzic
commit
caf3ae8e52
1 zmienionych plików z 28 dodań i 15 usunięć
  1. 28 15
      src/views/business/ticket/index.vue

+ 28 - 15
src/views/business/ticket/index.vue

@@ -9,7 +9,7 @@
     >
       <el-form-item label="盲票组名称">
         <el-input
-          v-model="queryParams.name"
+          v-model="queryParams.title"
           placeholder="请输入盲票组名称"
           clearable
           size="small"
@@ -93,7 +93,7 @@
         fixed="left"
       />
       <el-table-column label="盲票组ID" prop="boxId" min-width="80" />
-      <el-table-column label="盲票图片" prop="storeName" min-width="100">
+      <el-table-column label="盲票图片" prop="picUrl" min-width="100">
         <template slot-scope="scope">
           <div>
             <el-image
@@ -105,24 +105,36 @@
         </template>
       </el-table-column>
       <el-table-column label="盲票组名称" prop="title" min-width="85" />
-      <el-table-column label="盲票组面值" prop="billType" min-width="85">
+      <el-table-column label="盲票组面值" prop="facePrice" min-width="85">
         <template slot-scope="scope">
           <div>¥{{ $numberFormat(scope.row.facePrice) }}</div>
         </template>
       </el-table-column>
-      <el-table-column label="盲票总数" prop="quantity" width="80" />
-      <el-table-column label="已售张数" prop="saleQty" min-width="80" />
-      <el-table-column label="盲票类型" prop="realAmt" min-width="80">
+      <el-table-column label="盲票总数" prop="quantity" width="90">
         <template slot-scope="scope">
-          {{ scope.row.type == 1 ? "线下" : "线上" }}
+          <div>{{ scope.row.quantity }}张</div>
         </template>
       </el-table-column>
-      <el-table-column label="采购单价" prop="status" min-width="80">
+      <el-table-column label="已售张数" prop="saleQty" min-width="90">
         <template slot-scope="scope">
-          <div>¥{{ $numberFormat(scope.row.pkgSalePrice) }}</div>
+          <div>{{ scope.row.saleQty }}张</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="盲票类型" prop="type" min-width="80">
+        <template slot-scope="scope">
+          {{ scope.row.type.desc }}
+        </template>
+      </el-table-column>
+      <el-table-column label="采购单价" prop="pkgSalePrice" min-width="90">
+        <template slot-scope="scope">
+          <div>¥{{ $numberFormat(scope.row.pkgSalePrice) }}/包</div>
+        </template>
+      </el-table-column>
+      <el-table-column label="已采购数量" prop="salePkgQty" min-width="90">
+        <template slot-scope="scope">
+          <div>{{ scope.row.salePkgQty }}张</div>
         </template>
       </el-table-column>
-      <el-table-column label="已采购数量" prop="salePkgQty" min-width="80" />
       <el-table-column label="状态" prop="status" min-width="80">
         <template slot-scope="scope">
           {{ scope.row.status.desc }}
@@ -171,7 +183,7 @@ export default {
       loading: false,
       showSearch: true,
       queryParams: {
-        name: "",
+        title: "",
         ticketType: "",
         ticketState: "",
       },
@@ -208,6 +220,7 @@ export default {
               let picUrlArr = item.picUrl.split(",");
               item.picUrl = publicFileGetUrl + picUrlArr[0];
               item.status = JSON.parse(item.status);
+              item.type = JSON.parse(item.type);
             });
             this.total = res.total;
             this.list = res.rows;
@@ -218,7 +231,9 @@ export default {
         });
     },
     // 搜索
-    handleQuery() {},
+    handleQuery() {
+      this.getList()
+    },
     // 重置
     resetQuery() {},
     // 添加盲票组
@@ -228,9 +243,7 @@ export default {
     // 表格多选
     handleSelectionChange() {},
 
-    handleDetail(){
-
-    },
+    handleDetail() {},
   },
   components: {},
   mounted() {},