添加系统详情
This commit is contained in:
parent
fafbf5aad4
commit
4f111ddf80
9
auto-imports.d.ts
vendored
Normal file
9
auto-imports.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/* eslint-disable */
|
||||
/* prettier-ignore */
|
||||
// @ts-nocheck
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
// Generated by unplugin-auto-import
|
||||
export {}
|
||||
declare global {
|
||||
|
||||
}
|
||||
19
components.d.ts
vendored
19
components.d.ts
vendored
@ -9,10 +9,29 @@ export {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
AccountModal: typeof import('./src/components/accountModal.vue')['default']
|
||||
AddInquiryConfigModal: typeof import('./src/components/addInquiryConfigModal.vue')['default']
|
||||
AddSysconfigModal: typeof import('./src/components/addSysconfigModal.vue')['default']
|
||||
ChatRecord: typeof import('./src/components/chatRecord.vue')['default']
|
||||
ConfirmModal: typeof import('./src/components/confirmModal.vue')['default']
|
||||
DeleteModal: typeof import('./src/components/DeleteModal.vue')['default']
|
||||
DoctorModal: typeof import('./src/components/doctorModal.vue')['default']
|
||||
FamilyModal: typeof import('./src/components/familyModal.vue')['default']
|
||||
InquiryDetailModal: typeof import('./src/components/inquiryDetailModal.vue')['default']
|
||||
InquiryDetailMoneyModal: typeof import('./src/components/inquiryDetailMoneyModal.vue')['default']
|
||||
IsOkModal: typeof import('./src/components/isOkModal.vue')['default']
|
||||
Loading: typeof import('./src/components/loading/loading.vue')['default']
|
||||
MedinceDetailModal: typeof import('./src/components/medinceDetailModal.vue')['default']
|
||||
MedinceModal: typeof import('./src/components/medinceModal.vue')['default']
|
||||
NumberModal: typeof import('./src/components/numberModal.vue')['default']
|
||||
PatientModal: typeof import('./src/components/patientModal.vue')['default']
|
||||
Prescription: typeof import('./src/components/prescription.vue')['default']
|
||||
PrescriptionModal: typeof import('./src/components/prescriptionModal.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
SysmedinceDetailModal: typeof import('./src/components/sysmedinceDetailModal.vue')['default']
|
||||
TableUnit: typeof import('./src/components/tableUnit.vue')['default']
|
||||
Upload: typeof import('./src/components/upload.vue')['default']
|
||||
WithdrawalModal: typeof import('./src/components/withdrawalModal.vue')['default']
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<div class="bar"></div>
|
||||
<div class="name">基本信息</div>
|
||||
</div>
|
||||
<a-form :model="modalForm" :rules="rules" ref="modalFormRef" :auto-label-width="true">
|
||||
<a-form :model="modalForm" :rules="rules" ref="modalFormRef" :auto-label-width="true" :disabled="modalSatus=='detail'">
|
||||
<a-row :gutter="24" style="margin-top: 35px;">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="avatar" label="药品名称:">
|
||||
@ -214,11 +214,11 @@
|
||||
</a-row>
|
||||
<a-divider />
|
||||
</a-form>
|
||||
<div class="titlebox" >
|
||||
<div class="titlebox" v-if="modalSatus!='detail'">
|
||||
<div class="bar"></div>
|
||||
<div class="name">操作</div>
|
||||
</div>
|
||||
<a-row :gutter="24" style="margin-top: 35px;" >
|
||||
<a-row :gutter="24" style="margin-top: 35px;" v-if="modalSatus!='detail'">
|
||||
<a-col :span="24">
|
||||
<a-form-item field="" label="" no-style>
|
||||
<a-space >
|
||||
|
||||
@ -77,8 +77,10 @@
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<a-space>
|
||||
<a-button v-has="'admin:sysMedinceList:detail'" type="text"
|
||||
@click="handleDetail(record,'detail')"><icon-book />详情</a-button>
|
||||
<a-button v-has="'admin:sysMedinceList:edit'" type="text"
|
||||
@click="handleDetail(record)"><icon-edit />修改</a-button>
|
||||
@click="handleDetail(record,'edit')"><icon-edit />修改</a-button>
|
||||
<!-- <a-button v-has="'admin:sysMedinceList:edit'" type="text" @click="handleUpdate(record)"><icon-edit />
|
||||
修改</a-button> -->
|
||||
<!-- <a-button v-has="'admin:sysMedinceList:remove'" type="text"
|
||||
@ -205,14 +207,20 @@
|
||||
};
|
||||
|
||||
//详情
|
||||
const handleDetail = async (record) => {
|
||||
const handleDetail = async (record,type) => {
|
||||
const { code, data, message } = await getSysMedinceDetail(record.product_id);
|
||||
|
||||
if (code == 200) {
|
||||
Object.assign(modalForm, data);
|
||||
if(type=="edit"){
|
||||
modalSatus.value = 'edit';
|
||||
modalTitle.value = '修改药品';
|
||||
}else{
|
||||
modalSatus.value = 'detail';
|
||||
modalTitle.value = '药品详情';
|
||||
}
|
||||
modalVisible.value = true;
|
||||
modalSatus.value = 'edit';
|
||||
modalTitle.value = '修改药品';
|
||||
|
||||
}
|
||||
};
|
||||
// 批量删除
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user