|
@@ -25,14 +25,7 @@
|
|
|
<label>患者信息:</label>
|
|
|
<input type="text" class="styled-input" placeholder="请输入患者姓名或手机号" name="query"/>
|
|
|
</div>
|
|
|
- <div class="customize-form-group">
|
|
|
- <label>药品:</label>
|
|
|
- <input type="text" class="styled-input" name="genericName"/>
|
|
|
- </div>
|
|
|
- <div class="customize-form-group">
|
|
|
- <label>订单编号:</label>
|
|
|
- <input type="text" class="styled-input" name="orderId"/>
|
|
|
- </div>
|
|
|
+
|
|
|
<div class="customize-form-group">
|
|
|
<label>销售单号:</label>
|
|
|
<input type="text" class="styled-input" name="saleOrderNumber"/>
|
|
@@ -49,16 +42,9 @@
|
|
|
></option>
|
|
|
</select>
|
|
|
</div>
|
|
|
- <div class="customize-form-group">
|
|
|
- <label>配送方式</label>
|
|
|
- <select name="deliveryMethod" th:with="type=${@dict.getType('sys_select_delivery_method')}" class="styled-input">
|
|
|
- <option value="">全部</option>
|
|
|
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
|
|
|
- ></option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
+
|
|
|
<div class="customize-form-group select-time">
|
|
|
- <label>订单日期:</label>
|
|
|
+ <label>处方登记日期:</label>
|
|
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
|
|
|
<span>-</span>
|
|
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
|
|
@@ -74,7 +60,6 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
|
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="dtp:recipe:add">-->
|
|
|
<!-- <i class="fa fa-plus"></i> 处方登记APP-->
|
|
@@ -82,67 +67,14 @@
|
|
|
<a class="btn btn-success" onclick="$.operate.addTab2()" shiro:hasPermission="dtp:recipe:add">
|
|
|
<i class="fa fa-plus"></i> 新建登记
|
|
|
</a>
|
|
|
-<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="sdtp:recipe:remove">-->
|
|
|
-<!-- <i class="fa fa-remove"></i> 删除-->
|
|
|
-<!-- </a>-->
|
|
|
-<!-- <a class="btn btn-success" onclick="budan()">-->
|
|
|
-<!-- <i class="fa btn-primary"></i> 补单-->
|
|
|
-<!-- </a>
|
|
|
-<button type="button" onclick="budan()" class="btn-primary">补单</button>-->
|
|
|
-
|
|
|
</div>
|
|
|
-
|
|
|
<div class="col-sm-12 select-table table-striped" style="width: 100%; overflow-x: hidden;">
|
|
|
<table id="bootstrap-table" class="fixed-layout-table"></table>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div class="modal inmodal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
- <div class="modal-dialog">
|
|
|
- <form class="form-horizontal" id="form-budan-add">
|
|
|
- <div class="modal-content animated bounceInRight">
|
|
|
- <div class="modal-header">
|
|
|
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span>
|
|
|
- </button>
|
|
|
- <h4 class="modal-title">请输入补录销售单号</h4>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <div class="customize-search-form">
|
|
|
- <div class="rows">
|
|
|
- <div class="input-group">
|
|
|
- 一次仅补录一个处方单,多个销售单号请分别依次补录
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="rows">
|
|
|
- <div class="input-group">
|
|
|
- <input type="text" placeholder="请输入订单号编号" class="styled-input" style="width: 400px; height: 40px;" id="saleOrderNumber" name="saleOrderNumber">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="modalbudan" id="budanshibai">
|
|
|
- <div class="rows" style="text-align: center">
|
|
|
- 补单失败,功能未启用,请及时查看数据是否已全部同步!
|
|
|
- </div>
|
|
|
- <div class="rows">
|
|
|
- 系统未找到该订单,已通知研发同学排查,感谢操作
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
|
|
|
- <button type="button" class="btn btn-primary" onclick="saveBudDan()">补单</button>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
<th:block th:include="include :: layout-latest-js" />
|
|
@@ -153,7 +85,6 @@
|
|
|
var removeFlag = [[${@permission.hasPermi('system:user:remove')}]];
|
|
|
var prefix = ctx + "dtp/recipe";
|
|
|
|
|
|
-
|
|
|
$(function() {
|
|
|
var panehHidden = false;
|
|
|
if ($(this).width() < 1590) {
|
|
@@ -191,216 +122,200 @@
|
|
|
rowNumbers: true,
|
|
|
showFooter:true, //是否显示表格底部区域。
|
|
|
clickToSelect: true, //是否启用点击行时选中整行的功能。
|
|
|
- singleSelect: false, //是否仅允许选择一行
|
|
|
+ singleSelect: true, //是否仅允许选择一行
|
|
|
fixedColumns: true,
|
|
|
//fixedNumber: 3,
|
|
|
fixedRightNumber: 1,
|
|
|
- columns: [{
|
|
|
- checkbox: true
|
|
|
- },
|
|
|
- {
|
|
|
- field: "id",
|
|
|
- title: "id",
|
|
|
- //hidden:false
|
|
|
- visible: false,
|
|
|
- },
|
|
|
- {
|
|
|
- field: "orderId",
|
|
|
- title: "订单编号"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "saleOrderNumber",
|
|
|
- title: "销售单号"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "genericName",
|
|
|
- title: "药品通用名"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "productName",
|
|
|
- title: "商品名",
|
|
|
- },
|
|
|
- {
|
|
|
- field: "specification",
|
|
|
- title: "规格"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "quantity",
|
|
|
- title: "数量"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "manufacturer",
|
|
|
- title: "厂家"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "mdmCode",
|
|
|
- title: "MDM编码"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "posMemberName",
|
|
|
- title: "POS会员姓名"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "posMemberPhone",
|
|
|
- title: "POS会员手机号"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "prescriptionType",
|
|
|
- title: "处方类型",
|
|
|
- formatter: function(value, row, index) {
|
|
|
- switch (value) {
|
|
|
- case 1:
|
|
|
- return "电子处方";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- return "纸质处方";
|
|
|
- break;
|
|
|
- default:
|
|
|
- return "";
|
|
|
- }
|
|
|
+ columns: [{
|
|
|
+ checkbox: true
|
|
|
+ }, {
|
|
|
+ field: "id",
|
|
|
+ title: "ID",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "prescriptionNumber",
|
|
|
+ title: "处方单号"
|
|
|
+ }, {
|
|
|
+ field: "saleOrderNumber",
|
|
|
+ title: "销售单号"
|
|
|
+ }, {
|
|
|
+ field: "hospital",
|
|
|
+ title: "医院"
|
|
|
+ }, {
|
|
|
+ field: "department",
|
|
|
+ title: "科室"
|
|
|
+ }, {
|
|
|
+ field: "prescribingDoctor",
|
|
|
+ title: "处方医生"
|
|
|
+ }, {
|
|
|
+ field: "attendingDoctor",
|
|
|
+ title: "主管医生"
|
|
|
+ }, {
|
|
|
+ field: "patientName",
|
|
|
+ title: "患者姓名"
|
|
|
+ }, {
|
|
|
+ field: "gender",
|
|
|
+ title: "性别"
|
|
|
+ }, {
|
|
|
+ field: "age",
|
|
|
+ title: "年龄"
|
|
|
+ } ,{
|
|
|
+ field: "patientPhone",
|
|
|
+ title: "患者手机号"
|
|
|
+ }, {
|
|
|
+ field: "storeName",
|
|
|
+ title: "建档门店",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "registrant",
|
|
|
+ title: "登记人"
|
|
|
+ }, {
|
|
|
+ field: "reviewingName",
|
|
|
+ title: "审核药师姓名"
|
|
|
+ }, {
|
|
|
+ field: "prescriptionType",
|
|
|
+ title: "处方类型",
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ switch (value) {
|
|
|
+ case 1:
|
|
|
+ return "电子处方";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ return "纸质处方";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return "";
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- field: "orderTime",
|
|
|
- title: "订单时间"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "prescriptionNumber",
|
|
|
- title: "处方单号"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "hospital",
|
|
|
- title: "医院"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "department",
|
|
|
- title: "科室"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "doctor",
|
|
|
- title: "医生"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "patientName",
|
|
|
- title: "患者姓名"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "patientPhone",
|
|
|
- title: "手机号"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "storeName",
|
|
|
- title: "门店"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "registrar",
|
|
|
- title: "登记人"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "completionTime",
|
|
|
- title: "完成时间"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "lastUpdated",
|
|
|
- title: "最后更新时间"
|
|
|
- },
|
|
|
- {
|
|
|
- field: "deliveryMethod",
|
|
|
- title: "配送方式",
|
|
|
- formatter: function(value, row, index) {
|
|
|
- switch (value) {
|
|
|
- case "1":
|
|
|
- return "门店自取";
|
|
|
- break;
|
|
|
- case "2":
|
|
|
- return "配送";
|
|
|
- break;
|
|
|
- default:
|
|
|
- return "";
|
|
|
- }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ field: "status",
|
|
|
+ title: "状态",
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ switch (value) {
|
|
|
+ case 1:
|
|
|
+ return "订单已完成";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ return "待上传处方";
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ return "待确认信息";
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ return "待处方登记";
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ return "待订单销售";
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ return "待绑定患者";
|
|
|
+ break;
|
|
|
+ case 7:
|
|
|
+ return "处方已完成";
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ return "订单已退款";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return "待确认信息";
|
|
|
}
|
|
|
- },
|
|
|
- // {
|
|
|
- // field: "paymentCode",
|
|
|
- // title: "付款代码"
|
|
|
- // },
|
|
|
- // {
|
|
|
- // field: "paymentMethod",
|
|
|
- // title: "付款方式"
|
|
|
- // },
|
|
|
- {
|
|
|
- field: "status",
|
|
|
- title: "状态",
|
|
|
- formatter: function(value, row, index) {
|
|
|
- switch (value) {
|
|
|
- case 1:
|
|
|
- return "订单已完成";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- return "待上传处方";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- return "待确认信息";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- return "待处方登记";
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- return "待订单销售";
|
|
|
- break;
|
|
|
- case 6:
|
|
|
- return "待绑定患者";
|
|
|
- break;
|
|
|
- case 7:
|
|
|
- return "处方已完成";
|
|
|
- break;
|
|
|
- case 8:
|
|
|
- return "订单已退款";
|
|
|
- break;
|
|
|
- default:
|
|
|
- return "待确认信息";
|
|
|
- }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ field: "createdTime",
|
|
|
+ title: "创建时间"
|
|
|
+ }, {
|
|
|
+ field: "updatedTime",
|
|
|
+ title: "最后更新时间",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "prescriptionImageUrl",
|
|
|
+ title: "处方图片URL",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "invoiceImageUrl",
|
|
|
+ title: "发票图片URL",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "prescriptionIssueDate",
|
|
|
+ title: "处方开具日期"
|
|
|
+ }, {
|
|
|
+ field: "saleDate",
|
|
|
+ title: "销售日期"
|
|
|
+ }, {
|
|
|
+ field: "registrationDate",
|
|
|
+ title: "处方登记日期"
|
|
|
+ }, {
|
|
|
+ field: "drugVarietyCount",
|
|
|
+ title: "药品品种数",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "drugQuantity",
|
|
|
+ title: "处方取药数量"
|
|
|
+ }, {
|
|
|
+ field: "invoiceCode",
|
|
|
+ title: "发票编码",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "drugsLinkId",
|
|
|
+ title: "处方关联的处方购药药表ID",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "reviewStatus",
|
|
|
+ title: "处方审核状态",
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ switch (value) {
|
|
|
+ case 1:
|
|
|
+ return "审核通过";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ return "待审核";
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ return "审核未通过";
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ return "待订单销售";
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return "待确认信息";
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- field: "createTime",
|
|
|
- title: "创建时间"
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- align: 'center',
|
|
|
- formatter: function(value, row, index) {
|
|
|
- if (row.id) {
|
|
|
- var actions = [];
|
|
|
- actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
- actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
|
|
|
- return actions.join('');
|
|
|
- } else {
|
|
|
- return "";
|
|
|
- }
|
|
|
- }
|
|
|
- }]
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ field: "source",
|
|
|
+ title: "处方来源",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "drugRoute",
|
|
|
+ title: "用药途径",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "storeId",
|
|
|
+ title: "建档门店ID",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ field: "remarks",
|
|
|
+ title: "备注",
|
|
|
+ visible: false,
|
|
|
+ }, {
|
|
|
+ title: '操作',
|
|
|
+ align: 'center',
|
|
|
+ width: 165,
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ if (row.id) {
|
|
|
+ var actions = [];
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
+ actions.push('<a class="btn btn-warning btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.view(\'' + row.id + '\')"><i class="fa fa-eye"></i>详情</a> ');
|
|
|
+ actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
|
|
|
+ return actions.join('');
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
};
|
|
|
$.table.init(options);
|
|
|
}
|
|
|
|
|
|
- function queryDeptTree()
|
|
|
- {
|
|
|
- var url = ctx + "dtp/recipe/deptTreeData";
|
|
|
- var options = {
|
|
|
- url: url,
|
|
|
- expandLevel: 2,
|
|
|
- onClick : zOnClick
|
|
|
- };
|
|
|
- $.tree.init(options);
|
|
|
-
|
|
|
- function zOnClick(event, treeId, treeNode) {
|
|
|
- $("#deptId").val(treeNode.id);
|
|
|
- $("#parentId").val(treeNode.pId);
|
|
|
- $.table.search();
|
|
|
- }
|
|
|
- }
|
|
|
/* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
|
function resetPre() {
|
|
|
resetDate();
|
|
@@ -410,35 +325,6 @@
|
|
|
$(".curSelectedNode").removeClass("curSelectedNode");
|
|
|
$.table.search();
|
|
|
}
|
|
|
- function budan(){
|
|
|
- $('#myModal').modal('show');
|
|
|
- }
|
|
|
- function saveBudDan(){
|
|
|
- if ($.validate.form("form-budan-add")) {
|
|
|
- var data = $("#form-budan-add").serializeArray();
|
|
|
- var saleOrderNumber= $("#saleOrderNumber").val();
|
|
|
- console.log("saleOrderNumber="+saleOrderNumber);
|
|
|
- console.log("data="+data);
|
|
|
- // $.ajax({
|
|
|
- // cache: true,
|
|
|
- // type: "POST",
|
|
|
- // url: prefix + "/budanSelect",
|
|
|
- // data: data,
|
|
|
- // async: false,
|
|
|
- // error: function (data) {
|
|
|
- // $.modal.alertError(data.msg);
|
|
|
- // },
|
|
|
- // success: function (data) {
|
|
|
- // if(data.code==0){
|
|
|
- // $('#budanshibai').hide();
|
|
|
- // }else{
|
|
|
- // $('#budanshibai').show();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
- }
|
|
|
- $('#budanshibai').show();
|
|
|
- }
|
|
|
|
|
|
</script>
|
|
|
</body>
|