|
@ -113,7 +113,14 @@ $(function(){
|
|
var prescription = detailData.prescription;
|
|
var prescription = detailData.prescription;
|
|
var diagnosis = detailData.diagnosis;
|
|
var diagnosis = detailData.diagnosis;
|
|
var patient = detailData.patient;
|
|
var patient = detailData.patient;
|
|
strOriginalData = detailData;
|
|
|
|
|
|
strOriginalData = detailData;
|
|
|
|
var isEXit=_.some(detailData.prescriptionInfo,function(item){
|
|
|
|
return item.drugName.indexOf('胰岛素')>-1
|
|
|
|
})
|
|
|
|
// 审核中状态且为胰岛素类药品弹窗提示
|
|
|
|
if(isEXit && (detailData.prescription.status == 0 || detailData.prescription.status==10)){
|
|
|
|
$('#confirmModal').modal('toggle');
|
|
|
|
}
|
|
jwHospital = prescription.jwHospital;
|
|
jwHospital = prescription.jwHospital;
|
|
jwDoctorCode = prescription.jwDoctorCode;
|
|
jwDoctorCode = prescription.jwDoctorCode;
|
|
jwCode = prescription.jwCode;
|
|
jwCode = prescription.jwCode;
|
|
@ -228,9 +235,9 @@ $(function(){
|
|
}
|
|
}
|
|
}).then(function(res) {
|
|
}).then(function(res) {
|
|
if(res.status == 200 && res.data){
|
|
if(res.status == 200 && res.data){
|
|
// showSuccessMsg('提交成功')
|
|
|
|
// setTimeout(function() {
|
|
|
|
// location.reload(true)
|
|
|
|
|
|
// showSuccessMsg('提交成功')
|
|
|
|
// setTimeout(function() {
|
|
|
|
// location.reload(true)
|
|
// }, 2000)
|
|
// }, 2000)
|
|
dialog({
|
|
dialog({
|
|
content: "提交审核成功,记得去APP完成该居民的随访哦",
|
|
content: "提交审核成功,记得去APP完成该居民的随访哦",
|
|
@ -328,11 +335,12 @@ $(function(){
|
|
imporMsg.prescription.diagnosis = strOriginalData.diagnosis;
|
|
imporMsg.prescription.diagnosis = strOriginalData.diagnosis;
|
|
var arr = _.map(strOriginalData.prescriptionInfo,function(item){
|
|
var arr = _.map(strOriginalData.prescriptionInfo,function(item){
|
|
return _.pick(item, 'drugCode','drugName','jwSubCode','physicAmount','physicAmountUnit','physicAmountUnitName');
|
|
return _.pick(item, 'drugCode','drugName','jwSubCode','physicAmount','physicAmountUnit','physicAmountUnitName');
|
|
})
|
|
|
|
|
|
})
|
|
imporMsg.prescription.prescriptionInfo = arr;
|
|
imporMsg.prescription.prescriptionInfo = arr;
|
|
|
|
|
|
return imporMsg;
|
|
|
|
|
|
return imporMsg;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkAgreeInputs() {
|
|
function checkAgreeInputs() {
|
|
var fee = $('#feeSel').val();
|
|
var fee = $('#feeSel').val();
|
|
@ -359,7 +367,7 @@ $(function(){
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
function getDataPromises() {
|
|
function getDataPromises() {
|
|
return Promise.all([
|
|
return Promise.all([
|
|
prescriptionDetailApis.getDeptList({
|
|
prescriptionDetailApis.getDeptList({
|
|
@ -382,4 +390,4 @@ $(function(){
|
|
})
|
|
})
|
|
])
|
|
])
|
|
}
|
|
}
|
|
})
|
|
|
|
|
|
})
|