68 lines
2.1 KiB
Plaintext
68 lines
2.1 KiB
Plaintext
@{
|
|
ViewData["Title"] = "结算报告配置";
|
|
var nv = YieldChain.Helpers.UrlHelper.ParseQueryString(PS.Config.ErpElement.TradeMarketReportCfg);
|
|
var pageObj = new
|
|
{
|
|
Model = new
|
|
{
|
|
TradeMarketReportStartDate = nv?["开始日期"].TrimToNull() ?? "NONE",
|
|
},
|
|
AjaxSaveConfigUrl = Url.Action("AjaxSaveAppConfig")
|
|
};
|
|
}
|
|
|
|
@section heads{
|
|
<style>
|
|
.btn-primary {
|
|
min-width: 100px;
|
|
}
|
|
|
|
.form-layout .form-row .form-label {
|
|
width: 220px;
|
|
}
|
|
</style>
|
|
}
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-title">结算报告配置</h4>
|
|
</div>
|
|
<div class="card-body" id="configCont" v-cloak>
|
|
<form class="form-layout" onsubmit="return false;" id="form1">
|
|
<div class="form-row">
|
|
<label class="form-label col-auto">开始日期:</label>
|
|
<div class="col">
|
|
<select name="TradeMarketReportStartDate" v-model="TradeMarketReportStartDate" class="form-control d-inline-block" style="width:200px;">
|
|
<option value="NONE">空值</option>
|
|
<option value="SYSTEMDATE">系统日期</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="offset-3 mt-5">
|
|
<button type="button" class="btn btn-primary" v-on:click="saveConfig">保存</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@section scripts{
|
|
|
|
<script>
|
|
const page = @Json.Serialize(pageObj);
|
|
const vue = new Vue({
|
|
el: '#configCont',
|
|
data: page.Model,
|
|
methods: {
|
|
saveConfig() {
|
|
var $e = $(event.target).prop('disabled', true);
|
|
let data = { name: 'Erp.TradeMarketReportCfg', value: '&开始日期=' + this.TradeMarketReportStartDate };
|
|
main.post(page.AjaxSaveConfigUrl, data).done(function (resp) {
|
|
layer.msg('保存成功');
|
|
}).always(function () {
|
|
$e.prop('disabled', false);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
|
|
</script>
|
|
} |