Commit 6186ce0d by wangshuangqing

添加既往史时间格式

parent 65540113
...@@ -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-05-07 09:22:23 * @LastEditTime: 2022-05-09 15:07:51
* @Description: * @Description:
--> -->
<template> <template>
...@@ -215,7 +215,7 @@ ...@@ -215,7 +215,7 @@
@blur="setLocalStorge('otherPastHistory')" @blur="setLocalStorge('otherPastHistory')"
></van-field> ></van-field>
<van-field <!-- <van-field
colon colon
clearable clearable
readonly readonly
...@@ -232,12 +232,48 @@ ...@@ -232,12 +232,48 @@
}, },
]" ]"
name="tuberculosisDate" name="tuberculosisDate"
:min-date="minDate"
:max-date="maxDate"
:value="tuberculosisDate" :value="tuberculosisDate"
label="既往史发生时间" label="既往史发生时间"
placeholder="点击选择既往史发生时间" placeholder="点击选择既往史发生时间"
@click="showPicker = true" @click="showPicker = true"
v-model="tuberculosisDate1" v-model="tuberculosisDate1"
:formatter="formatter"
/> -->
<van-field
colon
clearable
readonly
clickable
v-if="HasPreviousHistory != '无' && previousHistory.includes('肺结核')"
:rules="[
{
required:
HasPreviousHistory != '无' && previousHistory.includes('肺结核')
? true
: false,
message: '请选择既往史发生时间',
},
]"
name="tuberculosisDate"
:value="tuberculosisDate"
label="既往史发生时间"
placeholder="点击选择既往史发生时间"
@click="showPicker = true"
/> />
<van-popup v-model="showPicker" position="bottom">
<van-datetime-picker
:min-date="minDate"
:max-date="maxDate"
type="date"
@confirm="onConfirm"
@cancel="showPicker = false"
:formatter="formatter"
v-model="deathDate2"
/>
</van-popup>
<van-field colon clearable name="whetherSmoking" label="是否吸烟" label-width="125px"> <van-field colon clearable name="whetherSmoking" label="是否吸烟" label-width="125px">
<template #input> <template #input>
...@@ -548,6 +584,7 @@ export default { ...@@ -548,6 +584,7 @@ export default {
minChestCTDate: new Date(2020, 0, 1), minChestCTDate: new Date(2020, 0, 1),
minDate: new Date(2010, 0, 1), minDate: new Date(2010, 0, 1),
maxDate: new Date(), maxDate: new Date(),
deathDate2:new Date(),
ChestCTDate1: new Date(), ChestCTDate1: new Date(),
tuberculosisDate1:new Date(), tuberculosisDate1:new Date(),
...@@ -609,6 +646,7 @@ export default { ...@@ -609,6 +646,7 @@ export default {
}, },
getLocalStorge(key) { getLocalStorge(key) {
return window.localStorage.getItem(key); return window.localStorage.getItem(key);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2022-05-07 09:24:27 * @LastEditTime: 2022-05-09 15:03:49
* @Description: * @Description:
*/ */
const path = require('path'); const path = require('path');
...@@ -61,10 +61,10 @@ module.exports = { ...@@ -61,10 +61,10 @@ module.exports = {
proxy: { proxy: {
'/api': { '/api': {
target: 'http://flowtone.suvalue.com/', target: 'http://flowtone.suvalue.com/',
//target: 'http://flowtone2.suvalue.com/', //target: 'http://flowtone2.suvalue.com/',
// target: 'http://flowtone6.suvalue.com/', // target: 'http://flowtone6.suvalue.com/',
// target:'http://192.168.18.166:8048/',//测试 //target:'http://192.168.18.166:8048/',//测试
ws: true, //如果要代理 websockets,配置这个参数 ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数 // secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, changeOrigin: true,
......
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