From 445d14becca6b5251814934343d7a6394ada6009 Mon Sep 17 00:00:00 2001
From: 小飞侠 <8277136+liaoxujun@user.noreply.gitee.com>
Date: 星期五, 17 十月 2025 16:55:19 +0800
Subject: [PATCH] no message
---
CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html | 131 +++++++++++++++++++++++++++++++++----------
1 files changed, 100 insertions(+), 31 deletions(-)
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html
index 4ca22cd..0901797 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/distribution/distributor/index.html
@@ -1,4 +1,4 @@
-<title>鍒嗛攢鍟嗚〃</title>
+<title>缁忛攢鍟嗚〃</title>
<!--褰撳墠浣嶇疆寮�濮�-->
<div class="layui-card layadmin-header">
<div class="layui-breadcrumb" lay-filter="breadcrumb">
@@ -23,12 +23,12 @@
<div class="layui-inline">
<div class="layui-input-inline">
- <input type="number" name="id" placeholder="鍒嗛攢鍟嗗簭鍒�" class="layui-input">
+ <input type="number" name="id" placeholder="缁忛攢鍟嗗簭鍒�" class="layui-input">
</div>
</div>
<div class="layui-inline">
<div class="layui-input-inline">
- <input type="text" name="name" placeholder="璇疯緭鍏ュ垎閿�鍟嗗悕绉�" class="layui-input">
+ <input type="text" name="name" placeholder="璇疯緭鍏ョ粡閿�鍟嗗悕绉�" class="layui-input">
</div>
</div>
@@ -37,7 +37,7 @@
<input type="text" name="mobile" placeholder="璇疯緭鍏ユ墜鏈哄彿" class="layui-input">
</div>
</div>
- <div class="layui-inline">
+ <!-- <div class="layui-inline">
<div class="layui-input-inline">
<input type="text" name="weixin" placeholder="璇疯緭鍏ュ井淇″彿" class="layui-input">
</div>
@@ -46,7 +46,7 @@
<div class="layui-input-inline">
<input type="text" name="qq" placeholder="璇疯緭鍏q鍙�" class="layui-input">
</div>
- </div>
+ </div> -->
<div class="layui-inline">
<div class="layui-input-inline">
<input type="text" name="storeName" placeholder="璇疯緭鍏ュ簵閾哄悕绉�" class="layui-input">
@@ -66,7 +66,7 @@
<div class="layui-inline">
<div class="layui-input-inline">
<select name="gradeId">
- <option value="">璇烽�夋嫨鍒嗛攢绛夌骇</option>
+ <option value="">璇烽�夋嫨缁忛攢绛夌骇</option>
{{# layui.each(indexData.grades, function(index, item){ }}
<option value="{{ item.id }}">{{ item.name }}</option>
{{# }); }}
@@ -83,11 +83,11 @@
</select>
</div>
</div>
- <div class="layui-inline">
+ <!-- <div class="layui-inline">
<div class="layui-input-inline">
<input type="number" name="userId" placeholder="鐢ㄦ埛搴忓垪" class="layui-input">
</div>
- </div>
+ </div> -->
<div class="layui-inline">
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="LAY-app-CoreCmsDistribution-search"><i class="layui-icon layui-icon-search"></i>绛涢��</button>
</div>
@@ -103,9 +103,10 @@
<script type="text/html" id="LAY-app-CoreCmsDistribution-tableBox-bar">
- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="qrcode">灏忕▼搴忕爜</a>
+ <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="qrcode">灏忕▼搴忕爜</a> -->
+ <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="achievement">鎺ㄥ箍璐�</a>
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">鏌ョ湅</a>
- <a class="layui-btn layui-btn-xs" lay-event="edit">瀹℃牳</a>
+ <a class="layui-btn layui-btn-xs {{d.verifyStatus!=1?'layui-btn-danger' :''}} " lay-event="edit">{{d.verifyStatus==1?'淇敼' :'瀹℃牳'}} </a>
<a class="layui-btn layui-btn-danger layui-btn-xs" data-dropdown="#CoreCmsDistributionTbDelDrop{{d.LAY_NUM}}" no-shade="true">鍒犻櫎</a>
<div class="dropdown-menu-nav dropdown-popconfirm dropdown-top-right layui-hide" id="CoreCmsDistributionTbDelDrop{{d.LAY_NUM}}"
style="max-width: 200px; white-space: normal; min-width: auto; margin-left: 10px;">
@@ -121,7 +122,7 @@
</div>
</script>
-
+<script src="/views/liao.js"></script>
<script>
var indexData;
var debug = layui.setter.debug;
@@ -173,9 +174,9 @@
}
}
},
- { field: 'name', title: '鍒嗛攢鍟嗗悕绉�', sort: false, width: 105 },
+ { field: 'name', title: '缁忛攢鍟嗗悕绉�', sort: false, width: 105 },
{
- field: 'gradeId', title: '鍒嗛攢绛夌骇', sort: false, width: 90, templet: function (data) {
+ field: 'gradeId', title: '缁忛攢绛夌骇', sort: false, width: 90, templet: function (data) {
for (var i = 0; i < d.data.grades.length; i++) {
if (d.data.grades[i].id == data.gradeId) {
return d.data.grades[i].name;
@@ -183,22 +184,48 @@
}
}
},
- //{ field: 'gradeId', title: '鍒嗛攢绛夌骇', sort: false, width: 105 },
+ //{ field: 'gradeId', title: '缁忛攢绛夌骇', sort: false, width: 105 },
{ field: 'mobile', title: '鎵嬫満鍙�', sort: false, width: 100 },
- { field: 'weixin', title: '寰俊鍙�', sort: false, width: 100 },
- { field: 'qq', title: 'qq鍙�', sort: false, width: 90 },
- { field: 'storeName', title: '搴楅摵鍚嶇О', sort: false },
- {
- field: 'storeLogo', title: 'Logo', sort: false, width: 60, templet: function (d) {
- if (d.storeLogo) {
- return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + d.storeLogo + '")><image style="max-width:28px;max-height:28px;" src="' + d.storeLogo + '" /></a>';
- } else {
- return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px;" src="' + setter.noImagePicUrl + '" /></a>';
- }
+ // { field: 'weixin', title: '寰俊鍙�', sort: false, width: 100 },
+ { field: 'profession', title: '琛屼笟', sort: false, width: 100 },
+ // { field: 'qq', title: 'qq鍙�', sort: false, width: 90 },
+ { field: 'sales', title: '骞磋惀涓氶(鍏�)', sort: true, width: 100 },
+ { field: 'storeName', title: '搴楅摵鍚嶇О', sort: false, width: 133 },
+ { field: 'address', title: '鍦板潃', sort: false, width: 270 },
+
+ // { field: 'storeCoordinate', title: '搴楅摵鍧愭爣', sort: false },
+ // {
+ // field: 'storeLogo', title: 'Logo', sort: false, width: 60, templet: function (d) {
+ // if (d.storeLogo) {
+ // return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + d.storeLogo + '")><image style="max-width:28px;max-height:28px;" src="' + d.storeLogo + '" /></a>';
+ // } else {
+ // return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + setter.noImagePicUrl + '")><image style="max-width:30px;max-height:30px;" src="' + setter.noImagePicUrl + '" /></a>';
+ // }
+ // }
+ // },
+ { field: 'schoolName', title: '瀛︽牎鍚嶇О', sort: true, width: 133 },
+
+ {
+ field: 'idCradNumber', title: '韬唤璇�', width: 120, sort: false,
+ templet: function (d) {
+ if (d.idCradNumber) {
+
+ var listimg= d.idCradNumber.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: 'storeBanner', title: 'Banner', sort: false, width: 60, templet: function (d) {
+ field: 'storeBanner', title: '闂ㄥご鍥剧墖', sort: false, width: 100, templet: function (d) {
if (d.storeBanner) {
return '<a href="javascript:void(0);" onclick=layui.coreHelper.viewImage("' + d.storeBanner + '")><image style="max-width:28px;max-height:28px;" src="' + d.storeBanner + '" /></a>';
} else {
@@ -206,6 +233,11 @@
}
}
},
+ { field: 'distributionAchievementTotals', title: '鍘嗗彶鎺ㄥ箍璐规�诲拰(鍏�)', sort: false, width: 133 },
+ { field: 'distributionYingLingTotals', title: '搴旈浣i噾(鍏�)', sort: false, width: 133 },
+ { field: 'distributionKeLingTotals', title: '鍙浣i噾(鍏�)', sort: false, width: 133 },
+ { field: 'distributionYiJieSuanTotals', title: '宸茬粨绠椾剑閲�(鍏�)', sort: false, width: 133 },
+
//{ field: 'storeDesc', title: '搴楅摵绠�浠�', sort: false, width: 105 },
{
field: 'verifyStatus', title: '瀹℃牳鐘舵��', sort: false, width: 80, templet: function (data) {
@@ -216,6 +248,7 @@
}
}
},
+
{ field: 'createTime', title: '鍒涘缓鏃堕棿', width: 130, sort: false },
{ field: 'updateTime', title: '鏇存柊鏃堕棿', width: 130, sort: false },
{ field: 'verifyTime', title: '瀹℃牳鏃堕棿', width: 130, sort: false },
@@ -259,6 +292,8 @@
doEdit(obj)
} else if (obj.event === 'qrcode') {
doQrCode(obj)
+ } else if (obj.event === 'achievement') {
+ achievement(obj)
}
});
//鎵ц鍒涘缓鎿嶄綔
@@ -268,7 +303,7 @@
admin.popup({
shadeClose: false,
title: '鍒涘缓鏁版嵁',
- area: ['640px', '300px'],
+ area: ['640px', '500px'],
id: 'LAY-popup-CoreCmsDistribution-create',
success: function (layero, index) {
view(this.id).render('distribution/distributor/create', { data: e.data }).done(function () {
@@ -276,7 +311,10 @@
form.on('submit(LAY-app-CoreCmsDistribution-createForm-submit)',
function (data) {
var field = data.field; //鑾峰彇鎻愪氦鐨勫瓧娈�
-
+ field.areaCode = GetAreaCodeFormFileid(
+ field,
+ "CreatDistrbutorSelAreaCode"
+ );
if (debug) { console.log(field); } //寮�鍚皟璇曡繑鍥炴暟鎹�
//鎻愪氦 Ajax 鎴愬姛鍚庯紝鍏抽棴褰撳墠寮瑰眰骞堕噸杞借〃鏍�
coreHelper.Post("Api/CoreCmsDistribution/DoCreate", field, function (e) {
@@ -311,7 +349,7 @@
admin.popup({
shadeClose: false,
title: '缂栬緫鏁版嵁',
- area: ['640px', '300px'],
+ area: ['640px', '350px'],
id: 'LAY-popup-CoreCmsDistribution-edit',
success: function (layero, index) {
view(this.id).render('distribution/distributor/edit', { data: e.data }).done(function () {
@@ -357,13 +395,44 @@
function doDetails(obj) {
coreHelper.Post("Api/CoreCmsDistribution/GetDetails", { id: obj.data.id }, function (e) {
if (e.code === 0) {
+ debugger
+ if(e.data.model.idCradNumber)
+ {
+
+ lisimg=e.data.model.idCradNumber.split(',');
+ e.data.lisimg1=lisimg[0];
+
+ e.data.lisimg2=lisimg[1];
+ }
+ admin.popup({
+ shadeClose: false,
+ title: '鏌ョ湅璇︽儏',
+ area: ['700px', '600px'],
+ id: 'LAY-popup-CoreCmsDistribution-details',
+ success: function (layero, index) {
+ view(this.id).render('distribution/distributor/details', { data: e.data }).done(function () {
+ form.render();
+ });
+ // 绂佹寮圭獥鍑虹幇婊氬姩鏉�
+ $(layero).children('.layui-layer-content').css('overflow', 'visible');
+ }
+ });
+ } else {
+ layer.msg(e.msg);
+ }
+ });
+ }
+ //鎵ц棰勮鎿嶄綔
+ function achievement(obj) {
+ coreHelper.Post("Api/CoreCmsDistribution/GetDetailsAchievement", { id: obj.data.id }, function (e) {
+ if (e.code === 0) {
admin.popup({
shadeClose: false,
title: '鏌ョ湅璇︽儏',
area: ['700px', '550px'],
- id: 'LAY-popup-CoreCmsDistribution-details',
+ id: 'LAY-popup-CoreCmsDistribution-detailsAchievement',
success: function (layero, index) {
- view(this.id).render('distribution/distributor/details', { data: e.data }).done(function () {
+ view(this.id).render('distribution/distributor/achievementdetails', { data: e.data }).done(function () {
form.render();
});
// 绂佹寮圭獥鍑虹幇婊氬姩鏉�
--
Gitblit v1.9.1