|
|
@ -81,17 +81,19 @@ |
|
|
|
@focus="changeOtherChecked(otherName.value)" |
|
|
|
@blur="changeOther(otherName)" |
|
|
|
/> |
|
|
|
<u-input |
|
|
|
:clearable="false" |
|
|
|
class="flex-1" |
|
|
|
placeholder="每日总剂量(单位: mg)" |
|
|
|
type="number" |
|
|
|
input-align="center" |
|
|
|
v-model="otherMedicine.value" |
|
|
|
@focus="changeOtherChecked(otherMedicine.value)" |
|
|
|
@blur="changeOther(otherMedicine)" |
|
|
|
/> |
|
|
|
<view class="w-24"></view> |
|
|
|
<view class="flex flex-nowrap items-center"> |
|
|
|
<u-input |
|
|
|
:clearable="false" |
|
|
|
class="flex-1 mr-3" |
|
|
|
placeholder="每日总剂量(单位: mg)" |
|
|
|
type="number" |
|
|
|
input-align="center" |
|
|
|
v-model="otherMedicine.value" |
|
|
|
@focus="changeOtherChecked(otherMedicine.value)" |
|
|
|
@blur="changeOther(otherMedicine)" |
|
|
|
/> |
|
|
|
<view style="width: 79px !important"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="p-4"> |
|
|
@ -250,11 +252,11 @@ export default { |
|
|
|
try { |
|
|
|
const params = this.params; |
|
|
|
if (!this.validationRequired(params)) return; |
|
|
|
// params.projectId = this.projectId; |
|
|
|
// await this.$u.api.addMedicine(params); |
|
|
|
// this.$emit('showToast', 'success', '药物使用添加成功'); |
|
|
|
// this.show = false; |
|
|
|
// this.$emit('closeAdd'); |
|
|
|
params.projectId = this.projectId; |
|
|
|
await this.$u.api.addMedicine(params); |
|
|
|
this.$emit('showToast', 'success', '药物使用添加成功'); |
|
|
|
this.show = false; |
|
|
|
this.$emit('closeAdd'); |
|
|
|
} catch (error) { |
|
|
|
console.error('error: ', error); |
|
|
|
this.$emit('showToast', 'error', '药物使用添加失败'); |
|
|
|