瀏覽代碼

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

liuhj 9 月之前
父節點
當前提交
f6fcdae09e
共有 2 個文件被更改,包括 26 次插入22 次删除
  1. 8 10
      src/components/OP/CarTouristGuideGrounContent.vue
  2. 18 12
      src/components/OP/CarTouristGuideGroundId.vue

+ 8 - 10
src/components/OP/CarTouristGuideGrounContent.vue

@@ -15,7 +15,7 @@
                 </el-table-column>
                 <el-table-column width="70" label="车型">
                     <template slot-scope="scope">
-                        {{scope.row.carType}}
+                        {{ scope.row.carType }}
                     </template>
                 </el-table-column>
                 <el-table-column width="70" label="司机工资">
@@ -394,9 +394,9 @@ export default {
     methods: {
         //保留两位小数
         townum(val) {
-            if(val==0.00){
+            if (val == 0.00) {
                 return '--'
-            }else{
+            } else {
                 return val.toFixed(2)
             }
         },
@@ -421,7 +421,7 @@ export default {
                 if (res.data.code == 200) {
                     that.budgeting = res.data.data.modulePromptInfos[0].data;
                     that.bizhong = res.data.data.modulePromptInfos[0].currencyCode;
-                    console.log(that.budgeting)
+                    //console.log(that.budgeting)
                 } else {
                     // that.$message.error(res.data.msg);
                 }
@@ -444,7 +444,7 @@ export default {
                 }
             }).then(function (res) {
                 if (res.data.code == 200) {
-                    console.log(res)
+                    //console.log(res)
                     that.delegationInfoList = res.data.data.delegations;
                     for (let index = 0; index < that.delegationInfoList.length; index++) {
                         if (that.delegationInfoList[index].id == that.diId) {
@@ -480,13 +480,11 @@ export default {
 
                     that.checkList = res.data.data.checkedItem;
                     that.checkBoxChange();
-
-                    that.loading = false;
                     //that.OpCarTouristGuideGroundContenById()
                 } else {
                     this.$message.error('初始化失败' + res.data.msg);
                 }
-
+                that.loading = false;
             })
 
         },
@@ -527,7 +525,7 @@ export default {
                     cTable: that.cTable,
                 }
             }).then(function (res) {
-                console.log(res)
+                //console.log(res)
                 if (res.data.code == 200) {
                     that.currencyList = res.data.data.teamRates;
                     if (that.currency == 0) {
@@ -699,7 +697,7 @@ export default {
 
     mounted() {
         this.pageId = localStorage.getItem('indexs').split('-')[1];
-        console.log(this.pageId)
+        //console.log(this.pageId)
         this.token = JSON.parse(localStorage.getItem('userinif')).token;
         this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
         this.id = this.$route.query.id

+ 18 - 12
src/components/OP/CarTouristGuideGroundId.vue

@@ -20,7 +20,7 @@
                     </div>
                     <div style="width: 50%;display: flex;align-items: flex-start;justify-content: end;">
                         <el-button size="small" type="primary" style="" @click="exportPriceDetail">导出费用明细</el-button>
-                        <el-button style="margin-right: 10px;" size="small" type="primary"  @click="addIf">新增</el-button>
+                        <el-button style="margin-right: 10px;" size="small" type="primary" @click="addIf">新增</el-button>
                         <!-- <el-upload
                         class="upload-demo"
                         action="http://132.232.92.186:8888/api/Groups/CommonSaveFile"
@@ -39,7 +39,8 @@
                     </div>
                 </div>
             </div>
-            <div :style="delegationInfo.teamLevSId=='VIP'||delegationInfo.teamLevSId=='VVIP'?'margin:10px 0;color:red;':'margin:10px 0;color:#606266;'">
+            <div
+                :style="delegationInfo.teamLevSId == 'VIP' || delegationInfo.teamLevSId == 'VVIP' ? 'margin:10px 0;color:red;' : 'margin:10px 0;color:#606266;'">
                 <span style="font-weight: bold;font-size:14px;">团队名称:</span>
                 <span style="font-size:14px;">{{ delegationInfo.teamName }}&nbsp;&nbsp;&nbsp;</span>
                 <span style="font-weight: bold;font-size:14px;">客户级别:</span>
@@ -161,7 +162,7 @@ export default {
             VisaClient: '',
             delegationInfoList: [],
             delegationInfo: {},
-            datas:{},
+            datas: {},
             fileList: [
                 // {name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, 
                 // {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}
@@ -207,7 +208,7 @@ export default {
                             }
                         }
                     }
-                    
+
                     that.QueryCarTouristGuideGroundByDiId();
                     that.handledatas();
                 }
@@ -225,8 +226,13 @@ export default {
         },
         //团组信息绑定
         QueryCarTouristGuideGroundByDiId() {
+
+            if (!this.DiId) {
+                return;
+            }
+
             var url = "/api/Groups/QueryCarTouristGuideGroundByDiId"
-            var that = this
+            var that = this;
             this.$axios({
                 method: 'post',
                 url: url,
@@ -369,15 +375,15 @@ export default {
             this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
         },
         beforeRemove(file, fileList) {
-            return this.$confirm(`确定移除 ${ file.name }?`);
+            return this.$confirm(`确定移除 ${file.name}?`);
         },
         //处理datas
-        handledatas(){
-            this.datas={
-                Ctable:79,
-                Diid:this.DiId,
-                Cid:0,
-                Userid:this.userId
+        handledatas() {
+            this.datas = {
+                Ctable: 79,
+                Diid: this.DiId,
+                Cid: 0,
+                Userid: this.userId
             }
         }
     },