当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
26 lines
782 B
JavaScript
Executable File
26 lines
782 B
JavaScript
Executable File
const isWin = process.platform === 'win32';
|
|
|
|
// 如果是 windows 平台
|
|
if (isWin) {
|
|
const {dev: devScriptStr, build: buildScriptStr} = require('../package.json').scripts
|
|
const args = process.argv.slice(2)
|
|
const scriptType = args[0]
|
|
const fRed = "\x1b[31m"
|
|
|
|
const warnFn = (type) => {
|
|
console.log(fRed,
|
|
`\n[vdoing] 提示:由于您使用的是 windows 系统,请使用 ${type}:win 运行,否则运行失败。 \n`
|
|
)
|
|
process.exit(1)
|
|
}
|
|
|
|
// 当前运行的是dev脚本 且 脚本前端是'export'
|
|
if (scriptType === 'dev' && devScriptStr.startsWith('export')) {
|
|
warnFn('dev')
|
|
}
|
|
|
|
// 当前运行的是build脚本 且 脚本前端是'export'
|
|
if (scriptType === 'build' && buildScriptStr.startsWith('export')) {
|
|
warnFn('build')
|
|
}
|
|
} |