|
@ -26,11 +26,8 @@
|
|
|
|
|
|
retrieve = {
|
|
retrieve = {
|
|
$element: $('.m-retrieve-area'),
|
|
$element: $('.m-retrieve-area'),
|
|
patientInfoDialog: null,
|
|
|
|
remindInfoDialog:null,
|
|
|
|
$noReply: $('#noReply'),
|
|
|
|
$count: $('#count'),
|
|
|
|
$rate: $('#rate'),
|
|
|
|
|
|
prescriptionInfoDialog: null,
|
|
|
|
prescriptionOrderDialog: null,
|
|
grid: null,
|
|
grid: null,
|
|
url: {
|
|
url: {
|
|
//接口链接
|
|
//接口链接
|
|
@ -128,7 +125,7 @@
|
|
{text: '支付成功/待配药', statusId: '50'},
|
|
{text: '支付成功/待配药', statusId: '50'},
|
|
{text: '配药成功/待配送', statusId: '60'},
|
|
{text: '配药成功/待配送', statusId: '60'},
|
|
{text: '配送中', statusId: '65'},
|
|
{text: '配送中', statusId: '65'},
|
|
{text: '药品已配送', statusId: '69'},
|
|
|
|
|
|
{text: '药品到服务站', statusId: '69'},
|
|
{text: '配送到患者手中/已完成', statusId: '100'},
|
|
{text: '配送到患者手中/已完成', statusId: '100'},
|
|
{text: '线下退费', statusId: '-4'},
|
|
{text: '线下退费', statusId: '-4'},
|
|
{text: '支付超时', statusId: '-3'},
|
|
{text: '支付超时', statusId: '-3'},
|
|
@ -223,10 +220,11 @@
|
|
{display: '配送方式', name: 'pay', align: "center"},
|
|
{display: '配送方式', name: 'pay', align: "center"},
|
|
{display: '时间', name: 'create_time', width: '12%', align: "center"},
|
|
{display: '时间', name: 'create_time', width: '12%', align: "center"},
|
|
{
|
|
{
|
|
display: '操作', name: 'operator', width: '15%', align: "center", isSort: false,
|
|
|
|
|
|
display: '操作', name: 'operator', width: '20%', align: "center", isSort: false,
|
|
render: function (row) {
|
|
render: function (row) {
|
|
var html = '';
|
|
var html = '';
|
|
html += '<a href="javascript:void(0)" onclick="javascript:' + Util.format("$.publish('{0}',['{1}'])", "patient:info:view", row.id) + '">查看</a>';
|
|
|
|
|
|
html += '<a href="javascript:void(0)" onclick="javascript:' + Util.format("$.publish('{0}',['{1}'])", "prescription:info:view", row.prescription_code) + '">续方详情</a>';
|
|
|
|
html += '<a style="margin-left:10px;" href="javascript:void(0)" onclick="javascript:' + Util.format("$.publish('{0}',['{1}'])", "prescription:order:view", row.prescription_code) + '">订单跟踪</a>';
|
|
return html;
|
|
return html;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -303,6 +301,27 @@
|
|
},
|
|
},
|
|
bindEvents: function () {
|
|
bindEvents: function () {
|
|
var me = this;
|
|
var me = this;
|
|
|
|
|
|
|
|
$.subscribe('prescription:info:view', function (event, code) {
|
|
|
|
var title = '续方详情';
|
|
|
|
me.prescriptionInfoDialog = $.ligerDialog.open({
|
|
|
|
height: 600,
|
|
|
|
width: 900,
|
|
|
|
title: title,
|
|
|
|
url: ctx + '/admin/static/prescription/infoInit/' + code
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
$.subscribe('prescription:order:view', function (event, code) {
|
|
|
|
var title = '订单跟踪';
|
|
|
|
me.prescriptionOrderDialog = $.ligerDialog.open({
|
|
|
|
height: 600,
|
|
|
|
width: 900,
|
|
|
|
title: title,
|
|
|
|
url: ctx + '/admin/static/prescription/orderInit/' + code
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
//城市下拉
|
|
//城市下拉
|
|
me.$inpDeviceName.on( 'change', function () {
|
|
me.$inpDeviceName.on( 'change', function () {
|
|
me.setCityFun(me);
|
|
me.setCityFun(me);
|