Kaynağa Gözat

修改班结信息,班结报表数据

MS-QJVSRANLTYEO\Administrator 4 yıl önce
ebeveyn
işleme
9548788101

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

@@ -4,7 +4,7 @@
       <el-form-item  prop="carNumber">开班时间:{{opo.classStartDate}} 班结人:{{opo.classStructureMan}}
       </el-form-item>
       <el-form-item>
-        <el-button icon="el-icon-plus" v-if="isclose" size="mini" @click="handleAdd">添加班结</el-button>
+        <el-button icon="el-icon-plus" v-if="isclose" size="mini" v-hasPermi="['station:structure:add']" @click="handleAdd">添加班结</el-button>
       </el-form-item>
     </el-form>
 
@@ -96,6 +96,7 @@ export default {
     //这是班结报表查看详情时传过来的数据
     if(classesNo!=null){
      this.resetQuery();
+     this.queryParams.classStructureMan=this.$route.query.name;
      this.queryParams.classStructureNo=this.$route.query.classesNo;
      this.queryParams.stationId=this.$route.query.stationId;
      this.getClassInfo();
@@ -108,13 +109,9 @@ export default {
         }else{
           //查询第一比订单的创建时间
           getPayOrderInfoMin().then(response1 => {{
-            console.log("response1",response1);
             this.opo.classStartDate = response1.data.createdDate;
           }});
         }
-        console.log("$store",this.$store);
-        console.log("state",this.$store.state);
-        console.log("user",this.$store.state.user);
         this.opo.classStructureMan =this.$store.state.user.name;
       });
       this.initPersonnelStructure();
@@ -129,6 +126,7 @@ export default {
       this.resetQuery();
       this.queryParams.classStructureNo=this.$route.query.classesNo;
       this.queryParams.stationId=this.$route.query.stationId;
+      this.queryParams.stationName=this.$route.query.name;
       this.getClassInfo();
       this.isclose=false;
     }
@@ -409,7 +407,6 @@ export default {
       this.title = "添加班结管理";
     },
     getClassInfo(){
-      this.queryParams.classStructureMan=this.$store.state.user.name;
       listClass(this.queryParams).then(response => {
         this.opo = response.data;
         this.queryParams.classStructureNo=response.data.classStructureNo;
@@ -429,6 +426,9 @@ export default {
       addStructure(this.form).then(response => {
         this.msgSuccess("班结成功");
         this.open = false;
+        this.queryParams.stationName=this.$store.state.user.stationName;
+        this.queryParams.stationId=this.$store.state.user.stationId;
+        this.queryParams.classStructureMan=this.$store.state.user.name;
         this.getClassInfo();
         this.isclose=false;
       });

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

@@ -76,9 +76,6 @@
       <el-table-column label="班结人" align="center" prop="classesMan" />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-<!--          <router-link :to="{path:'/station/structure',query:{classesNo:scope.row.classesNo,stationId:scope.row.stationId}}"  class="link-type">-->
-<!--            <span icon="el-icon-search" >查看 </span>-->
-<!--          </router-link>-->
           <el-button
             size="mini"
             type="text"
@@ -258,7 +255,7 @@ export default {
       this.handleQuery();
     },
     handlelook(row){
-      this.$router.push({path:'/station/structure',query:{classesNo:row.classesNo,stationId:row.stationId}});
+      this.$router.push({path:'/station/structure',query:{classesNo:row.classesNo,stationId:row.stationId,name:row.classesMan}});
     },
     /** 导出按钮操作 */
     handleExport(row) {