Commit a9705e8b by 赵增煜

显示修改

parent ac52081b
......@@ -93,21 +93,21 @@ protected function detail($id)
{
return Show::make($id, new ExternalPrescriptionModel(), function (Show $show) {
$show->field('id');
$show->field('external_prescription_id');
$show->field('issue_at');
$show->field('status');
$show->field('company_name');
$show->field('pharmacy_name');
$show->field('pharmacy_id');
$show->field('agent');
$show->field('patient_name');
$show->field('patient_mobile');
$show->field('patient_gender')->using(ExternalPrescriptionModel::SEX_MAP)->width(3);
$show->field('patient_age');
$show->field('patient_id_card');
$show->field('doctor_name');
$show->field('diagnosis');
$show->field('drug_info')->display(function ($drugInfoJson) {
$show->field('external_prescription_id','580处方单编号');
$show->field('issue_at','处方开具时间');
$show->field('status','状态');
$show->field('company_name','企业名称');
$show->field('pharmacy_name','药店名称');
//$show->field('pharmacy_id');
$show->field('agent','会员/代理人');
$show->field('patient_name','就诊人姓名');
$show->field('patient_mobile','就诊人手机号');
$show->field('patient_gender','就诊人性别')->using(ExternalPrescriptionModel::SEX_MAP)->width(3);
$show->field('patient_age','就诊人年龄');
$show->field('patient_id_card','就诊人身份证号');
$show->field('doctor_name','接诊医师姓名');
$show->field('diagnosis','诊断');
$show->field('drug_info','用药信息')->as(function ($drugInfoJson) {
// 尝试将 $drugInfoJson 解码为数组
$drugInfoArray = json_decode($drugInfoJson, true);
// 检查解码是否成功且 $drugInfoArray 是一个数组
......@@ -123,14 +123,14 @@ protected function detail($id)
return $drugInfoJson; // 或者返回一个错误消息,如 'Invalid JSON'
}
})->label(); // 设置列的标签
$show->field('pharmacist_name');
$show->field('review_at');
$show->field('pharmacist_attr');
$show->field('dispatcher');
$show->field('checker');
$show->field('dispenser');
$show->field('created_at');
$show->field('updated_at');
$show->field('pharmacist_name','审核药师');
$show->field('review_at','审核时间');
$show->field('pharmacist_attr','药师属性');
$show->field('dispatcher','调配人');
$show->field('checker','核对人');
$show->field('dispenser','发药人');
// $show->field('created_at');
// $show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableEdit();
$tools->disableDelete(); // 禁止删除按钮
......
......@@ -108,21 +108,21 @@ protected function detail($id)
{
return Show::make($id, new ExternalPrescriptionModel(), function (Show $show) {
$show->field('id');
$show->field('external_prescription_id');
$show->field('issue_at');
$show->field('status');
$show->field('company_name');
$show->field('pharmacy_name');
$show->field('pharmacy_id');
$show->field('agent');
$show->field('patient_name');
$show->field('patient_mobile');
$show->field('patient_gender')->using(ExternalPrescriptionModel::SEX_MAP)->width(3);
$show->field('patient_age');
$show->field('patient_id_card');
$show->field('doctor_name');
$show->field('diagnosis');
$show->field('drug_info')->as(function ($drugInfoJson) {
$show->field('external_prescription_id','580处方单编号');
$show->field('issue_at','处方开具时间');
$show->field('status','状态');
$show->field('company_name','企业名称');
$show->field('pharmacy_name','药店名称');
//$show->field('pharmacy_id');
$show->field('agent','会员/代理人');
$show->field('patient_name','就诊人姓名');
$show->field('patient_mobile','就诊人手机号');
$show->field('patient_gender','就诊人性别')->using(ExternalPrescriptionModel::SEX_MAP)->width(3);
$show->field('patient_age','就诊人年龄');
$show->field('patient_id_card','就诊人身份证号');
$show->field('doctor_name','接诊医师姓名');
$show->field('diagnosis','诊断');
$show->field('drug_info','用药信息')->as(function ($drugInfoJson) {
// 尝试将 $drugInfoJson 解码为数组
$drugInfoArray = json_decode($drugInfoJson, true);
// 检查解码是否成功且 $drugInfoArray 是一个数组
......@@ -138,14 +138,14 @@ protected function detail($id)
return $drugInfoJson; // 或者返回一个错误消息,如 'Invalid JSON'
}
})->label(); // 设置列的标签
$show->field('pharmacist_name');
$show->field('review_at');
$show->field('pharmacist_attr');
$show->field('dispatcher');
$show->field('checker');
$show->field('dispenser');
$show->field('created_at');
$show->field('updated_at');
$show->field('pharmacist_name','审核药师');
$show->field('review_at','审核时间');
$show->field('pharmacist_attr','药师属性');
$show->field('dispatcher','调配人');
$show->field('checker','核对人');
$show->field('dispenser','发药人');
// $show->field('created_at');
// $show->field('updated_at');
$show->panel()->tools(function ($tools) {
$tools->disableEdit();
$tools->disableDelete(); // 禁止删除按钮
......
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 sign in to comment