|
@@ -778,12 +778,12 @@
|
|
|
<!-- :content="itemsheetone.tips" -->
|
|
|
<div v-if="itemsheetone.tips != '暂无!'">
|
|
|
<span style="color:green">{{ itemsheetone.tips
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
元/人
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<span style="color:red">{{ itemsheetone.tips
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
<el-input-number slot="reference"
|
|
|
v-model="AGroupCostParameter[itemsheetone.prop]"
|
|
@@ -930,7 +930,7 @@
|
|
|
}}元/人</span>
|
|
|
<span v-else style="color: red">暂无!</span>
|
|
|
<span slot="reference">{{ scope.row[itemcabinone.prop]
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</el-popover>
|
|
|
</span>
|
|
|
<span v-else>
|
|
@@ -938,7 +938,7 @@
|
|
|
:title="itemcabinone.title" width="200" trigger="hover">
|
|
|
<span style="color: red">暂无!</span>
|
|
|
<span slot="reference">{{ scope.row[itemcabinone.prop]
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</el-popover>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -963,7 +963,7 @@
|
|
|
}}</span>
|
|
|
<span v-else :title="scope.row[itemcabinone.prop]">{{
|
|
|
scope.row[itemcabinone.prop]
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -1012,7 +1012,7 @@
|
|
|
}}</span>
|
|
|
<span v-else :title="scope.row[itemcabinone.prop]">{{
|
|
|
scope.row[itemcabinone.prop]
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -6871,23 +6871,104 @@ export default {
|
|
|
headers: {
|
|
|
'Authorization': that.token,
|
|
|
}
|
|
|
- }).then((res) => {
|
|
|
+ }).then(async (res) => {
|
|
|
|
|
|
if (res.data.code == 200) {
|
|
|
this.showEditGroupInfoDialog = false;
|
|
|
- this.$message({
|
|
|
- message: '保存成功!',
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
+ // this.$message({
|
|
|
+ // message: '保存成功!',
|
|
|
+ // type: 'success'
|
|
|
+ // })
|
|
|
+
|
|
|
+ var Data = { diid: this.diid, userid: this.userId };
|
|
|
+ var isTrue = await this.formVerify();
|
|
|
+ if (isTrue) {
|
|
|
+ Data.checkBoxs = this.CheckBoxListSelect.map(x => {
|
|
|
+ return {
|
|
|
+ diid: x.diid,
|
|
|
+ cbType: x.cbType,
|
|
|
+ cbValues: x.cbValues.join(',')
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+ Data.groupCosts = this.tableData;
|
|
|
+ Data.costTypeHotelNumbers = this.costTypeHotelNumbers.map(x => {
|
|
|
+ return {
|
|
|
+ id: x.id,
|
|
|
+ sgr: x.sgr,
|
|
|
+ tbr: x.tbr,
|
|
|
+ jses: x.jses,
|
|
|
+ suite: x.suite,
|
|
|
+ type: x.type,
|
|
|
+ diid: this.diid
|
|
|
+ };
|
|
|
+ });
|
|
|
+
|
|
|
+ this.AGroupCostParameter.currency = this.AGroupCostParameter.currency.toString();
|
|
|
+ this.AGroupCostParameter.diId = this.diid;
|
|
|
+ this.BGroupCostParameter.diId = this.diid;
|
|
|
+
|
|
|
+ var Aparam = Object.assign({}, this.AGroupCostParameter);
|
|
|
+ var Bparam = Object.assign({}, this.BGroupCostParameter);
|
|
|
+ if (this.AGroupCostParameter.costTypeStartTime) {
|
|
|
+ Aparam.costTypeStartTime = this.addOneDay(this.AGroupCostParameter.costTypeStartTime, 0);
|
|
|
+ }
|
|
|
+ if (this.AGroupCostParameter.costTypeendTime) {
|
|
|
+ Aparam.costTypeendTime = this.addOneDay(this.AGroupCostParameter.costTypeendTime, 0);
|
|
|
+ }
|
|
|
+ if (this.BGroupCostParameter.costTypeStartTime) {
|
|
|
+ Bparam.costTypeStartTime = this.addOneDay(this.BGroupCostParameter.costTypeStartTime, 0);
|
|
|
+ }
|
|
|
+ if (this.BGroupCostParameter.costTypeendTime) {
|
|
|
+ Bparam.costTypeendTime = this.addOneDay(this.BGroupCostParameter.costTypeendTime, 0);
|
|
|
+ }
|
|
|
+ if (this.costTypevalue == "A") {
|
|
|
+ Data.groupCostParameters = [Aparam];
|
|
|
+ } else {
|
|
|
+ Data.groupCostParameters = [Aparam, Bparam];
|
|
|
+ }
|
|
|
+
|
|
|
+ var ResultCostArr = this.Dataformat();
|
|
|
+ Data.groupCosts = ResultCostArr;
|
|
|
+ ////////console.log(Data, "save-------Data");
|
|
|
+
|
|
|
+ this.$axios.post('/api/Groups/SaveGroupCost', Data, {
|
|
|
+ headers: {
|
|
|
+ 'Authorization': this.token,
|
|
|
+ }
|
|
|
+ }).then(resp => {
|
|
|
+ ////////console.log(resp.data.data, '------------------------------------');
|
|
|
+ if (resp.data.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ message: '保存成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+
|
|
|
+ //刷新页面
|
|
|
+ var costLoadData = localStorage.getItem('costLoadData');
|
|
|
+ if (costLoadData) {
|
|
|
+ var JSONP = JSON.parse(costLoadData);
|
|
|
+ var diidP = Number(JSONP.diid);
|
|
|
+ this.loadData(isNaN(diidP) ? -1 : diidP);
|
|
|
+ } else {
|
|
|
+ this.loadData(-1);
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$message.error('保存失败!' + resp.data.msg);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ var result = Number(this.AGroupCostParameter.currency);
|
|
|
+ if (isNaN(result)) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.AGroupCostParameter.currency = result;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- //刷新页面
|
|
|
- var costLoadData = localStorage.getItem('costLoadData');
|
|
|
- if (costLoadData) {
|
|
|
- var JSONP = JSON.parse(costLoadData);
|
|
|
- var diidP = Number(JSONP.diid);
|
|
|
- that.loadData(isNaN(diidP) ? -1 : diidP);
|
|
|
} else {
|
|
|
- that.loadData(-1);
|
|
|
+ this.$message.error('请输入完整!');
|
|
|
}
|
|
|
|
|
|
} else {
|