|
@@ -25,7 +25,7 @@
|
|
|
<el-button type="primary" @click="GetPriceCheckWord">生成收款账单</el-button>
|
|
|
<el-button type="primary" @click="GetClientWord">导出客户报表</el-button>
|
|
|
<el-button type="primary" @click="GetGroupCostExcel">导出成本</el-button>
|
|
|
- <el-button type="primary">一键复制</el-button>
|
|
|
+ <!-- <el-button type="primary">一键复制</el-button> -->
|
|
|
<el-button type="primary" @click="GroupIsShare">成本通知</el-button>
|
|
|
<el-button type="primary" @click="save">保存设置</el-button>
|
|
|
</div>
|
|
@@ -52,25 +52,25 @@
|
|
|
<el-form :inline="true" class="demo-form-inline" :rules="HotelRules" ref="DHotel"
|
|
|
:model="costTypeHotelNumbers.filter(item => item.type == 'Default')[0]">
|
|
|
<el-form-item label="TBR:" prop="tbr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].tbr"
|
|
|
placeholder="TBR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="SGR:" prop="sgr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].sgr"
|
|
|
placeholder="SGR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="JS/ES:" prop="jses">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].jses"
|
|
|
placeholder="JS/ES"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="SUITE:" prop="suite">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'Default')[0].suite"
|
|
|
placeholder="SUITE"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -111,7 +111,7 @@
|
|
|
:model="costTypeHotelNumbers.filter(item => item.type == 'A')[0]">
|
|
|
<el-col :span="3">
|
|
|
<div><el-form-item label="TBR:" prop="tbr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].tbr"
|
|
|
placeholder="TBR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -119,7 +119,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div> <el-form-item label="SGR:" prop="sgr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].sgr"
|
|
|
placeholder="SGR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -127,7 +127,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div><el-form-item label="JS/ES:" prop="jses">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].jses"
|
|
|
placeholder="JS/ES"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -135,7 +135,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div><el-form-item label="SUITE:" prop="suite">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'A')[0].suite"
|
|
|
placeholder="SUITE"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -177,7 +177,7 @@
|
|
|
<el-col :span="3">
|
|
|
<div>
|
|
|
<el-form-item label="TBR:" prop="tbr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].tbr"
|
|
|
placeholder="TBR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -186,7 +186,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div> <el-form-item label="SGR:" prop="sgr">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].sgr"
|
|
|
placeholder="SGR"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -194,7 +194,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div><el-form-item label="JS/ES:" prop="jses">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].jses"
|
|
|
placeholder="JS/ES"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -202,7 +202,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<div><el-form-item label="SUITE:" prop="suite">
|
|
|
- <el-input
|
|
|
+ <el-input @blur='inSelectChangeCheck'
|
|
|
v-model.number="costTypeHotelNumbers.filter(item => item.type == 'B')[0].suite"
|
|
|
placeholder="SUITE"><i slot="suffix"
|
|
|
style="font-style:normal;margin-right: 10px;">间</i></el-input>
|
|
@@ -3070,6 +3070,7 @@ export default {
|
|
|
that.GivePeopleNumber();
|
|
|
|
|
|
}
|
|
|
+ that.inSelectChangeCheck();
|
|
|
that.costloading = false;
|
|
|
}).catch(err => {
|
|
|
that.costloading = false;
|
|
@@ -4764,10 +4765,58 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
inSelectChangeCheck() {
|
|
|
- var defaultP = this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0];
|
|
|
- var A = this.costTypeHotelNumbers.filter(item => item.type == 'A')[0];
|
|
|
- var B = this.costTypeHotelNumbers.filter(item => item.type == 'B')[0];
|
|
|
+ console.log('inSelectChangeCheck');
|
|
|
+ var arr = [];
|
|
|
+ var pusharr = [];
|
|
|
+ if (this.costTypevalue == 'A') {
|
|
|
+ var defaultP = this.costTypeHotelNumbers.filter(item => item.type == 'Default')[0];
|
|
|
+
|
|
|
+ if (defaultP.sgr == 0) {
|
|
|
+ arr.push('酒店SGR');
|
|
|
+ } else {
|
|
|
+ pusharr.push('酒店SGR');
|
|
|
+ }
|
|
|
+ if (defaultP.tbr == 0) {
|
|
|
+ arr.push('酒店TBR');
|
|
|
+ } else {
|
|
|
+ pusharr.push('酒店TBR');
|
|
|
+ }
|
|
|
+ if (defaultP.jses == 0) {
|
|
|
+ arr.push('酒店JSES');
|
|
|
+ } else {
|
|
|
+ pusharr.push('酒店JSES');
|
|
|
+ }
|
|
|
+ if (defaultP.suite == 0) {
|
|
|
+ arr.push('酒店SUITE');
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ pusharr.push('酒店SUITE');
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ var HotelA = this.costTypeHotelNumbers.filter(item => item.type == 'A')[0];
|
|
|
+ var HotelB = this.costTypeHotelNumbers.filter(item => item.type == 'B')[0];
|
|
|
+ if (HotelA.sgr == 0 && HotelB.sgr == 0) { arr.push('酒店SGR'); } else {
|
|
|
+ pusharr.push('酒店SGR');
|
|
|
+ }
|
|
|
+ if (HotelA.tbr == 0 && HotelB.tbr == 0) { arr.push('酒店TBR'); } else {
|
|
|
+ pusharr.push('酒店TBR');
|
|
|
+ }
|
|
|
+ if (HotelA.jses == 0 && HotelB.jses == 0) { arr.push('酒店JSES'); } else {
|
|
|
+ pusharr.push('酒店JSES');
|
|
|
+ }
|
|
|
+ if (HotelA.suite == 0 && HotelB.suite == 0) { arr.push('酒店SUITE'); } else {
|
|
|
+ pusharr.push('酒店SUITE');
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
+ var leftCheck = this.CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues;
|
|
|
+ var resultArr = leftCheck.filter(item => !arr.includes(item));
|
|
|
+ resultArr = [...resultArr, ...pusharr];
|
|
|
+ resultArr = [...new Set(resultArr)];
|
|
|
+ console.log('resultArr', resultArr);
|
|
|
+ this.CheckBoxListSelect.filter(item => item.cbType == 'Left')[0].cbValues = resultArr;
|
|
|
},
|
|
|
GivePeopleNumber() {
|
|
|
var number = this.grouptitleinfo.visitPNumber;
|