|
@@ -49,33 +49,15 @@
|
|
|
<input type="hidden" name="arId" maxlength="30" id ="arId" lay-verify="arId" autocomplete="off" class="layui-input">
|
|
|
</div>
|
|
|
</div>
|
|
|
-<!-- <div class="layui-inline"> -->
|
|
|
-<!-- <label class="layui-form-label">选择日期:</label> -->
|
|
|
-<!-- <div class="layui-input-block"> -->
|
|
|
-<!-- <input type="text" name="date" id="date" lay-verify="required" autocomplete="off" placeholder="-" class="layui-input"> -->
|
|
|
-<!-- </div> -->
|
|
|
-<!-- </div> -->
|
|
|
-<!-- <div class="layui-inline"> -->
|
|
|
-<!-- <label class="layui-form-label">*日期:</label> -->
|
|
|
-<!-- <div class="layui-input-inline"> -->
|
|
|
-<!-- <input type="text" class="layui-input" id="date" name="date" lay-verify="date" placeholder="请选择日期"> -->
|
|
|
-<!-- </div> -->
|
|
|
-<!-- </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
- <a href="../../excel/jiageguanli.xlsx" download="价格管理.xlsx" id = "changche"><button type="button" class="layui-btn">下载价格管理模板</button></a>
|
|
|
+ <a href="../../excel/jiageguanli.xlsx" download="价格管理.xlsx" id = "changche"><button type="button" class="layui-btn">下载价格管理模板</button></a>
|
|
|
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
|
|
|
<legend>选择文件后再上传</legend>
|
|
|
</fieldset>
|
|
|
<button type="button" class="layui-btn" id="chooseFile"><i class="layui-icon"></i>选择文件</button>
|
|
|
- <button type="button" class="layui-btn" id="upload">开始上传</button>
|
|
|
-<!-- <div class="layui-inline" id="allStockDiv"> -->
|
|
|
-<!-- <label class="f12-gray4">重量合计:</label> -->
|
|
|
-<!-- <div class="layui-input-inline"> -->
|
|
|
-<!-- <input type="text" class="layui-input" id="allMoney" name="allMoney" style="border:none;color: red" disabled="disabled" class="search-select"> -->
|
|
|
-<!-- </div> -->
|
|
|
-<!-- </div> -->
|
|
|
+ <button type="button" class="layui-btn" id="upload">开始上传</button>
|
|
|
</div>
|
|
|
<div style="margin-top: 20px;margin-left: 60px;margin-right: 120px; margin-bottom:95px;">
|
|
|
<table id="tableTest" lay-filter="tableFilter"></table>
|
|
@@ -144,12 +126,13 @@
|
|
|
,cols : [[ //表头
|
|
|
{type:'numbers',title: '序号',width:"5%"}
|
|
|
,{field: 'date', title: '日期',width:"13%",edit: 'text'}
|
|
|
- ,{field: 'cjPrice', title: '长江价(元)',width:"13%",edit: 'text'}
|
|
|
- ,{field: 'ncPrice', title: '南储价(元)',width:"13%",edit: 'text'}
|
|
|
- ,{field: 'shPrice', title: '上海有色网价(元)',width:"13%",edit: 'text'}
|
|
|
- ,{field: 'hlPrice', title: '沪铝结算价(元)',width:"13%",edit: 'text'}
|
|
|
- ,{field: 'glPrice', title: '钢联南储均价(元)',width:"13%",edit: 'text'}
|
|
|
- ,{field : 'operate', title: '操作',fixed:'right', width: "18%", toolbar: '#handle'}
|
|
|
+ ,{field: 'cjPrice', title: '长江价(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field: 'ncPrice', title: '南储价(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field: 'shPrice', title: '上海有色网价(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field: 'hlPrice', title: '沪铝结算价(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field: 'glPrice', title: '钢联南储均价(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field: 'ysstsjPrice', title: '有色升贴水(元)',width:"10%",edit: 'text'}
|
|
|
+ ,{field : 'operate', title: '操作',fixed:'right', width: "15%", toolbar: '#handle'}
|
|
|
]]
|
|
|
,page: false
|
|
|
,done: function(res, curr, count){
|
|
@@ -266,7 +249,7 @@
|
|
|
for (var i = 1; i < data.length; i++) {
|
|
|
var dataNew;
|
|
|
if(!isEmpty(data[i])){
|
|
|
- dataNew = {"trid":"isdecision"+i,"date":data[i].date,"cjPrice":data[i].cjPrice,"ncPrice":data[i].ncPrice,"shPrice":data[i].shPrice,"hlPrice":data[i].hlPrice,"glPrice":data[i].glPrice};
|
|
|
+ dataNew = {"trid":"isdecision"+i,"date":data[i].date,"cjPrice":data[i].cjPrice,"ncPrice":data[i].ncPrice,"shPrice":data[i].shPrice,"hlPrice":data[i].hlPrice,"glPrice":data[i].glPrice,"ysstsjPrice":data[i].ysstsjPrice};
|
|
|
oldData.push(dataNew);
|
|
|
}
|
|
|
}
|
|
@@ -279,7 +262,8 @@
|
|
|
var shPrice = oldData[i].shPrice;
|
|
|
var hlPrice = oldData[i].hlPrice;
|
|
|
var glPrice = oldData[i].glPrice;
|
|
|
- var inf = date+cjPrice+ncPrice+shPrice+hlPrice+glPrice;
|
|
|
+ var ysstsjPrice = oldData[i].ysstsjPrice;
|
|
|
+ var inf = date+cjPrice+ncPrice+shPrice+hlPrice+glPrice+ysstsjPrice;
|
|
|
if(dateList.indexOf(inf)!=-1){
|
|
|
var seq = i+1;
|
|
|
index += seq+",";
|