|
|
@ -17,23 +17,25 @@ |
|
|
|
</div> |
|
|
|
<div class="content-right"> |
|
|
|
<!-- text --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" |
|
|
|
readOnly /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" |
|
|
|
v-decorator="[v]" readOnly /> |
|
|
|
<!-- input --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" |
|
|
|
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" |
|
|
|
:type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)" |
|
|
|
placeholder="请输入" /> |
|
|
|
<!-- datetime --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly |
|
|
|
@click="selectOption(v)" v-decorator="[v]" placeholder="请选择" /> |
|
|
|
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" v-decorator="[v]" |
|
|
|
@change="handleChange($event, v)" placeholder="请选择" style="display: block;"> |
|
|
|
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" |
|
|
|
v-decorator="[v]" @change="handleChange($event, v)" placeholder="请选择" |
|
|
|
style="display: block;"> |
|
|
|
<a-select-option v-for="(item, val) in k.range" :key="val"> |
|
|
|
{{ val }} |
|
|
|
</a-select-option> |
|
|
|
</a-select> |
|
|
|
<!-- radio --> |
|
|
|
<a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" v-decorator="[v]" |
|
|
|
@change=" |
|
|
|
<a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" |
|
|
|
v-decorator="[v]" @change=" |
|
|
|
handleChange($event.target.value, v) |
|
|
|
"> |
|
|
|
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> |
|
|
@ -116,11 +118,12 @@ |
|
|
|
</div> |
|
|
|
<div class="content-right"> |
|
|
|
<!-- text --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" |
|
|
|
readOnly /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" |
|
|
|
v-decorator="[v]" readOnly /> |
|
|
|
<!-- modal --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'modal'" :placeholder="k.rightText" |
|
|
|
@click="toInform" type="text" v-decorator="[v]" readOnly /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'modal'" |
|
|
|
:placeholder="k.rightText" @click="toInform" type="text" v-decorator="[v]" |
|
|
|
readOnly /> |
|
|
|
<!-- radio --> |
|
|
|
<a-radio-group :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" v-decorator="[ |
|
|
|
v, |
|
|
@ -133,16 +136,17 @@ |
|
|
|
</a-radio> |
|
|
|
</a-radio-group> |
|
|
|
<!-- checkbox --> |
|
|
|
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" :options="k.range" |
|
|
|
v-decorator="[ |
|
|
|
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" |
|
|
|
:options="k.range" v-decorator="[ |
|
|
|
v, |
|
|
|
{ initialValue: k.default }, |
|
|
|
]" @change=" |
|
|
|
handleChange($event, v, null, k.type) |
|
|
|
" /> |
|
|
|
<!-- input --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" |
|
|
|
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" |
|
|
|
:type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)" |
|
|
|
placeholder="请输入" /> |
|
|
|
<!-- datetime --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly |
|
|
|
@click="selectOption(v)" v-decorator="[ |
|
|
@ -191,11 +195,11 @@ |
|
|
|
</div> |
|
|
|
<div class="content-right"> |
|
|
|
<!-- text --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" v-decorator="[v]" |
|
|
|
readOnly /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'text'" type="text" |
|
|
|
v-decorator="[v]" readOnly /> |
|
|
|
<!-- radio --> |
|
|
|
<a-radio-group class="radioGroupItem" :disabled="writeAble || !editAuth" v-if="k.type === 'radio'" |
|
|
|
v-decorator="[v]" @change=" |
|
|
|
<a-radio-group class="radioGroupItem" :disabled="writeAble || !editAuth" |
|
|
|
v-if="k.type === 'radio'" v-decorator="[v]" @change=" |
|
|
|
handleChange($event.target.value, v) |
|
|
|
"> |
|
|
|
<a-radio v-for="(item, index) in k.range" :key="item" :value="item"> |
|
|
@ -203,18 +207,19 @@ |
|
|
|
</a-radio> |
|
|
|
</a-radio-group> |
|
|
|
<!-- input --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" :type="k.inputType" |
|
|
|
v-decorator="[v]" @blur="handleChange($event.target.value, v)" placeholder="请输入" /> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'input'" |
|
|
|
:type="k.inputType" v-decorator="[v]" @blur="handleChange($event.target.value, v)" |
|
|
|
placeholder="请输入" /> |
|
|
|
<!-- checkbox --> |
|
|
|
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" :options="k.range" |
|
|
|
v-decorator="[v]" @change=" |
|
|
|
<a-checkbox-group :disabled="writeAble || !editAuth" v-if="k.type === 'checkbox'" |
|
|
|
:options="k.range" v-decorator="[v]" @change=" |
|
|
|
handleChange($event, v, null, k.type) |
|
|
|
" /> |
|
|
|
<!-- datetime --> |
|
|
|
<a-input :disabled="writeAble || !editAuth" v-if="k.type === 'datetime'" readOnly |
|
|
|
@click="selectOption(v)" v-decorator="[v]" placeholder="请选择" /> |
|
|
|
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" v-decorator="[v]" |
|
|
|
@change="handleChange($event, v)" placeholder="请选择"> |
|
|
|
<a-select :disabled="writeAble || !editAuth" v-if="k.type === 'select'" |
|
|
|
v-decorator="[v]" @change="handleChange($event, v)" placeholder="请选择"> |
|
|
|
<a-select-option v-for="(item, v) in k.range" :key="item"> |
|
|
|
{{ v }} |
|
|
|
</a-select-option> |
|
|
@ -500,11 +505,12 @@ |
|
|
|
} |
|
|
|
// this.updateAidBase(code, value, type) |
|
|
|
}, |
|
|
|
async handleEdit(e){ |
|
|
|
if(!this.editAuth){ |
|
|
|
async handleEdit(e) { |
|
|
|
if (!this.editAuth) { |
|
|
|
this.editAuth = true |
|
|
|
}else{ |
|
|
|
this.handleSubmit(e, 0) |
|
|
|
} else { |
|
|
|
await this.handleSubmit(e, 0) |
|
|
|
this.editAuth = false |
|
|
|
} |
|
|
|
}, |
|
|
|
async onSubmit(e, patientId) { |
|
|
@ -527,7 +533,7 @@ |
|
|
|
this.handleSubmit(e) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSubmit(e,finishStatus) { |
|
|
|
handleSubmit(e, finishStatus) { |
|
|
|
this.$nextTick(async () => { |
|
|
|
this.firstForm.validateFields(async (err, values) => { |
|
|
|
let codeAndAnswerList = [], |
|
|
@ -689,9 +695,9 @@ |
|
|
|
if (this.taskList.text === map[k]) { |
|
|
|
this.taskList.status = true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
|
this.$route.name !== 'Min' && |
|
|
|
this.$route.name !== 'PatientList' |
|
|
@ -848,8 +854,6 @@ |
|
|
|
} |
|
|
|
</style> |
|
|
|
<style scoped> |
|
|
|
|
|
|
|
|
|
|
|
>>>.adverse .ant-form-item:nth-child(2) { |
|
|
|
height: 150px !important; |
|
|
|
display: flex; |
|
|
@ -940,11 +944,11 @@ |
|
|
|
</style> |
|
|
|
|
|
|
|
<style lang="less"> |
|
|
|
.Overviewbasicr{ |
|
|
|
.Overviewbasicr { |
|
|
|
.basicr-back .ant-form-item { |
|
|
|
.ant-form-item-label > label::after{ |
|
|
|
content: ':'; |
|
|
|
} |
|
|
|
.ant-form-item-label>label::after { |
|
|
|
content: ':'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |