From 5d6cb15ac86d9174393cb9d1538d69b567e2c26c Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期四, 09 五月 2024 08:56:50 +0800 Subject: [PATCH] 修改货品编辑bug --- CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 109 insertions(+), 9 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html index 779814f..beb40d1 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/offlinedistributor/index.html @@ -35,9 +35,10 @@ <div class="layui-input-inline"> <input type="text" - name="Category" + name="category" placeholder="璇疯緭鍏ョ被鍒�" class="layui-input" + id="searchCatgory" /> </div> </div> @@ -48,7 +49,7 @@ <div class="layui-input-inline" style="width: 260px;"> <input type="text" - name="CollectionTime" + name="collectionTime" id="searchTime-OfflineDistributor-CollectionTime" placeholder="璇疯緭鍏ヤ俊鎭敹闆嗘椂闂�" class="layui-input" @@ -66,7 +67,7 @@ <div class="layui-input-inline"> <input type="text" - name="Adder" + name="adder" placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" class="layui-input" /> @@ -74,11 +75,11 @@ </div> <div class="layui-inline"> - <label class="layui-form-label" for="School">瀛︽牎鍚嶇О</label> + <label class="layui-form-label" for="school">瀛︽牎鍚嶇О</label> <div class="layui-input-inline"> <input type="text" - name="School" + name="school" placeholder="璇疯緭鍏ュ鏍″悕绉�" class="layui-input" /> @@ -89,7 +90,7 @@ <div class="layui-input-inline"> <input type="text" - name="DealerName" + name="dealerName" placeholder="璇疯緭鍏ョ粡閿�鍟嗗悕绉�" class="layui-input" /> @@ -100,7 +101,7 @@ <label class="layui-form-label" for="CooperationIntent">鍚堜綔鎰忓悜</label> <div class="layui-input-inline"> <input - name="CooperationIntent" + name="cooperationIntent" class="layui-input" placeholder="璇疯緭鍏ュ悎浣滄剰鍚�" lay-reqText="璇疯緭鍏ュ悎浣滄剰鍚�" @@ -108,7 +109,16 @@ /> </div> </div> - + <div class="layui-inline"> + <label class="layui-form-label" for="CooperationIntent">鍦版帹浜哄憳</label> + <div class="layui-input-inline"> + <div class="layui-input-inline"> + <select lay-search="" name="pUserID" id="selOfflinedisSelUserID"> + <option value="">璇烽�夋嫨鍦版帹浜�</option> + </select> + </div> + </div> + </div> <div class="layui-inline"> <button class="layui-btn layui-btn-sm" @@ -235,6 +245,13 @@ title: "淇℃伅鏀堕泦鏃堕棿", width: 130, sort: false, + templet: function (d) { + if(isDateTimeString(d.collectionTime)){ + return util.toDateString(d.collectionTime, "yyyy-MM-dd"); + }else{ + return ""; + } + } }, { field: "category", title: "绫诲埆", sort: false, width: 105 }, { @@ -250,14 +267,35 @@ sort: false, width: 105, }, + { field: "school", title: "瀛︽牎鍚嶇О", sort: false, width: 105 }, { field: "dealerName", title: "缁忛攢鍟嗗悕绉�", sort: false ,width: 105}, + { + field: 'storeLogoUrl', title: '搴楁嫑', width: 120, sort: false, + templet: function (d) { + if (d.storeLogoUrl) { + + var listimg= d.storeLogoUrl.split(",") + var str=""; + listimg.forEach((value,index)=> + { + str+= '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + value + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + value + '" /></a>' + + }) + + return str; + } else { + return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px; margin-left: 5px;" src="' + setter.noImagePicUrl + '" /></a>'; + } + } + }, { field: "contactPerson", title: "鑱旂郴浜哄鍚�", sort: false, width: 105, }, + { field: "phoneNumber", title: "鑱旂郴鐢佃瘽", @@ -278,6 +316,7 @@ width: 105, templet: "#OffdismeetingCountTmp", }, + { field: "money", title: "璁㈣揣璁板綍", @@ -337,6 +376,12 @@ } } ); + formatUserSelInPut( + coreHelper, + form, + "selOfflinedisSelUserID", + "" + ); dropdown.render({ elem: "#SeCooperationIntent", data: [ @@ -350,6 +395,28 @@ }, { title: "涓嶇‘瀹�", + id: 103, + }, + ], + click: function (obj) { + this.elem.val(obj.title); + }, + style: "min-width: 235px;", + }); + + dropdown.render({ + elem: "#searchCatgory", + data: [ + { + title: "鏂囧叿搴�", + id: 101, + }, + { + title: "骞垮憡搴�", + id: 102, + }, + { + title: "灏忓崠閮�", id: 103, }, ], @@ -391,8 +458,23 @@ "submit(LAY-app-OfflineDistributor-createForm-submit)", function (data) { var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈� - + field.storeLogoUrl=""; field.isdelete = field.isdelete == "on"; + if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2)) + { + field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2; + } + else + if(!!field.storeLogoUrl1) + { + field.storeLogoUrl=field.storeLogoUrl1; + } + else if(!!field.storeLogoUrl2) + { + field.storeLogoUrl=field.storeLogoUrl2; + }; + + field.region = GetAreaCodeFormFileid( field, "CreatofflinedisRegion" @@ -464,7 +546,25 @@ "submit(LAY-app-OfflineDistributor-editForm-submit)", function (data) { var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈� + debugger + field.storeLogoUrl=""; + if((!!field.storeLogoUrl1)&&(!!field.storeLogoUrl2)) + { + field.storeLogoUrl=field.storeLogoUrl1+","+field.storeLogoUrl2; + } + else + if(!!field.storeLogoUrl1) + { + field.storeLogoUrl=field.storeLogoUrl1; + } + else if(!!field.storeLogoUrl2) + { + field.storeLogoUrl=field.storeLogoUrl2; + }; + + + field.isdelete = field.isdelete == "on"; field.region = GetAreaCodeFormFileid( field, -- Gitblit v1.9.1