Browse Source

修改相关查询导出时无法导出编码功能

lwx_dev
erdanergou 3 years ago
parent
commit
fab2201783
  1. 2
      src/main/resources/templates/pages/depository/table-in.html
  2. 12
      src/main/resources/templates/pages/depository/table-out.html
  3. 18
      src/main/resources/templates/pages/depository/table-stock.html
  4. 2
      src/main/resources/templates/pages/material/material-out.html
  5. 2
      src/main/resources/templates/pages/split/split-out.html
  6. 3
      src/main/resources/templates/pages/warehouse/depository-out.html
  7. 3
      src/main/resources/templates/pages/warehouse/warehouseByParentId.html

2
src/main/resources/templates/pages/depository/table-in.html

@ -168,7 +168,7 @@
cols: [
[
{type: "checkbox", width: 50},
{title: '存货编码', width: 150, templet: '#applicationInCode'},
{field: 'aircode',title: '存货编码', width: 150, templet: '#applicationInCode'},
{field: 'mname', width: 150, title: '物料名称'},
{field: 'mversion', width: 150, title: '规格型号'},
{field: 'airUnit', width: 100, title: '计量单位'},

12
src/main/resources/templates/pages/depository/table-out.html

@ -90,7 +90,7 @@
<script id="applicationOutCode" type="text/html">
<a id="{{d.id}}" onclick="showDetail(this)">{{d.code}}</a>
<a id="{{d.id}}" onclick="showDetail(this)">{{d.code}}</a>
</script>
<table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
@ -133,7 +133,7 @@
area: ['70%', '70%'],
move: '.layui-layer-title',
fixed: false,
content: '/selectDepository?type='+selectDepositoryType,
content: '/selectDepository?type=' + selectDepositoryType,
success: function (layero, index) {
var children = layero.children();
var content = $(children[1]);
@ -172,7 +172,7 @@
let cols = [
{type: "checkbox", width: 50},
{title: '申请编码', width: 150, templet: '#applicationOutCode'},
{field: "code", title: '申请编码', width: 150, templet: '#applicationOutCode'},
{field: 'mname', width: 150, title: '物料名称'},
{field: 'mcode', width: 150, title: '存货编码'},
{field: 'quantity', width: 150, title: '数量', sort: true},
@ -275,10 +275,10 @@
skin: 'line',
done: function (res, curr, count) {
let display = $("#delete").css("display");
if(display !== "none"){
if (display !== "none") {
if (flagForReload) {
flagForReload = false;
let col = {field: 'price', title: '金额', minWidth: 150, sort: true};
let col = {field: 'price', title: '金额', minWidth: 150, sort: true};
cols.splice(6, 0, col);
table.reload('currentTableId', {cols: [cols]});
}
@ -430,7 +430,7 @@
console.log(obj)
});
showDetail = function(obj){
showDetail = function (obj) {
var index = layer.open({
title: '出库信息详情',
type: 2,

18
src/main/resources/templates/pages/depository/table-stock.html

@ -183,7 +183,7 @@
area: ['70%', '70%'],
move: '.layui-layer-title',
fixed: false,
content: '/selectDepository?type='+selectDepositoryType,
content: '/selectDepository?type=' + selectDepositoryType,
success: function (layero, index) {
var children = layero.children();
var content = $(children[1]);
@ -197,12 +197,12 @@
let cols = [
{type: "checkbox", width: 50},
{title: '存货编码', width: 150, templet: '#materialCode'},
{field: "code", title: '存货编码', width: 150, templet: '#materialCode'},
{field: 'mname', width: 200, title: '物料名称'},
{field: 'brand', width: 200, title: '品牌'},
{field: 'version', width: 200, title: '规格型号'},
{field: 'typeName', width: 200, title: '物料类型'},
{title: '计量单位', width: 200, templet: '#changeUnit', align: "center"},
{field: "unit", title: '计量单位', width: 200, templet: '#changeUnit', align: "center"},
{field: 'quantity', width: 200, title: '数量'},
{field: 'depositoryName', width: 200, title: '仓库名称'},
{field: 'depositoryCode', width: 200, title: '仓库编码'},
@ -638,9 +638,15 @@
, moveType: 1 //拖拽模式,0或者1
, content: re
, yes: function (index, layero) {
if(flagForImport){
if (flagForImport) {
flagForImport = false;
let loading2 = layer.open({ type: 3, shade: [0.25, '#000'], icon: 2, speed: 0,shadeClose:true});
let loading2 = layer.open({
type: 3,
shade: [0.25, '#000'],
icon: 2,
speed: 0,
shadeClose: true
});
$.ajax({
url: "/excel/realImportInventory",
type: "post",
@ -668,7 +674,7 @@
}, 'data');
})
},
error : function(){
error: function () {
flagForImport = true;
}

2
src/main/resources/templates/pages/material/material-out.html

@ -169,7 +169,7 @@
let cols = [
{type: "checkbox", width: 50},
{title: '存货编码', width: 150, templet: '#materialCode'},
{field: 'mcode',title: '存货编码', width: 150, templet: '#materialCode'},
{field: 'mname', width: 120, title: '物料名称', sort: false},
{field: 'typeName', width: 150, title: '物料种类'},
{field: 'version', width: 200, title: '规格型号', sort: false},

2
src/main/resources/templates/pages/split/split-out.html

@ -132,7 +132,7 @@
cols: [
[
{type: "checkbox", width: 50},
{title: '存货编码', width: 150, templet: '#splitCode'},
{field: 'mcode',title: '存货编码', width: 150, templet: '#splitCode'},
{field: 'mname', width: 120, title: '物料名称', sort: false},
{field: 'typeName', width: 150, title: '物料种类'},
{field: 'version', width: 200, title: '规格型号', sort: false},

3
src/main/resources/templates/pages/warehouse/depository-out.html

@ -134,8 +134,7 @@
cols: [
[
{type: "checkbox", width: 50},
// {field: 'code', width: 150, title: '仓库编码'},
{title: '仓库编码', width: 150, templet: '#depositoryCode'},
{field: 'dcode',title:"仓库编码", width: 150, templet: '#depositoryCode'},
{field: 'dname', width: 120, title: '仓库名称'},
{field: 'cname', width: 200, title: '所处公司'},
{field: 'adminorgName', width: 150, title: '所属部门'},

3
src/main/resources/templates/pages/warehouse/warehouseByParentId.html

@ -138,8 +138,7 @@
cols: [
[
{type: "checkbox", width: 50},
// {field: 'code', width: 100, title: '库位号', sort: true},
{title: '库位编码', width: 100, templet: '#placeCode'},
{field:'code',title: '库位编码', width: 100, templet: '#placeCode'},
{title: '物料名称', minWidth: 350, templet: '#viewMname', align: "center"},
{field: 'depositoryName', width: 200, title: '仓库名称'},
{field: 'depositoryCode', width: 200, title: '仓库编码'},

Loading…
Cancel
Save