|
|
@ -950,12 +950,17 @@ |
|
|
|
<a-button |
|
|
|
class="white--text px-10 bot-right-btn" |
|
|
|
type="primary" |
|
|
|
@click="setData()" |
|
|
|
@click="showModal" |
|
|
|
v-if="list.length > 0 && getCode" |
|
|
|
style="margin-top: 40px" |
|
|
|
> |
|
|
|
提交 |
|
|
|
</a-button> |
|
|
|
<a-modal title="提示" :visible="visible" :confirm-loading="confirmLoading" @ok="setData" @cancel="handleCancel"> |
|
|
|
<p> |
|
|
|
是否提交住院号为: <span style="color: green">{{ hospitalization }}</span> 的患者的信息 |
|
|
|
</p> |
|
|
|
</a-modal> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -999,6 +1004,8 @@ export default { |
|
|
|
dateChoose: new Date(), |
|
|
|
subDateTime: '', |
|
|
|
getCode: '', |
|
|
|
visible: false, |
|
|
|
confirmLoading: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -1017,16 +1024,23 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
async created() { |
|
|
|
console.log(this.patientId); |
|
|
|
this.getCode = ''; |
|
|
|
this.tabNums = 0; |
|
|
|
if (this.$route.query && this.$route.query.code) { |
|
|
|
// vue从路径中获取参数 此处参数名为code |
|
|
|
this.getCode = this.$route.query.code; |
|
|
|
} |
|
|
|
this.getQuery(); |
|
|
|
await this.getQuery(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
showModal() { |
|
|
|
this.visible = true; |
|
|
|
}, |
|
|
|
handleCancel(e) { |
|
|
|
this.visible = false; |
|
|
|
}, |
|
|
|
getList(obj) { |
|
|
|
let arr = []; |
|
|
|
for (let i = 0; i < obj.length; i++) { |
|
|
@ -1053,7 +1067,7 @@ export default { |
|
|
|
const params = { |
|
|
|
param: { |
|
|
|
code: this.getCode ? this.getCode : '', |
|
|
|
id: localStorage.getItem('patientId') ? localStorage.getItem('patientId') : '', |
|
|
|
id: this.patientId ? this.patientId : '', |
|
|
|
nums: this.tabNums, |
|
|
|
}, |
|
|
|
}; |
|
|
@ -1348,6 +1362,7 @@ export default { |
|
|
|
// 提交表单 |
|
|
|
async setData() { |
|
|
|
try { |
|
|
|
this.confirmLoading = true; |
|
|
|
const params = { |
|
|
|
param: { |
|
|
|
list: this.contentList, |
|
|
@ -1360,12 +1375,14 @@ export default { |
|
|
|
const { code, msg, data } = res.data; |
|
|
|
if (code === 200) { |
|
|
|
this.$message.success('提交成功'); |
|
|
|
this.visible = false; |
|
|
|
} else { |
|
|
|
this.$message.error('提交失败'); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
this.$message.error('error'); |
|
|
|
} |
|
|
|
this.confirmLoading = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|