This commit is contained in:
2026-05-08 16:27:31 +08:00
parent 14735af0b3
commit 8719cdd6d6
6 changed files with 174 additions and 33 deletions
@@ -105,6 +105,17 @@ class PrescriptionOrderController extends BaseAdminController
return $this->success('保存成功', $result);
}
public function updateAmount()
{
$params = (new PrescriptionOrderValidate())->post()->goCheck('updateAmount');
$result = PrescriptionOrderLogic::updateAmount($params, $this->adminId, $this->adminInfo);
if ($result === false) {
return $this->fail(PrescriptionOrderLogic::getError());
}
return $this->success('修改成功');
}
/**
* 修改关联处方的患者姓名与手机号(订单详情场景)
*/
@@ -246,21 +257,6 @@ class PrescriptionOrderController extends BaseAdminController
return $this->success('', $result);
}
/**
* 修改订单金额
*/
public function updateAmount()
{
$params = (new PrescriptionOrderValidate())->post()->goCheck('updateAmount');
$result = PrescriptionOrderLogic::updateAmount($params, $this->adminId, $this->adminInfo);
if ($result === false) {
return $this->fail(PrescriptionOrderLogic::getError());
}
return $this->success('修改成功');
}
/**
* 为「已发货」订单新增一条关联支付单,并重置支付单审核状态为待审核
*/