Commit fbde2c72 authored by 黄奎's avatar 黄奎

页面修改

parent b2eabb60
......@@ -46,12 +46,12 @@
<th style="text-align:center;display:none" title="内部卖价人民币">内部で人民元を売り買いする</th>
<th style="text-align:center" title="同行卖价人民币">同業で人民元を売り買いする</th>
<th style="text-align:center" title="直客价格人民币">顧客価格は人民元</th>
<th style="text-align:center" title="是否含税">税込みかどうか</th>
<th style="text-align:center" title="是否含税">税込みかどうか</th>
<th style="text-align:center" title="库存数量">在庫数量</th>
<th style="text-align:center">操作</th>
</tr>
<tr v-for="(childItem,childIndex) in subItem.data.SubList" :key="childIndex">
<td style="text-align:center;white-space:nowrap; ">
<td style="text-align:center;white-space:nowrap; ">
{{childItem.CostPrice}}
</td>
<td style="text-align:center;white-space:nowrap;display:none">
......@@ -66,9 +66,9 @@
<td style="text-align:center;white-space:nowrap; ">
{{childItem.IsContainsTaxStr}}
<template v-if="childItem.IsContainsTax==0">
<br/>
<br />
<span style="color:red">
税金:{{childItem.TaxPrice}}
税金:{{childItem.TaxPrice}}
</span>
</template>
</td>
......@@ -77,7 +77,10 @@
</td>
<td style="text-align:center;white-space:nowrap;">
<a style="text-decoration:underline;cursor:pointer;color:#089bab;"
@click="GetRoomPrice(childItem)">修正</a>
@click="GetRoomPrice(childItem)">修正</a>&nbsp;
<a style="text-decoration:underline;cursor:pointer;color:#089bab;"
@click="DeleteRoomPrice(childItem)">削除</a>
</td>
</tr>
</table>
......@@ -189,12 +192,12 @@
trigger: "blur"
}],
B2BPrice: [{
B2BPrice: [{
required: true,
message: "在庫数を入力してください",
trigger: "blur"
}],
B2CPrice: [{
B2CPrice: [{
required: true,
message: "在庫数を入力してください",
trigger: "blur"
......@@ -286,11 +289,11 @@
this.hotelInfo.HotelName = json.HotelName;
this.hotelInfo.TotalInventory = json.TotalInventory;
this.hotelInfo.Validity = json.Validity;
this.hotelInfo.B2BPrice=json.B2BPrice;
this.hotelInfo.B2CPrice=json.B2CPrice;
this.hotelInfo.IsContainsTax=json.IsContainsTax;
this.hotelInfo.IsContainsTaxStr=json.IsContainsTaxStr;
this.hotelInfo.TaxPrice=json.TaxPrice;
this.hotelInfo.B2BPrice = json.B2BPrice;
this.hotelInfo.B2CPrice = json.B2CPrice;
this.hotelInfo.IsContainsTax = json.IsContainsTax;
this.hotelInfo.IsContainsTaxStr = json.IsContainsTaxStr;
this.hotelInfo.TaxPrice = json.TaxPrice;
for (let i = 0; i < this.dayList[key].days.length; i++) {
for (let j = 0; j < json.length; j++) {
if (this.dayList[key].days[i].day === json[j].DayStr) {
......@@ -392,6 +395,24 @@
}
});
},
//删除报价
DeleteRoomPrice(item) {
var that = this;
this.Confirm("削除するか?", function () {
that.apipost("scm_post_RemoveSCMHotelRoomPriceService", {
Id: item.Id
},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getMonths();
that.clearAddMsg();
} else {
that.Error(res.data.message);
}
});
});
},
//提交数据
submitForm(formName) {
this.$refs[formName].validate(valid => {
......@@ -415,6 +436,7 @@
},
}
};
</script>
<style>
.Quotation .el-checkbox__input.is-checked+.el-checkbox__label {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment