浏览代码

修改成本优先级

123456 1 年之前
父节点
当前提交
aeae574a21
共有 1 个文件被更改,包括 28 次插入25 次删除
  1. 28 25
      src/components/Finance/Cost.vue

+ 28 - 25
src/components/Finance/Cost.vue

@@ -3,16 +3,16 @@
         <div class="cost-box">
             <el-dialog width="500" title="机票行程数据" :visible.sync="dialogTableVisible">
                 <el-table border :data="gridData">
-                  <el-table-column property="day" label="DAY" width="150"></el-table-column>
-                  <el-table-column property="date" label="DATE" width="200"></el-table-column>
-                  <el-table-column property="itin" label="ITIN"></el-table-column>
+                    <el-table-column property="day" label="DAY" width="150"></el-table-column>
+                    <el-table-column property="date" label="DATE" width="200"></el-table-column>
+                    <el-table-column property="itin" label="ITIN"></el-table-column>
                 </el-table>
                 <div class="btn-dialog-cost">
                     <el-button @click="confirmationTP" size="small" type="primary">采用机票同事的行程数据</el-button>
                     &nbsp;&nbsp;&nbsp;
-                    <el-button @click="dialogTableVisible=false" size="small">采用现有的自定义数据</el-button>
+                    <el-button @click="dialogTableVisible = false" size="small">采用现有的自定义数据</el-button>
                 </div>
-              </el-dialog>
+            </el-dialog>
             <div class="cost-haed">
                 <div class="ser-btn">
                     <div class="ser-btn-li Cost_topFlex" style="display: flex;">
@@ -304,8 +304,9 @@
                                         v-model="scope.row[item.prop]"
                                         @change="dateChange(scope.row[item.prop], scope.$index)">
                                     </el-input> -->
-                                    <el-date-picker @change="TimeUpdateAnewOrderby(scope.$index)" :clearable="false" size="mini" v-model="scope.row[item.prop]"
-                                        type="date" value-format="yyyy-MM-dd" placeholder="选择日期">
+                                    <el-date-picker @change="TimeUpdateAnewOrderby(scope.$index)" :clearable="false"
+                                        size="mini" v-model="scope.row[item.prop]" type="date" value-format="yyyy-MM-dd"
+                                        placeholder="选择日期">
                                     </el-date-picker>
                                 </span>
                                 <div style="position: absolute;left: 36%;">
@@ -2666,8 +2667,8 @@ export default {
             acconarrs: [],
             isShare: 0,
             blackCodeIsTrue: false,
-            dialogTableVisible:false,
-            gridData:[],
+            dialogTableVisible: false,
+            gridData: [],
             //监听变量
             //count: 0,
             x: 0,
@@ -4109,7 +4110,7 @@ export default {
             let result = {};
             for (let flight of ["经济舱", "公务舱"]) {
                 if (flight === "经济舱") {
-                    this.matchRooms(hotelRooms, flights, ["SGR", "TBR", "JSES", "SUITE"], flight, result);
+                    this.matchRooms(hotelRooms, flights, ["TBR", "SGR", "JSES", "SUITE"], flight, result);
                 } else if (flight === "公务舱") {
                     this.matchRooms(hotelRooms, flights, ["SUITE", "JSES", "SGR", "TBR"], flight, result);
                 }
@@ -4226,6 +4227,7 @@ export default {
             var JJCSUITERS = (result.hasOwnProperty("经济舱SUITE") ? result["经济舱SUITE"] : 0)
             var txtGWCSUITERS = (result.hasOwnProperty("公务舱SUITE") ? result["公务舱SUITE"] : 0)
 
+            console.log(txtJJCSGRRS, lblGWCSGRRS, txtJJCTBRRS, txtGWCJSESRS, JJCSUITERS, txtGWCSUITERS, 'test');
 
             if (txtJJCSGRRS > 0) {
                 rightCheckArr.push('经济舱 SGR');
@@ -5499,7 +5501,7 @@ export default {
             }
         },
         importBlackCode() {
-            this.gridData=[];
+            this.gridData = [];
             var url = "/api/Groups/CraeteGroupCostTravel"
             var that = this
             this.$axios({
@@ -5514,11 +5516,11 @@ export default {
             }).then(function (resp) {
                 if (resp.data.code == 200) {
                     console.log('CraeteGroupCostTravelResponse', resp.data.data);
-                    that.gridData=resp.data.data.groupCost;
+                    that.gridData = resp.data.data.groupCost;
                     that.blackCodeIsTrue = resp.data.data.blackCodeIsTrue;
                     if (that.blackCodeIsTrue) {
-                        that.dialogTableVisible=true;
-                    }else{
+                        that.dialogTableVisible = true;
+                    } else {
                         that.$message.error("机票数据未录入!");
                     }
                     // that.tableData = resp.data.data.groupCost;
@@ -5536,7 +5538,7 @@ export default {
 
         },
         //机票行程确认赋值
-        confirmationTP(){
+        confirmationTP() {
             this.tableData = this.gridData;
             for (var i = 0; i < this.tableData.length; i++) {
                 for (var prop in this.tableData[i]) {
@@ -5545,7 +5547,7 @@ export default {
                     }
                 }
             }
-            this.dialogTableVisible=false;
+            this.dialogTableVisible = false;
         },
         //监听鼠标
         MonitorMouse() {
@@ -5601,16 +5603,16 @@ export default {
                 clearInterval(this.autoSave);
             })
         },
-        TimeUpdateAnewOrderby(index){
-                if(index == 0 && this.tableData.length > 0){
-                    var start = this.tableData[0].date;
-                    for (var i = 0; i < this.tableData.length; i++) {
-                        if(this.tableData[i].date){
-                            this.tableData[i].date = start;
-                            start = this.addOneDay(start,1)
-                        }
+        TimeUpdateAnewOrderby(index) {
+            if (index == 0 && this.tableData.length > 0) {
+                var start = this.tableData[0].date;
+                for (var i = 0; i < this.tableData.length; i++) {
+                    if (this.tableData[i].date) {
+                        this.tableData[i].date = start;
+                        start = this.addOneDay(start, 1)
                     }
                 }
+            }
         }
     },
     updated() {
@@ -5978,7 +5980,8 @@ export default {
 .accon-ul:last-child {
     bottom: 15px;
 }
-.btn-dialog-cost{
+
+.btn-dialog-cost {
     margin-top: 20px;
     text-align: right;
 }