提交 47035a42 编写于 作者: tao.wu's avatar tao.wu

no message

上级 ff8e7ff5
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
}, },
goToScale(val) { goToScale(val) {
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: val.doctorId, scaleNo: val.scaleNo, planPatientsTimesId: val.planPatientsTimesId, showBtn: 1}}); query: {doctorId: this.enteringInfo.doctorId, scaleNo: val.scaleNo, planPatientsTimesId: this.enteringInfo.planPatientsTimesId, showBtn: 1}});
} }
}, },
filters: { filters: {
......
...@@ -18,7 +18,7 @@ export default ($this) => { ...@@ -18,7 +18,7 @@ export default ($this) => {
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
dateType: 'date', dateType: 'date',
type: 'date', type: 'date',
rules: [{required: true, message: '请选择检查时间', trigger: ['submit','change']}], rules: [{required: false, message: '请选择检查时间', trigger: ['submit','change']}],
spanNum: 6, spanNum: 6,
}, },
{ {
...@@ -33,7 +33,7 @@ export default ($this) => { ...@@ -33,7 +33,7 @@ export default ($this) => {
type: 'number', type: 'number',
labmsg: '次', labmsg: '次',
slots: [{name: 'mmol/L', type: 'append'}], slots: [{name: 'mmol/L', type: 'append'}],
rules: [{required: true, message: '请输入空腹血糖', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }], rules: [{required: false, message: '请输入空腹血糖', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }],
}, },
...@@ -53,7 +53,7 @@ export default ($this) => { ...@@ -53,7 +53,7 @@ export default ($this) => {
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
dateType: 'date', dateType: 'date',
type: 'date', type: 'date',
rules: [{required: true, message: '请选择检查时间', trigger: ['submit','change']}], rules: [{required: false, message: '请选择检查时间', trigger: ['submit','change']}],
spanNum: 6, spanNum: 6,
}, },
{ {
...@@ -68,7 +68,7 @@ export default ($this) => { ...@@ -68,7 +68,7 @@ export default ($this) => {
type: 'number', type: 'number',
labmsg: '次', labmsg: '次',
slots: [{name: 'mmol/L', type: 'append'}], slots: [{name: 'mmol/L', type: 'append'}],
rules: [{required: true, message: '请输入甘油三酯', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }], rules: [{required: false, message: '请输入甘油三酯', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }],
}, },
{ {
formType: 'input', formType: 'input',
...@@ -82,7 +82,7 @@ export default ($this) => { ...@@ -82,7 +82,7 @@ export default ($this) => {
type: 'number', type: 'number',
labmsg: '次', labmsg: '次',
slots: [{name: 'mmol/L', type: 'append'}], slots: [{name: 'mmol/L', type: 'append'}],
rules: [{required: true, message: '请输入胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }], rules: [{required: false, message: '请输入胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }],
}, },
{ {
formType: 'input', formType: 'input',
...@@ -96,7 +96,7 @@ export default ($this) => { ...@@ -96,7 +96,7 @@ export default ($this) => {
type: 'number', type: 'number',
labmsg: '次', labmsg: '次',
slots: [{name: 'mmol/L', type: 'append'}], slots: [{name: 'mmol/L', type: 'append'}],
rules: [{required: true, message: '请输入低密度脂蛋白胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }], rules: [{required: false, message: '请输入低密度脂蛋白胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }],
}, },
{ {
formType: 'input', formType: 'input',
...@@ -110,7 +110,7 @@ export default ($this) => { ...@@ -110,7 +110,7 @@ export default ($this) => {
type: 'number', type: 'number',
labmsg: '次', labmsg: '次',
slots: [{name: 'mmol/L', type: 'append'}], slots: [{name: 'mmol/L', type: 'append'}],
rules: [{required: true, message: '请输入高密度脂蛋白胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }], rules: [{required: false, message: '请输入高密度脂蛋白胆固醇', trigger: ['submit','change']},{ validator: checkRange , trigger: ['submit','change'] }],
}, },
] ]
} }
...@@ -11,7 +11,7 @@ export default ($this) => { ...@@ -11,7 +11,7 @@ export default ($this) => {
spanNum: 24, spanNum: 24,
options: [ options: [
{label: '经常运动(相当于快步走的中等强度运动,且每周≥3次、每次≥30分钟,包含中度、重度体力劳动者)', value: '经常运动(相当于快步走的中等强度运动,且每周≥3次、每次≥30分钟,包含中度、重度体力劳动者)', disabled: false}, {label: '经常运动(相当于快步走的中等强度运动,且每周≥3次、每次≥30分钟,包含中度、重度体力劳动者)', value: '经常运动(相当于快步走的中等强度运动,且每周≥3次、每次≥30分钟,包含中度、重度体力劳动者)', disabled: false},
{label: '缺乏运动 (不符合上述经常运动标准者)', value: '缺乏运动 (不符合上述经常运动标准者)', disabled: false}, {label: '缺乏运动不符合上述经常运动标准者)', value: '缺乏运动 (不符合上述经常运动标准者)', disabled: false},
], ],
rules: [{required: true, message: '请选择是否', trigger: ['submit','change']}] rules: [{required: true, message: '请选择是否', trigger: ['submit','change']}]
}, },
......
...@@ -16,7 +16,7 @@ export default ($this) => { ...@@ -16,7 +16,7 @@ export default ($this) => {
valueFormat: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd',
dateType: 'date', dateType: 'date',
type: 'date', type: 'date',
rules: [{ required: true, message: '请选择评估时间', trigger: ['submit','change'] }], rules: [{ required: false, message: '请选择评估时间', trigger: ['submit','change'] }],
spanNum: 6, spanNum: 6,
}, },
{ {
...@@ -35,7 +35,7 @@ export default ($this) => { ...@@ -35,7 +35,7 @@ export default ($this) => {
{ label: '4(重度残疾,不能独立行走,无他人帮助不能满足自身日常生活需求)', value: '4(重度残疾,不能独立行走,无他人帮助不能满足自身日常生活需求)', disabled: false }, { label: '4(重度残疾,不能独立行走,无他人帮助不能满足自身日常生活需求)', value: '4(重度残疾,不能独立行走,无他人帮助不能满足自身日常生活需求)', disabled: false },
{ label: '5(严重残疾,持续卧床、二便失禁,需持续护理和关注,日常生活完全依赖他人)', value: '5(严重残疾,持续卧床、二便失禁,需持续护理和关注,日常生活完全依赖他人)', disabled: false }, { label: '5(严重残疾,持续卧床、二便失禁,需持续护理和关注,日常生活完全依赖他人)', value: '5(严重残疾,持续卧床、二便失禁,需持续护理和关注,日常生活完全依赖他人)', disabled: false },
], ],
rules: [{ required: true, message: '请选择评分值', trigger: ['submit','change'] }], rules: [{ required: false, message: '请选择评分值', trigger: ['submit','change'] }],
changeFun: (e)=>{ changeFun: (e)=>{
// console.log(e) // console.log(e)
} }
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
:dataSource="item.dataSource" :dataSource="item.dataSource"
:form="item.formObject" :form="item.formObject"
:ruleNew="item.ruleNew" :ruleNew="item.ruleNew"
:needRule="needRule"
:class="item.className" :class="item.className"
/> />
</el-form> </el-form>
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
export default { export default {
data(){ data(){
return { return {
instance: null,
domain: '',//通过接口获取白名单域名 domain: '',//通过接口获取白名单域名
needRule: true, //是否动态开启验证 needRule: true, //是否动态开启验证
showModule: true, //是否隐藏表单模块 showModule: true, //是否隐藏表单模块
...@@ -74,7 +76,7 @@ ...@@ -74,7 +76,7 @@
{name: 'MainSickControl4',formObject: {},showModule: true,formName: 'stroke_008',className: 'obj-form-title',dataSource: dataSourceMainSickControl4(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-高血压'}, {name: 'MainSickControl4',formObject: {},showModule: true,formName: 'stroke_008',className: 'obj-form-title',dataSource: dataSourceMainSickControl4(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-高血压'},
{name: 'MainSickControl5',formObject: {},showModule: true,formName: 'stroke_009',className: 'obj-form-title',dataSource: dataSourceMainSickControl5(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-血脂异常'}, {name: 'MainSickControl5',formObject: {},showModule: true,formName: 'stroke_009',className: 'obj-form-title',dataSource: dataSourceMainSickControl5(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-血脂异常'},
{name: 'MainSickControl6',formObject: {},showModule: true,formName: 'stroke_010',className: 'obj-form-title',dataSource: dataSourceMainSickControl6(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-糖尿病'}, {name: 'MainSickControl6',formObject: {},showModule: true,formName: 'stroke_010',className: 'obj-form-title',dataSource: dataSourceMainSickControl6(this), hideTitle: true, title: '三、随访期间主要病史及控制情况-糖尿病'},
{name: 'TreatmentSituation',formObject: {},showModule: true,formName: 'stroke_011',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation(this), title: '四、本次随访期间血管病变的外科手术或介入治疗情况-颈动脉'}, {name: 'TreatmentSituation',formObject: {},showModule: true,formName: 'stroke_011',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation(this), title: '四、本次随访期间血管病变的外科手术或介入治疗情况'},
{name: 'TreatmentSituation2',formObject: {},showModule: true,formName: 'stroke_012',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation2(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-冠状动脉'}, {name: 'TreatmentSituation2',formObject: {},showModule: true,formName: 'stroke_012',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation2(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-冠状动脉'},
{name: 'TreatmentSituation3',formObject: {},showModule: true,formName: 'stroke_013',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation3(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-出血性卒中外科治疗'}, {name: 'TreatmentSituation3',formObject: {},showModule: true,formName: 'stroke_013',className: 'obj-form-title',dataSource: dataSourceTreatmentSituation3(this), hideTitle: true, title: '四、本次随访期间血管病变的外科手术或介入治疗情况-出血性卒中外科治疗'},
{name: 'CheckBody',formObject: {bmi: 0,},showModule: true,formName: 'stroke_014',className: 'obj-form-title',dataSource: dataSourceCheckBody(this), ruleNew:true,title: '五、体格检查(高危人群12个月随访必做)'}, {name: 'CheckBody',formObject: {bmi: 0,},showModule: true,formName: 'stroke_014',className: 'obj-form-title',dataSource: dataSourceCheckBody(this), ruleNew:true,title: '五、体格检查(高危人群12个月随访必做)'},
...@@ -157,6 +159,17 @@ ...@@ -157,6 +159,17 @@
} }
}, },
created(){ created(){
this.instance = axios.create({
headers:{
// sysCode: 17,
token: '7B74969E396C4041A4DFCAC75711AA71',
// token: localStorage.getItem('storageToken')
},
timeout: 45000,
});
this.planPatientsTimesId = this.$route.query.planPatientsTimesId this.planPatientsTimesId = this.$route.query.planPatientsTimesId
this.scaleNo = this.$route.query.scaleNo this.scaleNo = this.$route.query.scaleNo
this.doctorId = this.$route.query.doctorId this.doctorId = this.$route.query.doctorId
...@@ -168,15 +181,9 @@ ...@@ -168,15 +181,9 @@
}, },
methods: { methods: {
getWhiteDomain(){ getWhiteDomain(){
// config.headers['token'] = '876B1ECF42DE4D49942E18D9CA72F2B5' this.instance({
// config.headers['token'] = localStorage.getItem('storageToken')
axios({
method: 'get', method: 'get',
url: getFollowUpSC(`/followup/route/domain?type=1`), url: getFollowUpSC(`/followup/route/domain?type=1`),
headers: {
// token: '7B74969E396C4041A4DFCAC75711AA71',
token: localStorage.getItem('storageToken')
},
data: {}, data: {},
}).then(res=>{ }).then(res=>{
if(res.data.code=='000000'){ if(res.data.code=='000000'){
...@@ -203,7 +210,7 @@ ...@@ -203,7 +210,7 @@
}, },
// 获取展示的模块 // 获取展示的模块
getFormModules(){ getFormModules(){
axios({ this.instance({
method: 'get', method: 'get',
url: `${this.domain}/scale/${this.scaleNo}/models`, url: `${this.domain}/scale/${this.scaleNo}/models`,
data: {}, data: {},
...@@ -227,7 +234,7 @@ ...@@ -227,7 +234,7 @@
}, },
// 获取量表详情 // 获取量表详情
getFormDetail(){ getFormDetail(){
axios({ this.instance({
method: 'get', method: 'get',
url: `${this.domain}/scale/${this.planPatientsTimesId}/${this.scaleNo}/info?type=2&isLine=2`, url: `${this.domain}/scale/${this.planPatientsTimesId}/${this.scaleNo}/info?type=2&isLine=2`,
data: JSON.stringify(this.formData), data: JSON.stringify(this.formData),
...@@ -240,10 +247,9 @@ ...@@ -240,10 +247,9 @@
if( ( investigationState === '失访' || investigationState === '死亡' ) ){ if( ( investigationState === '失访' || investigationState === '死亡' ) ){
this.showModule = false; this.showModule = false;
} }
}
if(this.formData[formName]){
this.addComponents[i].formObject = this.formData[formName]; this.addComponents[i].formObject = this.formData[formName];
}else{
console.log(123)
} }
...@@ -270,15 +276,16 @@ ...@@ -270,15 +276,16 @@
this.formData.scaleNo = this.scaleNo; this.formData.scaleNo = this.scaleNo;
this.formData.isLine = 2; this.formData.isLine = 2;
// console.log(JSON.stringify(this.formData)) // console.log(JSON.stringify(this.formData))
axios({ this.instance({
method: 'post', method: 'post',
url: getFollowUpSC('/scale/save'), url: getFollowUpSC('/scale/save'),
data: JSON.stringify(this.formData), data: JSON.stringify(this.formData),
}).then(res=>{ }).then(res=>{
if(res.data.code=='000000'){ if(res.data.code=='000000'){
this.updateScalesStatus(); this.updateScalesStatus();
let doMsg = (this.saveWay==1) ? '提交成功' : '保存成功';
this.$message({ this.$message({
message: '录入成功', message: doMsg,
type: 'success' type: 'success'
}); });
setTimeout(()=>{ setTimeout(()=>{
...@@ -286,13 +293,19 @@ ...@@ -286,13 +293,19 @@
path: '/followup/record-manage/record-list' path: '/followup/record-manage/record-list'
}) })
},1000) },1000)
}else{
let doMsg = (this.saveWay==1) ? '提交失败' : '保存失败';
this.$message({
message: doMsg,
type: 'error'
});
} }
}); });
// } // }
// this.$emit('checkEnd',false); // this.$emit('checkEnd',false);
}, },
updateScalesStatus(){ updateScalesStatus(){
axios({ this.instance({
method: 'post', method: 'post',
url: getFollowUpSC('/followup/entering/scale/updateScalesStatus'), url: getFollowUpSC('/followup/entering/scale/updateScalesStatus'),
data: { data: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册