|
@@ -4,6 +4,7 @@ require('jquery-templates');
|
|
|
require('./modal.js');
|
|
|
const { post, post1, getUrlArgObject, setBoxHeight, getCookie, getLocal, initScroll } = require('./utils.js');
|
|
|
const { api, ywCheckApi } = require('./api.js');
|
|
|
+const axios = require("axios")
|
|
|
let checkOk = require('./../images/checkOk.png')
|
|
|
const loadingImg = require("./../images/loading.gif")
|
|
|
const adLogo = require("../images/adlogo.png");
|
|
@@ -227,6 +228,8 @@ $(function () {
|
|
|
const list2 = pageData.病案首页
|
|
|
const diagList = JSON.parse(list2[0].出院诊断)
|
|
|
const operaList = JSON.parse(list2[0].手术信息)
|
|
|
+ console.log("diagList", diagList)
|
|
|
+ console.log("operaList", operaList);
|
|
|
global_diagList = diagList;
|
|
|
global_operaList = operaList;
|
|
|
|
|
@@ -1305,7 +1308,7 @@ $(function () {
|
|
|
/** 实习医师 */
|
|
|
const practiceDoctor = $('#anchor2279 p').text();
|
|
|
/** 编码员 */
|
|
|
- const encodeMan = $('#anchor2280 p').text();
|
|
|
+ const encodeMan = $('#anchor2280 p').text() || "无";
|
|
|
/** 病案质量 */
|
|
|
const homePageQuality = $('#anchor2281 p').text();
|
|
|
/** 质控医师 */
|
|
@@ -1439,9 +1442,9 @@ $(function () {
|
|
|
const isRadiatePathology = results_anchor2304["放射与病理"] || "";
|
|
|
|
|
|
/** 病人抢救次数 */
|
|
|
- const rescueNum = $('#anchor2305 p').text().match(/\d+/g)[0] || "";
|
|
|
+ const rescueNum = $('#anchor2305 p').text().match(/\d+||-/g)[0] || "0";
|
|
|
/** 病人抢救成功次数 */
|
|
|
- const rescueSuccessNum = $('#anchor2305 p').text().match(/\d+/g)[1] || "";
|
|
|
+ const rescueSuccessNum = $('#anchor2305 p').text().match(/\d+||-/g)[1] || "0";
|
|
|
|
|
|
/** 是否为自动出院 */
|
|
|
const isAutoLeavehospital = '';
|
|
@@ -1617,9 +1620,13 @@ $(function () {
|
|
|
}
|
|
|
console.log("param:", param)
|
|
|
let state = 1
|
|
|
+ // axios.post(api.sendHomePageIng, param).then((res) => {
|
|
|
+ // console.log("res", res.data);
|
|
|
+ // })
|
|
|
post1(api.sendHomePageIng, param).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
// window.parent.location.reload()
|
|
|
+ console.log("sendHomePageIngRes", res.data)
|
|
|
console.log("成功");
|
|
|
} else {
|
|
|
state = 0
|
|
@@ -1643,10 +1650,10 @@ $(function () {
|
|
|
*取表格里的数据-出院诊断
|
|
|
*/
|
|
|
function addLeaveDiags() {
|
|
|
- let leaveDiagsArry = []
|
|
|
+ let leaveDiagsArray = []
|
|
|
let i = 0//顺序号
|
|
|
$('.embed-table tbody tr').each(function (rowIndex) {//遍历每一行
|
|
|
- if (rowIndex > 0 && $(this).find('th').length === 0) {
|
|
|
+ if (rowIndex > 0 && $(this).find('th').length === 0 && i < global_diagList.length) {
|
|
|
|
|
|
let diagsObj = {
|
|
|
"behospitalType": "",
|
|
@@ -1677,11 +1684,11 @@ $(function () {
|
|
|
diagsObj.diagnoseTypeShort = "次"
|
|
|
}
|
|
|
|
|
|
- leaveDiagsArry.push(diagsObj)
|
|
|
+ leaveDiagsArray.push(diagsObj)
|
|
|
i = i + 1
|
|
|
}
|
|
|
});
|
|
|
- return leaveDiagsArry
|
|
|
+ return leaveDiagsArray
|
|
|
}
|
|
|
/**
|
|
|
* 取表格里的数据-手术情况
|
|
@@ -1692,7 +1699,7 @@ $(function () {
|
|
|
let i = 0//顺序号
|
|
|
$('.opera-table tbody tr').each(function (rowIndex) {//遍历每一行
|
|
|
if (rowIndex > 1 && $(this).find('th').length === 0) {
|
|
|
- i = i + 1
|
|
|
+
|
|
|
let operationObj = {
|
|
|
"anaesthesiaName": "",
|
|
|
"cutLevel": "",
|
|
@@ -1709,7 +1716,7 @@ $(function () {
|
|
|
"secondAssistantId": "",
|
|
|
"shamOperationName": ""
|
|
|
}
|
|
|
- operationObj.operationOrderNo = i
|
|
|
+ operationObj.operationOrderNo = global_operaList[i].手术序号
|
|
|
operationObj.homePageId = $('.patient-info span').eq(0).text().match(/\d+/)[0]
|
|
|
operationObj.operationCode = $(this).find('td').eq(0).text()
|
|
|
operationObj.operationDate = $(this).find('td').eq(1).text()
|
|
@@ -1722,8 +1729,8 @@ $(function () {
|
|
|
operationObj.healingLevel = $(this).find('td').eq(8).text()
|
|
|
operationObj.anaesthesiaName = $(this).find('td').eq(9).text()
|
|
|
operationObj.anaesthesiaName = $(this).find('td').eq(10).text()
|
|
|
-
|
|
|
operationsArry.push(operationObj)
|
|
|
+ i = i + 1
|
|
|
}
|
|
|
|
|
|
});
|