1.修改楼层为下拉选择

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