提交 527a2f6a 编写于 作者: vino's avatar vino

Merge remote-tracking branch 'origin/dev-20210702' into dev-20210702

...@@ -14,6 +14,7 @@ const downList = r => require.ensure([], () => r(require('../views/IM/diagnosis- ...@@ -14,6 +14,7 @@ const downList = r => require.ensure([], () => r(require('../views/IM/diagnosis-
export default [{ export default [{
path: '/', path: '/',
component: App, component: App,
mode: 'history',
children: [ children: [
{ {
path: '', path: '',
...@@ -45,7 +46,6 @@ export default [{ ...@@ -45,7 +46,6 @@ export default [{
}, { }, {
path: '/diagnosis-list-new', path: '/diagnosis-list-new',
component: diagnosisListNew component: diagnosisListNew
}, { }, {
path: '/down-list', path: '/down-list',
component: downList component: downList
......
...@@ -323,7 +323,7 @@ export const RUN_TAB_LIST = [ ...@@ -323,7 +323,7 @@ export const RUN_TAB_LIST = [
export const TRIAGE_TAB_LIST = [ export const TRIAGE_TAB_LIST = [
{ {
label: '全部', label: '全部',
active: '1' active: '99'
}, },
{ {
label: '待诊断', label: '待诊断',
...@@ -335,7 +335,7 @@ export const TRIAGE_TAB_LIST = [ ...@@ -335,7 +335,7 @@ export const TRIAGE_TAB_LIST = [
export const RECEPTION_TAB_LIST = [ export const RECEPTION_TAB_LIST = [
{ {
label: '全部', label: '全部',
active: '1' active: '99'
}, },
{ {
label: '待匹配医生', label: '待匹配医生',
......
...@@ -231,11 +231,11 @@ ...@@ -231,11 +231,11 @@
<appointment-time :appointmentTimeVisible.sync="appointmentTimeVisible" :diagnoseLogId="diagnoseLogId" :bizType="bizType"></appointment-time> <appointment-time :appointmentTimeVisible.sync="appointmentTimeVisible" :diagnoseLogId="diagnoseLogId" :bizType="bizType"></appointment-time>
<diagnosis-time :diagnosisTimeVisible.sync="diagnosisTimeVisible" :diagnoseLogId="diagnoseLogId" :bizType="bizType"></diagnosis-time> <diagnosis-time :diagnosisTimeVisible.sync="diagnosisTimeVisible" :diagnoseLogId="diagnoseLogId" :bizType="bizType"></diagnosis-time>
</div> </div>
<a class="target" href="" target="_blank" ref="target"></a>
</div> </div>
</template> </template>
<script> <script>
import {updateDiagnosis} from "../../../utils/diagnosis"; import {updateDiagnosis} from "../../../utils/diagnosis";
let vm = null;
const DOWN_URL= '/diagnose/admin/diagnose/export'; const DOWN_URL= '/diagnose/admin/diagnose/export';
const LIST_URL= '/diagnose/admin/diagnose/list'; const LIST_URL= '/diagnose/admin/diagnose/list';
const DEP_URL= '/hospital/departments/0' const DEP_URL= '/hospital/departments/0'
...@@ -335,17 +335,32 @@ export default { ...@@ -335,17 +335,32 @@ export default {
activated() { activated() {
this.search(); this.search();
}, },
watch: {
'$route': {
handler(newVal, oldVal) {
// this.getview(newVal, oldVal)
if (newVal) {
this.init()
}
},
deep: true,
immediate: true,
}
},
created() { created() {
vm = this;
this.fromType = +(this.$route.query.fromType || 1);
this.setTable();
this.getDep() this.getDep()
}, },
mounted() { mounted() {
this.setTableHeight(); this.setTableHeight();
this.search();
}, },
methods: { methods: {
init(){
this.fromType = +(this.$route.query.fromType || 1);
this.activeName = "99";
this.status = '99'
this.setTable();
this.search();
},
// 不同也main切换不同的tab // 不同也main切换不同的tab
setTable() { setTable() {
let tabs = ALL_TAB_LIST; let tabs = ALL_TAB_LIST;
...@@ -372,6 +387,7 @@ export default { ...@@ -372,6 +387,7 @@ export default {
break; break;
} }
this.tabpaneList = tabs; this.tabpaneList = tabs;
}, },
// 设置table的高度 // 设置table的高度
setTableHeight() { setTableHeight() {
...@@ -473,10 +489,13 @@ export default { ...@@ -473,10 +489,13 @@ export default {
}, },
//查看详情/编辑详情 //查看详情/编辑详情
goDetail(row,flag) { goDetail(row,flag) {
this.$router.push({ // this.$router.push({
path: "/diagnosis-editor", // path: "/diagnosis-editor",
query: { id: row.diagnoseLogId, editorType: flag }, // query: { id: row.diagnoseLogId, editorType: flag },
}); // });
let target = this.$refs.target
target.setAttribute('href', window.location.origin + `/#/diagnosis-editor?id=${row.diagnoseLogId}&editorType=${flag}`)
target.click()
}, },
//取消/退款 //取消/退款
cancelRefund(row) { cancelRefund(row) {
...@@ -529,13 +548,13 @@ export default { ...@@ -529,13 +548,13 @@ export default {
} }
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
if (res.code == "000000") { if (res.code == "000000") {
// vm.cancel(); // this.cancel();
vm.search(); this.search();
} else { } else {
vm.$message.error(res.message); this.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.$message.error(error); this.$message.error(error);
}); });
}) })
...@@ -594,13 +613,13 @@ export default { ...@@ -594,13 +613,13 @@ export default {
} }
updateDiagnosis(req).then(function (res) { updateDiagnosis(req).then(function (res) {
if (res.code == "000000") { if (res.code == "000000") {
// vm.cancel(); // this.cancel();
vm.search(); this.search();
} else { } else {
vm.$message.error(res.message); this.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.$message.error(error); this.$message.error(error);
}); });
}) })
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册