|
|
|
@ -11,10 +11,10 @@
|
|
|
|
|
form {
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.layui-card {
|
|
|
|
|
height: calc(100% - 1px);
|
|
|
|
|
overflow: hidden;
|
|
|
|
@ -130,7 +130,7 @@
|
|
|
|
|
<div class="layui-input-block" id="zysbView" style="margin-left: 205px !important;">
|
|
|
|
|
</div>
|
|
|
|
|
<script id="zysbScript" type="text/html">
|
|
|
|
|
<select name="lb_sb_id">
|
|
|
|
|
<select id="" name="lb_sb_id">
|
|
|
|
|
{{# layui.each(d, function(index, item){ }}
|
|
|
|
|
<option value="{{item.lb_sb_id}}">{{item.lb_sb_name}}</option>
|
|
|
|
|
{{# }); }}
|
|
|
|
@ -146,8 +146,7 @@
|
|
|
|
|
<label class="layui-form-label">品牌:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<input type="text" name="pinpai" autocomplete="off"
|
|
|
|
|
class="layui-input input-width">
|
|
|
|
|
<input type="text" name="pinpai" autocomplete="off" class="layui-input input-width">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -156,8 +155,8 @@
|
|
|
|
|
<label class="layui-form-label">型号:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<input type="text" name="xinghao"
|
|
|
|
|
autocomplete="off" class="layui-input input-width">
|
|
|
|
|
<input type="text" name="xinghao" autocomplete="off"
|
|
|
|
|
class="layui-input input-width">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -168,8 +167,7 @@
|
|
|
|
|
<label class="layui-form-label">现状--具体装备情况:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<input type="text" name="jtzbqk" autocomplete="off"
|
|
|
|
|
class="layui-input input-width">
|
|
|
|
|
<input type="text" name="jtzbqk" autocomplete="off" class="layui-input input-width">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -178,8 +176,8 @@
|
|
|
|
|
<label class="layui-form-label">现状--台数:
|
|
|
|
|
</label>
|
|
|
|
|
<div class="layui-input-block">
|
|
|
|
|
<input type="text" name="taishu" lay-verify="number"
|
|
|
|
|
autocomplete="off" class="layui-input input-width">
|
|
|
|
|
<input type="text" name="taishu" lay-verify="number" autocomplete="off"
|
|
|
|
|
class="layui-input input-width">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -323,10 +321,12 @@
|
|
|
|
|
var laytpl = layui.laytpl;
|
|
|
|
|
var laydate = layui.laydate;
|
|
|
|
|
|
|
|
|
|
var id = GetQueryString("id");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
laydate.render({
|
|
|
|
|
elem: '#qiyongriqi'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//类别
|
|
|
|
|
$.ajax({
|
|
|
|
@ -365,14 +365,44 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
async: false,
|
|
|
|
|
url: "/QingLong/zbdc/getXxzbdcSingle?dcb_id=1&id=" + id,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.val("myForm", {
|
|
|
|
|
"pinpai": res.pinpai
|
|
|
|
|
, "xinghao": res.xinghao
|
|
|
|
|
, "wl_tjss": res.wl_tjss
|
|
|
|
|
, "taishu": res.taishu
|
|
|
|
|
, "qiyongriqi": res.qiyongriqi
|
|
|
|
|
, "zhengchang": res.zhengchang
|
|
|
|
|
, "daixiu": res.daixiu
|
|
|
|
|
, "zaixiu": res.zaixiu
|
|
|
|
|
, "xianzhi": res.xianzhi
|
|
|
|
|
, "qita": res.qita
|
|
|
|
|
, "yuanyin": res.yuanyin
|
|
|
|
|
, "wangluodaikuan": res.wangluodaikuan
|
|
|
|
|
, "wangluofuwushang": res.wangluofuwushang
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.on('submit(save)', function (data) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: '/QingLong/zbdc/saveXxzbdc',
|
|
|
|
|
type: 'post',
|
|
|
|
|
data: {
|
|
|
|
|
"dcb_id": 1,
|
|
|
|
|
"id": id,
|
|
|
|
|
"json": JSON.stringify(data.field)
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (result.success) {
|
|
|
|
|
layer.msg("新增成功!", {
|
|
|
|
@ -392,6 +422,16 @@
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function GetQueryString(name, istop) {
|
|
|
|
|
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
|
|
|
var r = window.location.search.substr(1).match(reg);
|
|
|
|
|
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
|
|
|
|
|
|
|
|
|
if (r != null) return unescape(r[2]);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|