|
|
@@ -134,7 +134,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="lx_tp" value="<%- info.lx_tp %>" org="<%- info.lx_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="lx_tp" value="<%- info.lx_tp %>" org="<%- info.lx_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" name="lx_tp_unit" style="font-size:0.75rem" value="<%- info.lx_tp_unit %>" org="<%- info.lx_tp_unit%>" onchange="changeInfo(this, false, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.lx_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.lx_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12">
|
|
|
@@ -167,7 +175,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="cb_tp" value="<%- info.cb_tp %>" org="<%- info.cb_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="cb_tp" value="<%- info.cb_tp %>" org="<%- info.cb_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" name="cb_tp_unit" style="font-size:0.75rem" value="<%- info.cb_tp_unit %>" org="<%- info.cb_tp_unit%>" onchange="changeInfo(this, false, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.cb_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.cb_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12">
|
|
|
@@ -200,7 +216,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="sgt_tp" value="<%- info.sgt_tp %>" org="<%- info.sgt_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="sgt_tp" value="<%- info.sgt_tp %>" org="<%- info.sgt_tp %>" maxlength="50" readonly>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" name="sgt_tp_unit" style="font-size:0.75rem" value="<%- info.sgt_tp_unit %>" org="<%- info.sgt_tp_unit%>" onchange="changeInfo(this, false, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.sgt_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.sgt_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12">
|
|
|
@@ -233,7 +257,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="pf_tp" value="<%- info.pf_tp %>" org="<%- info.pf_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="pf_tp" value="<%- info.pf_tp %>" org="<%- info.pf_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" style="font-size:0.75rem" name="pf_tp_unit" value="<%- info.pf_tp_unit %>" org="<%- info.pf_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.pf_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.pf_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12">
|
|
|
@@ -266,7 +298,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="zb_tp" value="<%- info.zb_tp %>" org="<%- info.zb_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="zb_tp" value="<%- info.zb_tp %>" org="<%- info.zb_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.pf_tp_unit %>" org="<%- info.pf_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.pf_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.pf_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-12">
|
|
|
@@ -326,7 +366,15 @@
|
|
|
<div class="col-3">
|
|
|
<div class="form-group">
|
|
|
<label for="">金额:</label>
|
|
|
- <input type="text" class="form-control form-control-sm" name="jg_tp" value="<%- info.jg_tp %>" org="<%- info.jg_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group">
|
|
|
+ <input type="text" class="form-control form-control-sm" name="jg_tp" value="<%- info.jg_tp %>" org="<%- info.jg_tp %>" maxlength="50" onblur="changeInfo(this, true)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <div class="input-group-append">
|
|
|
+ <select class="input-group-text p-0" name="pf_tp_unit" style="font-size:0.75rem" value="<%- info.pf_tp_unit %>" org="<%- info.pf_tp_unit%>" onchange="changeInfo(this)" <% if (readOnly) { %>readOnly<% } %>>
|
|
|
+ <option value="元" <%if (info.pf_tp_unit === '元') { %>selected<% } %>>元</option>
|
|
|
+ <option value="万元" <%if (info.pf_tp_unit === '万元') { %>selected<% } %>>万元</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -417,7 +465,7 @@
|
|
|
obj.value = obj.value.substr(0, obj.maxLength);
|
|
|
}
|
|
|
}
|
|
|
- function changeInfo(obj, isNum = false) {
|
|
|
+ function changeInfo(obj, isNum = false, reload = false) {
|
|
|
const field = obj.getAttribute('name');
|
|
|
if (!field) return;
|
|
|
if (obj.getAttribute('org') === obj.value) return;
|
|
|
@@ -435,6 +483,7 @@
|
|
|
}
|
|
|
postData('info/save', { updateData }, function (result) {
|
|
|
obj.setAttribute('org', obj.value);
|
|
|
+ if (reload) window.location.reload();
|
|
|
}, function () {
|
|
|
obj.value = obj.getAttribute('org');
|
|
|
});
|