优化 临时费用闯将功能

This commit is contained in:
wuxw 2024-04-06 22:21:19 +08:00
parent 3eea553e6e
commit a5b110aa5f
3 changed files with 95 additions and 99 deletions

View File

@ -68,7 +68,7 @@
function (json, res) { function (json, res) {
let _json = JSON.parse(json); let _json = JSON.parse(json);
if (_json.data.length < 1) { if (_json.data.length < 1) {
vc.toast('当前没有可用账户'); //vc.toast('当前没有可用账户');
return; return;
} }
//账户余额 //账户余额

View File

@ -7,8 +7,7 @@
<vc:i18n name="临时收费" namespace="tempImportRoomFee"></vc:i18n> <vc:i18n name="临时收费" namespace="tempImportRoomFee"></vc:i18n>
</h3> </h3>
<div class="ibox-content"> <div class="ibox-content">
<div>
<div>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-2 col-form-label"> <label class="col-sm-2 col-form-label">
<vc:i18n name="费用类型" namespace="tempImportRoomFee"></vc:i18n> <vc:i18n name="费用类型" namespace="tempImportRoomFee"></vc:i18n>
@ -43,14 +42,11 @@
<option selected disabled value="">{{vc.i18n('必填,请选择收费项目','tempImportRoomFee')}} <option selected disabled value="">{{vc.i18n('必填,请选择收费项目','tempImportRoomFee')}}
</option> </option>
<option v-for="(item,index) in tempImportRoomFeeInfo.feeConfigs" :key="index" <option v-for="(item,index) in tempImportRoomFeeInfo.feeConfigs" :key="index"
v-bind:value="item.feeName" >{{item.feeName}} v-bind:value="item.configId">{{item.feeName}}
</option> </option>
</select> </select>
<span>说明:显示公式为动态费用的费用项</span> <span>说明:显示公式为动态费用的费用项</span>
</div> </div>
<!-- <div class="col-sm-2">
<button type="button" class="btn btn-white" @click="_inputFeeName()"><vc:i18n name="输入" namespace="tempImportRoomFee"></vc:i18n></button>
</div> -->
</div> </div>
<div class="form-group row" v-else> <div class="form-group row" v-else>
<label class="col-sm-2 col-form-label"> <label class="col-sm-2 col-form-label">
@ -100,9 +96,8 @@
v-on:click="_saveTempImportFeeInfo()"><i class="fa fa-check"></i>&nbsp;提交 v-on:click="_saveTempImportFeeInfo()"><i class="fa fa-check"></i>&nbsp;提交
</button> </button>
<button type="button" class="btn btn-warning float-right" style="margin-right:20px;" <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
data-dismiss="modal"><span> data-dismiss="modal">
<vc:i18n name="取消" namespace="tempImportRoomFee"></vc:i18n> <vc:i18n name="取消" namespace="tempImportRoomFee"></vc:i18n>
</span>
</button> </button>
</div> </div>
</div> </div>
@ -110,5 +105,3 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>

View File

@ -146,6 +146,9 @@
vc.emit('roomCreateFee', 'notify', {}); vc.emit('roomCreateFee', 'notify', {});
vc.emit('simplifyRoomFee', 'notify', {}); vc.emit('simplifyRoomFee', 'notify', {});
vc.emit('listContractFee', 'notify', {}); vc.emit('listContractFee', 'notify', {});
vc.toast('创建成功');
return;
} }
vc.toast(_json.msg); vc.toast(_json.msg);
}, },