Commit 7dff8461 authored by 黄奎's avatar 黄奎

新增餐标字段

parent 69ddb3b6
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
<input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)" <input type="button" class="fr normalBtn mb30" :value="$t('pub.saveBtn')" @click="saveList(1)"
:disabled="IsDisabled" /> :disabled="IsDisabled" />
<input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;" <input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" style="display:none;"
:value="$t('ground.baocuncaogao')" @click="saveList(1)" :disabled="IsDisabled" /> :value="$t('ground.baocuncaogao')" @click="saveList()" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span> <span style="color:red;font-size:14px;">{{$t('ground.yizhidbnxg')}}!</span>
<input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" <input v-if="EditBtn&&currentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30"
:value="$t('pub.saveBtn')" @click="saveList(1)" /> :value="$t('pub.saveBtn')" @click="saveList()" />
</template> </template>
</li> </li>
</ul> </ul>
...@@ -215,6 +215,18 @@ ...@@ -215,6 +215,18 @@
</el-select> </el-select>
</td> </td>
</tr> </tr>
<tr>
<td width="60" style="text-align:right;">
订餐状态:
</td>
<td style="text-align:left;">
<el-select v-model='subItem.OrderState' class='w135 sel' :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.pleaseSel')" :value='-1'></el-option>
<el-option :label='$t("pub.sureBtn")' :value='1'></el-option>
<el-option :label='$t("visa.v_zanding")' :value='2'></el-option>
</el-select>
</td>
</tr>
<tr v-show="subItem.PayStyle==6"> <tr v-show="subItem.PayStyle==6">
<td width="60" style="text-align:right;"> <td width="60" style="text-align:right;">
{{$t('ground.fukuanth')}}: {{$t('ground.fukuanth')}}:
...@@ -411,7 +423,6 @@ ...@@ -411,7 +423,6 @@
if (currentObj && currentObj.ID > 0) { if (currentObj && currentObj.ID > 0) {
//人民币 //人民币
if (currentObj.ID == 1) { if (currentObj.ID == 1) {
obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2); obj.NewTotalPrice = currentObj.Name + ":" + (totalPrice * jpaObj.PayRate).toFixed(2);
} }
//日元 //日元
...@@ -432,22 +443,22 @@ ...@@ -432,22 +443,22 @@
} }
this.$forceUpdate(); this.$forceUpdate();
}, },
saveList(type) { saveList() {
this.IsDisabled = true; this.IsDisabled = true;
if (type == 0) { // if (type == 0) {
this.list.forEach(item => { // this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { // item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 0; // insideItem.OrderState = 0;
}) // })
}) // })
} // }
if (type == 1) { // if (type == 1) {
this.list.forEach(item => { // this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { // item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 1; // insideItem.OrderState = 1;
}) // })
}) // })
} // }
this.list.forEach(item => { this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => { item.DiningSummaryList.forEach(insideItem => {
if (insideItem.DiningPriceList) { if (insideItem.DiningPriceList) {
......
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