|
@@ -24,6 +24,11 @@
|
|
|
<el-table-column label="厂家" prop="manuName"></el-table-column>
|
|
|
<el-table-column label="类型" prop="orderType"></el-table-column>
|
|
|
<el-table-column label="毒麻类型" prop="drugFlagName"></el-table-column>
|
|
|
+ <el-table-column label="药品详情">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="yaoPinXiangQing.dialog = true;yaoPinXiangQing.code = scope.row.orderCode">药品详情</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
|
:current-page="orderData.currentPage"
|
|
@@ -33,58 +38,53 @@
|
|
|
@current-change="orderDataCurrent"
|
|
|
>
|
|
|
</el-pagination>
|
|
|
+ <yao-ping-xiang-qing v-if="yaoPinXiangQing.dialog" :code="yaoPinXiangQing.code"
|
|
|
+ @close="yaoPinXiangQing.dialog = false"></yao-ping-xiang-qing>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
+<script name="SouSuoYiZhu" setup>
|
|
|
import {huoQuXiangMu} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
|
|
|
import {computed, onMounted, ref} from "vue";
|
|
|
import store from "@/store";
|
|
|
+import YaoPingXiangQing from "@/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue";
|
|
|
|
|
|
-export default {
|
|
|
- name: "SouSuoYiZhu",
|
|
|
- emits: ['xuanZhongFeiYong', 'close'],
|
|
|
- setup(props, {emit}) {
|
|
|
- const windowSize = computed(() => {
|
|
|
- return store.state.app.windowSize
|
|
|
- })
|
|
|
- const orderName = ref('') // 01672
|
|
|
- const searchInput = ref(null)
|
|
|
- const orderData = ref({
|
|
|
- currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
- data: [],
|
|
|
- })
|
|
|
-
|
|
|
- const dianJiChaXunYiZhu = () => {
|
|
|
- huoQuXiangMu(orderName.value).then((res) => {
|
|
|
- orderData.value.data = res
|
|
|
- orderData.value.currentPage = 1
|
|
|
- })
|
|
|
- }
|
|
|
+const emit = defineEmits(['xuanZhongFeiYong', 'close'])
|
|
|
|
|
|
- const orderDataCurrent = (val) => {
|
|
|
- orderData.value.currentPage = val
|
|
|
- }
|
|
|
+const windowSize = computed(() => {
|
|
|
+ return store.state.app.windowSize
|
|
|
+})
|
|
|
+const dialog = $ref(true)
|
|
|
+const orderName = ref('') // 01672
|
|
|
+const searchInput = ref(null)
|
|
|
+const orderData = ref({
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ data: [],
|
|
|
+})
|
|
|
|
|
|
- onMounted(() => {
|
|
|
- setTimeout(() => {
|
|
|
- searchInput.value.focus()
|
|
|
- }, 100)
|
|
|
- })
|
|
|
+const dianJiChaXunYiZhu = () => {
|
|
|
+ huoQuXiangMu(orderName.value).then((res) => {
|
|
|
+ orderData.value.data = res
|
|
|
+ orderData.value.currentPage = 1
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
- return {
|
|
|
- dialog: true,
|
|
|
- dianJiChaXunYiZhu,
|
|
|
- orderName,
|
|
|
- orderData,
|
|
|
- orderDataCurrent,
|
|
|
- windowSize,
|
|
|
- searchInput,
|
|
|
- emit
|
|
|
- }
|
|
|
- }
|
|
|
+const orderDataCurrent = (val) => {
|
|
|
+ orderData.value.currentPage = val
|
|
|
}
|
|
|
+
|
|
|
+const yaoPinXiangQing = $ref({
|
|
|
+ dialog: false,
|
|
|
+ code: '',
|
|
|
+})
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ searchInput.value.focus()
|
|
|
+ }, 200)
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|