import request from '@/utils/request' /** * 查询药品账页字典--相关 * @returns */ export function selectYpDict(text, groupNo, isSee) { return request({ url: '/ypDict/selectYpDict', method: 'get', params: { text, groupNo, isSee }, }) } /** * 查询药品账页字典集合 * @returns */ export function selectYpDictData() { return request({ url: '/ypDict/selectYpDictData', method: 'get', params: {}, }) } /** * 是否停用药品 * @returns */ export function updateYpStopOrUsed(code, serial, delFlag) { return request({ url: '/ypDict/updateYpStopOrUsed', method: 'get', params: { code, serial, delFlag }, }) } /** * 根据code(药品编码)查询药品账页信息 * @param {string} code * @param serial serial * @returns */ export function selectYpDictByCode(code, serial) { return request({ url: '/ypDict/selectYpDictByCode', method: 'get', params: { code, serial }, }) } /** * 保存药品账页信息 * @param data * @returns */ export function saveYpDict(data) { return request({ url: '/ypDict/saveYpDict', method: 'post', data }) } export function selectYpGroupNameByYfFlag(text, yfFlag) { return request({ url: '/ypDict/selectYpGroupNameByYfFlag', method: 'get', params: { text, yfFlag }, }) } export function selectYpGroupNameAll(text) { return request({ url: '/ypDict/selectYpGroupNameAll', method: 'get', params: { text }, }) } /** * 更新临购药品标志(1:是) * @param {string} code 药品code * @param {string} serial 药品序号 * @param {string} tempPurchaseFlag 临购药品标志 * @returns */ export function updateYpTempPurchase(code, serial, tempPurchaseFlag) { return request({ url: '/ypDict/updateYpTempPurchase', method: 'get', params: { code, serial, tempPurchaseFlag }, }) } /** * 药库是否停用药品 * @returns */ export function updateYkYpStopOrUsed(groupNo, code, serial, delFlag) { return request({ url: '/ypDict/updateYkYpStopOrUsed', method: 'get', params: { groupNo, code, serial, delFlag }, }) } /** * 更新国家基本药物标志(1:是) * @returns */ export function updateYpJbFlag(code, serial, jbFlag) { return request({ url: '/ypDict/updateYpJbFlag', method: 'get', params: { code, serial, jbFlag }, }) } /** * 查询药品库存量 * @param code 编码 * @param groupNo 药库 * @returns {*} */ export function selectYpStorageInfo(code, groupNo) { return request({ url: '/ypDict/selectYpStorageInfo', method: 'get', params: { code, groupNo }, }) } /** * 更新高警示药品标志(1:是) * @returns */ export function updateYpHighWarning(code, serial, flag) { return request({ url: '/ypDict/updateYpHighWarning', method: 'get', params: { code, serial, flag }, }) } /** * 更新国家组织药品集中采购中标药品标志(1:是) * @returns */ export function updateYpWinningBidder(code, serial, flag) { return request({ url: '/ypDict/updateYpWinningBidder', method: 'get', params: { code, serial, flag }, }) } /** * 更新重点监控药品标志(1:是) * @returns */ export function updateYpFocusMonitor(code, serial, flag) { return request({ url: '/ypDict/updateYpFocusMonitor', method: 'get', params: { code, serial, flag }, }) } /** * 更新口服药品是否允许退药标志(1:允许退药) * @returns */ export function updateYpReturnFlag(code, serial, flag) { return request({ url: '/ypDict/updateYpReturnFlag', method: 'get', params: { code, serial, flag }, }) }