Explorar el Código

update 查看页修改显示格式2

wangshuangpan hace 1 mes
padre
commit
97c467f680

+ 60 - 14
health-admin/src/main/resources/templates/dtp/recipe/recipe.html

@@ -198,7 +198,19 @@
 					},
 					},
 					{
 					{
 						field: "prescriptionType",
 						field: "prescriptionType",
-						title: "处方类型"
+						title: "处方类型",
+						formatter: function(value, row, index) {
+							switch (value) {
+								case "1":
+									return "电子处方";
+									break;
+								case "2":
+									return "纸质处方";
+									break;
+								default:
+									return "";
+							}
+						}
 					},
 					},
 					{
 					{
 						field: "orderTime",
 						field: "orderTime",
@@ -244,10 +256,22 @@
 						field: "lastUpdated",
 						field: "lastUpdated",
 						title: "最后更新时间"
 						title: "最后更新时间"
 					},
 					},
-					// {
-					// 	field: "deliveryMethod",
-					// 	title: "配送方式"
-					// },
+					{
+						field: "deliveryMethod",
+						title: "配送方式",
+						formatter: function(value, row, index) {
+							switch (value) {
+								case "1":
+									return "门店自取";
+									break;
+								case "2":
+									return "配送";
+									break;
+								default:
+									return "";
+							}
+						}
+					},
 					// {
 					// {
 					// 	field: "paymentCode",
 					// 	field: "paymentCode",
 					// 	title: "付款代码"
 					// 	title: "付款代码"
@@ -258,20 +282,42 @@
 					// },
 					// },
 					{
 					{
 						field: "status",
 						field: "status",
-						title: "状态"
+						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: "createTime",
 						field: "createTime",
 						title: "创建时间"
 						title: "创建时间"
 					},
 					},
-		        /*{
-		        	visible: editFlag == 'hidden' ? false : true,
-		        	title: '用户状态',
-		        	align: 'center',
-		        	formatter: function (value, row, index) {
-		        		return statusTools(row);
-		        	}
-		        },*/
 
 
 		        {
 		        {
 		            title: '操作',
 		            title: '操作',

+ 1 - 1
health-admin/src/main/resources/templates/jkgl/SJkglCommissionrewardinfoPageEdit.html

@@ -66,7 +66,7 @@
 </div>
 </div>
 <div class="main-content">
 <div class="main-content">
     <div class="col-sm-offset-5 col-sm-10">
     <div class="col-sm-offset-5 col-sm-10">
-        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
+<!--        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;-->
         <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
         <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
     </div>
     </div>
 </div>
 </div>