浏览代码

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

yuanrf 3 月之前
父节点
当前提交
21f56ec031
共有 2 个文件被更改,包括 47 次插入11 次删除
  1. 38 11
      src/components/OP/EntryDetails.vue
  2. 9 0
      src/components/OP/SuppliesInventory.vue

+ 38 - 11
src/components/OP/EntryDetails.vue

@@ -176,6 +176,13 @@
                                   :key="item.remark"
                                   :key="item.remark"
                                   :label="item.remark"
                                   :label="item.remark"
                                   :value="item.remark">
                                   :value="item.remark">
+                                  <el-tooltip 
+                                  popper-class="custom-tooltip-style" 
+                                  effect="light" 
+                                  :content="item.tripDesc" 
+                                  placement="right">
+                                    <span>{{ item.remark }}</span>
+                                  </el-tooltip>
                                 </el-option>
                                 </el-option>
                             </el-select>
                             </el-select>
                             <!-- <el-button type="primary" @click="Fillin" size="mini">填 入</el-button> -->
                             <!-- <el-button type="primary" @click="Fillin" size="mini">填 入</el-button> -->
@@ -705,6 +712,12 @@ export default {
         }
         }
     },
     },
     methods: {
     methods: {
+        //baoliuliangweixiaoshu
+        reservetwo(value) {
+            // 截取当前数据到小数点后两位
+            let realVal = new Decimal(value).toFixed(2)
+            return realVal
+        },
         //获取团组
         //获取团组
         GetEnterExitCostDataSource() {
         GetEnterExitCostDataSource() {
             var url = "/api/Groups/GetEnterExitCostDataSource"
             var url = "/api/Groups/GetEnterExitCostDataSource"
@@ -756,7 +769,7 @@ export default {
                     that.othercurrencys = res.data.data.teamRates;
                     that.othercurrencys = res.data.data.teamRates;
                     for (let sr = 0; sr < that.othercurrencys.length; sr++) {
                     for (let sr = 0; sr < that.othercurrencys.length; sr++) {
                         if (that.othercurrencys[sr].currencyCode != 'CNY') {
                         if (that.othercurrencys[sr].currencyCode != 'CNY') {
-                            that.othercurrencys[sr].rate = (that.othercurrencys[sr].rate * 1.03).toFixed(4)
+                            that.othercurrencys[sr].rate = new Decimal(that.othercurrencys[sr].rate * 1.03).toFixed(4)
                         }
                         }
                         for (let y = 0; y < that.currencys.length; y++) {
                         for (let y = 0; y < that.currencys.length; y++) {
                             if (that.currencys[y].currencyCode == that.othercurrencys[sr].currencyCode) {
                             if (that.currencys[y].currencyCode == that.othercurrencys[sr].currencyCode) {
@@ -793,10 +806,12 @@ export default {
         },
         },
         //获取签证标注
         //获取签证标注
         GetEnterExitCostCorrelationTips(val) {
         GetEnterExitCostCorrelationTips(val) {
+            this.airDataArr=[]
             this.getvisafeebtn = false;
             this.getvisafeebtn = false;
             if (val == 1) {
             if (val == 1) {
                 this.TotalExpenses.EconomyClass = 0;
                 this.TotalExpenses.EconomyClass = 0;
                 this.TotalExpenses.BusinessClass = 0;
                 this.TotalExpenses.BusinessClass = 0;
+                this.TotalExpenses.Firstclass = 0;
                 this.DomesticFees.visafees = 0;
                 this.DomesticFees.visafees = 0;
                 this.DomesticFees.visafeesDescription = "";
                 this.DomesticFees.visafeesDescription = "";
                 var url = "/api/Groups/GetEnterExitCostCorrelationTips"
                 var url = "/api/Groups/GetEnterExitCostCorrelationTips"
@@ -815,6 +830,7 @@ export default {
                     if (res.data.code == 200) {
                     if (res.data.code == 200) {
                         that.TotalExpenses.EconomyClass = res.data.data.airData[0].jjcCurrentRate;
                         that.TotalExpenses.EconomyClass = res.data.data.airData[0].jjcCurrentRate;
                         that.TotalExpenses.BusinessClass = res.data.data.airData[0].gwcCurrentRate;
                         that.TotalExpenses.BusinessClass = res.data.data.airData[0].gwcCurrentRate;
+                        that.TotalExpenses.Firstclass = res.data.data.airData[0].tdcCurrentRate;
                         that.DomesticFees.visafees = res.data.data.visaData.feeTotal;
                         that.DomesticFees.visafees = res.data.data.visaData.feeTotal;
                         that.DomesticFees.visafeesDescription = res.data.data.visaData.remark;
                         that.DomesticFees.visafeesDescription = res.data.data.visaData.remark;
                     } else {
                     } else {
@@ -844,6 +860,9 @@ export default {
                         if (that.TotalExpenses.BusinessClass==0) {
                         if (that.TotalExpenses.BusinessClass==0) {
                             that.TotalExpenses.BusinessClass = that.airDataArr[0].gwcCurrentRate;
                             that.TotalExpenses.BusinessClass = that.airDataArr[0].gwcCurrentRate;
                         }
                         }
+                        if (that.TotalExpenses.Firstclass==0) {
+                            that.TotalExpenses.Firstclass = that.airDataArr[0].tdcCurrentRate;
+                        }
                         that.visainfo = res.data.data.visaData;
                         that.visainfo = res.data.data.visaData;
                         that.currencyss = res.data.data.reteInfos;
                         that.currencyss = res.data.data.reteInfos;
                         if (that.DomesticFees.visafees != res.data.data.visaData.feeTotal && res.data.data.visaData.feeTotal != 0) {
                         if (that.DomesticFees.visafees != res.data.data.visaData.feeTotal && res.data.data.visaData.feeTotal != 0) {
@@ -872,6 +891,7 @@ export default {
             });
             });
             this.TotalExpenses.EconomyClass = obj.jjcCurrentRate;
             this.TotalExpenses.EconomyClass = obj.jjcCurrentRate;
             this.TotalExpenses.BusinessClass = obj.gwcCurrentRate;
             this.TotalExpenses.BusinessClass = obj.gwcCurrentRate;
+            this.TotalExpenses.TravellingExpenses = obj.tdcCurrentRate;
         },
         },
         //获取文件
         //获取文件
         EnterExitCostFileOwner() {
         EnterExitCostFileOwner() {
@@ -1476,7 +1496,6 @@ export default {
                     //住宿费
                     //住宿费
                     that.quarterageData = res.data.data.quarterageData;
                     that.quarterageData = res.data.data.quarterageData;
                     for (let a = 0; a < res.data.data.quarterageData.length; a++) {
                     for (let a = 0; a < res.data.data.quarterageData.length; a++) {
-                        
                         that.TotalAccommodationFee += Number(res.data.data.quarterageData[a].subTotal)
                         that.TotalAccommodationFee += Number(res.data.data.quarterageData[a].subTotal)
                     }
                     }
                     //伙食费
                     //伙食费
@@ -1607,7 +1626,7 @@ export default {
 
 
             this.TotalAccommodationFee = 0;
             this.TotalAccommodationFee = 0;
             for (let a = 0; a < this.quarterageData.length; a++) {
             for (let a = 0; a < this.quarterageData.length; a++) {
-                this.TotalAccommodationFee += Number(this.quarterageData[a].subTotal.toFixed(2));
+                this.TotalAccommodationFee += Number(new Decimal(this.quarterageData[a].subTotal).toFixed(2));
             }
             }
             // this.mealschangeSelect(this.boardWagesData,item,index)
             // this.mealschangeSelect(this.boardWagesData,item,index)
         },
         },
@@ -1622,7 +1641,7 @@ export default {
             val.subTotal = Number(val.cost) * Number(rate);
             val.subTotal = Number(val.cost) * Number(rate);
             this.TotalAccommodationFee = 0;
             this.TotalAccommodationFee = 0;
             for (let a = 0; a < this.quarterageData.length; a++) {
             for (let a = 0; a < this.quarterageData.length; a++) {
-                this.TotalAccommodationFee += Number(Number(this.quarterageData[a].subTotal).toFixed(2));
+                this.TotalAccommodationFee += Number(new Decimal(this.quarterageData[a].subTotal).toFixed(2));
             }
             }
         },
         },
         //伙食费费用标准值改变
         //伙食费费用标准值改变
@@ -1637,7 +1656,7 @@ export default {
             this.TotalMeals = 0;
             this.TotalMeals = 0;
             for (let a = 0; a < this.boardWagesData.length; a++) {
             for (let a = 0; a < this.boardWagesData.length; a++) {
                 // this.TotalMeals += this.boardWagesData[a].subTotal
                 // this.TotalMeals += this.boardWagesData[a].subTotal
-                this.TotalMeals += Number(Number(this.boardWagesData[a].subTotal).toFixed(2));
+                this.TotalMeals += Number(new Decimal(this.boardWagesData[a].subTotal).toFixed(2));
             }
             }
         },
         },
         //伙食地区选择
         //伙食地区选择
@@ -1695,7 +1714,7 @@ export default {
             this.TotalMiscellaneous = 0;
             this.TotalMiscellaneous = 0;
             for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
             for (let a = 0; a < this.miscellaneousFeeData.length; a++) {
                 // this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
                 // this.TotalMiscellaneous += this.miscellaneousFeeData[a].subTotal
-                this.TotalMiscellaneous += Number(Number(this.miscellaneousFeeData[a].subTotal).toFixed(2));
+                this.TotalMiscellaneous += Number(new Decimal(this.miscellaneousFeeData[a].subTotal).toFixed(2));
             }
             }
         },
         },
         //公杂费地区选择
         //公杂费地区选择
@@ -1753,7 +1772,7 @@ export default {
             this.trainingExpense = 0;
             this.trainingExpense = 0;
             for (let a = 0; a < this.trainingExpenseData.length; a++) {
             for (let a = 0; a < this.trainingExpenseData.length; a++) {
                 // this.trainingExpense += this.trainingExpenseData[a].subTotal
                 // this.trainingExpense += this.trainingExpenseData[a].subTotal
-                this.trainingExpense += Number(Number(this.trainingExpenseData[a].subTotal).toFixed(2));
+                this.trainingExpense += Number(new Decimal(this.trainingExpenseData[a].subTotal).toFixed(2));
             }
             }
         },
         },
         //培训费地区选择
         //培训费地区选择
@@ -1829,7 +1848,7 @@ export default {
             this.otherExpense = 0;
             this.otherExpense = 0;
             for (let a = 0; a < this.otherData.length; a++) {
             for (let a = 0; a < this.otherData.length; a++) {
                 // this.otherExpense += this.otherData[a].subTotal
                 // this.otherExpense += this.otherData[a].subTotal
-                this.otherExpense += Number(Number(this.otherData[a].subTotal).toFixed(2));
+                this.otherExpense += Number(new Decimal(this.otherData[a].subTotal).toFixed(2));
             }
             }
         },
         },
         //新增list
         //新增list
@@ -2745,7 +2764,7 @@ export default {
                 for (let q = 0; q < this.quarterageData.length; q++) {
                 for (let q = 0; q < this.quarterageData.length; q++) {
                     for (let qc = 0; qc < this.currencys.length; qc++) {
                     for (let qc = 0; qc < this.currencys.length; qc++) {
                         if (this.currencys[qc].currencyCode == this.quarterageData[q].curremcyCode||this.currencys[qc].currencyName == this.quarterageData[q].currencyName) {
                         if (this.currencys[qc].currencyCode == this.quarterageData[q].curremcyCode||this.currencys[qc].currencyName == this.quarterageData[q].currencyName) {
-                            this.quarterageData[q].subTotal = (this.currencys[qc].rate * this.quarterageData[q].cost).toFixed(2)
+                            this.quarterageData[q].subTotal = new Decimal(this.currencys[qc].rate * this.quarterageData[q].cost).toFixed(2)
                         }
                         }
                     }
                     }
                     this.TotalAccommodationFee += Number(this.quarterageData[q].subTotal);
                     this.TotalAccommodationFee += Number(this.quarterageData[q].subTotal);
@@ -2755,10 +2774,11 @@ export default {
                 for (let b = 0; b < this.boardWagesData.length; b++) {
                 for (let b = 0; b < this.boardWagesData.length; b++) {
                     for (let bc = 0; bc < this.currencys.length; bc++) {
                     for (let bc = 0; bc < this.currencys.length; bc++) {
                         if (this.currencys[bc].currencyCode == this.boardWagesData[b].curremcyCode||this.currencys[bc].currencyName == this.boardWagesData[b].currencyName) {
                         if (this.currencys[bc].currencyCode == this.boardWagesData[b].curremcyCode||this.currencys[bc].currencyName == this.boardWagesData[b].currencyName) {
-                            this.boardWagesData[b].subTotal = this.currencys[bc].rate * this.boardWagesData[b].cost
+                            this.boardWagesData[b].subTotal = new Decimal(this.currencys[bc].rate * this.boardWagesData[b].cost).toFixed(2)
+                            
                         }
                         }
                     }
                     }
-                    this.TotalMeals += this.boardWagesData[b].subTotal
+                    this.TotalMeals += Number(this.boardWagesData[b].subTotal);
                 }
                 }
                 //公杂费
                 //公杂费
                 this.TotalMiscellaneous = 0
                 this.TotalMiscellaneous = 0
@@ -2948,4 +2968,11 @@ export default {
     width: 150px;
     width: 150px;
     margin-right: 0;
     margin-right: 0;
 }
 }
+.custom-tooltip-style {
+    max-width: 400px;
+    white-space: pre-line; /* 保留换行符 */
+    font-size: 13px;
+    line-height: 25px;
+    color: #606266;
+}
 </style>
 </style>

+ 9 - 0
src/components/OP/SuppliesInventory.vue

@@ -190,6 +190,15 @@
                     prop="goodsName"
                     prop="goodsName"
                     label="物品名称"
                     label="物品名称"
                     width="200">
                     width="200">
+                    <template slot-scope="scope">
+                        <el-popover
+                        placement="top"
+                        width="300"
+                        trigger="hover">
+                            {{scope.row.groupName}}
+                            <span style="display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;cursor: pointer;color: #48a2ff;" slot="reference">{{scope.row.goodsName}}</span>
+                        </el-popover>
+                    </template>
                     </el-table-column>
                     </el-table-column>
                     <el-table-column
                     <el-table-column
                     prop="quantity"
                     prop="quantity"