|
|
@@ -102,6 +102,15 @@
|
|
|
<el-form-item label-width="120px" label="团组名称:" prop="groupname">
|
|
|
<el-input el-input v-model="ruleForm.groupname"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label-width="120px" label="额外超支额度:">
|
|
|
+ <el-input el-input v-model="ruleForm.extOverLimit"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width="120px" label="额外超支额度币种:">
|
|
|
+ <el-select filterable class="op-type" v-model="ruleForm.extOverCurrency" placeholder="请选择额外超支额度币种">
|
|
|
+ <el-option v-for="(item, index) in currencyData" :key="index" :label="item.name"
|
|
|
+ :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label-width="120px" label="合同时间:">
|
|
|
<el-date-picker type="date" placeholder="选择日期" v-model="ruleForm.contracttime"
|
|
|
style="width: 100%;"></el-date-picker>
|
|
|
@@ -260,6 +269,8 @@ export default {
|
|
|
customerunits: '',
|
|
|
countriesvisited: '',
|
|
|
visitingtime: '',
|
|
|
+ extOverLimit:'',
|
|
|
+ extOverCurrency:'',
|
|
|
contracttime: '',
|
|
|
numdays: '',
|
|
|
cityId:'',
|
|
|
@@ -357,6 +368,7 @@ export default {
|
|
|
depname:'',
|
|
|
//xiao nao fa yu bu jian quan de xu qiu
|
|
|
companyName:'',
|
|
|
+ currencyData:[],
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -452,59 +464,66 @@ export default {
|
|
|
getdown() {
|
|
|
var url = "/api/Groups/GroupEditBasicSource"
|
|
|
var that = this
|
|
|
- this.$axios({
|
|
|
- method: 'post',
|
|
|
- url: url,
|
|
|
- headers: {
|
|
|
- Authorization: 'Bearer ' + this.token
|
|
|
- },
|
|
|
- data: {
|
|
|
- portType: 1,
|
|
|
- }
|
|
|
- }).then(function (res) {
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.restaurantss=res.data.data.clientData;
|
|
|
- that.restaurants= that.restaurantss.map((terminal) => {
|
|
|
- return {
|
|
|
- value: terminal.contact +' '+ terminal.client +' '+terminal.telephone+' '+terminal.wechat,
|
|
|
- };
|
|
|
- });
|
|
|
- that.customerunitslist= that.restaurantss.map((terminal) => {
|
|
|
- return {
|
|
|
- value:terminal.client,
|
|
|
- };
|
|
|
- });
|
|
|
- that.personarr = res.data.data.userData;
|
|
|
- that.gradearr = res.data.data.teamLevData;
|
|
|
- that.OPtype = res.data.data.teamTypeData;
|
|
|
- that.cityData = res.data.data.cityData;
|
|
|
- if (that.ruleForm.cityId=='') {
|
|
|
- if(that.companyName=='泛美(贵阳) 会展服务有限公司'){
|
|
|
- that.ruleForm.cityId=3332
|
|
|
- }else{
|
|
|
- that.ruleForm.cityId=that.filteredItems()[0].id;
|
|
|
+ that.fullscreenLoading = true;
|
|
|
+ new Promise(function (resolve, reject) {
|
|
|
+ that.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ portType: 1,
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.restaurantss = res.data.data.clientData;
|
|
|
+ that.restaurants = that.restaurantss.map((terminal) => {
|
|
|
+ return {
|
|
|
+ value: terminal.contact + ' ' + terminal.client + ' ' + terminal.telephone + ' ' + terminal.wechat,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ that.customerunitslist = that.restaurantss.map((terminal) => {
|
|
|
+ return {
|
|
|
+ value: terminal.client,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ that.personarr = res.data.data.userData;
|
|
|
+ that.gradearr = res.data.data.teamLevData;
|
|
|
+ that.OPtype = res.data.data.teamTypeData;
|
|
|
+ that.cityData = res.data.data.cityData;
|
|
|
+ that.currencyData = res.data.data.currencyData;
|
|
|
+ if (that.ruleForm.cityId == '') {
|
|
|
+ if (that.companyName == '泛美(贵阳) 会展服务有限公司') {
|
|
|
+ that.ruleForm.cityId = 3332
|
|
|
+ } else {
|
|
|
+ that.ruleForm.cityId = that.filteredItems()[0].id;
|
|
|
+ }
|
|
|
}
|
|
|
+ if (that.editid == undefined) {
|
|
|
+ that.ruleForm.OP = that.OPtype[0].id;
|
|
|
+ }
|
|
|
+ that.fullscreenLoading = false;
|
|
|
+ resolve();
|
|
|
}
|
|
|
- if(that.editid==undefined) {
|
|
|
- that.ruleForm.OP=that.OPtype[0].id;
|
|
|
+ })
|
|
|
+ }).then(() => {
|
|
|
+ var url = "/api/System/QuerySetData"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ dataType: 70,
|
|
|
}
|
|
|
- }
|
|
|
- })
|
|
|
- var url = "/api/System/QuerySetData"
|
|
|
- var that = this
|
|
|
- this.$axios({
|
|
|
- method: 'post',
|
|
|
- url: url,
|
|
|
- headers: {
|
|
|
- Authorization: 'Bearer ' + this.token
|
|
|
- },
|
|
|
- data: {
|
|
|
- dataType: 70,
|
|
|
- }
|
|
|
- }).then(function (res) {
|
|
|
- if (res.data.code == 200) {
|
|
|
- that.opRoyaltyLvList = res.data.data;
|
|
|
- }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.opRoyaltyLvList = res.data.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
//personchange
|
|
|
@@ -646,6 +665,8 @@ export default {
|
|
|
that.ruleForm.OP = datagroup.teamDid;
|
|
|
that.ruleForm.grades = datagroup.teamLevSId;
|
|
|
that.ruleForm.person = datagroup.jietuanOperator;
|
|
|
+ that.ruleForm.extOverLimit = datagroup.extOverLimit;
|
|
|
+ that.ruleForm.extOverCurrency = datagroup.extOverCurrency;
|
|
|
that.ruleForm.opRoyaltyLv = parseInt(datagroup.opRoyaltyLv)==0?'':parseInt(datagroup.opRoyaltyLv);
|
|
|
that.ruleForm.opRoyaltyRemark = datagroup.opRoyaltyRemark;
|
|
|
that.ruleForm.radioval = datagroup.isBid==0?'0':'1';
|
|
|
@@ -707,6 +728,8 @@ export default {
|
|
|
tellPhone: that.ruleForm.phonenumber,
|
|
|
weChatNo:that.ruleForm.Wechat,
|
|
|
remark: that.ruleForm.remark,
|
|
|
+ extOverLimit: that.ruleForm.extOverLimit,
|
|
|
+ extOverCurrency: that.ruleForm.extOverCurrency,
|
|
|
opRoyaltyLv: that.ruleForm.opRoyaltyLv==""?0:that.ruleForm.opRoyaltyLv,
|
|
|
opRoyaltyRemark: that.ruleForm.opRoyaltyRemark,
|
|
|
isBid: that.ruleForm.radioval=='0'?0:1,
|