diff --git a/WebRoot/view/tb/zbdc/zbxx.html b/WebRoot/view/tb/zbdc/zbxx.html
index 9ad6d7dc..5231aabe 100644
--- a/WebRoot/view/tb/zbdc/zbxx.html
+++ b/WebRoot/view/tb/zbdc/zbxx.html
@@ -242,9 +242,9 @@
const result = findNodeAndParents(levelName);
tableRender(result.join(','));
}
- else{
+ else {
tableRender("");
- }
+ }
// 阻止表单的默认提交行为
return false;
@@ -268,15 +268,15 @@
},
cols: [[
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
- { title: '分类', field: 'level', align: 'center', width: "10%" },
+ { title: '分类', field: 'level', align: 'center', width: "15%" },
{ title: '分类代码', field: 'fldm', align: 'center', width: "10%" },
{ title: '名称', field: 'mc', align: 'center', width: "10%" },
- { title: '规格型号功能', field: 'ggxhgn', align: 'center', width: "15%" },
+ { title: '规格型号功能', field: 'ggxhgn', align: 'center', width: "25%" },
{ title: '单位', field: 'dw', align: 'center', width: "5%" },
{ title: '应配数量', field: 'ypsl', align: 'center', width: "5%" },
{ title: '配备要求', align: 'center', width: "5%", templet: '#pbyq_templet' },
- { title: '现有数量', templet: '', align: 'center', width: "10%", style: 'cursor: pointer;' },
- { title: '备注', field: 'bz', align: 'center', width: "25%" }
+ { title: '备注', field: 'bz', align: 'center', width: "10%" },
+ { title: '现有数量', templet: '', align: 'center', width: "10%", style: 'cursor: pointer;' }
]],
// skin: 'line',
@@ -299,15 +299,32 @@
$(".aabbxx").blur(function () {
var curVal = this.value.trim();
var data = table.getRowData(options.id, this);
- console.log(JSON.stringify(data), curVal, options.id);
if (tempVal != curVal) {
- toast.success({
- // title: '提示',
- message: '数据保存成功!',
- position: 'topRight',
- timeout: 1200,
- close: false
+ $.ajax({
+ url: '/QingLong/zbdc/saveFill',
+ type: 'post',
+ data: {
+ "templet_id": data.templet_id,
+ "xysl": curVal
+ },
+ success: function (result) {
+ if (result.success) {
+ toast.success({
+ // title: '提示',
+ message: '数据保存成功!',
+ position: 'topRight',
+ timeout: 1200,
+ close: false
+ });
+ } else {
+ layer.msg(result.message, {
+ icon: 2,
+ time: 2000
+ });
+ }
+ }
});
+
}