diff --git a/.history/index_20250117130901.html b/.history/index_20250117130901.html new file mode 100644 index 0000000..d36954f --- /dev/null +++ b/.history/index_20250117130901.html @@ -0,0 +1,248 @@ + + + + + + 黔送固定资产管理系统 + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +
+
+ + + + + + + +
    + +
  • + +
  • +
  • + +
  • +
  • + +
  • + +
  • + +
  • +
+
+
+ + +
+
+ + +
+
+
+ + +
+ + +
+ +
+ +
+
    +
  • +
+
+
  • +
  • +
  • + +
  • +
    +
    +
    +
    +
    + +
    +
    + + + + + + + + \ No newline at end of file diff --git a/.history/index_20250117131241.html b/.history/index_20250117131241.html new file mode 100644 index 0000000..e4e6494 --- /dev/null +++ b/.history/index_20250117131241.html @@ -0,0 +1,248 @@ + + + + + + 黔送固定资产管理系统 + + + + + + + + + + + + + + + + + + + +
    + +
    + + +
    + +
    +
    + + + + + + + +
      + +
    • + +
    • +
    • + +
    • +
    • + +
    • + +
    • + +
    • +
    +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    + + +
    + +
    + +
    +
      +
    • +
    +
    +
  • +
  • +
  • + +
  • +
    +
    +
    +
    +
    + +
    +
    + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..8d66637 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..813c1fa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 8001 +} \ No newline at end of file diff --git a/css/index/index.css b/css/index/index.css index 2582339..dc3f841 100644 --- a/css/index/index.css +++ b/css/index/index.css @@ -100,7 +100,6 @@ .overview_item { width: 100%; min-height: 115px; - background-color: rgb(49, 167, 255); border-radius: 10px; display: flex; padding: 20px; @@ -112,6 +111,11 @@ height: 100%; } +.overview_item_left >img { + width: 20px; + height: 20px; +} + .overview_item_right { color: #ffffff; margin-left: 10px; @@ -216,11 +220,13 @@ display: flex; padding: 10px 0; text-align: center; + cursor: pointer; } .supplier_table_body_item { display: flex; padding: 10px 0; + cursor: pointer; } .supplier_table_body_item > div { @@ -232,12 +238,11 @@ justify-content: center; } -.table_body_item>div { +.table_body_item > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - display: flex; - justify-content: center; + text-align: center; } .table_body_item:hover { @@ -249,6 +254,8 @@ height: 24px; color: #ffffff; border-radius: 4px; + display: inline-flex; + justify-content: center; } .plan_tips { @@ -291,6 +298,13 @@ text-overflow: ellipsis; } +.table_img_txt > div { + width: 100%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + #time_range_id { height: 32px; width: 330px; diff --git a/images/accessory/back.png b/images/accessory/back.png new file mode 100644 index 0000000..8ec7cd2 Binary files /dev/null and b/images/accessory/back.png differ diff --git a/images/accessory/caig.png b/images/accessory/caig.png new file mode 100644 index 0000000..729d6a7 Binary files /dev/null and b/images/accessory/caig.png differ diff --git a/images/accessory/gongc.png b/images/accessory/gongc.png new file mode 100644 index 0000000..30c328c Binary files /dev/null and b/images/accessory/gongc.png differ diff --git a/images/accessory/kuc.png b/images/accessory/kuc.png new file mode 100644 index 0000000..723156c Binary files /dev/null and b/images/accessory/kuc.png differ diff --git a/images/accessory/liku.png b/images/accessory/liku.png new file mode 100644 index 0000000..cce6a38 Binary files /dev/null and b/images/accessory/liku.png differ diff --git a/images/accessory/xuqiu.png b/images/accessory/xuqiu.png new file mode 100644 index 0000000..5b82598 Binary files /dev/null and b/images/accessory/xuqiu.png differ diff --git a/images/svg/u10.svg b/images/svg/u10.svg new file mode 100644 index 0000000..a645ef1 --- /dev/null +++ b/images/svg/u10.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/svg/u11.svg b/images/svg/u11.svg new file mode 100644 index 0000000..5a03a58 --- /dev/null +++ b/images/svg/u11.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/svg/u12.svg b/images/svg/u12.svg new file mode 100644 index 0000000..75b9c47 --- /dev/null +++ b/images/svg/u12.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/svg/u19.svg b/images/svg/u19.svg new file mode 100644 index 0000000..a094dd2 --- /dev/null +++ b/images/svg/u19.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/images/svg/u24.svg b/images/svg/u24.svg new file mode 100644 index 0000000..4d1594a --- /dev/null +++ b/images/svg/u24.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/images/svg/u8.svg b/images/svg/u8.svg new file mode 100644 index 0000000..19f10ef --- /dev/null +++ b/images/svg/u8.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/svg/u9.svg b/images/svg/u9.svg new file mode 100644 index 0000000..cdff925 --- /dev/null +++ b/images/svg/u9.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index d36954f..e4e6494 100644 --- a/index.html +++ b/index.html @@ -171,8 +171,8 @@ }, null); } else { console.log('走的自己登录'); - login(miniAdmin); - // window.location = 'page/welcome-1.html'; + //login(miniAdmin); + window.location = 'page/welcome-1.html'; } /* var options = { iniUrl: "api/init.json", // 初始化接口 diff --git a/js/welcome/welcome.js b/js/welcome/welcome.js index cfd8a08..5d5e6ca 100644 --- a/js/welcome/welcome.js +++ b/js/welcome/welcome.js @@ -11,10 +11,7 @@ var purchaseData = [ ] var rankingList = [ - { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, - { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, - { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, - { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, + { name: '220kvxxxxxxxxxxxxxxxxxx工程220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, { name: '220kvxxxxxxxxxxxxxxxxxx工程', ly: '50', th: '10', cq: '35' }, @@ -82,6 +79,10 @@ function overviewClick(type) { title = '库存详情'; content = '../../page/welconme_child/inventory.html'; } + else if (type === '3') { + title = '采购详情'; + content = '../../page/welconme_child/purchase.html'; + } else if (type === '4') { title = '利库详情'; content = '../../page/welconme_child/liKu.html'; @@ -114,7 +115,7 @@ function rankingDom() {
    ${index + 1}
    -
    ${item.name}
    +
    ${item.name}
    ${item.ly}
    ${item.th}
    ${item.cq}
    @@ -139,7 +140,7 @@ function supplierDom() {
    -
    Axxxxxxxxxx供应商名称 +
    Axxxxxxxxxx供应商名称供应商名称供应商名称
    合同占比:40 % (1,600,000)
    @@ -167,15 +168,36 @@ function supplierDom() { // 排名自动滚动 var rankingTimer = null +var offset = 0 + +function clearIntervalEvent() { + clearInterval(rankingTimer) + rankingTimer = null +} + +function startIntervalEvent() { + let ranking_dom = document.getElementById('table_body_id') + offset = ranking_dom.scrollTop + rankingScrollTo() +} + function rankingScrollTo() { var dom_nav = document.getElementById('table_body_id') + dom_nav.addEventListener('mouseenter',clearIntervalEvent) + dom_nav.addEventListener('mouseleave',startIntervalEvent) // 元素可滚动高度 - var scrollHeight = dom_nav.clientHeight - var offset = 0 + var scrollHeight = dom_nav.scrollHeight- dom_nav.clientHeight + // console.dir(dom_nav) + // console.log(scrollHeight) rankingTimer = setInterval(() => { - offset++ + offset += 1 if (offset >= scrollHeight) { offset = 0 + dom_nav.scrollTo({ + top: offset + }) + clearIntervalEvent() + rankingScrollTo() } else { dom_nav.scrollTo({ top: offset @@ -370,7 +392,7 @@ function initPlan() { }, series: [ { - name: 'Access From', + name: '需求计划', type: 'pie', radius: ['60%', '80%'], avoidLabelOverlap: false, diff --git a/page/welcome-1.html b/page/welcome-1.html index 4244b8c..d0876b6 100644 --- a/page/welcome-1.html +++ b/page/welcome-1.html @@ -56,9 +56,9 @@
    -
    +
    - +
    工程数量
    @@ -68,62 +68,62 @@
    -
    +
    - +
    需求计划数
    686
    -
    今日领用工程 15 个
    +
    今日新增 15 条
    -
    +
    - +
    库存量
    686
    -
    今日领用工程 15 个
    +
    待报废量 1236
    -
    +
    - +
    采购量
    686
    -
    今日领用工程 15 个
    +
    今日采购 1500 个
    -
    +
    - +
    利库量
    686
    -
    今日领用工程 15 个
    +
    今日利库 1500 个
    -
    +
    - +
    退回量
    686
    -
    今日领用工程 15 个
    +
    今日退黄 123 个
    diff --git a/page/welconme_child/demand.html b/page/welconme_child/demand.html index f869a72..b257cb4 100644 --- a/page/welconme_child/demand.html +++ b/page/welconme_child/demand.html @@ -3,7 +3,7 @@ - 工程详情 + 需求计划详情 @@ -49,60 +49,42 @@
    -
    -
    - - - -
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    + +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    序号工程名称计划数已发货代发货发货状态采购数量利库数量退还数量差缺数量采购金额所属分公司
    贤心2016-11-29人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行
    - -
    +
    @@ -129,26 +111,32 @@ name: item }) }) - layui.use('laypage', function () { - var laypage = layui.laypage; + layui.use(['form', 'table'], function () { + var form = layui.form; + var table = layui.table; - //执行一个laypage实例 - laypage.render({ - layout: ['prev', 'page', 'next', 'limit'], - elem: 'paging', - count: 50, - limit: 10, - limits: [10, 20, 30, 40, 50], - jump: function (obj, first) { - //obj包含了当前分页的所有参数,比如: - console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。 - console.log(obj.limit); //得到每页显示的条数 + //监听提交 + form.on('submit', function (data) { + console.log(data) + }); - //首次不执行 - if (!first) { - //do something - } - } + table.render({ + elem: '#table_id', + height: 312, + url: '../../demo/table/user/-page=1&limit=30.js', //数据接口 + page: true, //开启分页 + cols: [[ + { field: 'id', title: '序号', width: 80, sort: true, fixed: 'left' }, + { field: 'username', title: '需求计划编号', width: 200 }, + { field: 'sex', title: '工程名称', sort: true }, + { field: 'city', title: '发货状态', sort: true }, + { field: 'sign', title: '采购数量', sort: true }, + { field: 'experience', title: '利库数量', sort: true }, + { field: 'experience', title: '采购金额', sort: true }, + { field: 'experience', title: '供应商', sort: true }, + { field: 'experience', title: '付款状态', sort: true }, + { field: 'experience', title: '所属分公司', sort: true }, + ]] }); }); initTypeDom() @@ -384,13 +372,13 @@ $('#select_id').empty(); selectList = [] $(`#company_id_${company_id_num}`).removeClass('company_item_ac'); - company_id_num = 1 + company_id_num = 1 $(`#company_id_${company_id_num}`).addClass('company_item_ac'); - + $(`#status_id_${status_id_num}`).removeClass('company_item_ac'); status_id_num = 1 $(`#status_id_${status_id_num}`).addClass('company_item_ac'); - + $(`#month_id_${month_id_num}`).removeClass('company_item_ac'); month_id_num = 1 $(`#month_id_${month_id_num}`).addClass('company_item_ac'); @@ -494,6 +482,10 @@ overflow: hidden; height: 42px; } + .layui-input-block { + margin-right: 10px; + min-width: 250px; + } \ No newline at end of file diff --git a/page/welconme_child/engineer.html b/page/welconme_child/engineer.html index f869a72..2a6a095 100644 --- a/page/welconme_child/engineer.html +++ b/page/welconme_child/engineer.html @@ -50,59 +50,31 @@
    -
    - - - -
    +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    + +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    序号工程名称计划数已发货代发货发货状态采购数量利库数量退还数量差缺数量采购金额所属分公司
    贤心2016-11-29人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行人生就像是一场修行
    - -
    +
    @@ -129,26 +101,34 @@ name: item }) }) - layui.use('laypage', function () { - var laypage = layui.laypage; + layui.use(['form', 'table'], function () { + var form = layui.form; + var table = layui.table; - //执行一个laypage实例 - laypage.render({ - layout: ['prev', 'page', 'next', 'limit'], - elem: 'paging', - count: 50, - limit: 10, - limits: [10, 20, 30, 40, 50], - jump: function (obj, first) { - //obj包含了当前分页的所有参数,比如: - console.log(obj.curr); //得到当前页,以便向服务端请求对应页的数据。 - console.log(obj.limit); //得到每页显示的条数 + //监听提交 + form.on('submit', function (data) { + console.log(data) + }); - //首次不执行 - if (!first) { - //do something - } - } + table.render({ + elem: '#table_id', + height: 312, + url: '../../demo/table/user/-page=1&limit=30.js', //数据接口 + page: true, //开启分页 + cols: [[ + { field: 'id', title: '序号', width: 80, sort: true, fixed: 'left' }, + { field: 'username', title: '工程名称', width: 200 }, + { field: 'sex', title: '计划数', sort: true }, + { field: 'city', title: '已发货', sort: true }, + { field: 'sign', title: '待发货', sort: true }, + { field: 'experience', title: '发货状态', sort: true }, + { field: 'experience', title: '采购数量', sort: true }, + { field: 'experience', title: '利库数量', sort: true }, + { field: 'experience', title: '退还数量', sort: true }, + { field: 'experience', title: '差缺数量', sort: true }, + { field: 'experience', title: '采购金额', sort: true }, + { field: 'experience', title: '所属分公司', sort: true }, + ]] }); }); initTypeDom() @@ -494,6 +474,10 @@ overflow: hidden; height: 42px; } + .layui-input-block { + margin-right: 10px; + min-width: 250px; + } \ No newline at end of file diff --git a/page/welconme_child/liKu.html b/page/welconme_child/liKu.html index 0ad4b03..c389f13 100644 --- a/page/welconme_child/liKu.html +++ b/page/welconme_child/liKu.html @@ -98,7 +98,7 @@ } function detailClick() { - let title = '利库来源', content = './liKu_detail.html', width = '97%', height = '97%'; + let title = '利库来源', content = './liKu_detail.html', width = '100%', height = '100%'; let obj = { test: 1 } diff --git a/page/welconme_child/purchase.html b/page/welconme_child/purchase.html new file mode 100644 index 0000000..a8c9062 --- /dev/null +++ b/page/welconme_child/purchase.html @@ -0,0 +1,410 @@ + + + + + + 采购详情 + + + + + + + + + + + +
    +
    +
    付款状态 :
    +
    +
    +
    +
    年份 :
    +
    +
    +
    +
    月份 :
    +
    +
    +
    +
    已选条件 :
    +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + + + + \ No newline at end of file