mo 4 gadi atpakaļ
vecāks
revīzija
da6f17e853

+ 4 - 1
src/views/musicalManager/index.vue

@@ -122,7 +122,7 @@
           <el-table-column align="center" prop="studentId" label="操作">
             <template slot-scope="scope">
               <div>
-                <el-button type="text">查看维修单</el-button>
+                <el-button type="text" @click="lookRepair(scope.row)">查看维修单</el-button>
               </div>
             </template>
           </el-table-column>
@@ -217,6 +217,9 @@ export default {
         }
       });
     },
+    lookRepair(row){
+      this.$router.push({path:'/business/repairList',query:{exemptionAmount:0,search:row.id}})
+    }
   },
 };
 </script>

+ 48 - 3
src/views/repairManager/repairList.vue

@@ -21,6 +21,14 @@
           ></el-input>
         </el-form-item>
         <el-form-item>
+          <el-input
+            type="number"
+            v-model.trim="searchForm.exemptionAmount"
+            clearable
+            placeholder="特权减免金额大于"
+          ></el-input>
+        </el-form-item>
+        <el-form-item>
           <el-select
             placeholder="维修技师"
             v-model="searchForm.employeeId"
@@ -285,13 +293,33 @@
             </el-form-item>
           </el-col>
         </el-row>
+        <el-form-item>
+          <div class="imgWrap">
+            <el-row :gutter="12">
+              <el-col :span="8"  v-for="url in imgList" :key="url">
+                <el-card class="box-card" :body-style="{ padding: '0px',}">
+              <el-image
+                style="width: 100px; height: 100px"
+                :src="url"
+                fit="fill"
+                 :preview-src-list="imgList"
+              ></el-image>
+            </el-card>
+              </el-col>
+
+            </el-row>
+
+          </div>
+        </el-form-item>
         <el-form-item
           label="问题描述及解决方案:"
           style="width: 100%; margin-bottom: 0"
         ></el-form-item>
         <div>
-          <el-image v-for="(item,index) in srcList" :key="index"
-            style="width: 100px; height: 100px;margin-right:10px"
+          <el-image
+            v-for="(item, index) in srcList"
+            :key="index"
+            style="width: 100px; height: 100px; margin-right: 10px"
             :src="url"
             :preview-src-list="srcList"
           >
@@ -388,6 +416,7 @@ export default {
         repairStatus: null,
         subjectId: null,
         time: [],
+        exemptionAmount: "",
       },
       repairVisible: false,
       employeeList: [],
@@ -404,13 +433,19 @@ export default {
       isInit: false,
       visibleForm: {},
       activeRow: null,
-      srcList:[]
+      srcList: [],
     };
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
+    if (this.$route.query.search) {
+      this.searchForm = {
+        ...this.searchForm,
+        ...this.$route.query,
+      };
+    }
     findAllTechnician().then((res) => {
       if (res.code == 200) {
         this.employeeList = res.data;
@@ -512,10 +547,20 @@ export default {
       }
     },
   },
+  computed: {
+    imgList() {
+      return this.activeRow?.repairImg?.split(",") || [];
+    },
+  },
 };
 </script>
 <style lang='scss' scoped>
 .visibleCell {
   // width: 180px;
 }
+
+.box-card {
+  align-items: center;
+  height: 102px;
+}
 </style>

+ 1 - 1
src/views/studentManager/components/studentLebao.vue

@@ -58,7 +58,7 @@
       >
         <el-table-column label="具体型号" align="center" prop="id">
           <template slot-scope="scope">
-            <copy-text>{{ scope.row.specification }}</copy-text>
+            <copy-text>{{ scope.row.goodsName }}</copy-text>
           </template>
         </el-table-column>
         <el-table-column label="乐器分类" align="center" prop="name">