1.修改楼层为下拉选择

2.隐藏最后一页签字
3.发布地址为http://flowtone3.suvalue.com
parent 7293288b
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-03-30 12:23:58
* @LastEditTime: 2022-04-13 10:15:14
* @Description:
-->
<template>
......@@ -19,8 +19,8 @@
<page4 v-show="page === 4"></page4>
<page5 v-show="page === 5"></page5>
<page6 v-show="page === 6"></page6>
<leaveHospital v-show="page === 7"></leaveHospital>
<page7 v-show="page === 8"></page7>
<!-- <leaveHospital v-show="page === 7"></leaveHospital> -->
<page7 v-show="page === 7"></page7>
<!-- {{ symptom }} -->
<div class="index_form_footer" v-if="page != 1 && page != 2 && page != 8">
<van-button
......@@ -29,7 +29,7 @@
block
type="info"
native-type="button"
v-if="page != 1 && page != 2 && page != 8"
v-if="page != 1 && page != 2 && page != 7"
@click="back()"
>上一步</van-button
>
......@@ -39,13 +39,13 @@
block
type="info"
native-type="button"
v-if="page != 1 && page != 2 && page != 7 && page != 8"
v-if="page != 1 && page != 2 && page != 7 && page != 6"
@click="next()"
>下一步</van-button
>
<van-button
v-if="page == 7"
v-if="page == 6"
class="index_form_footer_next"
round
block
......@@ -228,8 +228,20 @@ export default {
submit() {
this.$refs.vantform
.validate([
"leaveSign", //出院签字
"leaveDate", // 签字日期
// "leaveSign", //出院签字
// "leaveDate", // 签字日期
"hasHistoryAllergies", //过敏史
// "historyAllergies", //过敏原
"hasHistorySurgery", //手术史
"historySurgery", //具体内容
"HasPreviousHistory", //有无既往史
"previousHistory", //既往史
"tuberculosisDate", //既往史发生时间
"ChestCT", //有无CT
"otherPastHistory", //其他既往史
"ChestCTDate", //CT拍照时间
])
.then(() => {
this.$refs.vantform.submit();
......@@ -246,7 +258,7 @@ export default {
window.localStorage.clear();
this.$http.post(`/Research`, values).then((data) => {
this.$notify({ type: "success", message: "保存成功" });
this.$store.dispatch("user/setpage", 8);
this.$store.dispatch("user/setpage", 7);
window.localStorage.clear();
this.reload();
this.setLoading(false);
......
<!--
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-23 13:20:12
* @LastEditors: wsq
* @LastEditTime: 2022-04-13 10:09:44
* @Description:
-->
<template>
......@@ -65,13 +65,31 @@
<van-field
colon
clearable
v-model="agreementFloor"
:value="agreementFloor"
name="agreementFloor"
label="楼层"
placeholder="楼层"
readonly
@click="showagreementFloor = true"
:rules="[{ required: true, message: '请填写楼层' }]"
@blur="setLocalStorge('agreementFloor')"
></van-field>
<van-popup v-model="showagreementFloor" position="bottom">
<van-picker
title="楼层"
show-toolbar
:columns="agreementFloorList"
@confirm="onagreementFloor"
@cancel="
() => {
showagreementFloor = false;
}
"
/>
</van-popup>
<van-field
colon
......@@ -172,7 +190,10 @@ export default {
maxDate: new Date(),
showSignHandleVue: false,
showbuildingNumber: false,
showagreementFloor:false,
buildingNumberList: [], // 楼号list
agreementFloorList:[],//楼层
};
},
mounted() {
......@@ -219,6 +240,15 @@ export default {
this.showbuildingNumber = false;
},
onagreementFloor(value, index) {
console.log('value',value);
this.agreementFloor = value;
this.setLocalStorge("agreementFloor");
this.showagreementFloor = false;
},
getResource() {
this.setLoading(true);
this.$http.get(`/Research/Resource`, {}).then((data) => {
......@@ -230,6 +260,15 @@ export default {
return item.element;
});
let arr2 = data.filter((item) => {
return item.category == "楼层";
});
this.agreementFloorList = arr2.map((item) => {
return item.element;
});
this.setLoading(false);
});
},
......
/*
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-22 16:47:57
* @LastEditors: wsq
* @LastEditTime: 2022-04-13 09:46:59
* @Description:
*/
const path = require('path');
......@@ -61,7 +61,8 @@ module.exports = {
proxy: {
'/api': {
target: 'http://192.168.18.166:8048',
//target: 'http://192.168.18.166:8048',
target: 'http://flowtone3.suvalue.com',
// target: 'http://flowtone.suvalue.com/',
ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment