表格添加排序、下拉选添加提示
This commit is contained in:
parent
40a3ef9bab
commit
7c3f94fc25
|
|
@ -125,6 +125,7 @@ blockquote {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr th {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ blockquote {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr th {
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr td,
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ blockquote {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr th {
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr td,
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ blockquote {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr th {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr td,
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.classTable tr td,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ body {
|
|||
border: 1px solid #ddd;
|
||||
padding: 10px 20px;
|
||||
text-align: left;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ function getProList() {
|
|||
|
||||
// 工程下拉选赋值
|
||||
function setSelectData(proList) {
|
||||
let html = '<option value="">请选择</option>';
|
||||
let html = '<option value="">请选择退料工程</option>';
|
||||
$.each(proList, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "type",
|
||||
width: '19%',
|
||||
width: '15%',
|
||||
title: "类型",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -132,7 +132,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "name",
|
||||
width: '19%',
|
||||
width: '15%',
|
||||
title: "名称",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -140,7 +140,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "model",
|
||||
width: '19%',
|
||||
width: '15%',
|
||||
title: "规格型号",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -165,7 +165,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "remark",
|
||||
width: '13%',
|
||||
width: '24%',
|
||||
title: "备注",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
|
|||
|
|
@ -666,7 +666,7 @@ function setTableData(results) {
|
|||
}
|
||||
|
||||
function setSelectData(list) {
|
||||
let html = '<option value="" selected>请选择</option>';
|
||||
let html = '<option value="" selected>请选择厂家</option>';
|
||||
$.each(list, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ function setTableData(results) {
|
|||
}
|
||||
|
||||
function setSelectData(list) {
|
||||
let html = '<option value="" selected>请选择</option>';
|
||||
let html = '<option value="" selected>请选择厂家</option>';
|
||||
$.each(list, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "money",
|
||||
width: '8%',
|
||||
width: '10%',
|
||||
title: "合同金额(元)",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ function getProList() {
|
|||
|
||||
// 工程下拉选赋值
|
||||
function setSelectData(proList) {
|
||||
let html = '<option value="">请选择</option>';
|
||||
let html = '<option value="">请选择工程</option>';
|
||||
$.each(proList, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ function getProList() {
|
|||
|
||||
// 工程下拉选赋值
|
||||
function setSelectData(proList) {
|
||||
let html = '<option value="">请选择</option>';
|
||||
let html = '<option value="">请选择工程</option>';
|
||||
$.each(proList, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ function setFormInput(value, type, id) {
|
|||
}
|
||||
|
||||
function setSelectData(modelId, value) {
|
||||
let html = "<option value=''>请选择</option>";
|
||||
let html = "<option value=''>请选择供应商</option>";
|
||||
$.each(supplierList, function (index, item) {
|
||||
if (value === (item.supId + '')) {
|
||||
html += "<option value=" + item.supId + " item=" + JSON.stringify(item) + " modelId=" + modelId + " selected>" + item.supName + "</option>";
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ function setFormInput(value, type, id) {
|
|||
}
|
||||
|
||||
function setSelectData(modelId) {
|
||||
let html = "<option value=''>请选择</option>";
|
||||
let html = "<option value=''>请选择供应商</option>";
|
||||
$.each(supplierList, function (index, item) {
|
||||
html += "<option value=" + item.supId + " item=" + JSON.stringify(item) + " modelId=" + modelId + ">" + item.supName + "</option>";
|
||||
})
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "type",
|
||||
width: '8%',
|
||||
width: '10%',
|
||||
title: "类型",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -142,7 +142,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "model",
|
||||
width: '8%',
|
||||
width: '12%',
|
||||
title: "规格型号",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
@ -158,7 +158,7 @@ function initTable() {
|
|||
{
|
||||
field: "unitName",
|
||||
title: "单位",
|
||||
width: '8%',
|
||||
width: '8.1%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
sort:true,
|
||||
|
|
@ -166,7 +166,7 @@ function initTable() {
|
|||
{
|
||||
field: "storageNum",
|
||||
title: "库存量",
|
||||
width: '8%',
|
||||
width: '9%',
|
||||
unresize: true,
|
||||
align: "center",
|
||||
sort:true,
|
||||
|
|
@ -203,7 +203,7 @@ function initTable() {
|
|||
},
|
||||
{
|
||||
field: "remark",
|
||||
width: '10%',
|
||||
width: '12%',
|
||||
title: "备注",
|
||||
unresize: true,
|
||||
align: "center",
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ function getBaseTableData() {
|
|||
// 选择入库配件类型
|
||||
function chooseFitType() {
|
||||
let params = {};
|
||||
openIframeByParamObj("choose_fit_type_inventory_count", '选择盘点类型', "./choose_type_list.html", '99%', '99%', params);
|
||||
openIframeByParamObj("choose_fit_type_inventory_count", '选择盘点类型', "./choose_type_list.html", '92%', '95%', params);
|
||||
}
|
||||
|
||||
// 查询
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ function showProcess() {
|
|||
}
|
||||
// 申请
|
||||
function applyPlan(obj) {
|
||||
openIframeByParamObj("apply_plan", "库存盘点", "./child/inventory_add_take_stock.html", "99%", "99%", obj);
|
||||
openIframeByParamObj("apply_plan", "库存盘点", "./child/inventory_add_take_stock.html", "92%", "95%", obj);
|
||||
}
|
||||
|
||||
// 申请修改
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ function setParams(obj) {
|
|||
|
||||
// setSelectData(projectcategoryList, 'projectcategory');
|
||||
// setSelectData(voltagelevelList, 'voltagelevel');
|
||||
setSelectData(xmZtList, 'xmZt');
|
||||
setSelectData(xmZtList, 'xmZt','工程状态');
|
||||
form.render();
|
||||
});
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ function getLevelSelect() {
|
|||
ajaxRequest(url, "POST", null, false, function () {
|
||||
}, function (result) {
|
||||
if (result.code === 200) {
|
||||
setSelectData(result.data,'voltagelevel');
|
||||
setSelectData(result.data,'voltagelevel','电压等级');
|
||||
}
|
||||
}, function (xhr, status, error) {
|
||||
errorFn(xhr, status, error)
|
||||
|
|
@ -75,7 +75,7 @@ function getProTypeSelect() {
|
|||
ajaxRequest(url, "POST", null, false, function () {
|
||||
}, function (result) {
|
||||
if (result.code === 200) {
|
||||
setSelectData(result.data,'projectcategory');
|
||||
setSelectData(result.data,'projectcategory','工程类别');
|
||||
}
|
||||
}, function (xhr, status, error) {
|
||||
errorFn(xhr, status, error)
|
||||
|
|
@ -165,8 +165,8 @@ function submitApply(data) {
|
|||
}
|
||||
|
||||
// 下拉选赋值
|
||||
function setSelectData(list, idName) {
|
||||
let html = '<option value="" selected>请选择</option>';
|
||||
function setSelectData(list, idName,title) {
|
||||
let html = '<option value="" selected>请选择'+title+'</option>';
|
||||
$.each(list, function (index, item) {
|
||||
html += '<option value="' + item.id + '">' + item.name + '</option>'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 200px;">
|
||||
<select class="layui-select" id="status">
|
||||
<option value="">请选择</option>
|
||||
<option value="">请选择合同状态</option>
|
||||
<option value="0">生效</option>
|
||||
<option value="1">失效</option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<button class="layui-btn layui-bg-blue" onclick="queryDtree(1)"><i
|
||||
class="layui-icon"></i>搜索</button>
|
||||
<button class="layui-btn layui-btn-primary" onclick="refreshTreeData()"><i
|
||||
class="layui-icon layui-icon-refresh"></i>刷新树</button>
|
||||
class="layui-icon layui-icon-refresh"></i>刷新</button>
|
||||
<!-- <button class="layui-btn layui-btn-primary" onclick="queryDtree(2)"><i
|
||||
class="layui-icon layui-icon-refresh"></i>重置</button>
|
||||
<button class="layui-btn layui-btn-primary" onclick="refreshTreeData()"><i
|
||||
|
|
@ -46,13 +46,13 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 200px;">
|
||||
<input type="text" name="keyWord" id="keyWord" autocomplete="off"
|
||||
class="layui-input" lay-affix="clear" placeholder="类型/名称/规格" maxlength="30">
|
||||
class="layui-input" lay-affix="clear" placeholder="输入类型/名称/规格" maxlength="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 200px;">
|
||||
<select class="layui-select" id="isActive">
|
||||
<option value="">请选择</option>
|
||||
<option value="">请选择状态</option>
|
||||
<option value="0">启用状态</option>
|
||||
<option value="1">禁用状态</option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<div class="layout" style="justify-content: start;">
|
||||
<img src="../../../images/svg/u702.svg" width="40px" height="40px" style="margin-right: 20px;">
|
||||
<div class="layout" style="flex-direction: column;align-items: start;margin-left: 10px;">
|
||||
<p style="font-size: 18px;font-weight: bold;" id="proName">xxxxxxxxxxxxxxxxxx工程</p>
|
||||
<p style="font-size: 18px;font-weight: bold;" id="proName"></p>
|
||||
<p id="code"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline">
|
||||
<select id="status">
|
||||
<option value="">请选择状态</option>
|
||||
<option value="">请选择发货状态</option>
|
||||
<option value="0">待发货</option>
|
||||
<option value="1">已发货</option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline">
|
||||
<select id="status">
|
||||
<option value="">请选择状态</option>
|
||||
<option value="">请选择发货状态</option>
|
||||
<option value="0">未发货</option>
|
||||
<option value="1">部分发货</option>
|
||||
<option value="2">全部发货</option>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 250px;">
|
||||
<select class="layui-select" id="xmZt">
|
||||
<option value="">请选择</option>
|
||||
<option value="">请选择项目状态</option>
|
||||
<option value="建设未开工">建设未开工</option>
|
||||
<option value="在建">在建</option>
|
||||
<option value="在建停工">在建停工</option>
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
<div class="layui-inline">
|
||||
<div class="layui-input-inline" style="width: 250px;">
|
||||
<select class="layui-select" id="dataSource">
|
||||
<option value="">请选择</option>
|
||||
<option value="">请选择数据来源</option>
|
||||
<option value="1">施工平台</option>
|
||||
<option value="2">自建</option>
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue