配件入库
This commit is contained in:
parent
f4f958762e
commit
dbdb3b0621
|
|
@ -13,7 +13,7 @@ function setParams(params) {
|
|||
element = layui.element;
|
||||
layer = layui.layer;
|
||||
getInputDetails();
|
||||
// initTable();
|
||||
initTable();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -90,8 +90,9 @@ function queryTable(type) {
|
|||
if (type === 1) {
|
||||
reloadTable(1);
|
||||
} else if (type === 2) {
|
||||
$('#type').val('');
|
||||
$('#name').val('');
|
||||
$('#module').val('');
|
||||
$('#model').val('');
|
||||
layui.form.render();
|
||||
reloadTable(1);
|
||||
}
|
||||
|
|
@ -110,10 +111,10 @@ function reloadTable(pageNum) {
|
|||
},
|
||||
where: {
|
||||
encryptedData: JSON.stringify({
|
||||
'type': $('#type').val(),
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'proId': objParam.proId,
|
||||
'id': id
|
||||
'model': $('#model').val(),
|
||||
'id': objParam.id
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
|
@ -129,12 +130,13 @@ function initTable() {
|
|||
authorization: sessionStorage.getItem("gz-token"),
|
||||
},
|
||||
height: "full",
|
||||
url: dataUrl + "backstage/planOut/getOutDetailList",
|
||||
url: dataUrl + "backstage/partInput/getInputDetailListByPage",
|
||||
where: {
|
||||
encryptedData: JSON.stringify({
|
||||
'type': $('#type').val(),
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'id': id
|
||||
'model': $('#model').val(),
|
||||
'id': objParam.id
|
||||
}),
|
||||
},
|
||||
request: {
|
||||
|
|
@ -160,56 +162,56 @@ function initTable() {
|
|||
},
|
||||
},
|
||||
{
|
||||
field: "type",
|
||||
field: "partType",
|
||||
width: '10%',
|
||||
title: "配件类型",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "name",
|
||||
field: "partName",
|
||||
width: '10%',
|
||||
title: "配件名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "model",
|
||||
field: "partModel",
|
||||
title: "规格型号",
|
||||
width: '10%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "unit",
|
||||
field: "partUnit",
|
||||
title: "单位",
|
||||
width: '10%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "needNum",
|
||||
field: "inputNum",
|
||||
title: "入库量",
|
||||
width: '10%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "fhNum",
|
||||
field: "partPrice",
|
||||
width: '10%',
|
||||
title: "单价(元)",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "tzNum",
|
||||
field: "vendName",
|
||||
width: '15%',
|
||||
title: "配件厂家",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
field: "remarks",
|
||||
field: "remark",
|
||||
title: "备注",
|
||||
width: '17%',
|
||||
align: "center",
|
||||
|
|
|
|||
|
|
@ -200,9 +200,9 @@ function submitApply(data) {
|
|||
}
|
||||
formData.append('params', JSON.stringify(data.field));
|
||||
console.log(JSON.stringify(data.field));
|
||||
/* let loadingMsg = layer.msg('正在提交保存,请稍等...', { icon: 16, shade: 0.01, time: '0' });
|
||||
let loadingMsg = layer.msg('正在提交保存,请稍等...', { icon: 16, shade: 0.01, time: '0' });
|
||||
console.log(JSON.stringify(data.field));
|
||||
let url = dataUrl + 'backstage/partInput/addInputData';
|
||||
let url = dataUrl + 'backstage/partInput/updateInputData';
|
||||
ajaxRequestByUploadFile(url, formData, function () {
|
||||
$('.save').addClass("layui-btn-disabled").attr("disabled", true);
|
||||
$('.cancel').addClass("layui-btn-disabled").attr("disabled", true);
|
||||
|
|
@ -223,7 +223,7 @@ function submitApply(data) {
|
|||
$('.save').removeClass("layui-btn-disabled").attr("disabled", false);
|
||||
$('.cancel').removeClass("layui-btn-disabled").attr("disabled", false);
|
||||
errorFn(xhr, status, error)
|
||||
}, null); */
|
||||
}, null);
|
||||
}
|
||||
|
||||
// 获取入库配件明细数据
|
||||
|
|
|
|||
|
|
@ -106,20 +106,20 @@
|
|||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="name" id="name" autocomplete="off"
|
||||
<input type="text" name="type" id="type" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入配件类型"
|
||||
maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="module" id="module" autocomplete="off"
|
||||
<input type="text" name="name" id="name" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入配件名称" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="module" id="module" autocomplete="off"
|
||||
<input type="text" name="model" id="model" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入规格型号" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue