Parcourir la source

详情页调整

qymljy il y a 2 ans
Parent
commit
305a22e5f1

+ 4 - 0
src/HDrpManagement/dispatch/details/index.vue

@@ -125,6 +125,10 @@ import defaultInfo from '../modules/defaultInfo.vue'
             label:'制单时间',
             value:this.mainData.createdate,
           },
+          {
+            label:'关闭时间',
+            value:this.mainData.closedate,
+          },
           {
             label:'备注',
             value:this.mainData.remarks

+ 7 - 3
src/HDrpManagement/payvoucher/details/index.vue

@@ -63,7 +63,7 @@ export default {
       })
       this.mainData = res.data
       console.log(this.mainData);
-      
+
       this.changeDataStructure()
     },
     changeDataStructure(){
@@ -131,6 +131,10 @@ export default {
           label:'确认金额',
           value:this.mainData.status === '审核'?this.tool.formatAmount(this.mainData.amount,2):'--'
         },
+        {
+          label:'归属日期',
+          value:this.mainData.period
+        },
       ]
     },
     // 监听切换数据,上一页,下一页
@@ -145,7 +149,7 @@ export default {
   },
   created() {
     console.log('触发111');
-    
+
     this.queryMainData(this.$route.query.id)
   }
 }
@@ -153,4 +157,4 @@ export default {
 
 <style scoped>
 
-</style>
+</style>

+ 3 - 3
src/components/newLayout/index.vue

@@ -13,7 +13,7 @@
           </div>
         </div>
       </div>
-      <navTemp  @getModules="getModules"></navTemp>
+<!--      <navTemp  @getModules="getModules"></navTemp>-->
     </div>
     <socketMessage></socketMessage>
   </div>
@@ -89,7 +89,7 @@ export default {
 .body__panel{
   height: 100vh;
   /* padding-right: 16px; */
-  padding-right: 60px;
+ /* padding-right: 60px;*/
   margin-right: 10px;
   overflow-y: scroll;
 }
@@ -109,4 +109,4 @@ export default {
   background: #fff;
 }
 
-</style>
+</style>

+ 17 - 17
src/components/normal-basic-layout/details/index.vue

@@ -3,7 +3,7 @@
     <div style="margin:10px 10px 0 10px;border-radius:5px;" class="container normal-panel sticky" @click="closeTags">
       <div class="flex-align-start flex-between normal-margin" style="flex-wrap:nowrap">
         <div>
-          <p class="main_title mt-10">{{titleText?titleText:'##'}}</p>
+          <p class="main_title mt-10"><i class="el-icon-back" @click="$store.dispatch('changeDetailDrawer',false)" style="color: #c7c7c7"></i>{{titleText?titleText:'##'}}</p>
           <tagTemp v-if="activeApp.isdatatag" ref="tag" :ownertable="ownertable?ownertable:idname.slice(0, this.idname.length - 2)" @onSuccess="onSuccess"></tagTemp>
         </div>
         <div class="flex-align-center" style="flex: 1 0 auto;  justify-content: flex-end;">
@@ -64,10 +64,10 @@
         <div v-else style="text-align-center" class="container normal-panel">
           <el-button slot="collapse" type="text" icon="el-icon-s-fold" @click="onCollapse"></el-button>
         </div>
-        
+
       </el-row>
     </div>
-    
+
   </div>
 </template>
 
@@ -115,9 +115,9 @@ export default {
         })
         return data
       } catch (error) {
-        
+
       }
-      
+
     },
     mainAData2 () {
       try {
@@ -128,9 +128,9 @@ export default {
         })
         return data
       } catch (error) {
-        
+
       }
-      
+
     },
     ...mapGetters({
       activeApp:"activeApp",
@@ -171,7 +171,7 @@ export default {
           "systemappid":this.systemappid,
         }
       })
-      
+
       this.reportCenterLsit = res.data
     },
     async printBtn (data,data2) {
@@ -183,8 +183,8 @@ export default {
         }
       })
       this.tool.showMessage(res,() => {
-        
-        window.open(this.tool.getBaseUrl() + res.data + `&${this.idname}=${data}`)  
+
+        window.open(this.tool.getBaseUrl() + res.data + `&${this.idname}=${data}`)
       })
     },
     async next () {
@@ -221,7 +221,7 @@ export default {
       const fun = (rs)=>{
         let nowId = this.$route.query.id
         let changeId = ''
-       
+
         if (rs == 0) {
           changeId = this.svlistData.listData[this.svlistData.listData.length - 1][this.idname]
         } else {
@@ -245,7 +245,7 @@ export default {
     },
     onSuccess () {
       this.$emit('onEditSuccess')
-      
+
     },
     deleteData () {
       this.$confirm('确定删除当前数据吗?', '提示', {
@@ -273,12 +273,12 @@ export default {
           this.$store.dispatch('changeDetailDrawer',false)
         })
       }).catch((err) => {
-        
+
         console.log(err)
         this.$message({
           type: 'info',
           message: '已取消删除'
-        });          
+        });
       });
     },
     checkDisabled () {
@@ -314,7 +314,7 @@ export default {
         let n = 0
         this.svlistData.listData.filter((e,index)=>{
           if (e[this.idname] == id){
-            
+
             n = index
           }
         })
@@ -331,7 +331,7 @@ export default {
   mounted () {
     // this.checkPaginationData()
     this.idx = this.$route.query.rowindex
-    
+
   },
   created () {
     this.$emit('detailCreate',this.param)
@@ -384,4 +384,4 @@ export default {
   margin-right:16px;
   line-height: 2rem;
 }
-</style>
+</style>

+ 2 - 2
src/components/normal-basic-layout/drawerDetail/drawer.vue

@@ -3,7 +3,7 @@
     :visible.sync="closeDrawerTemp"
     :with-header="false"
     direction="rtl"
-    :size="drawerWidth?drawerWidth+ '%' : 90 + '%'"
+    :size="drawerWidth?drawerWidth+ '%' : 100 + '%'"
     append-to-body
     :before-close="closeDrawer">
     <div class="detail__panel">
@@ -64,4 +64,4 @@ export default {
   color:#666;
   height:100vh;
 }
-</style>
+</style>

+ 1 - 1
src/components/normal-basic-layout/index.vue

@@ -87,7 +87,7 @@
         </div>
       </div>
     </div>
-    <drawer :drawerWidth="drawerWidth" @onSuccess="listData"></drawer>
+    <drawer :drawerWidth="drawerWidth" @onSuccess="listData" style="width: 100%"></drawer>
   </div>
 </template>
 

+ 1 - 1
src/views/homePage/index.vue

@@ -120,4 +120,4 @@ export default {
 .modules-item:hover .setting-panel{
   display: block;
 }
-</style>
+</style>