| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import request from '@/utils/request'
- /**
- * 查询医生待开方处方列表
- * @param {Object} query 查询参数
- * @param {number} query.pageNum 页码
- * @param {number} query.pageSize 每页条数
- * @param {string} query.patientName 患者姓名
- * @param {number} query.doctorConfirm 处方状态(0待医生开方 1已开方待审核 -1医生拒方)
- * @param {number} query.prescribeType 处方类型(1西药 2中药 3中西药结合)
- * @param {string} query.orderCode 订单编号
- * @param {string} query.prescribeCode 处方编号
- * @returns {Promise} 返回Promise对象
- */
- export function waitOpenPrescribeList(query) {
- return request({
- url: '/his/prescribeDataScrm/waitOpenPrescribeList',
- method: 'get',
- params: query
- })
- }
- /**
- * 获取医生、药师签名及职称信息
- * @param {Array<number>} doctorIds 医生ID和药师ID组成的数组,例如 [医生ID, 药师ID]
- * @returns {Promise} 返回Promise,resolve时携带医生签名信息、职称等
- */
- export function getDoctorSignInfo(doctorIds) {
- return request({
- url: '/his/prescribeDataScrm/getSignInfo',
- method: 'post',
- data: doctorIds // 直接传数组
- })
- }
- /**
- * 医生提交开方前的建议信息(诊断、治疗方面、注意禁忌等)
- * @param {Object} data 请求参数
- * @param {number} data.prescribeId 处方ID
- * @param {string} data.diagnose 诊断
- * @param {string} data.facialDiagnosis 舌诊面诊手诊
- * @param {string} data.healingAreaJson 治疗方面JSON字符串,格式:[{"diagnosisContent":"","suggestTreatment":""}]
- * @param {string} data.noteTaboos 注意禁忌
- * @returns {Promise}
- */
- export function submitDoctorAdvice(data) {
- return request({
- url: '/his/prescribeDataScrm/addDoctorAdvice',
- method: 'post',
- data: data
- })
- }
- // 获取处方详情
- export function getPrescribeScrmDetail(prescribeId) {
- return request({
- url: `/his/prescribeDataScrm/${prescribeId}`,
- method: 'get'
- })
- }
- // 提交处方部分字段(如处方类型、诊断、医嘱等)
- export function submitBasicInfo(prescribeId, data) {
- return request({
- url: `/his/prescribeDataScrm/submitBasicInfo`,
- method: 'put',
- data: { prescribeId, ...data }
- })
- }
- // 提交处方(最终确认)
- export function submitPrescribeScrm(data) {
- return request({
- url: '/his/prescribeDataScrm/submitPrescribe',
- method: 'post',
- data: data
- })
- }
- /**
- * 医生拒方
- * @param {Object} data - { prescribeId, auditReason }
- * @returns {Promise}
- */
- export function doctorRejectPrescribe(data) {
- return request({
- url: '/his/prescribeDataScrm/doctorRejectScrmPrescribe',
- method: 'post',
- data: data
- })
- }
- /**
- * 获取客户信息+问答信息
- * @param {number} companyCustomerId 客户信息表主键id
- * @returns {Promise}
- */
- export function getCustomerInfoAndQuestionAnswer(companyCustomerId) {
- return request({
- url: `/his/prescribeDataScrm/getCustomerInfoAndQuestionAnswer/${companyCustomerId}`,
- method: 'get'
- })
- }
- /**
- * 获取已保存的医生建议信息
- * @param {number} prescribeId 处方ID
- * @returns {Promise}
- */
- export function getDoctorAdvice(prescribeId) {
- return request({
- url: `/his/prescribeDataScrm/getDoctorAdvice/${prescribeId}`,
- method: 'get'
- })
- }
|