<title>铺货</title>
|
<!--当前位置开始-->
|
<div class="layui-card layadmin-header">
|
<div class="layui-breadcrumb" lay-filter="breadcrumb">
|
<script type="text/html" template lay-done="layui.data.updateMainBreadcrumb();">
|
</script>
|
</div>
|
</div>
|
<!--当前位置结束-->
|
<style>
|
/* 重写样式 */
|
</style>
|
<script type="text/html" template lay-type="Post" lay-url="Api/Puhuo/GetIndexGroup" lay-done="layui.data.done(d);">
|
|
</script>
|
<div class="table-body">
|
<table id="LAY-app-Puhuo-tableBox" lay-filter="LAY-app-Puhuo-tableBox"></table>
|
</div>
|
|
<script type="text/html" id="LAY-app-Puhuo-toolbar">
|
<div class="layui-form coreshop-toolbar-search-form">
|
<div class="layui-form-item">
|
|
<!--<div class="layui-inline">
|
<label class="layui-form-label" for="id">主键ID</label>
|
<div class="layui-input-inline">
|
<input type="text" name="id" placeholder="请输入主键ID" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="distributionId">经销商id</label>
|
<div class="layui-input-inline">
|
<input type="text" name="distributionId" placeholder="请输入经销商id" class="layui-input">
|
</div>
|
</div>-->
|
<div class="layui-inline">
|
<label class="layui-form-label" for="areaCode">商品类别</label>
|
<div class="layui-input-inline">
|
<!--<input type="text" name="areaCode" placeholder="请输入省" class="layui-input">-->
|
<select name="CategoryId" id="CategoryId">
|
<option value="0">请选择</option>
|
{{# layui.each(indexData.categories, function(index, item){ }}
|
<option value="{{ item.id }}">{{ item.name }}</option>
|
{{# }); }}
|
</select>
|
</div>
|
</div>
|
|
|
<!--<div class="layui-inline">
|
<label class="layui-form-label" for="distributionName">经销商</label>
|
<div class="layui-input-inline">
|
<input type="text" name="distributionName" placeholder="请输入经销商" class="layui-input">
|
</div>
|
</div>-->
|
<!--<div class="layui-inline">
|
<label class="layui-form-label" for="areaCodeName">区域名称</label>
|
<div class="layui-input-inline">
|
<input type="text" name="areaCodeName" placeholder="请输入区域名称" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="CategoryId">商品分类id</label>
|
<div class="layui-input-inline">
|
<input type="text" name="CategoryId" placeholder="请输入商品分类id" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="CategoryName">商品分类</label>
|
<div class="layui-input-inline">
|
<input type="text" name="CategoryName" placeholder="请输入商品分类" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="goodsId">商品id</label>
|
<div class="layui-input-inline">
|
<input type="text" name="goodsId" placeholder="请输入商品id" class="layui-input">
|
</div>
|
</div>-->
|
|
<div class="layui-inline">
|
<label class="layui-form-label" for="goodsName">商品名称</label>
|
<div class="layui-input-inline">
|
<input type="text" name="goodsName" placeholder="请输入商品名称" class="layui-input">
|
</div>
|
</div>
|
|
<div class="layui-inline">
|
<label class="layui-form-label" for="productsName">货品编号</label>
|
<div class="layui-input-inline">
|
<input type="text" name="productsName" placeholder="请输入货品编号" class="layui-input">
|
</div>
|
</div>
|
<!--
|
<div class="layui-inline">
|
<label class="layui-form-label" for="productsId">货品id</label>
|
<div class="layui-input-inline">
|
<input type="text" name="productsId" placeholder="请输入货品id" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="spesDesc">货品规格</label>
|
<div class="layui-input-inline">
|
<input type="text" name="spesDesc" placeholder="请输入货品规格" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="price">货品价格</label>
|
<div class="layui-input-inline">
|
<input type="text" name="price" placeholder="请输入货品价格" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="nums">数量</label>
|
<div class="layui-input-inline">
|
<input type="text" name="nums" placeholder="请输入数量" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="amount">金额</label>
|
<div class="layui-input-inline">
|
<input type="text" name="amount" placeholder="请输入金额" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="createTime">建立时间</label>
|
<div class="layui-input-inline" style="width: 260px;">
|
<input type="text" name="createTime" id="searchTime-Puhuo-createTime" placeholder="请输入建立时间" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="upDataTime">修改时间</label>
|
<div class="layui-input-inline" style="width: 260px;">
|
<input type="text" name="upDataTime" id="searchTime-Puhuo-upDataTime" placeholder="请输入修改时间" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="createBy">创建人</label>
|
<div class="layui-input-inline">
|
<input type="text" name="createBy" placeholder="请输入创建人" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="upDataBy">修改人</label>
|
<div class="layui-input-inline">
|
<input type="text" name="upDataBy" placeholder="请输入修改人" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label" for="isdelete">删除标志</label>
|
<div class="layui-input-inline">
|
<select name="isdelete">
|
<option value="">请选择</option>
|
<option value="True">是</option>
|
<option value="False">否</option>
|
</select>
|
</div>
|
</div>-->
|
<div class="layui-inline">
|
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="LAY-app-Puhuo-search"><i class="layui-icon layui-icon-search"></i>筛选</button>
|
</div>
|
</div>
|
</div>
|
</script>
|
|
<script type="text/html" id="LAY-app-Puhuo-pagebar">
|
<div class="layui-btn-container">
|
<!--<button class="layui-btn layui-btn-sm" lay-event="addData"><i class="layui-icon layui-icon-add-1"></i>添加数据</button>-->
|
<!--<button class="layui-btn layui-btn-sm" lay-event="batchDelete"><i class="layui-icon layui-icon-delete"></i>批量删除</button>-->
|
<button class="layui-btn layui-btn-sm" lay-event="selectExportExcel"><i class="layui-icon layui-icon-add-circle"></i>选择导出</button>
|
<button class="layui-btn layui-btn-sm" lay-event="queryExportExcel"><i class="layui-icon layui-icon-download-circle"></i>查询导出</button>
|
</div>
|
</script>
|
|
<script type="text/html" id="LAY-app-Puhuo-tableBox-bar">
|
<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" lay-event="edittui">退货</a>-->
|
<!--<a class="layui-btn layui-btn-danger layui-btn-xs" data-dropdown="#PuhuoTbDelDrop{{d.LAY_INDEX}}" no-shade="true">删除</a>-->
|
<div class="dropdown-menu-nav dropdown-popconfirm dropdown-top-right layui-hide" id="PuhuoTbDelDrop{{d.LAY_INDEX}}"
|
style="max-width: 200px;white-space: normal;min-width: auto;margin-left: 10px;">
|
<div class="dropdown-anchor"></div>
|
<div class="dropdown-popconfirm-title">
|
<i class="layui-icon layui-icon-help"></i>
|
确定要删除吗?
|
</div>
|
<div class="dropdown-popconfirm-btn">
|
<a class="layui-btn layui-btn-primary cursor" btn-cancel>取消</a>
|
<a class="layui-btn layui-btn-normal cursor" lay-event="del">确定</a>
|
</div>
|
</div>
|
</script>
|
|
<script>
|
var indexData;
|
var debug= layui.setter.debug;
|
layui.data.done = function (d) {
|
//开启调试情况下获取接口赋值数据
|
if (debug) { console.log(d); }
|
|
indexData = d.data;
|
layui.use(['index', 'table', 'laydate', 'util', 'coredropdown', 'coreHelper'],
|
function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, table = layui.table
|
, form = layui.form
|
, laydate = layui.laydate
|
, setter = layui.setter
|
, coreHelper = layui.coreHelper
|
, util = layui.util
|
, view = layui.view;
|
|
var searchwhere;
|
//监听搜索
|
form.on('submit(LAY-app-Puhuo-search)',
|
function(data) {
|
var field = data.field;
|
searchwhere = field;
|
//执行重载
|
table.reloadData('LAY-app-Puhuo-tableBox',{ where: field });
|
});
|
//数据绑定
|
table.render({
|
elem: '#LAY-app-Puhuo-tableBox',
|
url: layui.setter.apiUrl + 'Api/Puhuo/GetPageListGroup',
|
method: 'POST',
|
toolbar: '#LAY-app-Puhuo-toolbar',
|
pagebar: '#LAY-app-Puhuo-pagebar',
|
className: 'pagebarbox',
|
defaultToolbar: ['filter', 'print', 'exports'],
|
height: 'full-127',//面包屑142px,搜索框4行172,3行137,2行102,1行67
|
page: true,
|
limit: 30,
|
limits: [10, 15, 20, 25, 30, 50, 100, 200],
|
text: {none: '暂无相关数据'},
|
cols: [
|
[
|
{ type: "checkbox", fixed: "left" },
|
{ type: 'numbers', title: '序号', width: 60, sort: false },
|
/* { field: 'id', title: '主键ID', width: 60, sort: false},*/
|
/* { field: 'areaCodeName', title: '区域名称', sort: false, width: 165 },*/
|
/* { field: 'distributionId', title: '经销商id', sort: false,width: 105 },*/
|
/* { field: 'distributionName', title: '经销商', sort: false, width: 165 },*/
|
/* { field: 'areaCode', title: '区域', sort: false,width: 105 },*/
|
|
/* { field: 'categoryId', title: '商品分类id', sort: false,width: 105 },*/
|
{ field: 'categoryName', title: '商品类别', sort: false, width: 185 },
|
/* { field: 'goodsId', title: '商品id', sort: false,width: 105 },*/
|
{ field: 'goodsName', title: '商品名称', sort: false, width: 185 },
|
/* { field: 'productsId', title: '货品id', sort: false,width: 105 },*/
|
{ field: 'productsName', title: '货品编号', sort: false, width: 185 },
|
/* { field: 'spesDesc', title: '货品规格', sort: false,width: 105 },*/
|
{ field: 'nums', title: '数量', sort: false, width: 185 },
|
{ field: 'price', title: '单价', sort: false, width: 185 },
|
|
{ field: 'amount', title: '金额', sort: false, width: 185 },
|
{ field: 'tiaozhengnums', title: '经销商数量', sort: false, width: 185 },
|
//{ field: 'createTime', title: '建立时间', width: 130, sort: false},
|
//{ field: 'upDataTime', title: '修改时间', width: 130, sort: false},
|
//{ field: 'createBy', title: '创建人', sort: false,width: 105 },
|
//{ field: 'upDataBy', title: '修改人', sort: false,width: 105 },
|
//{ field: 'isdelete', title: '删除标志', width: 95, templet: '#switch_isdelete', sort: false , unresize: true},
|
{ width: 230, align: 'center', title:'操作', fixed: 'right', toolbar: '#LAY-app-Puhuo-tableBox-bar' }
|
]
|
]
|
});
|
//监听排序事件
|
table.on('sort(LAY-app-Puhuo-tableBox)', function(obj){
|
table.reloadData('LAY-app-Puhuo-tableBox', {
|
initSort: obj, //记录初始排序,如果不设的话,将无法标记表头的排序状态。
|
where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式)
|
orderField: obj.field, //排序字段
|
orderDirection: obj.type //排序方式
|
}
|
});
|
});
|
//监听行双击事件
|
table.on('rowDouble(LAY-app-Puhuo-tableBox)', function (obj) {
|
//查看详情
|
doDetails(obj);
|
});
|
//头工具栏事件
|
table.on('pagebar(LAY-app-Puhuo-tableBox)', function (obj) {
|
var checkStatus = table.checkStatus(obj.config.id);
|
switch (obj.event) {
|
case 'addData':
|
doCreate();
|
break;
|
case 'batchDelete':
|
doBatchDelete(checkStatus);
|
break;
|
case 'selectExportExcel':
|
doSelectExportExcel(checkStatus);
|
break;
|
case 'queryExportExcel':
|
doQueryExportexcel();
|
break;
|
};
|
});
|
//监听工具条
|
table.on('tool(LAY-app-Puhuo-tableBox)',
|
function(obj) {
|
if (obj.event === 'detail') {
|
doDetails(obj);
|
} else if (obj.event === 'del') {
|
doDelete(obj);
|
} else if (obj.event === 'edit') {
|
doEdit(obj)
|
} else if (obj.event === 'edittui') {
|
doEdittui(obj)
|
}
|
|
});
|
//执行创建操作
|
function doCreate(){
|
coreHelper.Post("Api/Puhuo/GetCreate", null, function (e) {
|
if (e.code === 0) {
|
admin.popup({
|
shadeClose: false,
|
title: '创建数据',
|
area: ['1200px', '90%'],
|
id: 'LAY-popup-Puhuo-create',
|
success: function (layero, index) {
|
view(this.id).render('baifenbingfa/Puhuo/create', { data: e.data }).done(function () {
|
//监听提交
|
form.on('submit(LAY-app-Puhuo-createForm-submit)',
|
function(data) {
|
var field = data.field; //获取提交的字段
|
|
field.isdelete = field.isdelete == 'on';
|
|
if (debug) { console.log(field); } //开启调试返回数据
|
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
coreHelper.Post("Api/Puhuo/DoCreate", field, function (e) {
|
console.log(e)
|
if (e.code === 0) {
|
layui.table.reloadData('LAY-app-Puhuo-tableBox'); //重载表格
|
layer.close(index); //再执行关闭
|
layer.msg(e.msg);
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
});
|
});
|
// 禁止弹窗出现滚动条
|
$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
}
|
, btn: ['确定', '取消']
|
, yes: function (index, layero) {
|
layero.contents().find("#LAY-app-Puhuo-createForm-submit").click();
|
}
|
});
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
}
|
//执行编辑操作
|
function doEdit(obj){
|
coreHelper.Post("Api/Puhuo/GetEdit", { id: obj.data.id, jintui: 1 }, function (e) {
|
if (e.code === 0) {
|
admin.popup({
|
shadeClose: false,
|
title: '铺货',
|
area: ['1200px', '90%'],
|
id: 'LAY-popup-Puhuo-edit',
|
success: function (layero, index) {
|
view(this.id).render('baifenbingfa/Puhuo/edit', { data: e.data }).done(function () {
|
//监听提交
|
form.on('submit(LAY-app-Puhuo-editForm-submit)',
|
function(data) {
|
var field = data.field; //获取提交的字段
|
|
field.isdelete = field.isdelete == 'on';
|
|
if (debug) { console.log(field); } //开启调试返回数据
|
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
coreHelper.Post("Api/Puhuo/DoEdit", field, function (e) {
|
console.log(e)
|
if (e.code === 0) {
|
layui.table.reloadData('LAY-app-Puhuo-tableBox'); //重载表格
|
layer.close(index); //再执行关闭
|
layer.msg(e.msg);
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
});
|
})
|
//// 禁止弹窗出现滚动条
|
//$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
}
|
, btn: ['确定', '取消']
|
, yes: function (index, layero) {
|
layero.contents().find("#LAY-app-Puhuo-editForm-submit").click();
|
}
|
});
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
}
|
|
|
//执行退货操作
|
function doEdittui(obj) {
|
coreHelper.Post("Api/Puhuo/GetEdit", { id: obj.data.id, jintui: 2 }, function (e) {
|
if (e.code === 0) {
|
admin.popup({
|
shadeClose: false,
|
title: '退货',
|
area: ['1200px', '90%'],
|
id: 'LAY-popup-Puhuo-edit',
|
success: function (layero, index) {
|
view(this.id).render('baifenbingfa/Puhuo/edit', { data: e.data }).done(function () {
|
//监听提交
|
form.on('submit(LAY-app-Puhuo-editForm-submit)',
|
function (data) {
|
var field = data.field; //获取提交的字段
|
|
field.isdelete = field.isdelete == 'on';
|
|
if (debug) { console.log(field); } //开启调试返回数据
|
//提交 Ajax 成功后,关闭当前弹层并重载表格
|
coreHelper.Post("Api/Puhuo/DoEdit", field, function (e) {
|
console.log(e)
|
if (e.code === 0) {
|
layui.table.reloadData('LAY-app-Puhuo-tableBox'); //重载表格
|
layer.close(index); //再执行关闭
|
layer.msg(e.msg);
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
});
|
})
|
//// 禁止弹窗出现滚动条
|
//$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
}
|
, btn: ['确定', '取消']
|
, yes: function (index, layero) {
|
layero.contents().find("#LAY-app-Puhuo-editForm-submit").click();
|
}
|
});
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
}
|
//执行预览操作
|
function doDetails(obj) {
|
coreHelper.Post("Api/Puhuo/GetDetails", { productsId: obj.data.productsId }, function (e) {
|
if (e.code === 0) {
|
admin.popup({
|
shadeClose: false,
|
title: '查看详情',
|
area: ['1200px', '90%'],
|
id: 'LAY-popup-Puhuo-details',
|
success: function (layero, index) {
|
view(this.id).render('baifenbingfa/Puhuo/details', { data: e.data }).done(function () {
|
form.render();
|
});
|
//// 禁止弹窗出现滚动条
|
//$(layero).children('.layui-layer-content').css('overflow', 'visible');
|
}
|
});
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
}
|
//执行单个删除
|
function doDelete(obj){
|
coreHelper.Post("Api/Puhuo/DoDelete", { id: obj.data.id }, function (e) {
|
if (debug) { console.log(e); } //开启调试返回数据
|
table.reloadData('LAY-app-Puhuo-tableBox');
|
layer.msg(e.msg);
|
});
|
}
|
|
// 监听提交事件
|
form.on('select(shengFilter)', function (data) {
|
var city = $("#sheng").val();
|
$.ajax({
|
type: "GET",
|
url: layui.setter.apiUrl + 'Api/CoreCmsPlanOrder/GetCityId?shengid=' + city,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
console.log(data.data);
|
var quxian = $("#shi");
|
quxian.find('option').remove();
|
var aaa = '<option value="0">请选择</option>';
|
quxian.append(aaa);
|
if (data.data.length > 0) {
|
for (var i = 0; i < data.data.length; i++) {
|
|
var o = '<option value="' + data.data[i].id + '" >' + data.data[i].name + '</option>';
|
quxian.append(o);
|
}
|
// 使用form.render方法重新渲染select
|
form.render('select');
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
// 监听提交事件
|
form.on('select(cityFilter)', function (data) {
|
var city = $("#shi").val();
|
$.ajax({
|
type: "GET",
|
url: layui.setter.apiUrl + 'Api/CoreCmsPlanOrder/GetAreaId?cityid=' + city,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
console.log(data.data);
|
var quxian = $("#quxian");
|
quxian.find('option').remove();
|
var aaa = '<option value="0">请选择</option>';
|
quxian.append(aaa);
|
if (data.data.length > 0) {
|
for (var i = 0; i < data.data.length; i++) {
|
|
var o = '<option value="' + data.data[i].id + '" >' + data.data[i].name + '</option>';
|
quxian.append(o);
|
}
|
// 使用form.render方法重新渲染select
|
form.render('select');
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
//执行批量删除
|
function doBatchDelete(checkStatus){
|
var checkData = checkStatus.data;
|
if (checkData.length === 0) {
|
return layer.msg('请选择要删除的数据');
|
}
|
layer.confirm('确定删除吗?删除后将无法恢复。',
|
function(index) {
|
var delidsStr = [];
|
layui.each(checkData,
|
function(index, item) {
|
delidsStr.push(item.id);
|
});
|
coreHelper.Post("Api/Puhuo/DoBatchDelete", { id: delidsStr }, function (e) {
|
if (debug) { console.log(e); } //开启调试返回数据
|
table.reloadData('LAY-app-Puhuo-tableBox');
|
layer.msg(e.msg);
|
});
|
});
|
}
|
//执行查询条件导出excel
|
function doQueryExportexcel(){
|
layer.confirm('确定根据当前的查询条件导出数据吗?',
|
function(index) {
|
var field = searchwhere;
|
coreHelper.PostForm("Api/Puhuo/QueryExportExcel", field, function (e) {
|
if (debug) { console.log(e); } //开启调试返回数据
|
if (e.code === 0) {
|
window.open(e.data);
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
});
|
}
|
//执行选择目录导出数据
|
function doSelectExportExcel(checkStatus){
|
var checkData = checkStatus.data;
|
if (checkData.length === 0) {
|
return layer.msg('请选择您要导出的数据');
|
}
|
layer.confirm('确定导出选择的内容吗?',
|
function(index) {
|
var delidsStr = [];
|
layui.each(checkData,
|
function(index, item) {
|
delidsStr.push(item.id);
|
});
|
layer.close(index);
|
coreHelper.Post("Api/Puhuo/SelectExportExcel", { id: delidsStr }, function (e) {
|
if (debug) { console.log(e); } //开启调试返回数据
|
if (e.code === 0) {
|
window.open(e.data);
|
} else {
|
layer.msg(e.msg);
|
}
|
});
|
});
|
}
|
|
|
laydate.render({
|
elem: '#searchTime-Puhuo-createTime',
|
type: 'datetime',
|
range: '到',
|
});
|
laydate.render({
|
elem: '#searchTime-Puhuo-upDataTime',
|
type: 'datetime',
|
range: '到',
|
});
|
|
//监听 表格复选框操作
|
|
layui.form.on('switch(switch_isdelete)', function (obj) {
|
coreHelper.Post("Api/Puhuo/DoSetisdelete", { id: this.value, data: obj.elem.checked }, function (e) {
|
if (debug) { console.log(e); } //开启调试返回数据
|
//table.reloadData('LAY-app-Puhuo-tableBox');
|
layer.msg(e.msg);
|
});
|
});
|
|
|
//重载form
|
form.render();
|
});
|
};
|
</script>
|
|
<!--设置删除标志-->
|
<script type="text/html" id="switch_isdelete">
|
<input type="checkbox" name="switch_isdelete" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="switch_isdelete" {{ d.isdelete ? 'checked' : '' }}>
|
</script>
|