Browse Source

导游地接资料新增字段

wangh 1 year ago
parent
commit
503fa97ab5
2 changed files with 25 additions and 2 deletions
  1. 12 1
      src/components/OP/OpVisaPriec.vue
  2. 13 1
      src/components/Resource/LocalGuideOperation.vue

+ 12 - 1
src/components/OP/OpVisaPriec.vue

@@ -12,7 +12,7 @@
                     <div style="width: 25%;">
                         <el-form-item label="团组名称:" label-width="160px">
                             <el-select v-model="OpVisaPriceData.diId" clearable filterable placeholder="团组选择"
-                                :disabled="isShow" style="width: 220px;">
+                                :disabled="isShow" style="width: 220px;" @change="DiIdSelectChange">
                                 <el-option v-for="item in delegationInfoList" :key="item.id" :label="item.teamName"
                                     :value="item.id">
                                 </el-option>
@@ -472,6 +472,17 @@ export default {
                 }
             })
         },
+        DiIdSelectChange() {
+            var that = this;
+            for (let index = 0; index < that.delegationInfoList.length; index++) {
+                if (that.delegationInfoList[index].id == that.OpVisaPriceData.diId) {
+                    that.delegationInfo = that.delegationInfoList[index];
+
+                    that.VisitDate = that.dateFormat(that.delegationInfo.visitStartDate) + '至' + that.dateFormat(that.delegationInfo.visitEndDate);
+                    break;
+                }
+            }
+        },
         payChange() {
             this.OpVisaPriceData.ctdId = '';
             this.OpVisaPriceData.bankNo = '';

+ 13 - 1
src/components/Resource/LocalGuideOperation.vue

@@ -6,6 +6,15 @@
         <template>
             <el-form :model="addData" :rules="rules" ref="addData" label-width="100px" class="demo-ruleForm">
                 <el-row>
+                    <el-col :span="8">
+                        <el-form-item label="导游地接" prop="StaffType">
+                            <el-select v-model="addData.StaffType" placeholder="导游地接">
+                                <el-option :key="0" label="公司" :value="0"></el-option>
+                                <el-option :key="1" label="个人" :value="1"></el-option>
+
+                            </el-select>
+                        </el-form-item>
+                    </el-col>
                     <el-col :span="8">
                         <el-form-item label="服务评分" prop="Score">
                             <el-select v-model="addData.Score" placeholder="服务评分">
@@ -215,6 +224,7 @@ export default {
                 LocalAndChineseScore: 'A',
                 CreateUserId: '',
                 Remark: '',
+                StaffType: ''
             },
             unitAreas: [],
             restaurants: [],
@@ -243,7 +253,7 @@ export default {
                 }
             }).then(function (res) {
                 if (res.data.code == 200) {
-
+                    debugger
                     that.tableData = res.data.data;
                     that.tableData.forEach(function (item, index) {
                         that.unitAreas.push({
@@ -339,6 +349,7 @@ export default {
                     break;
                 }
             }
+            debugger
             this.addData.Status = 2;
             this.addData.Id = this.LocalGuideData.id;
             this.addData.UnitArea = this.LocalGuideData.unitArea;
@@ -359,6 +370,7 @@ export default {
             this.addData.LocalAndChineseScore = this.LocalGuideData.localAndChineseScore;
             this.addData.CreateUserId = this.LocalGuideData.createUserId;
             this.addData.Remark = this.LocalGuideData.remark;
+            this.addData.StaffType = parseInt(this.LocalGuideData.staffType)
         },
     },