配件退回
This commit is contained in:
parent
cb780d10de
commit
4bcde81402
|
|
@ -16,14 +16,14 @@ function setParams(params) {
|
|||
});
|
||||
}
|
||||
|
||||
// 获取配件到货入库详情
|
||||
// 获取配件退料入库记录详情
|
||||
function getInputDetails() {
|
||||
let params = {
|
||||
encryptedData: JSON.stringify({
|
||||
'id': objParam.id
|
||||
})
|
||||
};
|
||||
let url = dataUrl + 'backstage/partInput/getInputDetails';
|
||||
let url = dataUrl + 'backstage/partBack/getInfoDetails';
|
||||
ajaxRequest(url, "POST", params, true, function () {
|
||||
}, function (result) {
|
||||
console.error(result);
|
||||
|
|
@ -129,12 +129,12 @@ function initTable() {
|
|||
authorization: sessionStorage.getItem("gz-token"),
|
||||
},
|
||||
height: "full",
|
||||
url: dataUrl + "backstage/partInput/getInputDetailListByPage",
|
||||
url: dataUrl + "backstage/partBack/getInfoDetailsList",
|
||||
where: {
|
||||
encryptedData: JSON.stringify({
|
||||
'type': $('#type').val(),
|
||||
'name': $('#name').val(),
|
||||
'model': $('#model').val(),
|
||||
'partType': $('#partType').val(),
|
||||
'partName': $('#partName').val(),
|
||||
'partModel': $('#partModel').val(),
|
||||
'id': objParam.id
|
||||
}),
|
||||
},
|
||||
|
|
@ -219,28 +219,14 @@ function initTable() {
|
|||
// 导出
|
||||
function exportExcel() {
|
||||
let params = {
|
||||
'name': $('#name').val(),
|
||||
'module': $('#module').val(),
|
||||
'proId': objParam.proId,
|
||||
'id': id,
|
||||
'curryDay': time
|
||||
'partType': $('#partType').val(),
|
||||
'partName': $('#partName').val(),
|
||||
'partModel': $('#partModel').val(),
|
||||
'id': objParam.id
|
||||
}
|
||||
let url = dataUrl + "backstage/export/exportPcList";
|
||||
exportExcelUtil(url, '发货详情-批次-' + time, JSON.stringify(params));
|
||||
let url = dataUrl + "backstage/partBack/exportDetail";
|
||||
exportExcelUtil(url, '配件入库明细', JSON.stringify(params));
|
||||
}
|
||||
|
||||
// 打印
|
||||
function print() {
|
||||
Print('#table-box', {
|
||||
onStart: function () {
|
||||
console.log('onStart', new Date())
|
||||
},
|
||||
onEnd: function () {
|
||||
console.log('onEnd', new Date())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查看概述
|
||||
function viewGs(obj) {
|
||||
layer.open({
|
||||
|
|
|
|||
|
|
@ -166,9 +166,9 @@ function initTable() {
|
|||
style: 'outline: 1px solid #e6e6e6;outline-offset: -5px;'
|
||||
},
|
||||
{
|
||||
field: "<span style='color:red'> * </span>price",
|
||||
field: "price",
|
||||
width: '10%',
|
||||
title: "盘亏量",
|
||||
title: "<span style='color:red'> * </span>盘亏量",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
edit: 'text',
|
||||
|
|
|
|||
|
|
@ -104,21 +104,21 @@
|
|||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 300px;">
|
||||
<input type="text" name="type" id="type" autocomplete="off"
|
||||
<input type="text" name="partType" id="partType" 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="name" id="name" autocomplete="off"
|
||||
<input type="text" name="partName" id="partName" 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="model" id="model" autocomplete="off"
|
||||
<input type="text" name="partModel" id="partModel" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="输入规格型号"
|
||||
maxlength="30">
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue