|
@ -27,6 +27,7 @@
|
|
|
$name: $("#name"),
|
|
|
$identity:$("#identity"),
|
|
|
$phone:$("#phone"),
|
|
|
$contact:$("#contact"),
|
|
|
$idcard:$("#idcard"),
|
|
|
$createTime:$("#createTime"),
|
|
|
$result:$("#result1"),//处理结果
|
|
@ -61,6 +62,7 @@
|
|
|
_this.$identity.val("医生");
|
|
|
}
|
|
|
_this.$phone.val(data.phone);
|
|
|
_this.$contact.val(data.contact);
|
|
|
_this.$idcard.val(data.idcard);
|
|
|
_this.$createTime.val(data.createTime);
|
|
|
_this.$description.val(data.description);
|
|
@ -98,27 +100,35 @@
|
|
|
$("#back").click(function () {
|
|
|
parent.window.closeParentInfoDialog();
|
|
|
});
|
|
|
$("#close").click(function () {
|
|
|
parent.window.closeParentInfoDialog();
|
|
|
});
|
|
|
$("#sure").click(function () {
|
|
|
var result = $("#result").val();
|
|
|
var id = $("#id").val();
|
|
|
if (isNoEmpty(result)) {
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/feedback/dealFeedback",
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
data: {id: id,
|
|
|
result:result
|
|
|
},
|
|
|
success: function (result) {
|
|
|
if (result.status == '200') {
|
|
|
//todo 操作成功后的处理
|
|
|
alert("操作成功");
|
|
|
parent.window.closeParentInfoDialog();
|
|
|
}else{
|
|
|
$.Notice.error(result.msg);
|
|
|
}
|
|
|
},
|
|
|
})
|
|
|
if(result.length>400){
|
|
|
$.Notice.error("最多只能填写400个字");
|
|
|
}else {
|
|
|
$.ajax({
|
|
|
url: ctx + "/admin/feedback/dealFeedback",
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
data: {id: id,
|
|
|
result:result
|
|
|
},
|
|
|
success: function (result) {
|
|
|
if (result.status == '200') {
|
|
|
//todo 操作成功后的处理
|
|
|
alert("操作成功");
|
|
|
parent.window.closeParentInfoDialog();
|
|
|
}else{
|
|
|
$.Notice.error(result.msg);
|
|
|
}
|
|
|
},
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
//todo
|
|
|
$.Notice.error("请输入处理结果");
|