From c6880e0e3b5b9f0d2dc5c3ee11abad4ce674c653 Mon Sep 17 00:00:00 2001 From: double <768903061@qq.com> Date: Fri, 14 Jun 2019 10:48:50 +0800 Subject: [PATCH 01/27] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/js/pages/materials/bill_detail.js | 77 +++++++++++++++++++++++ erp_web/pages/materials/bill_detail.html | 11 +++- 2 files changed, 85 insertions(+), 3 deletions(-) diff --git a/erp_web/js/pages/materials/bill_detail.js b/erp_web/js/pages/materials/bill_detail.js index 77f4892f..8f07e546 100644 --- a/erp_web/js/pages/materials/bill_detail.js +++ b/erp_web/js/pages/materials/bill_detail.js @@ -7,12 +7,17 @@ var payTypeTitle = "";//收入 支出 var itemType = true; //隐藏当前列 var moneyType = true; //隐藏当前列 + $(function() { initSystemData_account(); //获取账户信息 initMProperty(); //初始化商品属性 initOutItemList(); //初始化支出项目 initialize();//初始化系统基础信息 + }); + + + //获取账户信息 function initSystemData_account(){ $.ajax({ @@ -95,38 +100,47 @@ if(listSubType == "采购入库") { billType = "material"; $("#bill .purchase_in").show(); + tableString = $(".purchase_in").html(); } else if(listSubType == "采购退货出库") { billType = "material"; $("#bill .purchase_back").show(); + tableString = $(".purchase_back").html(); } else if(listSubType == "销售出库") { billType = "material"; $("#bill .sale_out").show(); + tableString = $(".sale_out").html(); } else if(listSubType == "销售退货入库") { billType = "material"; $("#bill .sale_back").show(); + tableString = $(".sale_back").html(); } else if(listSubType == "零售出库") { billType = "material"; $("#bill .retail_out").show(); + tableString = $(".retail_out").html(); } else if(listSubType == "零售退货入库") { billType = "material"; $("#bill .retail_back").show(); + tableString = $(".retail_back").html(); } else if(listSubType == "其它入库") { billType = "material"; $("#bill .other_in").show(); + tableString = $(".other_in").html(); } else if(listSubType == "其它出库") { billType = "material"; $("#bill .other_out").show(); + tableString = $(".other_out").html(); } else if(listSubType == "调拨出库") { billType = "material"; $("#bill .allocation_out").show(); + tableString = $(".allocation_out").html(); } else if(listSubType == "收入") { billType = "account"; @@ -134,6 +148,7 @@ itemType = false; //显示当前列 moneyType = true; //隐藏当前列 $("#bill .item_in").show(); + tableString = $(".item_in").html(); } else if(listSubType == "支出") { billType = "account"; @@ -141,6 +156,7 @@ itemType = false; //显示当前列 moneyType = true; //隐藏当前列 $("#bill .item_out").show(); + tableString = $(".item_out").html(); } else if(listSubType == "收款") { billType = "account"; @@ -148,6 +164,7 @@ itemType = true; //隐藏当前列 moneyType = false; //显示当前列 $("#bill .money_in").show(); + tableString = $(".money_in").html(); } else if(listSubType == "付款") { billType = "account"; @@ -155,6 +172,7 @@ itemType = true; //隐藏当前列 moneyType = false; //显示当前列 $("#bill .money_out").show(); + tableString = $(".money_out").html(); } else if(listSubType == "转账") { billType = "account"; @@ -162,6 +180,7 @@ itemType = true; //隐藏当前列 moneyType = false; //显示当前列 $("#bill .giro").show(); + tableString = $(".giro").html(); } else if(listSubType == "收预付款") { billType = "account"; @@ -169,8 +188,12 @@ itemType = true; //隐藏当前列 moneyType = false; //显示当前列 $("#bill .advance_in").show(); + tableString = $(".advance_in").html(); } + + + //如果是进货、销售 if(billType == "material"){ $.ajax({ @@ -317,6 +340,57 @@ } }); } + //打印table + $("#print_bill_detail").off("click").on("click",function(){ + var tableString = "";//打印table + if(listSubType == "采购入库") { + tableString = $(".purchase_in").html(); + } + else if(listSubType == "采购退货出库") { + tableString = $(".purchase_back").html(); + } + else if(listSubType == "销售出库") { + tableString = $(".sale_out").html(); + } + else if(listSubType == "销售退货入库") { + tableString = $(".sale_back").html(); + } + else if(listSubType == "零售出库") { + tableString = $(".retail_out").html(); + } + else if(listSubType == "零售退货入库") { + tableString = $(".retail_back").html(); + } + else if(listSubType == "其它入库") { + tableString = $(".other_in").html(); + } + else if(listSubType == "其它出库") { + tableString = $(".other_out").html(); + } + else if(listSubType == "调拨出库") { + tableString = $(".allocation_out").html(); + } + else if(listSubType == "收入") { + tableString = $(".item_in").html(); + } + else if(listSubType == "支出") { + tableString = $(".item_out").html(); + } + else if(listSubType == "收款") { + tableString = $(".money_in").html(); + } + else if(listSubType == "付款") { + tableString = $(".money_out").html(); + } + else if(listSubType == "转账") { + tableString = $(".giro").html(); + } + else if(listSubType == "收预付款") { + tableString = $(".advance_in").html(); + } + localStorage.setItem("tableString",tableString); + window.open("../../js/print/print_form.html","location:No;status:No;help:No;dialogWidth:800px;dialogHeight:600px;scroll:auto;"); + }); } //初始化表格数据-商品列表-查看状态 @@ -459,3 +533,6 @@ }); } + function print(){ + alert(listSubType); + } diff --git a/erp_web/pages/materials/bill_detail.html b/erp_web/pages/materials/bill_detail.html index a33c9da6..165351db 100644 --- a/erp_web/pages/materials/bill_detail.html +++ b/erp_web/pages/materials/bill_detail.html @@ -15,6 +15,7 @@ +
- + @@ -93,7 +94,7 @@ closed="true" modal="true" cache="false" collapsible="false" closable="true">
会员卡号:会员卡号:
- + @@ -304,7 +305,7 @@
会员卡号:会员卡号:
-
@@ -379,6 +380,7 @@
+
@@ -823,5 +825,8 @@
+
+ 打印 +
From 5b2c539acc75a067e7b3c714011b6140e67a4017 Mon Sep 17 00:00:00 2001 From: double <768903061@qq.com> Date: Fri, 14 Jun 2019 10:49:56 +0800 Subject: [PATCH 02/27] =?UTF-8?q?=E9=94=80=E5=94=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E6=B7=BB=E5=8A=A0=E9=94=80=E5=94=AE=E6=80=BB?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/reports/sale_out_report.html | 29 ++++++++++++++-------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/erp_web/pages/reports/sale_out_report.html b/erp_web/pages/reports/sale_out_report.html index f3bcb9ae..e7d8039f 100644 --- a/erp_web/pages/reports/sale_out_report.html +++ b/erp_web/pages/reports/sale_out_report.html @@ -34,7 +34,7 @@    打印 - 注:此处包含零售+批发销售 + 当前销售总额:0  注:此处包含零售+批发销售 @@ -110,14 +110,16 @@ pageSize: 10, pageList: [10, 50, 100], columns: [[ - {title: '名称', field: 'MaterialName', width: 60}, - {title: '型号', field: 'MaterialModel', width: 80}, - {title: '扩展信息', field: 'MaterialOther', width: 150}, - {title: '单位', field: 'MaterialUnit', width: 80}, - {title: '销售数量', field: 'OutSum', width: 60}, - {title: '销售金额', field: 'OutSumPrice', width: 60}, - {title: '退货数量', field: 'InSum', width: 60}, - {title: '退货金额', field: 'InSumPrice', width: 60} + {title: '名称', field: 'MaterialName', width: 60, align: "center"}, + {title: '型号', field: 'MaterialModel', width: 80, align: "center"}, + {title: '扩展信息', field: 'MaterialOther', width: 150, align: "center"}, + {title: '单位', field: 'MaterialUnit', width: 80, align: "center"}, + {title: '销售数量', field: 'OutSum', width: 60, align: "center"}, + {title: '销售金额', field: 'OutSumPrice', width: 60, align: "center"}, + {title: '退货数量', field: 'InSum', width: 60, align: "center"}, + {title: '退货金额', field: 'InSumPrice', width: 60, align: "center"}, + {title: '实际销售金额', field: 'OutInSumPrice', width: 80, align: "center"} + ]], onLoadError: function () { $.messager.alert('页面加载提示', '页面加载异常,请稍后再试!', 'error'); @@ -219,6 +221,13 @@ if (res && res.code === 200 && res.data) { $("#tableData").datagrid('loadData', res.data.rows); } + var total = 0; + res.data.rows.forEach(function(value, index, array){ + //执行某些操作 + total += value.OutInSumPrice; + }) + + $(".first-total").text(total); //当前总余额 }, //此处添加错误处理 error: function () { @@ -260,4 +269,4 @@ } - \ No newline at end of file + From 137c01ef6483284f4fbb32c5656daccdbdc52931 Mon Sep 17 00:00:00 2001 From: double <768903061@qq.com> Date: Fri, 14 Jun 2019 10:54:54 +0800 Subject: [PATCH 03/27] =?UTF-8?q?=E9=94=80=E5=94=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E4=B8=AD=E6=80=BB=E9=94=80=E5=94=AE=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/jsh/erp/controller/DepotItemController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/jsh/erp/controller/DepotItemController.java b/src/main/java/com/jsh/erp/controller/DepotItemController.java index f78f0f86..dca9edd1 100644 --- a/src/main/java/com/jsh/erp/controller/DepotItemController.java +++ b/src/main/java/com/jsh/erp/controller/DepotItemController.java @@ -584,6 +584,7 @@ public class DepotItemController { BigDecimal OutSumPrice = sumPriceBuyOrSale("出库", "销售", diEx.getMId(), monthTime); BigDecimal InSumRetailPrice = sumPriceBuyOrSale("入库", "零售退货", diEx.getMId(), monthTime); BigDecimal InSumPrice = sumPriceBuyOrSale("入库", "销售退货", diEx.getMId(), monthTime); + BigDecimal OutInSumPrice = (OutSumRetailPrice.add(OutSumPrice)).subtract(InSumRetailPrice.add(InSumPrice)); item.put("MaterialName", diEx.getMName()); item.put("MaterialModel", diEx.getMModel()); //扩展信息 @@ -595,6 +596,7 @@ public class DepotItemController { item.put("InSum", InSumRetail.add(InSum)); item.put("OutSumPrice", OutSumRetailPrice.add(OutSumPrice)); item.put("InSumPrice", InSumRetailPrice.add(InSumPrice)); + item.put("OutInSumPrice",OutInSumPrice);//实际销售金额 dataArray.add(item); } } From d9627ac020260a74dbe616d050db5d14d98d9cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 16 Jun 2019 21:38:22 +0800 Subject: [PATCH 04/27] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=9A=84=E5=BA=93=E5=AD=98=E5=88=B0=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E4=B8=80=E8=B5=B7=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/materials/material.html | 50 +++------- .../pages/materials/material_forselect.html | 91 +------------------ .../erp/controller/DepotItemController.java | 71 --------------- .../datasource/entities/MaterialVo4Unit.java | 10 ++ .../datasource/mappers/DepotItemMapperEx.java | 4 +- .../service/depotItem/DepotItemService.java | 4 +- .../erp/service/material/MaterialService.java | 6 ++ .../mapper_xml/DepotItemMapperEx.xml | 6 +- 8 files changed, 36 insertions(+), 206 deletions(-) diff --git a/erp_web/pages/materials/material.html b/erp_web/pages/materials/material.html index c987bacb..5484faeb 100644 --- a/erp_web/pages/materials/material.html +++ b/erp_web/pages/materials/material.html @@ -522,44 +522,10 @@ {title: '单位', field: 'unit', width: 60}, {title: '安全存量', field: 'safetystock', width: 70}, { - title: '库存', field: 'abc', width: 70, formatter: function (value, rec) { - var monthTime = getNowFormatMonth(); - var mId = rec.id; //商品id - var thisStock = 0; - //查询库存 - $.ajax({ - type: "get", - url: '/depotItem/findStockNumByMaterialId', - data: { - materialId: mId, - monthTime: monthTime, - currentPage: 1, - pageSize: 10 - }, - dataType: "json", - success: function (res) { - if(res && res.code === 200) { - if (res.data && res.data.page && res.data.page[0]) { - thisStock = res.data.page[0].thisSum - 0; - if (thisStock > 0) { - $("#tablePanel .class-" + rec.id).text(thisStock); //延迟加载库存数据 - $("#tablePanel .class-" + rec.id).css("color", "blue").css("text-decoration", "underline").css("cursor", "pointer"); - $("#tablePanel .class-" + rec.id).off("click").on("click", function () { - $('#materialDetailListDlg').dialog('open').dialog('setTitle', ' 查看出入库明细'); - $(".window-mask").css({width: webW, height: webH}); - initMaterialDetailData(mId); - getMaterialInOutList(mId, 1, initPageSize); - ininMaterialDetailPager(mId); - }); - } - } - } - }, - error: function () { - $.messager.alert('查询提示', '查询数据后台异常,请稍后再试!', 'error'); - } - }); - return "" + thisStock + ""; + title: '库存', field: 'stock', width: 70, formatter: function (value, rec) { + var str = ''; + str += '' + rec.stock + ''; + return str; } }, {title: '零售价', field: 'retailprice', width: 60}, @@ -765,6 +731,14 @@ } } + function findStockList(mId) { + $('#materialDetailListDlg').dialog('open').dialog('setTitle', ' 查看出入库明细'); + $(".window-mask").css({width: webW, height: webH}); + initMaterialDetailData(mId); + getMaterialInOutList(mId, 1, initPageSize); + ininMaterialDetailPager(mId); + } + //删除商品信息 function deleteMaterial(materialID) { $.messager.confirm('删除确认', '确定要删除此商品信息吗?', function (r) { diff --git a/erp_web/pages/materials/material_forselect.html b/erp_web/pages/materials/material_forselect.html index 4497ea2f..56f58fbc 100644 --- a/erp_web/pages/materials/material_forselect.html +++ b/erp_web/pages/materials/material_forselect.html @@ -94,48 +94,7 @@ {title: '品名', field: 'name', width: 150}, {title: '型号', field: 'model', width: 100}, {title: '类别', field: 'categoryName', width: 130}, - {title: '单位', field: 'unit', width: 60}, - { - title: '库存', field: 'abc', width: 70, formatter: function (value, rec) { - var monthTime = getNowFormatMonth(); - var mId = rec.id; //商品id - var thisStock = 0; - //查询库存 - $.ajax({ - type: "get", - url: '/depotItem/findStockNumByMaterialId', - data: { - materialId: mId, - monthTime: monthTime, - currentPage: 1, - pageSize: 10 - }, - dataType: "json", - success: function (res) { - if(res && res.code === 200) { - if (res.data && res.data.page && res.data.page[0]) { - thisStock = res.data.page[0].thisSum - 0; - if (thisStock > 0) { - $("#tablePanel .class-" + rec.id).text(thisStock); //延迟加载库存数据 - $("#tablePanel .class-" + rec.id).css("color", "blue").css("text-decoration", "underline").css("cursor", "pointer"); - $("#tablePanel .class-" + rec.id).off("click").on("click", function () { - $('#materialDetailListDlg').dialog('open').dialog('setTitle', ' 查看出入库明细'); - $(".window-mask").css({width: webW, height: webH}); - initMaterialDetailData(mId); - getMaterialInOutList(mId, 1, initPageSize); - ininMaterialDetailPager(mId); - }); - } - } - } - }, - error: function () { - $.messager.alert('查询提示', '查询数据后台异常,请稍后再试!', 'error'); - } - }); - return "" + thisStock + ""; - } - }, + {title: '单位', field: 'unit', width: 60} ]], toolbar: [ ], @@ -162,54 +121,6 @@ showMaterialDetails(1, initPageSize); } - - //分页信息处理 - function ininMaterialDetailPager(mId) { - try { - var opts = $("#materialTableData").datagrid('options'); - var pager = $("#materialTableData").datagrid('getPager'); - pager.pagination({ - onSelectPage: function (pageNum, pageSize) { - opts.pageNumber = pageNum; - opts.pageSize = pageSize; - pager.pagination('refresh', { - pageNumber: pageNum, - pageSize: pageSize - }); - getMaterialInOutList(mId, pageNum, pageSize); - } - }); - } - catch (e) { - $.messager.alert('异常处理提示', "分页信息异常 : " + e.name + ": " + e.message, 'error'); - } - } - - function getMaterialInOutList(mId, pageNo, pageSize) { - $.ajax({ - type: "get", - url: "/depotItem/findDetailByTypeAndMaterialId", - dataType: "json", - data: ({ - materialId: mId, - currentPage: pageNo, - pageSize: pageSize - }), - success: function (res) { - if(res && res.code === 200){ - if(res.data && res.data.page) { - $("#materialTableData").datagrid('loadData', res.data.page); - } - } - }, - //此处添加错误处理 - error: function () { - $.messager.alert('查询提示', '查询数据后台异常,请稍后再试!', 'error'); - return; - } - }); - } - //初始化键盘enter事件 $(document).keydown(function (event) { //兼容 IE和firefox 事件 diff --git a/src/main/java/com/jsh/erp/controller/DepotItemController.java b/src/main/java/com/jsh/erp/controller/DepotItemController.java index f78f0f86..b509c9c7 100644 --- a/src/main/java/com/jsh/erp/controller/DepotItemController.java +++ b/src/main/java/com/jsh/erp/controller/DepotItemController.java @@ -152,77 +152,6 @@ public class DepotItemController { return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code); } - /** - * 只根据商品id查询库存数量 - * @param pageSize - * @param currentPage - * @param mId - * @param request - * @return - */ - @GetMapping(value = "/findStockNumByMaterialId") - public String findStockNumByMaterialId( - @RequestParam(value = Constants.PAGE_SIZE, required = false) Integer pageSize, - @RequestParam(value = Constants.CURRENT_PAGE, required = false) Integer currentPage, - @RequestParam("materialId") String mId, - @RequestParam("monthTime") String monthTime, - HttpServletRequest request) throws Exception{ - Map parameterMap = ParamUtils.requestToMap(request); - parameterMap.put("mId", mId); - parameterMap.put("monthTime", monthTime); - PageQueryInfo queryInfo = new PageQueryInfo(); - Map objectMap = new HashMap(); - if (pageSize != null && pageSize <= 0) { - pageSize = 10; - } - String offset = ParamUtils.getPageOffset(currentPage, pageSize); - if (StringUtil.isNotEmpty(offset)) { - parameterMap.put(Constants.OFFSET, offset); - } - List list = depotItemService.findStockNumByMaterialIdList(parameterMap); - - //存放数据json数组 - JSONArray dataArray = new JSONArray(); - if (null != list) { - for (DepotItemVo4Material di : list) { - JSONObject item = new JSONObject(); - int InSum = sumNumberByMaterialId("入库", di.getMaterialid()); - int OutSum = sumNumberByMaterialId("出库", di.getMaterialid()); - item.put("MaterialId", di.getMaterialid() == null ? "" : di.getMaterialid()); - item.put("MaterialName", di.getMname()); - item.put("MaterialModel", di.getMmodel()); - item.put("thisSum", InSum - OutSum); - dataArray.add(item); - } - } - objectMap.put("page", dataArray); - if (list == null) { - queryInfo.setRows(new ArrayList()); - queryInfo.setTotal(BusinessConstants.DEFAULT_LIST_NULL_NUMBER); - return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code); - } - queryInfo.setRows(list); - queryInfo.setTotal(depotItemService.findStockNumByMaterialIdCounts(parameterMap)); - return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code); - } - - /** - * 仅根据商品Id进行数量合计 - * - * @param type - * @param mId - * @return - */ - public int sumNumberByMaterialId(String type, Long mId)throws Exception { - int allNumber = 0; - try { - allNumber = depotItemService.findByTypeAndMaterialId(type, mId); - } catch (Exception e) { - e.printStackTrace(); - } - return allNumber; - } - /** * 保存明细 * @param inserted diff --git a/src/main/java/com/jsh/erp/datasource/entities/MaterialVo4Unit.java b/src/main/java/com/jsh/erp/datasource/entities/MaterialVo4Unit.java index a22afb39..e52028cb 100644 --- a/src/main/java/com/jsh/erp/datasource/entities/MaterialVo4Unit.java +++ b/src/main/java/com/jsh/erp/datasource/entities/MaterialVo4Unit.java @@ -10,6 +10,8 @@ public class MaterialVo4Unit extends Material{ private String materialOther; + private Long stock; + public String getUnitName() { return unitName; } @@ -33,4 +35,12 @@ public class MaterialVo4Unit extends Material{ public void setMaterialOther(String materialOther) { this.materialOther = materialOther; } + + public Long getStock() { + return stock; + } + + public void setStock(Long stock) { + this.stock = stock; + } } \ No newline at end of file diff --git a/src/main/java/com/jsh/erp/datasource/mappers/DepotItemMapperEx.java b/src/main/java/com/jsh/erp/datasource/mappers/DepotItemMapperEx.java index f1443bcf..07e79ee3 100644 --- a/src/main/java/com/jsh/erp/datasource/mappers/DepotItemMapperEx.java +++ b/src/main/java/com/jsh/erp/datasource/mappers/DepotItemMapperEx.java @@ -45,10 +45,10 @@ public interface DepotItemMapperEx { @Param("mId") Long mId, @Param("monthTime") String monthTime); - int findByTypeAndMaterialIdIn( + Long findByTypeAndMaterialIdIn( @Param("mId") Long mId); - int findByTypeAndMaterialIdOut( + Long findByTypeAndMaterialIdOut( @Param("mId") Long mId); int findByTypeAndDepotIdAndMaterialIdIn( diff --git a/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java b/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java index e6fd1092..65cf03eb 100644 --- a/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java +++ b/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java @@ -290,8 +290,8 @@ public class DepotItemService { return depotItemMapper.updateByPrimaryKeySelective(depotItem); } - public int findByTypeAndMaterialId(String type, Long mId) throws Exception{ - int result =0; + public Long findByTypeAndMaterialId(String type, Long mId) throws Exception{ + Long result = 0l; try{ if(type.equals(TYPE)) { result= depotItemMapperEx.findByTypeAndMaterialIdIn(mId); diff --git a/src/main/java/com/jsh/erp/service/material/MaterialService.java b/src/main/java/com/jsh/erp/service/material/MaterialService.java index ac219245..80fe2463 100644 --- a/src/main/java/com/jsh/erp/service/material/MaterialService.java +++ b/src/main/java/com/jsh/erp/service/material/MaterialService.java @@ -9,6 +9,7 @@ import com.jsh.erp.datasource.mappers.DepotItemMapperEx; import com.jsh.erp.datasource.mappers.MaterialMapper; import com.jsh.erp.datasource.mappers.MaterialMapperEx; import com.jsh.erp.exception.BusinessRunTimeException; +import com.jsh.erp.service.depotItem.DepotItemService; import com.jsh.erp.service.log.LogService; import com.jsh.erp.service.user.UserService; import com.jsh.erp.utils.BaseResponseInfo; @@ -38,6 +39,8 @@ public class MaterialService { private UserService userService; @Resource private DepotItemMapperEx depotItemMapperEx; + @Resource + private DepotItemService depotItemService; public Material getMaterial(long id)throws Exception { Material result=null; @@ -105,6 +108,9 @@ public class MaterialService { } } m.setMaterialOther(materialOther); + Long InSum = depotItemService.findByTypeAndMaterialId("入库", m.getId()); + Long OutSum = depotItemService.findByTypeAndMaterialId("出库", m.getId()); + m.setStock(InSum - OutSum); resList.add(m); } } diff --git a/src/main/resources/mapper_xml/DepotItemMapperEx.xml b/src/main/resources/mapper_xml/DepotItemMapperEx.xml index 4cddb43b..4418acba 100644 --- a/src/main/resources/mapper_xml/DepotItemMapperEx.xml +++ b/src/main/resources/mapper_xml/DepotItemMapperEx.xml @@ -87,7 +87,7 @@ - select ifnull(sum(BasicNumber),0) as BasicNumber from jsh_depothead dh INNER JOIN jsh_depotitem di on dh.id=di.HeaderId and ifnull(di.delete_Flag,'0') !='1' where dh.type='入库' @@ -139,7 +139,7 @@ and ifnull(dh.delete_Flag,'0') !='1' - select ifnull(sum(BasicNumber),0) as BasicNumber from jsh_depothead dh INNER JOIN jsh_depotitem di on dh.id=di.HeaderId and ifnull(di.delete_Flag,'0') !='1' where dh.type='出库' From 0d1deaa197f4ea7ac4b4b44ddacd9ad364018a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 16 Jun 2019 22:04:37 +0800 Subject: [PATCH 05/27] =?UTF-8?q?=E5=9C=A8=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=92=8C=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=9C=9F=E6=9C=AB=E5=BA=94=E6=94=B6=E5=92=8C=E6=9C=9F=E6=9C=AB?= =?UTF-8?q?=E5=BA=94=E4=BB=98=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/js/pages/manage/supplier.js | 2 + .../erp/controller/AccountHeadController.java | 39 +-------------- .../erp/controller/DepotHeadController.java | 40 +-------------- .../accountHead/AccountHeadService.java | 50 +++++++++++++++++++ .../service/depotHead/DepotHeadService.java | 50 +++++++++++++++++++ .../erp/service/supplier/SupplierService.java | 50 ++++++++++++++++--- 6 files changed, 147 insertions(+), 84 deletions(-) diff --git a/erp_web/js/pages/manage/supplier.js b/erp_web/js/pages/manage/supplier.js index 8ef1b329..e4812a17 100644 --- a/erp_web/js/pages/manage/supplier.js +++ b/erp_web/js/pages/manage/supplier.js @@ -76,6 +76,8 @@ { title: '预付款',field: 'advancein',width:70,align:"center"}, { title: '期初应收',field: 'beginneedget',width:70,align:"center"}, { title: '期初应付',field: 'beginneedpay',width:70,align:"center"}, + { title: '期末应收',field: 'allneedget',width:70,align:"center"}, + { title: '期末应付',field: 'allneedpay',width:70,align:"center"}, { title: '税率(%)', field: 'taxrate',width:50,align:"center"}, { title: '状态',field: 'enabled',width:70,align:"center",formatter:function(value){ return value? "启用":"禁用"; diff --git a/src/main/java/com/jsh/erp/controller/AccountHeadController.java b/src/main/java/com/jsh/erp/controller/AccountHeadController.java index ae350955..e82ad8c1 100644 --- a/src/main/java/com/jsh/erp/controller/AccountHeadController.java +++ b/src/main/java/com/jsh/erp/controller/AccountHeadController.java @@ -73,19 +73,7 @@ public class AccountHeadController { Map map = new HashMap(); try { JSONObject outer = new JSONObject(); - BigDecimal sum = BigDecimal.ZERO; - String getS = supplierId.toString(); - int i = 1; - if (supType.equals("customer")) { //客户 - i = 1; - } else if (supType.equals("vendor")) { //供应商 - i = -1; - } - //收付款部分 - sum = sum.add((allMoney(getS, "付款", "合计",endTime).add(allMoney(getS, "付款", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.subtract((allMoney(getS, "收款", "合计",endTime).add(allMoney(getS, "收款", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.add((allMoney(getS, "收入", "合计",endTime).subtract(allMoney(getS, "收入", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.subtract((allMoney(getS, "支出", "合计",endTime).subtract(allMoney(getS, "支出", "实际",endTime))).multiply(new BigDecimal(i))); + BigDecimal sum = accountHeadService.findTotalPay(supplierId, endTime, supType); outer.put("getAllMoney", sum); map.put("rows", outer); res.code = 200; @@ -124,31 +112,6 @@ public class AccountHeadController { return res; } - /** - * 统计总金额 - * @param getS - * @param type - * @param mode 合计或者金额 - * @param endTime - * @return - */ - public BigDecimal allMoney(String getS, String type, String mode, String endTime)throws Exception { - BigDecimal allMoney = BigDecimal.ZERO; - try { - Integer supplierId = Integer.valueOf(getS); - BigDecimal sum = accountHeadService.findAllMoney(supplierId, type, mode, endTime); - if(sum != null) { - allMoney = sum; - } - } catch (Exception e) { - e.printStackTrace(); - } - //返回正数,如果负数也转为正数 - if ((allMoney.compareTo(BigDecimal.ZERO))==-1) { - allMoney = allMoney.abs(); - } - return allMoney; - } /** * create by: qiankunpingtai * website:https://qiankunpingtai.cn diff --git a/src/main/java/com/jsh/erp/controller/DepotHeadController.java b/src/main/java/com/jsh/erp/controller/DepotHeadController.java index 2e497446..34156a14 100644 --- a/src/main/java/com/jsh/erp/controller/DepotHeadController.java +++ b/src/main/java/com/jsh/erp/controller/DepotHeadController.java @@ -343,19 +343,7 @@ public class DepotHeadController { Map map = new HashMap(); try { JSONObject outer = new JSONObject(); - BigDecimal sum = BigDecimal.ZERO; - String getS = supplierId.toString(); - int i = 1; - if (supType.equals("customer")) { //客户 - i = 1; - } else if (supType.equals("vendor")) { //供应商 - i = -1; - } - //进销部分 - sum = sum.subtract((allMoney(getS, "入库", "采购", "合计",endTime).subtract(allMoney(getS, "入库", "采购", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.subtract((allMoney(getS, "入库", "销售退货", "合计",endTime).subtract(allMoney(getS, "入库", "销售退货", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.add((allMoney(getS, "出库", "销售", "合计",endTime).subtract(allMoney(getS, "出库", "销售", "实际",endTime))).multiply(new BigDecimal(i))); - sum = sum.add((allMoney(getS, "出库", "采购退货", "合计",endTime).subtract(allMoney(getS, "出库", "采购退货", "实际",endTime))).multiply(new BigDecimal(i))); + BigDecimal sum = depotHeadService.findTotalPay(supplierId, endTime, supType); outer.put("getAllMoney", sum); map.put("rows", outer); res.code = 200; @@ -394,32 +382,6 @@ public class DepotHeadController { return res; } - - /** - * 统计总金额 - * @param getS - * @param type - * @param subType - * @param mode 合计或者金额 - * @return - */ - public BigDecimal allMoney(String getS, String type, String subType, String mode, String endTime)throws Exception { - BigDecimal allMoney = BigDecimal.ZERO; - try { - Integer supplierId = Integer.valueOf(getS); - BigDecimal sum = depotHeadService.findAllMoney(supplierId, type, subType, mode, endTime); - if(sum != null) { - allMoney = sum; - } - } catch (Exception e) { - e.printStackTrace(); - } - //返回正数,如果负数也转为正数 - if ((allMoney.compareTo(BigDecimal.ZERO))==-1) { - allMoney = allMoney.abs(); - } - return allMoney; - } /** * create by: cjl * description: diff --git a/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java b/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java index 45cd02a7..77b529a1 100644 --- a/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java +++ b/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java @@ -216,6 +216,56 @@ public class AccountHeadService { return result; } + /** + * 统计总金额 + * @param getS + * @param type + * @param mode 合计或者金额 + * @param endTime + * @return + */ + public BigDecimal allMoney(String getS, String type, String mode, String endTime) { + BigDecimal allMoney = BigDecimal.ZERO; + try { + Integer supplierId = Integer.valueOf(getS); + BigDecimal sum = findAllMoney(supplierId, type, mode, endTime); + if(sum != null) { + allMoney = sum; + } + } catch (Exception e) { + e.printStackTrace(); + } + //返回正数,如果负数也转为正数 + if ((allMoney.compareTo(BigDecimal.ZERO))==-1) { + allMoney = allMoney.abs(); + } + return allMoney; + } + + /** + * 查询单位的累计应收和累计应付,收预付款不计入此处 + * @param supplierId + * @param endTime + * @param supType + * @return + */ + public BigDecimal findTotalPay(Integer supplierId, String endTime, String supType) { + BigDecimal sum = BigDecimal.ZERO; + String getS = supplierId.toString(); + int i = 1; + if (("customer").equals(supType)) { //客户 + i = 1; + } else if (("vendor").equals(supType)) { //供应商 + i = -1; + } + //收付款部分 + sum = sum.add((allMoney(getS, "付款", "合计",endTime).add(allMoney(getS, "付款", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.subtract((allMoney(getS, "收款", "合计",endTime).add(allMoney(getS, "收款", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.add((allMoney(getS, "收入", "合计",endTime).subtract(allMoney(getS, "收入", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.subtract((allMoney(getS, "支出", "合计",endTime).subtract(allMoney(getS, "支出", "实际",endTime))).multiply(new BigDecimal(i))); + return sum; + } + public List getDetailByNumber(String billNo)throws Exception { List resList = new ArrayList(); List list = null; diff --git a/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java b/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java index d9bf7380..1167252b 100644 --- a/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java +++ b/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java @@ -446,6 +446,56 @@ public class DepotHeadService { return result; } + /** + * 统计总金额 + * @param getS + * @param type + * @param subType + * @param mode 合计或者金额 + * @return + */ + public BigDecimal allMoney(String getS, String type, String subType, String mode, String endTime) { + BigDecimal allMoney = BigDecimal.ZERO; + try { + Integer supplierId = Integer.valueOf(getS); + BigDecimal sum = findAllMoney(supplierId, type, subType, mode, endTime); + if(sum != null) { + allMoney = sum; + } + } catch (Exception e) { + e.printStackTrace(); + } + //返回正数,如果负数也转为正数 + if ((allMoney.compareTo(BigDecimal.ZERO))==-1) { + allMoney = allMoney.abs(); + } + return allMoney; + } + + /** + * 查询单位的累计应收和累计应付,零售不能计入 + * @param supplierId + * @param endTime + * @param supType + * @return + */ + public BigDecimal findTotalPay(Integer supplierId, String endTime, String supType) { + BigDecimal sum = BigDecimal.ZERO; + String getS = supplierId.toString(); + int i = 1; + if (("customer").equals(supType)) { //客户 + i = 1; + } else if (("vendor").equals(supType)) { //供应商 + i = -1; + } + //进销部分 + sum = sum.subtract((allMoney(getS, "入库", "采购", "合计",endTime).subtract(allMoney(getS, "入库", "采购", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.subtract((allMoney(getS, "入库", "销售退货", "合计",endTime).subtract(allMoney(getS, "入库", "销售退货", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.add((allMoney(getS, "出库", "销售", "合计",endTime).subtract(allMoney(getS, "出库", "销售", "实际",endTime))).multiply(new BigDecimal(i))); + sum = sum.add((allMoney(getS, "出库", "采购退货", "合计",endTime).subtract(allMoney(getS, "出库", "采购退货", "实际",endTime))).multiply(new BigDecimal(i))); + return sum; + } + public List getDetailByNumber(String number)throws Exception { List resList = new ArrayList(); List list = null; diff --git a/src/main/java/com/jsh/erp/service/supplier/SupplierService.java b/src/main/java/com/jsh/erp/service/supplier/SupplierService.java index ae2695d2..93ce849e 100644 --- a/src/main/java/com/jsh/erp/service/supplier/SupplierService.java +++ b/src/main/java/com/jsh/erp/service/supplier/SupplierService.java @@ -10,6 +10,8 @@ import com.jsh.erp.datasource.mappers.DepotHeadMapperEx; import com.jsh.erp.datasource.mappers.SupplierMapper; import com.jsh.erp.datasource.mappers.SupplierMapperEx; import com.jsh.erp.exception.BusinessRunTimeException; +import com.jsh.erp.service.accountHead.AccountHeadService; +import com.jsh.erp.service.depotHead.DepotHeadService; import com.jsh.erp.service.log.LogService; import com.jsh.erp.service.user.UserService; import com.jsh.erp.utils.BaseResponseInfo; @@ -24,10 +26,9 @@ import org.springframework.web.context.request.ServletRequestAttributes; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.math.BigDecimal; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import java.util.*; + +import static com.jsh.erp.utils.Tools.getNow3; @Service public class SupplierService { @@ -46,6 +47,10 @@ public class SupplierService { private AccountHeadMapperEx accountHeadMapperEx; @Resource private DepotHeadMapperEx depotHeadMapperEx; + @Resource + private DepotHeadService depotHeadService; + @Resource + private AccountHeadService accountHeadService; public Supplier getSupplier(long id)throws Exception { Supplier result=null; @@ -77,16 +82,47 @@ public class SupplierService { public List select(String supplier, String type, String phonenum, String telephone, String description, int offset, int rows) throws Exception{ - List list=null; + List resList = new ArrayList(); try{ - list=supplierMapperEx.selectByConditionSupplier(supplier, type, phonenum, telephone, description, offset, rows); + List list = supplierMapperEx.selectByConditionSupplier(supplier, type, phonenum, telephone, description, offset, rows); + for(Supplier s : list) { + Integer supplierId = s.getId().intValue(); + String endTime = getNow3(); + String supType = null; + if(("客户").equals(s.getType())) { + supType = "customer"; + } else if(("供应商").equals(s.getType())) { + supType = "vendor"; + } + BigDecimal sum = BigDecimal.ZERO; + BigDecimal beginNeedGet = s.getBeginneedget(); + if(beginNeedGet==null) { + beginNeedGet = BigDecimal.ZERO; + } + BigDecimal beginNeedPay = s.getBeginneedpay(); + if(beginNeedPay==null) { + beginNeedPay = BigDecimal.ZERO; + } + sum = sum.add(depotHeadService.findTotalPay(supplierId, endTime, supType)); + sum = sum.add(accountHeadService.findTotalPay(supplierId, endTime, supType)); + if(("客户").equals(s.getType())) { + sum = sum.add(beginNeedGet).subtract(beginNeedPay); + s.setAllneedget(sum); + s.setAllneedpay(BigDecimal.ZERO); + } else if(("供应商").equals(s.getType())) { + sum = sum.add(beginNeedPay).subtract(beginNeedGet); + s.setAllneedget(BigDecimal.ZERO); + s.setAllneedpay(sum); + } + resList.add(s); + } }catch(Exception e){ logger.error("异常码[{}],异常提示[{}],异常[{}]", ExceptionConstants.DATA_READ_FAIL_CODE,ExceptionConstants.DATA_READ_FAIL_MSG,e); throw new BusinessRunTimeException(ExceptionConstants.DATA_READ_FAIL_CODE, ExceptionConstants.DATA_READ_FAIL_MSG); } - return list; + return resList; } public Long countSupplier(String supplier, String type, String phonenum, String telephone, String description) throws Exception{ From d30492b828f6ec181a8e57e6ad638ab525682d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 17 Jun 2019 23:09:47 +0800 Subject: [PATCH 06/27] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/materials/allocation_out_list.html | 2 +- erp_web/pages/materials/assemble_list.html | 2 +- erp_web/pages/materials/bill_detail.html | 10 +++++----- erp_web/pages/materials/disassemble_list.html | 2 +- erp_web/pages/materials/other_in_list.html | 2 +- erp_web/pages/materials/other_out_list.html | 2 +- erp_web/pages/materials/purchase_back_list.html | 2 +- erp_web/pages/materials/purchase_in_list.html | 2 +- erp_web/pages/materials/purchase_orders_list.html | 2 +- erp_web/pages/materials/retail_back_list.html | 2 +- erp_web/pages/materials/retail_out_list.html | 2 +- erp_web/pages/materials/sale_back_list.html | 2 +- erp_web/pages/materials/sale_orders_list.html | 2 +- erp_web/pages/materials/sale_out_list.html | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/erp_web/pages/materials/allocation_out_list.html b/erp_web/pages/materials/allocation_out_list.html index e6e56094..673f2088 100644 --- a/erp_web/pages/materials/allocation_out_list.html +++ b/erp_web/pages/materials/allocation_out_list.html @@ -132,7 +132,7 @@ diff --git a/erp_web/pages/materials/assemble_list.html b/erp_web/pages/materials/assemble_list.html index fac8e03b..c410ba1b 100644 --- a/erp_web/pages/materials/assemble_list.html +++ b/erp_web/pages/materials/assemble_list.html @@ -131,7 +131,7 @@ diff --git a/erp_web/pages/materials/bill_detail.html b/erp_web/pages/materials/bill_detail.html index 165351db..94d51da9 100644 --- a/erp_web/pages/materials/bill_detail.html +++ b/erp_web/pages/materials/bill_detail.html @@ -305,7 +305,7 @@ -
@@ -380,7 +380,6 @@
-
@@ -824,9 +823,10 @@
- -
- 打印 + +
+ 打印 +
diff --git a/erp_web/pages/materials/disassemble_list.html b/erp_web/pages/materials/disassemble_list.html index b924e4d6..bdf06062 100644 --- a/erp_web/pages/materials/disassemble_list.html +++ b/erp_web/pages/materials/disassemble_list.html @@ -137,7 +137,7 @@ diff --git a/erp_web/pages/materials/other_in_list.html b/erp_web/pages/materials/other_in_list.html index 79fecceb..bc39709b 100644 --- a/erp_web/pages/materials/other_in_list.html +++ b/erp_web/pages/materials/other_in_list.html @@ -142,7 +142,7 @@ diff --git a/erp_web/pages/materials/other_out_list.html b/erp_web/pages/materials/other_out_list.html index 5b9b407f..2507ccb2 100644 --- a/erp_web/pages/materials/other_out_list.html +++ b/erp_web/pages/materials/other_out_list.html @@ -136,7 +136,7 @@ diff --git a/erp_web/pages/materials/purchase_back_list.html b/erp_web/pages/materials/purchase_back_list.html index 8a3b1e81..b0d51565 100644 --- a/erp_web/pages/materials/purchase_back_list.html +++ b/erp_web/pages/materials/purchase_back_list.html @@ -222,7 +222,7 @@ diff --git a/erp_web/pages/materials/purchase_in_list.html b/erp_web/pages/materials/purchase_in_list.html index fcf37597..ad7ad9de 100644 --- a/erp_web/pages/materials/purchase_in_list.html +++ b/erp_web/pages/materials/purchase_in_list.html @@ -224,7 +224,7 @@ diff --git a/erp_web/pages/materials/purchase_orders_list.html b/erp_web/pages/materials/purchase_orders_list.html index 273207ef..367c66d3 100644 --- a/erp_web/pages/materials/purchase_orders_list.html +++ b/erp_web/pages/materials/purchase_orders_list.html @@ -143,7 +143,7 @@ diff --git a/erp_web/pages/materials/retail_back_list.html b/erp_web/pages/materials/retail_back_list.html index 42f6b88e..78f6b7d4 100644 --- a/erp_web/pages/materials/retail_back_list.html +++ b/erp_web/pages/materials/retail_back_list.html @@ -208,7 +208,7 @@ diff --git a/erp_web/pages/materials/retail_out_list.html b/erp_web/pages/materials/retail_out_list.html index c96227a3..47d1ba3b 100644 --- a/erp_web/pages/materials/retail_out_list.html +++ b/erp_web/pages/materials/retail_out_list.html @@ -219,7 +219,7 @@ diff --git a/erp_web/pages/materials/sale_back_list.html b/erp_web/pages/materials/sale_back_list.html index 9e1bbe0a..03daf716 100644 --- a/erp_web/pages/materials/sale_back_list.html +++ b/erp_web/pages/materials/sale_back_list.html @@ -216,7 +216,7 @@ diff --git a/erp_web/pages/materials/sale_orders_list.html b/erp_web/pages/materials/sale_orders_list.html index 8bb1be6e..52845374 100644 --- a/erp_web/pages/materials/sale_orders_list.html +++ b/erp_web/pages/materials/sale_orders_list.html @@ -145,7 +145,7 @@ diff --git a/erp_web/pages/materials/sale_out_list.html b/erp_web/pages/materials/sale_out_list.html index 4e24ac49..ef62ea8d 100644 --- a/erp_web/pages/materials/sale_out_list.html +++ b/erp_web/pages/materials/sale_out_list.html @@ -226,7 +226,7 @@ From 83be4dca33afefcfcdfb4e2867f55912f3cc2c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 23 Jun 2019 18:33:42 +0800 Subject: [PATCH 07/27] =?UTF-8?q?=E5=A2=9E=E5=8A=A0'=E6=96=B0=E6=89=8B?= =?UTF-8?q?=E5=BC=95=E5=AF=BC'=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/css/user_help.css | 48 +++ erp_web/pages/user/userHelp.html | 348 ++++++++++++++++++++ erp_web/upload/images/deskIcon/userHelp.png | Bin 0 -> 16774 bytes sql/jsh_erp(后续更新参考这个更新).sql | 17 +- sql/jsh_erp(第一次建库请使用这个).sql | 232 ++++++------- 5 files changed, 529 insertions(+), 116 deletions(-) create mode 100644 erp_web/css/user_help.css create mode 100644 erp_web/pages/user/userHelp.html create mode 100644 erp_web/upload/images/deskIcon/userHelp.png diff --git a/erp_web/css/user_help.css b/erp_web/css/user_help.css new file mode 100644 index 00000000..747c2d19 --- /dev/null +++ b/erp_web/css/user_help.css @@ -0,0 +1,48 @@ +#tt .title { + font-size: 14px; + font-weight: bold; + text-align: center; + color: green; + height: 30px; +} + +#tt .content { + font-size: 14px; + text-align: center; + height: 30px; +} + +#tt .list { + width: 100%; + margin: 20px 0px 20px 0px; +} + +#tt .list .row{ + width: 20%; + float: left; +} + +#tt .list .row ul{ + list-style:none; + float: left; +} + +#tt .list .row ul li{ + text-align: center; + height: 40px; +} + +#tt .list .row ul .module{ + font-size: 14px; + color: blue; + cursor:pointer; +} + +#tt .list .row ul .module:hover{ + text-decoration: underline; +} + +#tt .list .row ul .remark{ + font-size: 12px; + text-align: left; +} \ No newline at end of file diff --git a/erp_web/pages/user/userHelp.html b/erp_web/pages/user/userHelp.html new file mode 100644 index 00000000..fba7f5fa --- /dev/null +++ b/erp_web/pages/user/userHelp.html @@ -0,0 +1,348 @@ + + + + 新手引导 + + + + + + + + + + + + + +
+
+

初始资料录入

+

及时准确的录入商品、客户、供应商、仓库信息与结算账户信息,能够有效的保障经营数据的完善以及后期账务的核算。

+
+
+
+
    +
  • 商品信息
  • +
  • 管理商品信息及商品分类
  • +
+
+
+
    +
  • 客户信息
  • +
  • 维护您的客户信息及欠款
  • +
+
+
+
    +
  • 供应商信息
  • +
  • 维护您的供应商信息及欠款
  • +
+
+
+
    +
  • 仓库信息
  • +
  • 可以设置仓库负责人、设为默认仓库
  • +
+
+
+
    + +
  • 管理账户信息及初始余额
  • +
+
+
+
+
+

采购相关

+

包含采购订单、采购入库、采购退货、进货统计与入库明细等模块

+
+
+
+
    +
  • 采购订单
  • +
  • 采购订单不涉及入库仓库和付款金额,采购订单可以转采购入库单,但需要先对采购订单进行审核。
  • +
+
+
+
    +
  • 采购入库
  • +
  • 采购入库单可以由采购订单转过来,也可以单独创建。采购入库单据中的仓库列表只显示当前用户有权限的仓库。采购入库单可以使用多账户付款。
  • +
+
+
+
    +
  • 采购退货
  • +
  • 用于采购入库单据的退货。
  • +
+
+
+
    +
  • 进货统计
  • +
  • 以采购入库为统计依据,让我们可以清楚地知道,我们一共进了多少货,多少钱的货。
  • +
+
+
+
    +
  • 入库明细
  • +
  • 入库信息列表,可以查看单条信息。
  • +
+
+
+
+
+

销售相关

+

包含销售订单、销售入库、销售退货、销售统计与出库明细等模块

+
+
+
+
    +
  • 销售订单
  • +
  • 销售订单不涉及出库仓库和收款金额,销售订单可以转销售出库单,但需要先对销售订单进行审核。
  • +
+
+
+
    +
  • 销售出库
  • +
  • 销售出库单可以由销售订单转过来,也可以单独创建。销售出库单据中的仓库列表只显示当前用户有权限的仓库。销售出库单可以使用多账户收款。
  • +
+
+
+
    +
  • 销售退货
  • +
  • 用于销售出库单据的退货。
  • +
+
+
+
    +
  • 销售统计
  • +
  • 以销售出库为统计依据,让我们可以清楚地知道,我们一共卖了多少货,多少钱的货。
  • +
+
+
+
    +
  • 出库明细
  • +
  • 出库信息列表,可以查看单条信息。
  • +
+
+
+
+
+

仓库管理

+

包含其它入库、其它出库、调拨出库、组装单与拆卸单等模块

+
+
+
+
    +
  • 其它入库
  • +
  • 用于库存初始化、盘点库存等。
  • +
+
+
+
    +
  • 其它出库
  • +
  • 用于盘点库存、给商品报废等。
  • +
+
+
+
    +
  • 调拨出库
  • +
  • 用于两个仓库之间的商品调拨,调拨单会影响库存。
  • +
+
+
+
    +
  • 组装单
  • +
  • 用于将多种商品合并成一个商品,被合并的商品库存减少,合并后的商品库存增加。
  • +
+
+
+
    +
  • 拆卸单
  • +
  • 用于将一个商品拆分成多种商品,被拆分的商品库存增加,拆分后的商品库存减少。
  • +
+
+
+
+
+

财务管理

+

包含收入单、支出单、收款单、付款单与转账单等模块

+
+
+
+
    +
  • 收入单
  • +
  • 收入单主要处理一些销售收入以外的收入如维修服务收入、利息收入、调账收入等。
  • +
+
+
+
    +
  • 支出单
  • +
  • 支出单主要处理一些进货支出以外的支出如水电支出、房租支出等。
  • +
+
+
+
    +
  • 收款单
  • +
  • 收款单所收金额只对付款单位的应收应付产生影响,可以在回款统计中进行查看。收款单的优惠金额会对利润产生影响,但不影响付款单位的应收应付。优惠金额计入收入类的收款优惠中。
  • +
+
+
+
    +
  • 付款单
  • +
  • 付款单的要素和录入原则与“收款单”相同。付款单中优惠金额计入支出类中的付款优惠中,为负值 (因优惠意味着实际少付款)。
  • +
+
+
+
    +
  • 转账单
  • +
  • 转账:本系统的转账是指从一个银行存款账户转入到另一个银行存款账户。
  • +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/erp_web/upload/images/deskIcon/userHelp.png b/erp_web/upload/images/deskIcon/userHelp.png new file mode 100644 index 0000000000000000000000000000000000000000..45cb427c929e523765df8b135fd2a6395055052f GIT binary patch literal 16774 zcmaKUbyywE^5(%IxCeK4cPF?7x8UxPXGV_Syo0;_2anq&jt_su_w@-3j8?Wxqi`hRdcj( z^)Ple2Z)(DnwXQy+8bM%tC|~|d3_%-7X$#H$gS12U9}Yz_)Q({nT`LEVfM6l`p^ad z1VucZj7@FLT}e&MEv+4d$S>Nv$w{rvgvhnH6j>FWB+RX>WxSou)x4F|O}%YR`OL^g zgh>TG`9A>c&0UR2J?-rrT=+eO$p3}Q|8f4$WfpSMe~Gx-3X%VBqqG%ONF^Md%}KeK zIhagY+1NWAFbH*hSsT$(%*i+{Mw&+4Q60EGYiT%86gX+1%LG(OKQm(e6K9RIze& zb#$?EbRv~d<0hrmvUV_Y^l+j3m%O4PzpR6ctFeQrxvZoR`3C~CwY3>PC!4qg=NB$^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&>OvAe##p@+AC@-0(C9jJAi53F2);4vJKMO1$&1c8yMFn=oS8q!WEbk!KHk&|m3@%9E6|P@I^lwK>$} zaC|0$wrrr28r+UmrM1fX2bmTHGt>jyv}2}p=+o?fnO2-Mz(iPymWdN7=?2Dht+{EP z+*1Rzeh|rF5Xr4|1N3j*31$BT*Ln$r+efxxQQNgD;AnizwEkxn^}nV~>t(zKK)?c! YvDzm?OQk&j`7?s-7bVGRaigIB1!9EQKmY&$ literal 0 HcmV?d00001 diff --git a/sql/jsh_erp(后续更新参考这个更新).sql b/sql/jsh_erp(后续更新参考这个更新).sql index 8a8de781..f91bbe85 100644 --- a/sql/jsh_erp(后续更新参考这个更新).sql +++ b/sql/jsh_erp(后续更新参考这个更新).sql @@ -1631,4 +1631,19 @@ where Id = 5; update jsh_app SET Number = '02' where name='个人信息'; insert into `jsh_functions`(`Number`, `Name`, `PNumber`, `URL`, `State`, `Sort`, `Enabled`, `Type`, `PushBtn`) select '02', '个人信息', '0', '', b'1', '0005', b'1', '电脑版', '' from dual where not exists -(select * from jsh_functions where Number='02' and PNumber='0'); \ No newline at end of file +(select * from jsh_functions where Number='02' and PNumber='0'); + +-- ---------------------------- +-- 时间:2019年6月23日 +-- 增加新手引导模块 +-- ---------------------------- +INSERT INTO `jsh_app` VALUES ('28', '09', '新手引导', 'app', 'userHelp.png', '../user/userHelp.html', '1000', '500', '\0', '\0', '\0', 'dock', '210', '', '', '0'); +INSERT INTO `jsh_functions` VALUES ('246', '09', '新手引导', '0', '', '', '0115', '', '电脑版', '', '0'); +update jsh_userbusiness SET Value = '[3][6][7][22][23][24][25][26][27][28]' +where Type = 'RoleAPP' and (KeyId = '4' or KeyId = '10'); +update jsh_userbusiness SET +Value = '[245][13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]' +where Type = 'RoleFunctions' and KeyId = '4'; +update jsh_userbusiness SET +Value = '[245][13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]' +where Type = 'RoleFunctions' and KeyId = '10'; \ No newline at end of file diff --git a/sql/jsh_erp(第一次建库请使用这个).sql b/sql/jsh_erp(第一次建库请使用这个).sql index 6264d8e9..9e3f57d2 100644 --- a/sql/jsh_erp(第一次建库请使用这个).sql +++ b/sql/jsh_erp(第一次建库请使用这个).sql @@ -10,13 +10,13 @@ Target Server Type : MYSQL Target Server Version : 50704 File Encoding : 65001 -Date: 2019-05-03 17:07:44 +Date: 2019-06-23 18:27:53 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- --- Table structure for `databasechangelog` +-- Table structure for databasechangelog -- ---------------------------- DROP TABLE IF EXISTS `databasechangelog`; CREATE TABLE `databasechangelog` ( @@ -45,7 +45,7 @@ INSERT INTO `databasechangelog` VALUES ('201712102245', 'jishenghua', 'liquibase INSERT INTO `databasechangelog` VALUES ('201809122201', 'jishenghua', 'liquibase/jsh_erp/db.changelog-jsh_erp-1.0.xml', '2018-10-28 19:56:28', '7', 'EXECUTED', '7:62bde21df811efc41b146eac39da7994', 'sql', '更新用户表-是否系统列', null, '3.1.1'); -- ---------------------------- --- Table structure for `databasechangeloglock` +-- Table structure for databasechangeloglock -- ---------------------------- DROP TABLE IF EXISTS `databasechangeloglock`; CREATE TABLE `databasechangeloglock` ( @@ -59,10 +59,10 @@ CREATE TABLE `databasechangeloglock` ( -- ---------------------------- -- Records of databasechangeloglock -- ---------------------------- -INSERT INTO `databasechangeloglock` VALUES ('1', '', null, null); +INSERT INTO `databasechangeloglock` VALUES ('1', '\0', null, null); -- ---------------------------- --- Table structure for `jsh_account` +-- Table structure for jsh_account -- ---------------------------- DROP TABLE IF EXISTS `jsh_account`; CREATE TABLE `jsh_account` ( @@ -81,20 +81,20 @@ CREATE TABLE `jsh_account` ( -- ---------------------------- -- Records of jsh_account -- ---------------------------- -INSERT INTO `jsh_account` VALUES ('4', '南通建行', '652346523465234623', '1200.000000', '215.000000', '建行账户', '', null, '0'); +INSERT INTO `jsh_account` VALUES ('4', '南通建行', '652346523465234623', '1200.000000', '215.000000', '建行账户', '\0', null, '0'); INSERT INTO `jsh_account` VALUES ('9', '流动总账', '65234624523452364', '2000.000000', '393.000000', '现在账户', '', null, '0'); -INSERT INTO `jsh_account` VALUES ('10', '支付宝', '123456789@qq.com', '10000.000000', null, '', '', null, '0'); -INSERT INTO `jsh_account` VALUES ('11', '微信', '13000000000', '10000.000000', null, '', '', null, '0'); -INSERT INTO `jsh_account` VALUES ('12', '上海农行', '65324345234523211', '10000.000000', '0.000000', '', '', null, '0'); +INSERT INTO `jsh_account` VALUES ('10', '支付宝', '123456789@qq.com', '10000.000000', null, '', '\0', null, '0'); +INSERT INTO `jsh_account` VALUES ('11', '微信', '13000000000', '10000.000000', null, '', '\0', null, '0'); +INSERT INTO `jsh_account` VALUES ('12', '上海农行', '65324345234523211', '10000.000000', '0.000000', '', '\0', null, '0'); INSERT INTO `jsh_account` VALUES ('13', '账户1', 'abcd123', '0.000000', null, '', '', '1', '0'); INSERT INTO `jsh_account` VALUES ('14', '账户1', 'zhanghu1', '0.000000', null, '', '', '117', '0'); -INSERT INTO `jsh_account` VALUES ('15', '账户2222', 'zh2222', '0.000000', null, '', '', '117', '0'); +INSERT INTO `jsh_account` VALUES ('15', '账户2222', 'zh2222', '0.000000', null, '', '\0', '117', '0'); INSERT INTO `jsh_account` VALUES ('16', '账户1', '1231241244', '0.000000', null, '', '', '115', '0'); INSERT INTO `jsh_account` VALUES ('17', '账户1', 'zzz111', '0.000000', null, '', '', '63', '0'); -INSERT INTO `jsh_account` VALUES ('18', '账户2', '1234131324', '0.000000', null, '', '', '63', '0'); +INSERT INTO `jsh_account` VALUES ('18', '账户2', '1234131324', '0.000000', null, '', '\0', '63', '0'); -- ---------------------------- --- Table structure for `jsh_accounthead` +-- Table structure for jsh_accounthead -- ---------------------------- DROP TABLE IF EXISTS `jsh_accounthead`; CREATE TABLE `jsh_accounthead` ( @@ -144,7 +144,7 @@ INSERT INTO `jsh_accounthead` VALUES ('95', '收预付款', '49', '9', null, '6. INSERT INTO `jsh_accounthead` VALUES ('96', '收入', '5', '4', '22.000000', '22.000000', '12', 'SR20190321235925', '2019-03-21 23:59:25', '', null, '0'); -- ---------------------------- --- Table structure for `jsh_accountitem` +-- Table structure for jsh_accountitem -- ---------------------------- DROP TABLE IF EXISTS `jsh_accountitem`; CREATE TABLE `jsh_accountitem` ( @@ -190,7 +190,7 @@ INSERT INTO `jsh_accountitem` VALUES ('96', '95', '13', null, '6.000000', '', '1 INSERT INTO `jsh_accountitem` VALUES ('97', '96', null, '14', '22.000000', '', null, '0'); -- ---------------------------- --- Table structure for `jsh_app` +-- Table structure for jsh_app -- ---------------------------- DROP TABLE IF EXISTS `jsh_app`; CREATE TABLE `jsh_app` ( @@ -211,23 +211,24 @@ CREATE TABLE `jsh_app` ( `Enabled` bit(1) DEFAULT NULL COMMENT '是否启用', `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='应用表'; +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 COMMENT='应用表'; -- ---------------------------- -- Records of jsh_app -- ---------------------------- -INSERT INTO `jsh_app` VALUES ('3', '00', '系统管理', 'app', '0000000004.png', '', '1240', '600', '', '', '', 'desk', '198', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('6', '02', '个人信息', 'app', '0000000005.png', '../user/password.html', '600', '400', '', '', '', 'dock', '200', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('7', '01', '基础数据', 'app', '0000000006.png', '', '1350', '630', '', '', '', 'desk', '120', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('22', '03', '报表查询', 'app', '0000000022.png', '', '1350', '630', '', '', '', 'desk', '115', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('23', '04', '零售管理', 'app', 'resizeApi.png', '', '1350', '630', '', '', '', 'desk', '025', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('24', '05', '采购管理', 'app', 'buy.png', '', '1350', '630', '', '', '', 'desk', '027', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('25', '06', '销售管理', 'app', 'sale.png', '', '1350', '630', '', '', '', 'desk', '028', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('26', '07', '财务管理', 'app', 'money.png', '', '1350', '630', '', '', '', 'desk', '035', '', '', '0'); -INSERT INTO `jsh_app` VALUES ('27', '08', '仓库管理', 'app', 'depot.png', '', '1350', '630', '', '', '', 'desk', '029', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('3', '00', '系统管理', 'app', '0000000004.png', '', '1240', '600', '', '\0', '\0', 'desk', '198', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('6', '02', '个人信息', 'app', '0000000005.png', '../user/password.html', '600', '400', '\0', '\0', '\0', 'dock', '200', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('7', '01', '基础数据', 'app', '0000000006.png', '', '1350', '630', '', '\0', '\0', 'desk', '120', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('22', '03', '报表查询', 'app', '0000000022.png', '', '1350', '630', '', '\0', '\0', 'desk', '115', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('23', '04', '零售管理', 'app', 'resizeApi.png', '', '1350', '630', '', '\0', '', 'desk', '025', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('24', '05', '采购管理', 'app', 'buy.png', '', '1350', '630', '', '\0', '', 'desk', '027', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('25', '06', '销售管理', 'app', 'sale.png', '', '1350', '630', '', '\0', '', 'desk', '028', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('26', '07', '财务管理', 'app', 'money.png', '', '1350', '630', '', '\0', '\0', 'desk', '035', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('27', '08', '仓库管理', 'app', 'depot.png', '', '1350', '630', '', '\0', '', 'desk', '029', '', '', '0'); +INSERT INTO `jsh_app` VALUES ('28', '09', '新手引导', 'app', 'userHelp.png', '../user/userHelp.html', '1000', '500', '\0', '\0', '\0', 'dock', '210', '', '', '0'); -- ---------------------------- --- Table structure for `jsh_asset` +-- Table structure for jsh_asset -- ---------------------------- DROP TABLE IF EXISTS `jsh_asset`; CREATE TABLE `jsh_asset` ( @@ -267,7 +268,7 @@ INSERT INTO `jsh_asset` VALUES ('1', '27', 'weizhi', '', '0', null, '11.000000', INSERT INTO `jsh_asset` VALUES ('3', '29', 'weizhi', null, '0', null, '11.000000', '2016-10-22 00:00:00', '2016-10-21 00:00:00', '2016-11-03 00:00:00', '1231241', '123124123', '2', null, null, '2017-07-22 18:42:14', null, '2017-07-22 18:42:14', null, null, '0'); -- ---------------------------- --- Table structure for `jsh_assetcategory` +-- Table structure for jsh_assetcategory -- ---------------------------- DROP TABLE IF EXISTS `jsh_assetcategory`; CREATE TABLE `jsh_assetcategory` ( @@ -290,7 +291,7 @@ INSERT INTO `jsh_assetcategory` VALUES ('17', '固定资产', '1', '固定资产 INSERT INTO `jsh_assetcategory` VALUES ('18', '流动资产', '1', '流动资产', null, '0'); -- ---------------------------- --- Table structure for `jsh_assetname` +-- Table structure for jsh_assetname -- ---------------------------- DROP TABLE IF EXISTS `jsh_assetname`; CREATE TABLE `jsh_assetname` ( @@ -333,7 +334,7 @@ INSERT INTO `jsh_assetname` VALUES ('30', '电源线8', '17', '1', '', '0', null INSERT INTO `jsh_assetname` VALUES ('31', '电源线9', '17', '1', '', '0', null, '0'); -- ---------------------------- --- Table structure for `jsh_depot` +-- Table structure for jsh_depot -- ---------------------------- DROP TABLE IF EXISTS `jsh_depot`; CREATE TABLE `jsh_depot` ( @@ -369,10 +370,10 @@ INSERT INTO `jsh_depot` VALUES ('11', '仓库321321', '', null, null, '0', '', ' INSERT INTO `jsh_depot` VALUES ('12', '仓库111222', '', null, null, '0', '', '', null, '117', '0', null); INSERT INTO `jsh_depot` VALUES ('13', '仓库1', '', null, null, '0', '', '', null, '115', '0', null); INSERT INTO `jsh_depot` VALUES ('14', '仓库1', '', null, null, '0', '', '', null, '63', '0', ''); -INSERT INTO `jsh_depot` VALUES ('15', '仓库2', '', null, null, '0', '', '', null, '63', '0', ''); +INSERT INTO `jsh_depot` VALUES ('15', '仓库2', '', null, null, '0', '', '', null, '63', '0', '\0'); -- ---------------------------- --- Table structure for `jsh_depothead` +-- Table structure for jsh_depothead -- ---------------------------- DROP TABLE IF EXISTS `jsh_depothead`; CREATE TABLE `jsh_depothead` ( @@ -561,7 +562,7 @@ INSERT INTO `jsh_depothead` VALUES ('197', '出库', '销售', null, 'XSCK000000 INSERT INTO `jsh_depothead` VALUES ('198', '入库', '采购', null, 'CGRK00000000292', 'CGRK00000000292', '季圣华', '2019-05-03 14:20:56', '2019-05-03 14:19:38', '57', null, '17', '-1.120000', null, '-1.000000', '现付', '', '', null, '', '0.000000', '0.000000', '1.120000', null, null, null, null, '0', '', '63', '0'); -- ---------------------------- --- Table structure for `jsh_depotitem` +-- Table structure for jsh_depotitem -- ---------------------------- DROP TABLE IF EXISTS `jsh_depotitem`; CREATE TABLE `jsh_depotitem` ( @@ -759,7 +760,7 @@ INSERT INTO `jsh_depotitem` VALUES ('214', '196', '569', '只', '6.000000', '6.0 INSERT INTO `jsh_depotitem` VALUES ('215', '198', '578', '箱', '1.000000', '12.000000', '1.000000', '1.120000', '1.000000', '', null, null, '14', null, '12.000000', '0.120000', '1.120000', '', '', '', '', '', '', '63', '0'); -- ---------------------------- --- Table structure for `jsh_functions` +-- Table structure for jsh_functions -- ---------------------------- DROP TABLE IF EXISTS `jsh_functions`; CREATE TABLE `jsh_functions` ( @@ -775,82 +776,83 @@ CREATE TABLE `jsh_functions` ( `PushBtn` varchar(50) DEFAULT NULL COMMENT '功能按钮', `delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除', PRIMARY KEY (`Id`) -) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8 COMMENT='功能模块表'; +) ENGINE=InnoDB AUTO_INCREMENT=247 DEFAULT CHARSET=utf8 COMMENT='功能模块表'; -- ---------------------------- -- Records of jsh_functions -- ---------------------------- INSERT INTO `jsh_functions` VALUES ('1', '00', '系统管理', '0', '', '', '0010', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('2', '01', '基础数据', '0', '', '', '0020', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('11', '0001', '系统管理', '00', '', '', '0110', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('12', '000101', '应用管理', '0001', '../manage/app.html', '', '0132', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('13', '000102', '角色管理', '0001', '../manage/role.html', '', '0130', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('14', '000103', '用户管理', '0001', '../manage/user.html', '', '0140', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('15', '000104', '日志管理', '0001', '../manage/log.html', '', '0160', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('16', '000105', '功能管理', '0001', '../manage/functions.html', '', '0135', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('21', '0101', '商品管理', '01', '', '', '0220', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('22', '010101', '商品类别', '0101', '../materials/materialcategory.html', '', '0230', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('23', '010102', '商品信息', '0101', '../materials/material.html', '', '0240', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('24', '0102', '基本资料', '01', '', '', '0250', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('25', '01020101', '供应商信息', '0102', '../manage/vendor.html', '', '0260', '', '电脑版', '1,2', '0'); -INSERT INTO `jsh_functions` VALUES ('26', '010202', '仓库信息', '0102', '../manage/depot.html', '', '0270', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('31', '010206', '经手人管理', '0102', '../materials/person.html', '', '0284', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('32', '0502', '采购管理', '05', '', '', '0330', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('33', '050201', '采购入库', '0502', '../materials/purchase_in_list.html', '', '0340', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('38', '0603', '销售管理', '06', '', '', '0390', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('40', '080107', '调拨出库', '0801', '../materials/allocation_out_list.html', '', '0807', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('41', '060303', '销售出库', '0603', '../materials/sale_out_list.html', '', '0394', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('44', '0704', '财务管理', '07', '', '', '0450', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('59', '030101', '库存状况', '0301', '../reports/in_out_stock_report.html', '', '0600', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('194', '010204', '收支项目', '0102', '../manage/inOutItem.html', '', '0282', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('195', '010205', '结算账户', '0102', '../manage/account.html', '', '0283', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('11', '0001', '系统管理', '00', '', '\0', '0110', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('12', '000101', '应用管理', '0001', '../manage/app.html', '\0', '0132', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('13', '000102', '角色管理', '0001', '../manage/role.html', '\0', '0130', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('14', '000103', '用户管理', '0001', '../manage/user.html', '\0', '0140', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('15', '000104', '日志管理', '0001', '../manage/log.html', '\0', '0160', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('16', '000105', '功能管理', '0001', '../manage/functions.html', '\0', '0135', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('21', '0101', '商品管理', '01', '', '\0', '0220', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('22', '010101', '商品类别', '0101', '../materials/materialcategory.html', '\0', '0230', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('23', '010102', '商品信息', '0101', '../materials/material.html', '\0', '0240', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('24', '0102', '基本资料', '01', '', '\0', '0250', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('25', '01020101', '供应商信息', '0102', '../manage/vendor.html', '\0', '0260', '', '电脑版', '1,2', '0'); +INSERT INTO `jsh_functions` VALUES ('26', '010202', '仓库信息', '0102', '../manage/depot.html', '\0', '0270', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('31', '010206', '经手人管理', '0102', '../materials/person.html', '\0', '0284', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('32', '0502', '采购管理', '05', '', '\0', '0330', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('33', '050201', '采购入库', '0502', '../materials/purchase_in_list.html', '\0', '0340', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('38', '0603', '销售管理', '06', '', '\0', '0390', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('40', '080107', '调拨出库', '0801', '../materials/allocation_out_list.html', '\0', '0807', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('41', '060303', '销售出库', '0603', '../materials/sale_out_list.html', '\0', '0394', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('44', '0704', '财务管理', '07', '', '\0', '0450', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('59', '030101', '库存状况', '0301', '../reports/in_out_stock_report.html', '\0', '0600', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('194', '010204', '收支项目', '0102', '../manage/inOutItem.html', '\0', '0282', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('195', '010205', '结算账户', '0102', '../manage/account.html', '\0', '0283', '', '电脑版', null, '0'); INSERT INTO `jsh_functions` VALUES ('196', '03', '报表查询', '0', '', '', '0025', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('197', '070402', '收入单', '0704', '../financial/item_in.html', '', '0465', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('198', '0301', '报表查询', '03', '', '', '0570', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('199', '050204', '采购退货', '0502', '../materials/purchase_back_list.html', '', '0345', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('200', '060305', '销售退货', '0603', '../materials/sale_back_list.html', '', '0396', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('201', '080103', '其它入库', '0801', '../materials/other_in_list.html', '', '0803', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('202', '080105', '其它出库', '0801', '../materials/other_out_list.html', '', '0805', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('203', '070403', '支出单', '0704', '../financial/item_out.html', '', '0470', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('204', '070404', '收款单', '0704', '../financial/money_in.html', '', '0475', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('205', '070405', '付款单', '0704', '../financial/money_out.html', '', '0480', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('206', '070406', '转账单', '0704', '../financial/giro.html', '', '0490', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('207', '030102', '结算账户', '0301', '../reports/account_report.html', '', '0610', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('208', '030103', '进货统计', '0301', '../reports/buy_in_report.html', '', '0620', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('209', '030104', '销售统计', '0301', '../reports/sale_out_report.html', '', '0630', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('210', '040102', '零售出库', '0401', '../materials/retail_out_list.html', '', '0405', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('211', '040104', '零售退货', '0401', '../materials/retail_back_list.html', '', '0407', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('212', '070407', '收预付款', '0704', '../financial/advance_in.html', '', '0495', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('217', '01020102', '客户信息', '0102', '../manage/customer.html', '', '0262', '', '电脑版', '1,2', '0'); -INSERT INTO `jsh_functions` VALUES ('218', '01020103', '会员信息', '0102', '../manage/member.html', '', '0263', '', '电脑版', '1,2', '0'); -INSERT INTO `jsh_functions` VALUES ('219', '000107', '资产管理', '0001', '../asset/asset.html', '', '0170', '', '电脑版', null, '0'); -INSERT INTO `jsh_functions` VALUES ('220', '010103', '计量单位', '0101', '../manage/unit.html', '', '0245', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('197', '070402', '收入单', '0704', '../financial/item_in.html', '\0', '0465', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('198', '0301', '报表查询', '03', '', '\0', '0570', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('199', '050204', '采购退货', '0502', '../materials/purchase_back_list.html', '\0', '0345', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('200', '060305', '销售退货', '0603', '../materials/sale_back_list.html', '\0', '0396', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('201', '080103', '其它入库', '0801', '../materials/other_in_list.html', '\0', '0803', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('202', '080105', '其它出库', '0801', '../materials/other_out_list.html', '\0', '0805', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('203', '070403', '支出单', '0704', '../financial/item_out.html', '\0', '0470', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('204', '070404', '收款单', '0704', '../financial/money_in.html', '\0', '0475', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('205', '070405', '付款单', '0704', '../financial/money_out.html', '\0', '0480', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('206', '070406', '转账单', '0704', '../financial/giro.html', '\0', '0490', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('207', '030102', '结算账户', '0301', '../reports/account_report.html', '\0', '0610', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('208', '030103', '进货统计', '0301', '../reports/buy_in_report.html', '\0', '0620', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('209', '030104', '销售统计', '0301', '../reports/sale_out_report.html', '\0', '0630', '', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('210', '040102', '零售出库', '0401', '../materials/retail_out_list.html', '\0', '0405', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('211', '040104', '零售退货', '0401', '../materials/retail_back_list.html', '\0', '0407', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('212', '070407', '收预付款', '0704', '../financial/advance_in.html', '\0', '0495', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('217', '01020102', '客户信息', '0102', '../manage/customer.html', '\0', '0262', '', '电脑版', '1,2', '0'); +INSERT INTO `jsh_functions` VALUES ('218', '01020103', '会员信息', '0102', '../manage/member.html', '\0', '0263', '', '电脑版', '1,2', '0'); +INSERT INTO `jsh_functions` VALUES ('219', '000107', '资产管理', '0001', '../asset/asset.html', '\0', '0170', '\0', '电脑版', null, '0'); +INSERT INTO `jsh_functions` VALUES ('220', '010103', '计量单位', '0101', '../manage/unit.html', '\0', '0245', '', '电脑版', null, '0'); INSERT INTO `jsh_functions` VALUES ('221', '04', '零售管理', '0', '', '', '0028', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('222', '05', '采购管理', '0', '', '', '0030', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('223', '06', '销售管理', '0', '', '', '0035', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('224', '07', '财务管理', '0', '', '', '0040', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('225', '0401', '零售管理', '04', '', '', '0401', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('226', '030106', '入库明细', '0301', '../reports/in_detail.html', '', '0640', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('227', '030107', '出库明细', '0301', '../reports/out_detail.html', '', '0645', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('228', '030108', '入库汇总', '0301', '../reports/in_material_count.html', '', '0650', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('229', '030109', '出库汇总', '0301', '../reports/out_material_count.html', '', '0655', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('232', '080109', '组装单', '0801', '../materials/assemble_list.html', '', '0809', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('233', '080111', '拆卸单', '0801', '../materials/disassemble_list.html', '', '0811', '', '电脑版', '3,4,5', '0'); -INSERT INTO `jsh_functions` VALUES ('234', '000105', '系统配置', '0001', '../manage/systemConfig.html', '', '0165', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('235', '030110', '客户对账', '0301', '../reports/customer_account.html', '', '0660', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('236', '000106', '商品属性', '0001', '../materials/materialProperty.html', '', '0168', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('237', '030111', '供应商对账', '0301', '../reports/vendor_account.html', '', '0665', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('225', '0401', '零售管理', '04', '', '\0', '0401', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('226', '030106', '入库明细', '0301', '../reports/in_detail.html', '\0', '0640', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('227', '030107', '出库明细', '0301', '../reports/out_detail.html', '\0', '0645', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('228', '030108', '入库汇总', '0301', '../reports/in_material_count.html', '\0', '0650', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('229', '030109', '出库汇总', '0301', '../reports/out_material_count.html', '\0', '0655', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('232', '080109', '组装单', '0801', '../materials/assemble_list.html', '\0', '0809', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('233', '080111', '拆卸单', '0801', '../materials/disassemble_list.html', '\0', '0811', '', '电脑版', '3,4,5', '0'); +INSERT INTO `jsh_functions` VALUES ('234', '000105', '系统配置', '0001', '../manage/systemConfig.html', '\0', '0165', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('235', '030110', '客户对账', '0301', '../reports/customer_account.html', '\0', '0660', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('236', '000106', '商品属性', '0001', '../materials/materialProperty.html', '\0', '0168', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('237', '030111', '供应商对账', '0301', '../reports/vendor_account.html', '\0', '0665', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('238', '08', '仓库管理', '0', '', '', '0038', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('239', '0801', '仓库管理', '08', '', '', '0801', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('240', '010104', '序列号', '0101', '../manage/serialNumber.html', '', '0246', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('241', '050202', '采购订单', '0502', '../materials/purchase_orders_list.html', '', '0335', '', '电脑版', '3', '0'); -INSERT INTO `jsh_functions` VALUES ('242', '060301', '销售订单', '0603', '../materials/sale_orders_list.html', '', '0392', '', '电脑版', '3', '0'); +INSERT INTO `jsh_functions` VALUES ('239', '0801', '仓库管理', '08', '', '\0', '0801', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('240', '010104', '序列号', '0101', '../manage/serialNumber.html', '\0', '0246', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('241', '050202', '采购订单', '0502', '../materials/purchase_orders_list.html', '\0', '0335', '', '电脑版', '3', '0'); +INSERT INTO `jsh_functions` VALUES ('242', '060301', '销售订单', '0603', '../materials/sale_orders_list.html', '\0', '0392', '', '电脑版', '3', '0'); INSERT INTO `jsh_functions` VALUES ('243', '000108', '机构管理', '0001', '../manage/organization.html', '', '0139', '', '电脑版', '', '0'); -INSERT INTO `jsh_functions` VALUES ('244', '030112', '库存预警', '0301', '../reports/stock_warning_report.html', '', '0670', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('244', '030112', '库存预警', '0301', '../reports/stock_warning_report.html', '\0', '0670', '', '电脑版', '', '0'); INSERT INTO `jsh_functions` VALUES ('245', '02', '个人信息', '0', '', '', '0005', '', '电脑版', '', '0'); +INSERT INTO `jsh_functions` VALUES ('246', '09', '新手引导', '0', '', '', '0115', '', '电脑版', '', '0'); -- ---------------------------- --- Table structure for `jsh_inoutitem` +-- Table structure for jsh_inoutitem -- ---------------------------- DROP TABLE IF EXISTS `jsh_inoutitem`; CREATE TABLE `jsh_inoutitem` ( @@ -884,7 +886,7 @@ INSERT INTO `jsh_inoutitem` VALUES ('19', '支出1', '支出', '', '117', '0'); INSERT INTO `jsh_inoutitem` VALUES ('20', '支出2', '支出', '', '117', '0'); -- ---------------------------- --- Table structure for `jsh_log` +-- Table structure for jsh_log -- ---------------------------- DROP TABLE IF EXISTS `jsh_log`; CREATE TABLE `jsh_log` ( @@ -1330,7 +1332,7 @@ INSERT INTO `jsh_log` VALUES ('6346', '120', '功能', '127.0.0.1', '2019-05-03 INSERT INTO `jsh_log` VALUES ('6347', '63', '角色', '127.0.0.1', '2019-05-03 17:06:47', '0', '新增角色', '新增角色', '63'); -- ---------------------------- --- Table structure for `jsh_material` +-- Table structure for jsh_material -- ---------------------------- DROP TABLE IF EXISTS `jsh_material`; CREATE TABLE `jsh_material` ( @@ -1401,7 +1403,7 @@ INSERT INTO `jsh_material` VALUES ('584', null, 'sfds', '', null, null, 'a2233', INSERT INTO `jsh_material` VALUES ('585', null, 'asdf', '', null, null, 'adsfasdf', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '0'); -- ---------------------------- --- Table structure for `jsh_materialcategory` +-- Table structure for jsh_materialcategory -- ---------------------------- DROP TABLE IF EXISTS `jsh_materialcategory`; CREATE TABLE `jsh_materialcategory` ( @@ -1444,7 +1446,7 @@ INSERT INTO `jsh_materialcategory` VALUES ('16', 'aaaa', null, '-1', '', '1', '' INSERT INTO `jsh_materialcategory` VALUES ('17', '目录1', null, '-1', '', '1', '', '', '2019-04-10 22:18:12', '63', '2019-04-10 22:18:12', '63', '63'); -- ---------------------------- --- Table structure for `jsh_materialproperty` +-- Table structure for jsh_materialproperty -- ---------------------------- DROP TABLE IF EXISTS `jsh_materialproperty`; CREATE TABLE `jsh_materialproperty` ( @@ -1462,13 +1464,13 @@ CREATE TABLE `jsh_materialproperty` ( -- ---------------------------- INSERT INTO `jsh_materialproperty` VALUES ('1', '规格', '', '02', '规格', '0'); INSERT INTO `jsh_materialproperty` VALUES ('2', '颜色', '', '01', '颜色', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('3', '制造商', '', '03', '制造商', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('4', '自定义1', '', '04', '自定义1', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('5', '自定义2', '', '05', '自定义2', '0'); -INSERT INTO `jsh_materialproperty` VALUES ('6', '自定义3', '', '06', '自定义3', '0'); +INSERT INTO `jsh_materialproperty` VALUES ('3', '制造商', '\0', '03', '制造商', '0'); +INSERT INTO `jsh_materialproperty` VALUES ('4', '自定义1', '\0', '04', '自定义1', '0'); +INSERT INTO `jsh_materialproperty` VALUES ('5', '自定义2', '\0', '05', '自定义2', '0'); +INSERT INTO `jsh_materialproperty` VALUES ('6', '自定义3', '\0', '06', '自定义3', '0'); -- ---------------------------- --- Table structure for `jsh_organization` +-- Table structure for jsh_organization -- ---------------------------- DROP TABLE IF EXISTS `jsh_organization`; CREATE TABLE `jsh_organization` ( @@ -1507,7 +1509,7 @@ INSERT INTO `jsh_organization` VALUES ('10', '23124', 'gaga', 'gaga', null, '1', INSERT INTO `jsh_organization` VALUES ('11', '12312', 'fsadfasdf', 'fsadfasdf', null, '1', '23124', '12312', '', '2019-03-31 21:52:52', '117', '2019-03-31 21:52:52', '117', null, null, '117'); -- ---------------------------- --- Table structure for `jsh_orga_user_rel` +-- Table structure for jsh_orga_user_rel -- ---------------------------- DROP TABLE IF EXISTS `jsh_orga_user_rel`; CREATE TABLE `jsh_orga_user_rel` ( @@ -1538,7 +1540,7 @@ INSERT INTO `jsh_orga_user_rel` VALUES ('8', '9', '96', '', '0', '2019-03-17 23: INSERT INTO `jsh_orga_user_rel` VALUES ('9', '10', '117', '', '0', '2019-03-31 21:53:03', '117', '2019-03-31 21:53:12', '117', '117'); -- ---------------------------- --- Table structure for `jsh_person` +-- Table structure for jsh_person -- ---------------------------- DROP TABLE IF EXISTS `jsh_person`; CREATE TABLE `jsh_person` ( @@ -1566,7 +1568,7 @@ INSERT INTO `jsh_person` VALUES ('12', '财务员', '小草', '117', '0'); INSERT INTO `jsh_person` VALUES ('13', '业务员', '经手人1', '115', '0'); -- ---------------------------- --- Table structure for `jsh_role` +-- Table structure for jsh_role -- ---------------------------- DROP TABLE IF EXISTS `jsh_role`; CREATE TABLE `jsh_role` ( @@ -1593,7 +1595,7 @@ INSERT INTO `jsh_role` VALUES ('15', 'laoba角色', null, null, null, '115', '0' INSERT INTO `jsh_role` VALUES ('16', '测试角色123', null, null, null, '63', '0'); -- ---------------------------- --- Table structure for `jsh_serial_number` +-- Table structure for jsh_serial_number -- ---------------------------- DROP TABLE IF EXISTS `jsh_serial_number`; CREATE TABLE `jsh_serial_number` ( @@ -1720,7 +1722,7 @@ INSERT INTO `jsh_serial_number` VALUES ('103', '565', '2222222', '0', '', '0', ' INSERT INTO `jsh_serial_number` VALUES ('104', '563', '234213123', '0', '', '0', '2019-03-21 23:58:00', '63', '2019-03-21 23:58:00', '63', null, null); -- ---------------------------- --- Table structure for `jsh_supplier` +-- Table structure for jsh_supplier -- ---------------------------- DROP TABLE IF EXISTS `jsh_supplier`; CREATE TABLE `jsh_supplier` ( @@ -1793,7 +1795,7 @@ INSERT INTO `jsh_supplier` VALUES ('72', 'sdfafadsf', '', '', '', '', null, '供 INSERT INTO `jsh_supplier` VALUES ('73', 'sadvczXCvz', '', '', '', '', null, '供应商', '', '0.000000', null, null, null, null, '', '', '', '', '', '', null, '63', '1'); -- ---------------------------- --- Table structure for `jsh_systemconfig` +-- Table structure for jsh_systemconfig -- ---------------------------- DROP TABLE IF EXISTS `jsh_systemconfig`; CREATE TABLE `jsh_systemconfig` ( @@ -1816,7 +1818,7 @@ INSERT INTO `jsh_systemconfig` VALUES ('7', '南通jshERP公司', '张三', '南 INSERT INTO `jsh_systemconfig` VALUES ('8', '公司123', '', '', '', '', '', '117', '0'); -- ---------------------------- --- Table structure for `jsh_unit` +-- Table structure for jsh_unit -- ---------------------------- DROP TABLE IF EXISTS `jsh_unit`; CREATE TABLE `jsh_unit` ( @@ -1839,7 +1841,7 @@ INSERT INTO `jsh_unit` VALUES ('14', '个,箱(1:12)', '117', '0'); INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '63', '0'); -- ---------------------------- --- Table structure for `jsh_user` +-- Table structure for jsh_user -- ---------------------------- DROP TABLE IF EXISTS `jsh_user`; CREATE TABLE `jsh_user` ( @@ -1892,7 +1894,7 @@ INSERT INTO `jsh_user` VALUES ('128', 'q12341243', 'q12341243', 'e10adc3949ba59a INSERT INTO `jsh_user` VALUES ('130', 'jsh666', 'jsh666', 'e10adc3949ba59abbe56e057f20f883e', null, null, null, null, '1', '0', '0', null, null, '130'); -- ---------------------------- --- Table structure for `jsh_userbusiness` +-- Table structure for jsh_userbusiness -- ---------------------------- DROP TABLE IF EXISTS `jsh_userbusiness`; CREATE TABLE `jsh_userbusiness` ( @@ -1908,11 +1910,11 @@ CREATE TABLE `jsh_userbusiness` ( -- ---------------------------- -- Records of jsh_userbusiness -- ---------------------------- -INSERT INTO `jsh_userbusiness` VALUES ('1', 'RoleAPP', '4', '[3][6][7][22][23][24][25][26][27]', null, '0'); +INSERT INTO `jsh_userbusiness` VALUES ('1', 'RoleAPP', '4', '[3][6][7][22][23][24][25][26][27][28]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('2', 'RoleAPP', '5', '[8][7][6]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('3', 'RoleAPP', '6', '[23][24][25][27][26][22][7][3][6]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('4', 'RoleAPP', '7', '[21][1][8][11]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('5', 'RoleFunctions', '4', '[13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][245][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); +INSERT INTO `jsh_userbusiness` VALUES ('5', 'RoleFunctions', '4', '[245][13][12][16][243][14][15][234][236][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); INSERT INTO `jsh_userbusiness` VALUES ('6', 'RoleFunctions', '5', '[22][23][25][26][194][195][31][33][200][201][41][199][202]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('7', 'RoleFunctions', '6', '[22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]', '[{\"funId\":\"33\",\"btnStr\":\"4\"}]', '0'); INSERT INTO `jsh_userbusiness` VALUES ('8', 'RoleAPP', '8', '[21][1][8][11][10]', null, '0'); @@ -1937,8 +1939,8 @@ INSERT INTO `jsh_userbusiness` VALUES ('27', 'UserCustomer', '63', '[58]', null, INSERT INTO `jsh_userbusiness` VALUES ('28', 'UserDepot', '96', '[7]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('29', 'UserRole', '96', '[6]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('30', 'UserRole', '113', '[10]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('31', 'RoleAPP', '10', '[3][6][7][22][23][24][25][26][27]', null, '0'); -INSERT INTO `jsh_userbusiness` VALUES ('32', 'RoleFunctions', '10', '[13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][245][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); +INSERT INTO `jsh_userbusiness` VALUES ('31', 'RoleAPP', '10', '[3][6][7][22][23][24][25][26][27][28]', null, '0'); +INSERT INTO `jsh_userbusiness` VALUES ('32', 'RoleFunctions', '10', '[245][13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]', '[{\"funId\":\"25\",\"btnStr\":\"1\"},{\"funId\":\"217\",\"btnStr\":\"1\"},{\"funId\":\"218\",\"btnStr\":\"1\"},{\"funId\":\"241\",\"btnStr\":\"3\"},{\"funId\":\"242\",\"btnStr\":\"3\"}]', '0'); INSERT INTO `jsh_userbusiness` VALUES ('34', 'UserRole', '115', '[10]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('35', 'UserRole', '117', '[10]', null, '0'); INSERT INTO `jsh_userbusiness` VALUES ('36', 'UserDepot', '117', '[8][9]', null, '0'); @@ -1968,7 +1970,7 @@ INSERT INTO `jsh_userbusiness` VALUES ('65', 'UserRole', '129', '[10]', null, '0 INSERT INTO `jsh_userbusiness` VALUES ('66', 'UserRole', '130', '[10]', null, '0'); -- ---------------------------- --- Table structure for `tbl_sequence` +-- Table structure for tbl_sequence -- ---------------------------- DROP TABLE IF EXISTS `tbl_sequence`; CREATE TABLE `tbl_sequence` ( From a9874a49284f6df68c19f698315034a767a64326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Sun, 23 Jun 2019 23:47:40 +0800 Subject: [PATCH 08/27] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E2=80=98=E5=95=86?= =?UTF-8?q?=E5=93=81=E7=B1=BB=E5=88=AB=E2=80=99=E7=9A=84=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/materials/material.html | 83 +++++++++---------- erp_web/pages/materials/materialcategory.html | 1 + .../materials/materialcategory_forselect.html | 17 +++- .../erp/controller/MaterialController.java | 4 +- .../datasource/mappers/MaterialMapperEx.java | 3 - .../service/material/MaterialComponent.java | 6 +- .../erp/service/material/MaterialService.java | 12 +-- .../MaterialCategoryService.java | 25 +++++- .../resources/mapper_xml/MaterialMapperEx.xml | 6 +- 9 files changed, 88 insertions(+), 69 deletions(-) diff --git a/erp_web/pages/materials/material.html b/erp_web/pages/materials/material.html index 5484faeb..a40914d5 100644 --- a/erp_web/pages/materials/material.html +++ b/erp_web/pages/materials/material.html @@ -22,6 +22,14 @@ closable="false"> + + + @@ -274,18 +282,14 @@ diff --git a/erp_web/pages/materials/materialcategory.html b/erp_web/pages/materials/materialcategory.html index 31e80680..135a4d0e 100644 --- a/erp_web/pages/materials/materialcategory.html +++ b/erp_web/pages/materials/materialcategory.html @@ -79,6 +79,7 @@
类别: + + + + +   品名: @@ -76,7 +84,7 @@ 类别 - +