|
@@ -31,7 +31,7 @@
|
|
<!-- D值品编码 -->
|
|
<!-- D值品编码 -->
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
<label>D值品编码:</label>
|
|
<label>D值品编码:</label>
|
|
- <input type="text" class="styled-input" placeholder="请输入D值品编码" name="dValueCode"/>
|
|
|
|
|
|
+ <input type="text" class="styled-input" placeholder="请输入D值品编码" name="d_value_code"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- D值品名称 -->
|
|
<!-- D值品名称 -->
|
|
@@ -63,7 +63,13 @@
|
|
<label>厂家简称:</label>
|
|
<label>厂家简称:</label>
|
|
<input type="text" class="styled-input" placeholder="请输入厂家简称" name="manufacturerShortName"/>
|
|
<input type="text" class="styled-input" placeholder="请输入厂家简称" name="manufacturerShortName"/>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <div class="customize-form-group">
|
|
|
|
+ <label>是否关联D值:</label>
|
|
|
|
+ <select name="isdvalue" class="styled-input" th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
|
|
|
|
+ <option value="">请选择</option>
|
|
|
|
+ <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
<!-- 是否随访管理品 -->
|
|
<!-- 是否随访管理品 -->
|
|
<div class="customize-form-group">
|
|
<div class="customize-form-group">
|
|
<label>是否随访管理品:</label>
|
|
<label>是否随访管理品:</label>
|
|
@@ -127,30 +133,30 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ <div class="container-div">
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add">
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:user:add">
|
|
<i class="fa fa-plus"></i> 新增患者管理品
|
|
<i class="fa fa-plus"></i> 新增患者管理品
|
|
</a>
|
|
</a>
|
|
- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:user:edit">
|
|
|
|
- <i class="fa fa-edit"></i> 修改
|
|
|
|
- </a>
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add2()" shiro:hasPermission="system:user:add">
|
|
<a class="btn btn-success" onclick="$.operate.add2()" shiro:hasPermission="system:user:add">
|
|
<i class="fa fa-plus"></i> 新增复购配置
|
|
<i class="fa fa-plus"></i> 新增复购配置
|
|
</a>
|
|
</a>
|
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">-->
|
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">-->
|
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
|
<!-- </a>-->
|
|
<!-- </a>-->
|
|
-
|
|
|
|
|
|
+<!-- <a class="btn btn-success" onclick="orderColumns()">-->
|
|
|
|
+<!-- <i class="fa fa-refresh"></i> 恢复顺序-->
|
|
|
|
+<!-- </a>-->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="col-sm-12 select-table table-striped" style="width: 100%; overflow-x: auto;">
|
|
|
|
- <table id="bootstrap-table" class="fixed-layout-table"></table>
|
|
|
|
|
|
+ <div class="col-sm-12 select-table table-bordered" style="width: 100%; overflow-x: auto;">
|
|
|
|
+<!-- <p class="select-title">按住表格列拖拽</p>-->
|
|
|
|
+ <table id="bootstrap-table" class="fixed-layout-table"></table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: layout-latest-js" />
|
|
<th:block th:include="include :: layout-latest-js" />
|
|
<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
|
|
<th:block th:include="include :: bootstrap-table-fixed-columns-js" />
|
|
@@ -190,7 +196,7 @@
|
|
/*exportUrl: prefix + "/export",
|
|
/*exportUrl: prefix + "/export",
|
|
importUrl: prefix + "/importData",
|
|
importUrl: prefix + "/importData",
|
|
importTemplateUrl: prefix + "/importTemplate",*/
|
|
importTemplateUrl: prefix + "/importTemplate",*/
|
|
- sortName: "id",
|
|
|
|
|
|
+ sortName: "d_value_code",
|
|
sortOrder: "asc",
|
|
sortOrder: "asc",
|
|
modalName: "药品配置",
|
|
modalName: "药品配置",
|
|
modalName2: "复购配置",
|
|
modalName2: "复购配置",
|
|
@@ -204,48 +210,27 @@
|
|
fixedColumns: true,
|
|
fixedColumns: true,
|
|
//fixedNumber: 3,
|
|
//fixedNumber: 3,
|
|
fixedRightNumber: 1,
|
|
fixedRightNumber: 1,
|
|
- columns: [{
|
|
|
|
- checkbox: true
|
|
|
|
- },
|
|
|
|
|
|
+ columns: [
|
|
|
|
+ // {
|
|
|
|
+ // checkbox: true
|
|
|
|
+ // },
|
|
{ field: 'id', title: '主键', align: 'center', visible: false },
|
|
{ field: 'id', title: '主键', align: 'center', visible: false },
|
|
{ field: 'mdmCode', title: '药品编码', align: 'center' },
|
|
{ field: 'mdmCode', title: '药品编码', align: 'center' },
|
|
- { field: 'dValueCode', title: 'D值品编码', align: 'center' },
|
|
|
|
{
|
|
{
|
|
visible: editFlag == 'hidden' ? false : true,
|
|
visible: editFlag == 'hidden' ? false : true,
|
|
title: 'D值关联状态',
|
|
title: 'D值关联状态',
|
|
align: 'center',
|
|
align: 'center',
|
|
formatter: function (value, row, index) {
|
|
formatter: function (value, row, index) {
|
|
|
|
+ // 返回拼接后的字符串,既包含原始值也包含问号图标
|
|
return statusTools2(row);
|
|
return statusTools2(row);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
- { field: 'dValueCode', title: 'D值品编码', align: 'center' },
|
|
|
|
|
|
+ { field: 'd_value_code', title: 'D值品编码', align: 'center' },
|
|
{ field: 'dValueName', title: 'D值品名称', align: 'center' },
|
|
{ field: 'dValueName', title: 'D值品名称', align: 'center' },
|
|
{ field: 'genericName', title: '通用名', align: 'center' },
|
|
{ field: 'genericName', title: '通用名', align: 'center' },
|
|
{ field: 'productName', title: '商品名', align: 'center' },
|
|
{ field: 'productName', title: '商品名', align: 'center' },
|
|
- {
|
|
|
|
- visible: editFlag == 'hidden' ? false : true,
|
|
|
|
- title: '配置状态',
|
|
|
|
- align: 'center',
|
|
|
|
- formatter: function (value, row, index) {
|
|
|
|
- return statusTools(row);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
{ field: 'specification', title: '规格', align: 'center' },
|
|
{ field: 'specification', title: '规格', align: 'center' },
|
|
{ field: 'packaging', title: '包装', align: 'center' },
|
|
{ field: 'packaging', title: '包装', align: 'center' },
|
|
- // { field: 'status', title: '状态', align: 'center' ,
|
|
|
|
- // formatter: function(value, row, index) {
|
|
|
|
- // switch (value) {
|
|
|
|
- // case 0:
|
|
|
|
- // return '<span class=\"btn-danger">已停用</span>';
|
|
|
|
- // break;
|
|
|
|
- // case 1:
|
|
|
|
- // return '<span class=\"btn-primary">已启用</span>';
|
|
|
|
- // break;
|
|
|
|
- // default:
|
|
|
|
- // return '<span class=\"btn-warning">-</span>';
|
|
|
|
- // }
|
|
|
|
- // }},
|
|
|
|
{ field: 'manufacturerShortName', title: '厂家简称', align: 'center' },
|
|
{ field: 'manufacturerShortName', title: '厂家简称', align: 'center' },
|
|
{ field: 'isFollowUpManaged', title: '是否随访管理品', align: 'center',
|
|
{ field: 'isFollowUpManaged', title: '是否随访管理品', align: 'center',
|
|
formatter: function(value, row, index) {
|
|
formatter: function(value, row, index) {
|
|
@@ -301,27 +286,53 @@
|
|
} },
|
|
} },
|
|
{ field: 'administrationMethod', title: '给药方式', align: 'center' },
|
|
{ field: 'administrationMethod', title: '给药方式', align: 'center' },
|
|
{ field: 'enterpriseFlowManagement', title: '企业流向管理方式', align: 'center' },
|
|
{ field: 'enterpriseFlowManagement', title: '企业流向管理方式', align: 'center' },
|
|
- { field: 'updatedTime', title: '更新日期', align: 'center' },
|
|
|
|
|
|
+ { field: 'updatedTime', title: '管理品更新日期', align: 'center' },
|
|
|
|
+ { field: 'createdTime', title: '管理品创建时间', align: 'center' },
|
|
|
|
+ { field: 'dvcreatedTime', title: 'D值关联时间', align: 'center' },
|
|
|
|
+ { field: 'dvupdatedTime', title: 'D值更新时间', align: 'center' },
|
|
{ field: 'indicationDescription', title: '说明书适应症', align: 'center' },
|
|
{ field: 'indicationDescription', title: '说明书适应症', align: 'center' },
|
|
{ field: 'dosageAndAdministration', title: '用法用量', align: 'center' },
|
|
{ field: 'dosageAndAdministration', title: '用法用量', align: 'center' },
|
|
- { field: 'saleStatus', title: '销售状态', align: 'center' ,
|
|
|
|
- formatter: function(value, row, index) {
|
|
|
|
- switch (value) {
|
|
|
|
- case 0:
|
|
|
|
- return '停售';
|
|
|
|
- break;
|
|
|
|
- case 1:
|
|
|
|
- return '可售';
|
|
|
|
- break;
|
|
|
|
- default:
|
|
|
|
- return '-';
|
|
|
|
- }
|
|
|
|
- }},
|
|
|
|
- { field: 'createdBy', title: '创建人', align: 'center' },
|
|
|
|
- { field: 'createdTime', title: '创建时间', align: 'center' },
|
|
|
|
- { field: 'updatedBy', title: '更新人', align: 'center' },
|
|
|
|
{ field: 'manufacturer', title: '厂家', align: 'center' },
|
|
{ field: 'manufacturer', title: '厂家', align: 'center' },
|
|
- { field: 'productImagePath', title: '商品图片路径', align: 'center' },
|
|
|
|
|
|
+ { field: 'createdBy', title: '创建人', align: 'center' },
|
|
|
|
+ // {
|
|
|
|
+ // visible: editFlag == 'hidden' ? false : true,
|
|
|
|
+ // title: '配置状态',
|
|
|
|
+ // align: 'center',
|
|
|
|
+ // formatter: function (value, row, index) {
|
|
|
|
+ // return statusTools(row);
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // { field: 'status', title: '状态', align: 'center' ,
|
|
|
|
+ // formatter: function(value, row, index) {
|
|
|
|
+ // switch (value) {
|
|
|
|
+ // case 0:
|
|
|
|
+ // return '<span class=\"btn-danger">已停用</span>';
|
|
|
|
+ // break;
|
|
|
|
+ // case 1:
|
|
|
|
+ // return '<span class=\"btn-primary">已启用</span>';
|
|
|
|
+ // break;
|
|
|
|
+ // default:
|
|
|
|
+ // return '<span class=\"btn-warning">-</span>';
|
|
|
|
+ // }
|
|
|
|
+ // }},
|
|
|
|
+ // { field: 'saleStatus', title: '销售状态', align: 'center' ,
|
|
|
|
+ // formatter: function(value, row, index) {
|
|
|
|
+ // switch (value) {
|
|
|
|
+ // case 0:
|
|
|
|
+ // return '停售';
|
|
|
|
+ // break;
|
|
|
|
+ // case 1:
|
|
|
|
+ // return '可售';
|
|
|
|
+ // break;
|
|
|
|
+ // default:
|
|
|
|
+ // return '-';
|
|
|
|
+ // }
|
|
|
|
+ // }},
|
|
|
|
+ // { field: 'createdTime', title: '创建时间', align: 'center' },
|
|
|
|
+ // { field: 'updatedBy', title: '更新人', align: 'center' },
|
|
|
|
+ // { field: 'dvupdatedby', title: 'D值更新人', align: 'center' },
|
|
|
|
+ // { field: 'productImagePath', title: '商品图片路径', align: 'center' },
|
|
|
|
+
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
align: 'center',
|
|
align: 'center',
|
|
@@ -341,7 +352,34 @@
|
|
};
|
|
};
|
|
$.table.init(options);
|
|
$.table.init(options);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ function orderColumns() {
|
|
|
|
+ $('#bootstrap-table').bootstrapTable('orderColumns', {
|
|
|
|
+ id: 0,
|
|
|
|
+ mdmCode: 1,
|
|
|
|
+ 'D值关联状态': 2, // 注意:这个字段没有指定field属性,因此不能直接使用这个名称来排序。
|
|
|
|
+ d_value_code: 3,
|
|
|
|
+ dValueName: 4,
|
|
|
|
+ genericName: 5,
|
|
|
|
+ productName: 6,
|
|
|
|
+ specification: 7,
|
|
|
|
+ packaging: 8,
|
|
|
|
+ manufacturerShortName: 9,
|
|
|
|
+ isFollowUpManaged: 10,
|
|
|
|
+ isColdChainManaged: 11,
|
|
|
|
+ isRegisteredManaged: 12,
|
|
|
|
+ isCharityAidManaged: 13,
|
|
|
|
+ administrationMethod: 14,
|
|
|
|
+ enterpriseFlowManagement: 15,
|
|
|
|
+ updatedTime: 16,
|
|
|
|
+ createdTime: 17,
|
|
|
|
+ dvcreatedTime: 18,
|
|
|
|
+ dvupdatedTime: 19,
|
|
|
|
+ indicationDescription: 20,
|
|
|
|
+ dosageAndAdministration: 21,
|
|
|
|
+ manufacturer: 22,
|
|
|
|
+ createdBy: 23
|
|
|
|
+ })
|
|
|
|
+ }
|
|
/* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
/* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
function resetPre() {
|
|
function resetPre() {
|
|
resetDate();
|
|
resetDate();
|
|
@@ -376,13 +414,13 @@
|
|
/* D值关联和停用*/
|
|
/* D值关联和停用*/
|
|
function statusTools2(row) {
|
|
function statusTools2(row) {
|
|
if (row.dvalueStatus == '2') {
|
|
if (row.dvalueStatus == '2') {
|
|
- '<a class="btn btn-success btn-xs ' + editFlag + '" onclick="$.operate.edit2(\'' + row.id + '\')">去关联</a> |状态:未关联 ';
|
|
|
|
- }else if (row.dvalueStatus == 1){
|
|
|
|
- return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="stoped(\'' + row.id + '\')" style="color: green;"></i>启用';
|
|
|
|
- }else if (row.dvalueStatus == 0){
|
|
|
|
- return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="start(\'' + row.id + '\')" style="color: red;"></i>停止';
|
|
|
|
- } else{
|
|
|
|
- return '<a class="btn btn-success btn-xs ' + editFlag + '" onclick="$.operate.edit2(\'' + row.id + '\')">去关联</a> |状态:未关联 ';
|
|
|
|
|
|
+ return '<a class="btn btn-success btn-xs ' + editFlag + '" onclick="$.operate.edit2(\'' + row.id + '\')">去关联</a> |状态:未关联 ';
|
|
|
|
+ } else if (row.dvalueStatus == 1) {
|
|
|
|
+ return '<i class="fa fa-toggle-on text-info fa-2x" onclick="stoped(\'' + row.id + '\')" style="color: green; font-size: 16px;">启用中</i>';
|
|
|
|
+ } else if (row.dvalueStatus == 0) {
|
|
|
|
+ return '<i class="fa fa-toggle-off text-info fa-2x" onclick="start(\'' + row.id + '\')" style="color: red;font-size: 16px;">已停止</i>';
|
|
|
|
+ } else {
|
|
|
|
+ return '<a class="btn btn-success btn-xs ' + editFlag + '" onclick="$.operate.edit2(\'' + row.id + '\')">去关联</a> |状态:未关联 ';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* 停用 */
|
|
/* 停用 */
|
|
@@ -414,13 +452,13 @@
|
|
/* 启用关联 */
|
|
/* 启用关联 */
|
|
function start(id) {
|
|
function start(id) {
|
|
$.modal.confirm("确认要启用D值关联吗?", function() {
|
|
$.modal.confirm("确认要启用D值关联吗?", function() {
|
|
- $.operate.post(prefix + "/changedvalueStatus", { "id": id, "dvalueStatus": 1 });
|
|
|
|
|
|
+ $.operate.post(prefix + "/changesdvalueStatus", { "id": id, "dvalueStatus": 1 });
|
|
})
|
|
})
|
|
}
|
|
}
|
|
/* 停止关联 */
|
|
/* 停止关联 */
|
|
function stoped(id) {
|
|
function stoped(id) {
|
|
$.modal.confirm("确认要停用D值关联吗?", function() {
|
|
$.modal.confirm("确认要停用D值关联吗?", function() {
|
|
- $.operate.post(prefix + "/changedvalueStatus", { "id": id, "dvalueStatus": 0 });
|
|
|
|
|
|
+ $.operate.post(prefix + "/changesdvalueStatus", { "id": id, "dvalueStatus": 0 });
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -434,3 +472,4 @@
|
|
</body>
|
|
</body>
|
|
|
|
|
|
</html>
|
|
</html>
|
|
|
|
+//
|