Bladeren bron

提交修改

Lijy 3 jaren geleden
bovenliggende
commit
b6bba8083e

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet/config/index.js

@@ -1,7 +1,8 @@
 var path = require('path')
 
 //  var ip = '127.0.0.1'
-var ip = '192.168.2.39'
+// var ip = '192.168.2.39'
+var ip = '192.168.2.2'
 // var ip = '192.168.2.39'
 // var ip = '192.168.2.12'// var ip = '47.100.37.243' 
 

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/Home.vue

@@ -516,7 +516,7 @@
                 }
             }
             .logo-width {
-                width: 230px;
+                width: 200px;
             }
             .logo-collapse-width {
                 width: 60px;
@@ -562,8 +562,8 @@
                 width: 60px;
             }
             .menu-expanded {
-                flex: 0 0 230px;
-                width: 230px;
+                flex: 0 0 200px;
+                width: 200px;
             }
             .content-container {
                 flex: 1;

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -48,7 +48,7 @@
             <!--项目报表 -->
             <el-table v-if="ins == 0" :key="ins" border :data="list0" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
                 <el-table-column  prop="projectCode" label="项目编号"  width="120"></el-table-column>
-                <el-table-column  prop="projectName" label="项目名称" >
+                <el-table-column  prop="projectName" label="项目名称" width="200">
                   <template slot-scope="scope" >
                     {{scope.row.projectName}}
                   </template>

+ 21 - 4
fhKeeper/formulahousekeeper/timesheet/src/views/expense/expense.vue

@@ -112,7 +112,10 @@
             <el-table-column prop="projectName" label="所属项目" width="180">
               <template slot-scope="scope">
                 <el-select size="small" v-model="scope.row.projectId" placeholder="项目" style="width: 150px" filterable>
-                  <el-option v-for="(item, index) in projectList" :key="index" :label="item.projectName" :value="item.id" @click="ok(item)"></el-option>
+                  <el-option v-for="(item, index) in projectList" :key="index" :label="item.projectName + item.projectCode" :value="item.id" @click="ok(item)">
+                    <span style="float: left;color: #8492a6; font-size: 13px">{{ item.projectCode }}</span>
+                    <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
+                  </el-option>
                 </el-select>
               </template>
             </el-table-column>
@@ -331,7 +334,10 @@
             <el-table-column prop="projectId" label="项目" width="155">
                 <template slot-scope="scope">
                   <el-select size="small" v-if="!flg" v-model="scope.row.projectId" placeholder="项目" style="width: 130px">
-                    <el-option v-for="(item, index) in projectList" :key="index" :label="item.projectName" :value="item.id" @click="ok(item)"></el-option>
+                    <el-option v-for="(item, index) in projectList" :key="index" :label="item.projectName + item.projectCode" :value="item.id" @click="ok(item)">
+                      <span style="float: left;color: #8492a6; font-size: 13px">{{ item.projectCode }}</span>
+                      <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
+                    </el-option>
                   </el-select>
                   <!-- <span v-else>{{projectIdName[scope.$index].projectName}}</span> -->
                   <div v-else>
@@ -367,7 +373,7 @@
             </el-table-column>
             <el-table-column prop="amount" label="费用金额(含税:元)" width="172">
               <template slot-scope="scope">
-                <el-input size="small"  v-if="!flg" :id="'am'+scope.$index" v-model="scope.row.amount" @change="kan" @keyup.native="restrictNumber('am'+scope.$index)"></el-input>
+                <el-input size="small"  v-if="!flg" :id="'am'+scope.$index" v-model="scope.row.amount" @input="zhiNum(scope.$index, scope)" @change="kan" @keyup.native="restrictNumber('am'+scope.$index)"></el-input>
                 <span v-else>¥{{scope.row.amount}}</span>
               </template>
             </el-table-column>
@@ -379,7 +385,7 @@
             </el-table-column>
             <el-table-column prop="taxPercent" label="税率%" width="172">
               <template slot-scope="scope">
-                <el-input size="small"  v-if="!flg" v-model="scope.row.taxPercent"></el-input>
+                <el-input size="small"  v-if="!flg" v-model="scope.row.taxPercent" @input="zhiNum(scope.$index, scope)"></el-input>
                 <span v-else>{{scope.row.taxPercent}}</span>
               </template>
             </el-table-column>
@@ -999,6 +1005,7 @@ export default {
       }, 0)
     },
     zhi(e) {
+      console.log('看看值', e)
       var i = e
       if(this.invoiceList[i].amount == null || this.invoiceList[i].amount == 'null' || this.invoiceList[i].taxPercent == null || this.invoiceList[i].taxPercent == 'null') {
         return
@@ -1009,6 +1016,16 @@ export default {
       var zhi = this.invoiceList[i].amount / (1 + shui) * shui
       this.invoiceList[i].taxValue = zhi.toFixed(2)
     },
+    zhiNum(i, val) {
+      console.log('看看值', i, val)
+      console.log(this.ParticularsList.invoiceList)
+      if(this.ParticularsList.invoiceList[i].amount == null || this.ParticularsList.invoiceList[i].amount == 'null' || this.ParticularsList.invoiceList[i].taxPercent == null || this.ParticularsList.invoiceList[i].taxPercent == 'null') {
+        return
+      }
+      var shui =  this.ParticularsList.invoiceList[i].taxPercent / 100
+      var zhi = this.ParticularsList.invoiceList[i].amount / (1 + shui) * shui
+      this.ParticularsList.invoiceList[i].taxValue = zhi.toFixed(2)
+    },
     zhis(e) {
       var i = e
       this.invoiceList[i].taxValue = this.invoiceList[i].taxValue.toFixed(2)

+ 36 - 18
fhKeeper/formulahousekeeper/timesheet/src/views/leave/list.vue

@@ -1,6 +1,6 @@
 <template>
-  <section>
-    <div class="sidebars" ref="sidebars" style="width: 200px;display: block;background: #fff">
+  <section id="section">
+    <div class="sidebars" ref="sidebars" :style="'width: 180px;display: block;background: #fff;height:'+hubs+ 'px'">
       <h3><i class="iconfont firerock-iconbaoxiao" style="padding-right: 10px"></i>请假管理</h3>
       <el-divider ></el-divider>
       <el-col :span="12">
@@ -87,7 +87,7 @@
     <!-- 上面部分 -->
     <div v-if="!displayTable && apk == false" class="tops">
         <!-- 公共 -->
-        <div class="ctons">
+        <div class="ctons" :style="'width: '+kuanBl+'px'">
             <!-- 表单 -->
             <el-form ref="addForm" :model="addForm" label-width="80px" :rules="addFormRules">
                 <!-- 请假类型 -->
@@ -172,10 +172,10 @@
     <!-- 下面部分 -->
     <div v-if="displayTable && apk == false" class="tops">
         <!-- 公共 -->
-        <div class="ctons">
+        <div class="ctons" :style="'width: '+kuanBl+'px'">
           <div class="flex">
             <div>
-              <el-select v-model="ownerIds" placeholder="请选择请假人" clearable @change="chufas()" style="width: 180px" size="small" v-show="permissions.leaveAll" filterable="true">
+              <el-select v-model="ownerIds" placeholder="请选择请假人" clearable @change="chufas()" style="width: 160px" size="small" v-show="permissions.leaveAll" filterable="true">
                   <span v-for="(item, index) in users" :key="index">
                   <el-option :label="item.name" :value="item.id"></el-option>
                   </span> 
@@ -183,7 +183,7 @@
             </div>
             <div>
               <span style="color: #606266">请假类型</span>
-              <el-select v-model="type" placeholder="请选择请假类型" clearable @change="chufas()" style="width: 180px;" size="small" filterable="true">
+              <el-select v-model="type" placeholder="请选择请假类型" clearable @change="chufas()" style="width: 160px;" size="small" filterable="true">
                   <span v-for="(item, index) in typess" :key="index">
                   <el-option :label="item.name" :value="item.id"></el-option>
                   </span> 
@@ -191,12 +191,12 @@
             </div>
             <div>
               <span style="color: #606266">请假状态</span>
-              <el-select v-if="falg == 0" v-model="code" placeholder="请选择请假状态" clearable @change="chufas()" size="small" style="width: 180px" filterable="true">
+              <el-select v-if="falg == 0" v-model="code" placeholder="请选择请假状态" clearable @change="chufas()" size="small" style="width: 160px" filterable="true">
                   <span v-for="(item, index) in statuss" :key="index">
                   <el-option :label="item.name" :value="item.id"></el-option>
                   </span> 
               </el-select>
-              <el-select v-if="falg == 1" disabled v-model="code" placeholder="请选择请假类型" clearable @change="chufas()" size="small" style="width: 180px" filterable="true">
+              <el-select v-if="falg == 1" disabled v-model="code" placeholder="请选择请假类型" clearable @change="chufas()" size="small" style="width: 160px" filterable="true">
                   <span v-for="(item, index) in statuss" :key="index">
                   <el-option :label="item.name" :value="item.id"></el-option>
                   </span> 
@@ -291,7 +291,7 @@
     <!-- 统计部分 -->
     <div v-if="displayTable && apk && apk2 == 4" class="tops">
       <!-- 公共 -->
-        <div class="ctons">
+        <div class="ctons" :style="'width: '+kuanBl+'px'">
           <div style="display: flex;align-items: center;padding-bottom: 20px;border-bottom: 1px solid #f2f2f2">
             <div style="display: inline-block;width: 350px">
               <el-input style="float:left;" v-model="keyword" class="input-with-select" placeholder="请输入人员搜索" clearable="true" size="small">
@@ -356,7 +356,7 @@
 <!-- 审批流 -->
     <div v-if="displayTable && apk && apk2 == 5" class="tops">
         
-        <div class="ctons">
+        <div class="ctons" :style="'width: '+kuanBl+'px'">
         <el-col :span="6" >
             <el-scrollbar style="height:100%;border:1px solid #dddddd;margin-left:15px;" >
             <div class="tree" :style="'height:'+ (tableHeight-120) + 'px'">
@@ -420,7 +420,7 @@
     </div>
   <!-- 年假管理 -->
     <div v-if="displayTable && apk && apk2 == 6" class="tops">
-      <div class="ctons">
+      <div class="ctons" :style="'width: '+kuanBl+'px'">
         <div style="display: flex;align-items: center;padding-bottom: 20px;border-bottom: 1px solid #f2f2f2">
             <div style="display: inline-block;width: 18%;margin-left:1%">
               <el-button size="small" @click="changeAltime(0)">批量设置</el-button>
@@ -496,7 +496,7 @@
 
     <div v-if="displayTable && apk && apk2 == 8" class="tops">
         <!-- 公共 -->
-        <div class="ctons">
+        <div class="ctons" :style="'width: '+ kuanBl +'px'">
           <div class="flex">
             <div>
               <span>请假类型</span>
@@ -821,12 +821,17 @@ export default {
       departmentOptions: [],
       departmentSel: [],
       userSelId: '',
-      synchronizeLoading: false
+      synchronizeLoading: false,
+      kuanBl: 0,
+      hubs: 0
     };
   },
   computed: {},
   watch: {},
   created() {
+    let widTHBul = document.documentElement.clientWidth - 440
+    this.kuanBl = widTHBul
+    this.hubs = document.documentElement.clientHeight || document.body.clientHeight
     let height = window.innerHeight;
             this.tableHeight = height - 195;
             const that = this;
@@ -838,19 +843,32 @@ export default {
   },
 
   mounted() {
+    // this.watchSize()
     if(this.isDingding){
       this.bills(false,2)
       this.staffs(7,['7'])
       this.getUsers()
     }else{
       this.getUsers() // 获取人员信息
-    this.getDepartment();
-    this.getAl();
-    this.getApproverList()
+      this.getDepartment();
+      this.getAl();
+      this.getApproverList()
     }
   },
   filters: {},
   methods: {
+    // 监听元素
+    //  watchSize() {
+    //    const _this = this;
+    //    var erd = elementResizeDetectorMaker();
+    //    erd.listenTo(this.$refs.section, (element) => { // 这里的this.$refs.fan指定要监听的元素对象,对应的是<div ref="fan"></div>
+    //      var width = element.offsetWidth;
+    //      var height = element.offsetHeight;
+    //      _this.$nextTick(() => { // 这里填写监听改变后的操做
+    //       	console.log('触发监听')
+    //      });
+    //    });
+    //  },
     // 从钉钉同步假期剩余表
     listSynchronize(){
       this.synchronizeLoading = true
@@ -2018,10 +2036,10 @@ export default {
     position: absolute;
     background: #f7f7f7;
     box-sizing: border-box;
-    padding: 20px 0 0 220px;
+    padding: 20px 0 0 200px;
 }
 .ctons {
-    width: 86%;
+    /* width: 86%; */
     height: 92%;
     overflow: hidden;
     background: #fff;

+ 1 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/project/list.vue

@@ -71,7 +71,7 @@
         </el-col>
 
         <!--列表-->
-        <el-table ref="projectlistOfWudulist" :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;" @selection-change="checkedWudulist">
+        <el-table ref="projectlistOfWudulist" :data="list" highlight-current-row v-loading="listLoading" :height="tableHeight - 28" style="width: 100%;" @selection-change="checkedWudulist">
             <el-table-column type="selection" width="60" :selectable="isSelectable">
                 <!-- creator 项目创建人    incharger 项目负责人 -->
             </el-table-column>

+ 2 - 1
fhKeeper/formulahousekeeper/timesheet_h5/vue.config.js

@@ -3,7 +3,8 @@ const pxtorem = require("postcss-pxtorem");
 const path = require('path');
 const themePath = path.resolve(__dirname,'src/assets/style/theme.less');
 
-var ip = '192.168.2.15'
+// var ip = '192.168.2.2'
+var ip = '192.168.2.39'
 // var ip = '127.0.0.1'
 // var os = require('os'), ip = '', ifaces = os.networkInterfaces() // 获取本机ip
 // for (var i in ifaces) {