From 52ed22fbccb23e1ffe7a8f179eb753947300ed8e Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期二, 25 六月 2024 09:05:19 +0800 Subject: [PATCH] 仓储管理 增加类型筛选 --- CoreCms.Net.Web.Admin/wwwroot/views/content/stock/products/index.html | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/content/stock/products/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/content/stock/products/index.html index c6d4a19..27e187f 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/content/stock/products/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/content/stock/products/index.html @@ -18,6 +18,12 @@ <div class="layui-form coreshop-toolbar-search-form"> <div class="layui-form-item"> <div class="layui-inline"> + <label class="layui-form-label" for="category">鍟嗗搧鍒嗙被</label> + <div class="layui-input-inline" style="width: 200px;"> + <div id="sel_category_stortPrducts" class="ew-xmselect-tree" lay-reqText="璇烽�夋嫨鍟嗗搧鍒嗙被"></div> + </div> + </div> + <div class="layui-inline"> <div class="layui-input-inline"> <input type="text" name="name" placeholder="璇疯緭鍏ュ晢鍝佸悕绉�" class="layui-input"> </div> @@ -64,9 +70,9 @@ layui.data.done = function (d) { //寮�鍚皟璇曟儏鍐典笅鑾峰彇鎺ュ彛璧嬪�兼暟鎹� if (debug) { console.log(d); } - - indexData = d.data; - layui.use(['index', 'table', 'laydate', 'util', 'coredropdown', 'coreHelper'], + + indexData = d.data.data; + layui.use(['index', 'table', 'laydate', 'util', 'coredropdown', 'coreHelper','xmSelect'], function () { var $ = layui.$ , admin = layui.admin @@ -76,6 +82,7 @@ , setter = layui.setter , coreHelper = layui.coreHelper , util = layui.util + ,xmSelect = layui.xmSelect , view = layui.view; //閲嶈浇form @@ -158,7 +165,26 @@ doDetails(obj); } }); - + xmSelect.render({ + el: '#sel_category_stortPrducts', + height: '250px', + data: indexData, + //initValue: mData ? [mData.parentId] : [], + //model: { label: { type: 'text' } }, + name: 'categoryId', + prop: { + name: 'title', + value: 'id' + }, + radio: true, + clickClose: true, + tree: { + show: true, + indent: 15, + strict: false, + expandedKeys: true + } + }); //鐩戝惉鍗曞厓鏍肩紪杈� table.on('edit(LAY-app-CoreCmsProducts-tableBox)', function (obj) { -- Gitblit v1.9.1