样品统计管理
This commit is contained in:
parent
e4e3705de6
commit
d741a030f3
|
|
@ -7,6 +7,8 @@
|
|||
ted.id,
|
||||
tsd.dev_type_name as sampleTools,
|
||||
ted.dev_code as devCode,
|
||||
ted.manufacturer as factoryName,
|
||||
ted.dev_status as devStatus,
|
||||
tsd.customer_code as customerCode,
|
||||
tsd.dev_module as devModule,
|
||||
tc.custom_name as customName,
|
||||
|
|
@ -32,6 +34,12 @@
|
|||
<if test="sampleTools != null and sampleTools != ''">
|
||||
and tsd.dev_type_name like concat('%',#{sampleTools}, '%')
|
||||
</if>
|
||||
<if test="devCode != null and devCode != ''">
|
||||
and ted.dev_code like concat('%',#{devCode}, '%')
|
||||
</if>
|
||||
<if test="customerCode != null and customerCode != ''">
|
||||
and tsd.customer_code like concat('%',#{customerCode}, '%')
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
AND (
|
||||
ted.dev_code like concat('%', #{keyWord}, '%') OR
|
||||
|
|
|
|||
|
|
@ -130,6 +130,26 @@ function initTable(dataList, limit, page) {
|
|||
return `<div class="ellipsis" title="${d.devModule}">${d.devModule}</div>`;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: "factoryName",
|
||||
// width: 150,
|
||||
title: "生产厂家",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return `<div class="ellipsis" title="${d.factoryName}">${d.factoryName}</div>`;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: "devStatus",
|
||||
// width: 150,
|
||||
title: "外观状态",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
templet: function (d) {
|
||||
return `<div class="ellipsis" title="${d.devStatus}">${d.devStatus}</div>`;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: "customName",
|
||||
// width: 175,
|
||||
|
|
@ -270,6 +290,8 @@ function getReqParams(page, limit, type) {
|
|||
page: page + "",
|
||||
limit: limit + "",
|
||||
sampleTools: selectedText,
|
||||
devCode: $('#devCode').val(),
|
||||
customerCode: $('#customerCode').val(),
|
||||
keyWord:$('#keyWord').val()
|
||||
};
|
||||
} else {
|
||||
|
|
@ -277,6 +299,8 @@ function getReqParams(page, limit, type) {
|
|||
page: '1',
|
||||
limit: '10',
|
||||
sampleTools: '',
|
||||
devCode: '',
|
||||
customerCode: '',
|
||||
keyWord: ''
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,14 +30,25 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline" style="padding: 0 0 0 10px;">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="devCode" maxlength="30" class="layui-input" autocomplete="off" placeholder="请输入样品编号">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline" style="padding: 0 0 0 10px;">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="customerCode" maxlength="30" class="layui-input" autocomplete="off" placeholder="请输入样品编号">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-inline" style="padding: 0 0 0 10px;">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="keyWord" maxlength="30" class="layui-input" autocomplete="off" placeholder="请输入关键字">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-inline btns" style="width: 65%">
|
||||
<div class="layui-inline btns" >
|
||||
<button type="button" class="layui-btn layui-btn-normal layui-btn-sm btn-1" onclick="query(1)">查询
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue