|
@@ -163,6 +163,27 @@ function handleChangeItemRowClick(row, data) {
|
|
data.orderCode = store.currentOrderChange.orderCode;
|
|
data.orderCode = store.currentOrderChange.orderCode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const showYzClass = ref(false);
|
|
|
|
+const zdChargeClassList = ref([]);
|
|
|
|
+const selectedChargeClass = ref([])
|
|
|
|
+function openYzClassPanel() {
|
|
|
|
+ api.getAllZdChargeClass().then((res) => {
|
|
|
|
+ zdChargeClassList.value = res;
|
|
|
|
+ showYzClass.value = true
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function confirmYzClass() {
|
|
|
|
+ if (!selectedChargeClass.value || selectedChargeClass.value.length === 0) {
|
|
|
|
+ xcMessage.warning('请至少选择一项医嘱属性!')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ api.generateYzOrderItem(selectedChargeClass.value).then((res) => {
|
|
|
|
+ xcMessage.success(res);
|
|
|
|
+ showYzClass.value = false
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
store.changeItemType = await api.getChangeItemType();
|
|
store.changeItemType = await api.getChangeItemType();
|
|
store.ssType = await api.getSsType();
|
|
store.ssType = await api.getSsType();
|
|
@@ -179,6 +200,13 @@ onMounted(async () => {
|
|
<el-radio value="1">停用</el-radio>
|
|
<el-radio value="1">停用</el-radio>
|
|
<el-radio value="all">全部</el-radio>
|
|
<el-radio value="all">全部</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ style="margin: 0 4px 8px 32px; float: right"
|
|
|
|
+ @click="openYzClassPanel"
|
|
|
|
+ >
|
|
|
|
+ 从收费项目生成医嘱
|
|
|
|
+ </el-button>
|
|
</header>
|
|
</header>
|
|
<div class="layout_main">
|
|
<div class="layout_main">
|
|
<vxe-table
|
|
<vxe-table
|
|
@@ -316,5 +344,34 @@ onMounted(async () => {
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="请选择要生成的医嘱属性"
|
|
|
|
+ v-model="showYzClass"
|
|
|
|
+ width="326px"
|
|
|
|
+ >
|
|
|
|
+ <el-checkbox-group
|
|
|
|
+ v-model="selectedChargeClass"
|
|
|
|
+ style="margin-left: 30px"
|
|
|
|
+ >
|
|
|
|
+ <el-checkbox
|
|
|
|
+ v-for="item in zdChargeClassList"
|
|
|
|
+ :value="item.yzClassCode"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ />
|
|
|
|
+ </el-checkbox-group>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <el-button
|
|
|
|
+ @click="showYzClass = false"
|
|
|
|
+ >
|
|
|
|
+ 取消
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="confirmYzClass"
|
|
|
|
+ >
|
|
|
|
+ 确定
|
|
|
|
+ </el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|