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