|
@@ -4,8 +4,8 @@
|
|
|
:close-on-click-modal="false">
|
|
|
<div v-if="!syhIdentification">
|
|
|
<el-checkbox-group v-model="checkedCities" @change="handleCheckedDatesChange">
|
|
|
- <el-checkbox v-for="item in priceNamelist" :label="item.value"
|
|
|
- :key="item.id">{{item.value}}</el-checkbox>
|
|
|
+ <el-checkbox v-for="item in priceNamelist" :label="item.value" :key="item.id">{{ item.value
|
|
|
+ }}</el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
<div class="supplies-button">
|
|
|
<el-button size="mini" @click="suppliesVisible = false">取 消</el-button>
|
|
@@ -74,8 +74,9 @@
|
|
|
<el-form-item label="费用名称:" prop="priceName" label-width="160px">
|
|
|
<!-- <el-input placeholder="费用名称" v-model="DecreasePaymentsData.priceName"></el-input> -->
|
|
|
<el-autocomplete style="width: 100%;" class="inline-input"
|
|
|
- v-model="DecreasePaymentsData.priceName" @input="priceNameinput" :fetch-suggestions="querySearch"
|
|
|
- placeholder="请输入内容" @select="priceNameSelect"></el-autocomplete>
|
|
|
+ v-model="DecreasePaymentsData.priceName" @input="priceNameinput"
|
|
|
+ :fetch-suggestions="querySearch" placeholder="请输入内容"
|
|
|
+ @select="priceNameSelect"></el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div style="width: 394px;">
|
|
@@ -113,7 +114,7 @@
|
|
|
<el-form-item label="供应商类型:" prop="supplierTypeId" label-width="160px">
|
|
|
<el-select v-model="DecreasePaymentsData.supplierTypeId" placeholder="供应商类型"
|
|
|
style="width: 100%;">
|
|
|
- <el-option v-for="(item,index) in suppliertype" :key="index" :label="item.name"
|
|
|
+ <el-option v-for="(item, index) in suppliertype" :key="index" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -122,7 +123,7 @@
|
|
|
<el-form-item label="供应商地区:" prop="supplierArea" label-width="160px">
|
|
|
<el-select v-model="DecreasePaymentsData.supplierArea" placeholder="供应商地区"
|
|
|
style="width: 100%;">
|
|
|
- <el-option v-for="(item,index) in supplierRegion" :key="index" :label="item.name"
|
|
|
+ <el-option v-for="(item, index) in supplierRegion" :key="index" :label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -251,7 +252,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { Decimal } from 'decimal.js'
|
|
|
-import {debounce} from '../../store/statice'
|
|
|
+import { debounce } from '../../store/statice'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -278,23 +279,23 @@ export default {
|
|
|
diId: 0,//团组外键编号
|
|
|
priceName: "",//费用名称
|
|
|
price: 0,//费用金额
|
|
|
- supplierContact:"",//联系人
|
|
|
- supplierContactNumber:"",//联系电话
|
|
|
+ supplierContact: "",//联系人
|
|
|
+ supplierContactNumber: "",//联系电话
|
|
|
currency: '',//费用币种
|
|
|
filePath: "",//附件地址
|
|
|
createUserId: 0,//创建者Id
|
|
|
remark: "",//备注
|
|
|
- supplierArea:1,//供应商地区
|
|
|
- supplierTypeId:'',//供应商类型
|
|
|
- quantity:0,//数量
|
|
|
- feeTotal:0,//总计
|
|
|
- supplierSocialAccount:'',//社交账号
|
|
|
- supplierAddress:'',//供应商地址
|
|
|
- supplierEmail:'',//邮箱
|
|
|
- otherBankName:'',//开户行
|
|
|
- otherSideNo:'',//银行卡号
|
|
|
- otherSideName:'',//对方姓名
|
|
|
- otaOrderNo:'',//wifi平台OTA订单号
|
|
|
+ supplierArea: 1,//供应商地区
|
|
|
+ supplierTypeId: '',//供应商类型
|
|
|
+ quantity: 0,//数量
|
|
|
+ feeTotal: 0,//总计
|
|
|
+ supplierSocialAccount: '',//社交账号
|
|
|
+ supplierAddress: '',//供应商地址
|
|
|
+ supplierEmail: '',//邮箱
|
|
|
+ otherBankName: '',//开户行
|
|
|
+ otherSideNo: '',//银行卡号
|
|
|
+ otherSideName: '',//对方姓名
|
|
|
+ otaOrderNo: '',//wifi平台OTA订单号
|
|
|
},
|
|
|
IsAuditGM: 0,
|
|
|
Decrease: {},
|
|
@@ -350,30 +351,31 @@ export default {
|
|
|
|
|
|
},
|
|
|
rateList: [],
|
|
|
- suppliertype:[],
|
|
|
- supplierRegion:[],
|
|
|
- eventspd:true,
|
|
|
- fullscreenLoading:false,
|
|
|
- queryArr : [],
|
|
|
- Switchwifi:false,
|
|
|
- priceNamelist:[],
|
|
|
- suppliesVisible:false,
|
|
|
- checkedCities:[],
|
|
|
+ suppliertype: [],
|
|
|
+ supplierRegion: [],
|
|
|
+ eventspd: true,
|
|
|
+ fullscreenLoading: false,
|
|
|
+ queryArr: [],
|
|
|
+ Switchwifi: false,
|
|
|
+ priceNamelist: [],
|
|
|
+ suppliesVisible: false,
|
|
|
+ checkedCities: [],
|
|
|
|
|
|
// 物资选择市运会
|
|
|
syhvalue: [],
|
|
|
- syhoptions:[],
|
|
|
- syhIdentification:false,
|
|
|
- syhvalues:'',
|
|
|
- }
|
|
|
+ syhoptions: [],
|
|
|
+ syhIdentification: false,
|
|
|
+ syhvalues: '',
|
|
|
+ QueryConferenceAffairsChildList: [],
|
|
|
+ }
|
|
|
},
|
|
|
- watch:{
|
|
|
- 'DecreasePaymentsData.priceName'(newVal,oldVal){
|
|
|
- if(newVal.toLowerCase().includes('wifi')){
|
|
|
+ watch: {
|
|
|
+ 'DecreasePaymentsData.priceName'(newVal, oldVal) {
|
|
|
+ if (newVal.toLowerCase().includes('wifi')) {
|
|
|
// console.log(newVal.toLowerCase(),this.Switchwifi)
|
|
|
- this.Switchwifi=true;
|
|
|
- }else{
|
|
|
- this.Switchwifi=false;
|
|
|
+ this.Switchwifi = true;
|
|
|
+ } else {
|
|
|
+ this.Switchwifi = false;
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -381,19 +383,19 @@ export default {
|
|
|
// 验证特殊字符
|
|
|
validateSpecialChars(rule, value, callback) {
|
|
|
console.log(value);
|
|
|
- let truearr=[]
|
|
|
- const pattern =/^[\u4e00-\u9fa5a-zA-Z0-9]+$/;
|
|
|
+ let truearr = []
|
|
|
+ const pattern = /^[\u4e00-\u9fa5a-zA-Z0-9]+$/;
|
|
|
for (let i = 0; i < value.length; i++) {
|
|
|
const char = value[i];
|
|
|
if (pattern.test(char)) {
|
|
|
truearr.push(true)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
truearr.push(false)
|
|
|
}
|
|
|
}
|
|
|
if (truearr.includes(true)) {
|
|
|
callback();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
callback(new Error(rule.message || '非法字符'));
|
|
|
}
|
|
|
},
|
|
@@ -419,10 +421,10 @@ export default {
|
|
|
for (let index = 0; index < that.delegationInfoList.length; index++) {
|
|
|
if (that.delegationInfoList[index].id == that.DiIdSelect) {
|
|
|
that.delegationInfo = that.delegationInfoList[index];
|
|
|
- if(res.data.data.groupName[index].teamDid==302||res.data.data.groupName[index].teamDid==691||res.data.data.groupName[index].teamDid==762||res.data.data.groupName[index].teamDid==1047){
|
|
|
- that.eventspd=true
|
|
|
- }else{
|
|
|
- that.eventspd=false
|
|
|
+ if (res.data.data.groupName[index].teamDid == 302 || res.data.data.groupName[index].teamDid == 691 || res.data.data.groupName[index].teamDid == 762 || res.data.data.groupName[index].teamDid == 1047) {
|
|
|
+ that.eventspd = true
|
|
|
+ } else {
|
|
|
+ that.eventspd = false
|
|
|
}
|
|
|
console.log(that.eventspd);
|
|
|
break;
|
|
@@ -486,18 +488,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//点击保存事件
|
|
|
- addBtn:debounce(function() {
|
|
|
- if(this.DecreasePaymentsData.priceName.substr(this.DecreasePaymentsData.priceName.length - 1)=='-'){
|
|
|
+ addBtn: debounce(function () {
|
|
|
+ if (this.DecreasePaymentsData.priceName.substr(this.DecreasePaymentsData.priceName.length - 1) == '-') {
|
|
|
this.DecreasePaymentsData.priceName = this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
}
|
|
|
- this.DecreasePaymentsData.supplierTypeId=this.eventspd?this.DecreasePaymentsData.supplierTypeId:0;
|
|
|
- this.fullscreenLoading=true;
|
|
|
+ this.DecreasePaymentsData.supplierTypeId = this.eventspd ? this.DecreasePaymentsData.supplierTypeId : 0;
|
|
|
+ this.fullscreenLoading = true;
|
|
|
if (this.IsAuditGM == 1) {
|
|
|
- this.fullscreenLoading=false;
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$message.error('已通过审核,不可修改!');
|
|
|
} else {
|
|
|
if (this.DiId == null && this.DiId == undefined && this.DiId == "") {
|
|
|
- this.fullscreenLoading=false;
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$message.error("请选择团组名称");
|
|
|
return;
|
|
|
}
|
|
@@ -525,7 +527,7 @@ export default {
|
|
|
that.DecreasePaymentsData.filePath = that.projectName
|
|
|
that.DecreasePaymentsData.diId = that.DiIdSelect;
|
|
|
that.DecreasePaymentsData.createUserId = that.userId;
|
|
|
- that.DecreasePaymentsData.otaOrderNo=this.Switchwifi?that.DecreasePaymentsData.otaOrderNo:'';
|
|
|
+ that.DecreasePaymentsData.otaOrderNo = this.Switchwifi ? that.DecreasePaymentsData.otaOrderNo : '';
|
|
|
var url = "/api/Groups/OpDecreasePayments"
|
|
|
that.$axios({
|
|
|
method: 'post',
|
|
@@ -541,11 +543,11 @@ export default {
|
|
|
type: 'success'
|
|
|
});
|
|
|
setTimeout(() => {
|
|
|
- that.fullscreenLoading=false;
|
|
|
+ that.fullscreenLoading = false;
|
|
|
that.quxiao()
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
- that.fullscreenLoading=false;
|
|
|
+ that.fullscreenLoading = false;
|
|
|
that.$message.error(res.data.msg);
|
|
|
}
|
|
|
})
|
|
@@ -574,7 +576,7 @@ export default {
|
|
|
that.DecreasePaymentsData.filePath = that.projectName
|
|
|
that.DecreasePaymentsData.diId = that.DiIdSelect;
|
|
|
that.DecreasePaymentsData.createUserId = that.userId;
|
|
|
- that.DecreasePaymentsData.otaOrderNo=this.Switchwifi?that.DecreasePaymentsData.otaOrderNo:'';
|
|
|
+ that.DecreasePaymentsData.otaOrderNo = this.Switchwifi ? that.DecreasePaymentsData.otaOrderNo : '';
|
|
|
var url = "/api/Groups/OpDecreasePayments"
|
|
|
that.$axios({
|
|
|
method: 'post',
|
|
@@ -591,11 +593,11 @@ export default {
|
|
|
});
|
|
|
that.loading = true;
|
|
|
setTimeout(() => {
|
|
|
- that.fullscreenLoading=false;
|
|
|
+ that.fullscreenLoading = false;
|
|
|
that.$router.push('/home/DecreasePayments')
|
|
|
}, 1000);
|
|
|
} else {
|
|
|
- that.fullscreenLoading=false;
|
|
|
+ that.fullscreenLoading = false;
|
|
|
that.$message.error(res.data.msg);
|
|
|
}
|
|
|
})
|
|
@@ -604,7 +606,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
- this.fullscreenLoading=false;
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$message.error('请完善信息在保存!');
|
|
|
return false;
|
|
|
}
|
|
@@ -612,9 +614,9 @@ export default {
|
|
|
|
|
|
}
|
|
|
// 此时必填完成,做保存后的业务操作
|
|
|
- },1000,true),
|
|
|
+ }, 1000, true),
|
|
|
//取消
|
|
|
- quxiao(){
|
|
|
+ quxiao() {
|
|
|
this.$router.push({
|
|
|
path: "/home/DecreasePayments",
|
|
|
query: {
|
|
@@ -623,18 +625,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//计算总价
|
|
|
- Sumup(){
|
|
|
- this.DecreasePaymentsData.feeTotal=new Decimal(this.DecreasePaymentsData.price*this.DecreasePaymentsData.quantity).toFixed(2);
|
|
|
+ Sumup() {
|
|
|
+ this.DecreasePaymentsData.feeTotal = new Decimal(this.DecreasePaymentsData.price * this.DecreasePaymentsData.quantity).toFixed(2);
|
|
|
},
|
|
|
DecreasePaymentsChange() {
|
|
|
this.QueryRate();
|
|
|
for (let index = 0; index < this.delegationInfoList.length; index++) {
|
|
|
if (this.delegationInfoList[index].id == parseInt(this.DiIdSelect)) {
|
|
|
this.delegationInfo = this.delegationInfoList[index];
|
|
|
- if(this.delegationInfo.teamDid==302||this.delegationInfo.teamDid==691||this.delegationInfo.teamDid==762||this.delegationInfo.teamDid==1047){
|
|
|
- this.eventspd=true
|
|
|
- }else{
|
|
|
- this.eventspd=false
|
|
|
+ if (this.delegationInfo.teamDid == 302 || this.delegationInfo.teamDid == 691 || this.delegationInfo.teamDid == 762 || this.delegationInfo.teamDid == 1047) {
|
|
|
+ this.eventspd = true
|
|
|
+ } else {
|
|
|
+ this.eventspd = false
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -672,7 +674,7 @@ export default {
|
|
|
that.DecreasePaymentsData.filePath = response.data
|
|
|
that.DecreasePaymentsData.diId = that.DiIdSelect;
|
|
|
that.DecreasePaymentsData.createUserId = that.userId;
|
|
|
- that.DecreasePaymentsData.otaOrderNo=this.Switchwifi?that.DecreasePaymentsData.otaOrderNo:'';
|
|
|
+ that.DecreasePaymentsData.otaOrderNo = this.Switchwifi ? that.DecreasePaymentsData.otaOrderNo : '';
|
|
|
var url = "/api/Groups/OpDecreasePayments"
|
|
|
that.$axios({
|
|
|
method: 'post',
|
|
@@ -719,11 +721,11 @@ export default {
|
|
|
this.projectName = file.name
|
|
|
},
|
|
|
QueryRate() {
|
|
|
- if((this.DiIdSelect ? this.DiIdSelect : this.DiId)==2590){
|
|
|
- this.syhIdentification=true;
|
|
|
+ if ((this.DiIdSelect ? this.DiIdSelect : this.DiId) == 2590) {
|
|
|
+ this.syhIdentification = true;
|
|
|
this.WorldGamesData();
|
|
|
- }else{
|
|
|
- this.syhIdentification=false;
|
|
|
+ } else {
|
|
|
+ this.syhIdentification = false;
|
|
|
this.QuerySetData();
|
|
|
}
|
|
|
var url = "/api/Business/PostGroupTeamRateByDiIdAndCTableId"
|
|
@@ -749,14 +751,14 @@ export default {
|
|
|
|
|
|
|
|
|
},
|
|
|
- handleSelect(item){
|
|
|
+ handleSelect(item) {
|
|
|
//console.log('handleSelect',item);
|
|
|
var id = item.id;
|
|
|
var that = this;
|
|
|
|
|
|
try {
|
|
|
- this.queryArr.forEach((item)=>{
|
|
|
- if(item.id==id){
|
|
|
+ this.queryArr.forEach((item) => {
|
|
|
+ if (item.id == id) {
|
|
|
that.DecreasePaymentsData.supplierAddress = item.supplierAddress;
|
|
|
that.DecreasePaymentsData.supplierArea = item.supplierArea;
|
|
|
that.DecreasePaymentsData.supplierContact = item.supplierContact;
|
|
@@ -769,9 +771,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} catch (error) {
|
|
|
- if(error.message == 'stop'){
|
|
|
+ if (error.message == 'stop') {
|
|
|
return;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.error(error.message);
|
|
|
}
|
|
|
}
|
|
@@ -791,16 +793,38 @@ export default {
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- cb(res.data.data.map(x=>{return{
|
|
|
- value: x.supplierName,
|
|
|
- id: x.id
|
|
|
- }}));
|
|
|
+ cb(res.data.data.map(x => {
|
|
|
+ return {
|
|
|
+ value: x.supplierName,
|
|
|
+ id: x.id
|
|
|
+ }
|
|
|
+ }));
|
|
|
that.queryArr = res.data.data;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
querySearch(queryString, cb) {
|
|
|
- var priceNamelist = this.priceNamelist;
|
|
|
+ var priceNamelist = JSON.parse(JSON.stringify(this.priceNamelist));
|
|
|
+ //找出priceNamelist中id最大的元素
|
|
|
+ var maxId = 0;
|
|
|
+ priceNamelist.forEach((item) => {
|
|
|
+ if (item.id > maxId) {
|
|
|
+ maxId = item.id;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ maxId++;
|
|
|
+
|
|
|
+ this.QueryConferenceAffairsChildList.forEach((item) => {
|
|
|
+ priceNamelist.push({
|
|
|
+ value: item,
|
|
|
+ id: maxId,
|
|
|
+ price: 0,
|
|
|
+ })
|
|
|
+ maxId++;
|
|
|
+ })
|
|
|
+
|
|
|
+ //console.log(priceNamelist, "::::priceNameList");
|
|
|
+
|
|
|
var results = queryString ? priceNamelist.filter(this.createFilter(queryString)) : priceNamelist;
|
|
|
// 调用 callback 返回建议列表的数据
|
|
|
cb(results);
|
|
@@ -810,72 +834,72 @@ export default {
|
|
|
return restaurant.value.replace(" ", "").toLowerCase().match(queryString.toLowerCase());
|
|
|
};
|
|
|
},
|
|
|
- handleCheckedDatesChange(val){
|
|
|
+ handleCheckedDatesChange(val) {
|
|
|
console.log(val);
|
|
|
},
|
|
|
- priceNameinput(val){
|
|
|
- if((this.DiIdSelect ? this.DiIdSelect : this.DiId)==2590){
|
|
|
+ priceNameinput(val) {
|
|
|
+ if ((this.DiIdSelect ? this.DiIdSelect : this.DiId) == 2590) {
|
|
|
if (!this.DecreasePaymentsData.priceName.includes(this.syhvalues)) {
|
|
|
- this.DecreasePaymentsData.priceName=this.syhvalues+'-';
|
|
|
+ this.DecreasePaymentsData.priceName = this.syhvalues + '-';
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- syhclick(){
|
|
|
- this.DecreasePaymentsData.priceName='';
|
|
|
+ syhclick() {
|
|
|
+ this.DecreasePaymentsData.priceName = '';
|
|
|
for (let i = 0; i < this.syhvalue.length; i++) {
|
|
|
this.DecreasePaymentsData.priceName += this.syhvalue[i] + '-';
|
|
|
}
|
|
|
- this.syhvalues=this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
- this.suppliesVisible=false;
|
|
|
+ this.syhvalues = this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
+ this.suppliesVisible = false;
|
|
|
},
|
|
|
- xuanzebtn(){
|
|
|
- this.syhvalue=[];
|
|
|
- this.suppliesVisible=true;
|
|
|
+ xuanzebtn() {
|
|
|
+ this.syhvalue = [];
|
|
|
+ this.suppliesVisible = true;
|
|
|
},
|
|
|
- suppliesclick(){
|
|
|
- var suppliesarr=[];
|
|
|
- if (this.checkedCities.length==0) {
|
|
|
+ suppliesclick() {
|
|
|
+ var suppliesarr = [];
|
|
|
+ if (this.checkedCities.length == 0) {
|
|
|
this.$message({
|
|
|
message: '未选择物资!',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
- return
|
|
|
+ return
|
|
|
}
|
|
|
- for(let i=0;i<this.priceNamelist.length;i++){
|
|
|
+ for (let i = 0; i < this.priceNamelist.length; i++) {
|
|
|
for (let j = 0; j < this.checkedCities.length; j++) {
|
|
|
- if(this.checkedCities[j]==this.priceNamelist[i].value){
|
|
|
+ if (this.checkedCities[j] == this.priceNamelist[i].value) {
|
|
|
suppliesarr.push(this.priceNamelist[i])
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.DecreasePaymentsData.price=0;
|
|
|
- this.DecreasePaymentsData.priceName='';
|
|
|
- this.DecreasePaymentsData.remark='';
|
|
|
- this.DecreasePaymentsData.currency='';
|
|
|
- this.DecreasePaymentsData.quantity=0;
|
|
|
- for(let g=0;g<suppliesarr.length;g++){
|
|
|
- this.DecreasePaymentsData.price+=suppliesarr[g].price;
|
|
|
- this.DecreasePaymentsData.priceName+=suppliesarr[g].value+'、'
|
|
|
- this.DecreasePaymentsData.remark+=suppliesarr[g].value+' '+suppliesarr[g].price+' CNY 、'
|
|
|
+ this.DecreasePaymentsData.price = 0;
|
|
|
+ this.DecreasePaymentsData.priceName = '';
|
|
|
+ this.DecreasePaymentsData.remark = '';
|
|
|
+ this.DecreasePaymentsData.currency = '';
|
|
|
+ this.DecreasePaymentsData.quantity = 0;
|
|
|
+ for (let g = 0; g < suppliesarr.length; g++) {
|
|
|
+ this.DecreasePaymentsData.price += suppliesarr[g].price;
|
|
|
+ this.DecreasePaymentsData.priceName += suppliesarr[g].value + '、'
|
|
|
+ this.DecreasePaymentsData.remark += suppliesarr[g].value + ' ' + suppliesarr[g].price + ' CNY 、'
|
|
|
}
|
|
|
- this.DecreasePaymentsData.priceName=this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
- this.DecreasePaymentsData.currency=836;
|
|
|
- this.DecreasePaymentsData.quantity=1;
|
|
|
- this.DecreasePaymentsData.supplierName='无';
|
|
|
- this.DecreasePaymentsData.supplierSocialAccount='无';
|
|
|
- this.DecreasePaymentsData.supplierAddress='无';
|
|
|
- this.DecreasePaymentsData.supplierEmail='无';
|
|
|
- this.DecreasePaymentsData.supplierContact='无';
|
|
|
- this.DecreasePaymentsData.supplierContactNumber='无';
|
|
|
+ this.DecreasePaymentsData.priceName = this.DecreasePaymentsData.priceName.substring(0, this.DecreasePaymentsData.priceName.length - 1);
|
|
|
+ this.DecreasePaymentsData.currency = 836;
|
|
|
+ this.DecreasePaymentsData.quantity = 1;
|
|
|
+ this.DecreasePaymentsData.supplierName = '无';
|
|
|
+ this.DecreasePaymentsData.supplierSocialAccount = '无';
|
|
|
+ this.DecreasePaymentsData.supplierAddress = '无';
|
|
|
+ this.DecreasePaymentsData.supplierEmail = '无';
|
|
|
+ this.DecreasePaymentsData.supplierContact = '无';
|
|
|
+ this.DecreasePaymentsData.supplierContactNumber = '无';
|
|
|
this.Sumup();
|
|
|
- this.suppliesVisible=false;
|
|
|
+ this.suppliesVisible = false;
|
|
|
},
|
|
|
- priceNameSelect(val){
|
|
|
+ priceNameSelect(val) {
|
|
|
console.log(val);
|
|
|
- this.DecreasePaymentsData.price=val.price;
|
|
|
- this.DecreasePaymentsData.currency=836;
|
|
|
- this.DecreasePaymentsData.quantity=1;
|
|
|
- this.DecreasePaymentsData.remark=val.value+' '+val.price+' CNY'
|
|
|
+ this.DecreasePaymentsData.price = val.price;
|
|
|
+ this.DecreasePaymentsData.currency = 836;
|
|
|
+ this.DecreasePaymentsData.quantity = 1;
|
|
|
+ this.DecreasePaymentsData.remark = val.value + ' ' + val.price + ' CNY'
|
|
|
this.Sumup();
|
|
|
},
|
|
|
QuerySetData() {
|
|
@@ -892,16 +916,16 @@ export default {
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- var priceNamelist=res.data.data;
|
|
|
- that.priceNamelist= priceNamelist.map((terminal) => {
|
|
|
+ var priceNamelist = res.data.data;
|
|
|
+ that.priceNamelist = priceNamelist.map((terminal) => {
|
|
|
return {
|
|
|
value: terminal.name,
|
|
|
- id:terminal.id,
|
|
|
- price:Number(terminal.remark)
|
|
|
+ id: terminal.id,
|
|
|
+ price: Number(terminal.remark)
|
|
|
};
|
|
|
});
|
|
|
console.log(that.priceNamelist);
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -916,36 +940,58 @@ export default {
|
|
|
}
|
|
|
}).then(function (res) {
|
|
|
if (res.data.code == 200) {
|
|
|
- for(let i=0;i<res.data.data.length;i++){
|
|
|
- let sytinfo={};
|
|
|
- sytinfo.label=res.data.data[i].data.name;
|
|
|
- sytinfo.value=res.data.data[i].data.name;
|
|
|
- let sytinfoarr=[];
|
|
|
+ for (let i = 0; i < res.data.data.length; i++) {
|
|
|
+ let sytinfo = {};
|
|
|
+ sytinfo.label = res.data.data[i].data.name;
|
|
|
+ sytinfo.value = res.data.data[i].data.name;
|
|
|
+ let sytinfoarr = [];
|
|
|
for (let j = 0; j < res.data.data[i].child.length; j++) {
|
|
|
sytinfoarr.push({
|
|
|
label: res.data.data[i].child[j],
|
|
|
value: res.data.data[i].child[j],
|
|
|
})
|
|
|
- sytinfo.children=sytinfoarr;
|
|
|
+ sytinfo.children = sytinfoarr;
|
|
|
}
|
|
|
// console.log(sytinfo);
|
|
|
that.syhoptions.push(sytinfo);
|
|
|
}
|
|
|
console.log(that.syhoptions);
|
|
|
-
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ QueryConferenceAffairsChild() {
|
|
|
+ var url = "/api/Groups/QueryConferenceAffairsChild"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + that.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ GroupId: this.DiIdSelect ? this.DiIdSelect : this.DiId,
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.QueryConferenceAffairsChildList = res.data.data;
|
|
|
+ console.log(res.data.data);
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
- mounted() {
|
|
|
+ mounted() {
|
|
|
|
|
|
this.DiId = JSON.parse(this.$route.query.DiId);
|
|
|
this.QueryRate();
|
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId
|
|
|
this.AirTicketResSelect();
|
|
|
+ this.QueryConferenceAffairsChild();
|
|
|
+
|
|
|
// if(this.DiId==2590){
|
|
|
// this.syhIdentification=true;
|
|
|
// this.WorldGamesData();
|
|
@@ -953,6 +999,7 @@ export default {
|
|
|
// this.syhIdentification=false;
|
|
|
// this.QuerySetData();
|
|
|
// }
|
|
|
+
|
|
|
this.id = this.$route.query.id
|
|
|
if (this.id != null && this.id != undefined && this.id != 0) {
|
|
|
this.QueryDecreasePaymentsById();
|
|
@@ -1014,19 +1061,23 @@ export default {
|
|
|
border-radius: 10px;
|
|
|
min-height: 810px;
|
|
|
}
|
|
|
-.opdp-dialog .el-checkbox-group{
|
|
|
+
|
|
|
+.opdp-dialog .el-checkbox-group {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
-.opdp-dialog .el-checkbox{
|
|
|
+
|
|
|
+.opdp-dialog .el-checkbox {
|
|
|
margin-right: 10px;
|
|
|
margin-bottom: 10px;
|
|
|
width: 30%;
|
|
|
}
|
|
|
-.supplies-button{
|
|
|
+
|
|
|
+.supplies-button {
|
|
|
margin-top: 15px;
|
|
|
text-align: right;
|
|
|
}
|
|
|
+
|
|
|
@media screen and (max-width: 1700px) {
|
|
|
.appraise-box>div {
|
|
|
width: 48%;
|