123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <template>
- <view class="query-wrap">
- <view class="card">
- <view class="search-view">
- <uni-easyinput
- prefixIcon="search"
- :value="value"
- placeholder="请输入采购订单号"
- @iconClick="iconClick"
- @input="input"
- style="width: 100%; flex: 1"
- >
- </uni-easyinput>
- </view>
- </view>
- <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
- <view
- class="inner-item"
- v-for="(item, indx) in dataList"
- :key="indx"
- @click="itemDetails(item)"
- >
- <view class="item-stats">
- <span v-if="item.stas == 'A'">未调价</span>
- <span v-if="item.stas == 'B'">调价中</span>
- <span v-if="item.stas == 'D'">已调价</span>
- </view>
- <view class="inventory-item" style="margin-top: 40rpx">
- <view class="shuo-item-name">
- <view class="shuo-label-podnme"> 药品名称: </view>
- <view class="shuo-unit">
- <span>{{ item.drugName }}</span>
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item-name">
- <view class="shuo-label"> 药品编码: </view>
- <view class="shuo-unit">
- {{ item.drugListId }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item-name">
- <view class="shuo-label"> 医保编码: </view>
- <view class="shuo-unit">
- {{ item.natDrugNo }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item">
- <view class="shuo-label"> 是否集采: </view>
- <view class="shuo-cont">
- {{ item.isFas }}
- </view>
- </view>
- <view class="shuo-item">
- <view class="shuo-label"> 药品剂型: </view>
- <view class="shuo-cont">
- {{ item.dosformName }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item">
- <view class="shuo-label"> 集采批次: </view>
- <view class="shuo-cont">
- {{ item.fasBtch || "" }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item-name">
- <view class="shuo-label"> 药品规格: </view>
- <view class="shuo-cont">
- {{
- "【" +
- item.specName +
- "*" +
- item.convrat +
- item.pac +
- "/" +
- item.pacUnt +
- "】"
- }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item-name">
- <view class="shuo-label"> 是否基药: </view>
- <view class="shuo-cont">
- {{ item.essdrugType }}
- </view>
- </view>
- </view>
- <view class="inventory-item">
- <view class="shuo-item-name">
- <view class="shuo-label"> 配送企业: </view>
- <view class="shuo-cont">
- {{ item.splerName }}
- </view>
- </view>
- </view>
- </view>
- </z-paging>
- </view>
- </template>
- <script>
- import { mapState, mapMutations, mapActions } from "vuex";
- import { debounce } from "lodash";
- import moment from "moment";
- import ZPMixin from "@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js";
- import UnidatetimePicker from "@/consumablespkg/components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue";
- export default {
- components: {
- UnidatetimePicker,
- },
- mixins: [ZPMixin],
- data() {
- return {
- index: 0,
- value: "",
- dataList: [],
- datetimesingle: [],
- };
- },
- computed: {
- ...mapState(["instData"]),
- },
- methods: {
- async queryList(pageNo, pageSize) {
- await this.$http(
- "drugHospital.getPurcOrd",
- {
- current: pageNo,
- size: pageSize,
- spdId: this.instData.spdId,
- id: this.value,
- },
- "加载中"
- ).then((res) => {
- if (res && res.data) {
- this.$refs.paging.complete(res.data);
- }
- });
- },
- //筛选时间
- filterTime() {
- this.$refs.popup.open("bottom");
- },
- forMatTime(row) {
- return moment(row).format("YYYY-MM-DD HH:mm");
- },
- // 日期重置
- reset() {
- this.datetimesingle = [];
- },
- //日期确定按钮
- btnConfirm() {
- this.$refs.popup.close();
- this.$refs.paging.reload();
- },
- //跳转订单详情
- itemDetails(item) {
- uni.setStorage({
- key: "puhseOrderDetail",
- data: item,
- });
- uni.navigateTo({
- url: "/consumablespkg/pages/tableContents/details/index",
- success: function (res) {
- console.log(res, "res");
- },
- });
- },
- input: debounce(function (e) {
- this.value = e;
- this.$refs.paging.reload();
- }, 500),
- iconClick(e) {
- console.log(e, "点击搜索拿到的数据");
- },
- blur(e) {
- this.$nextTick(() => {});
- },
- changeTab(index) {
- this.index = index;
- this.$refs.paging.reload();
- },
- },
- watch: {},
- };
- </script>
- <style lang="scss" scoped>
- .query-wrap {
- width: 100%;
- padding: 20rpx;
- box-sizing: border-box;
- background-color: #f1f1f1;
- overflow-y: scroll;
- overflow-x: hidden;
- }
- uni-page-body {
- width: 100%;
- height: 100%;
- }
- .time-view {
- height: 350rpx;
- background-color: #fff;
- padding: 50rpx 50rpx 0 50rpx;
- box-sizing: border-box;
- .btn-view {
- width: 100%;
- height: 100rpx;
- margin-top: 100rpx;
- display: flex;
- justify-content: space-around;
- }
- }
- .search-view {
- width: 100%;
- height: 100rpx;
- display: flex;
- align-items: center;
- padding: 0rpx 20rpx 0rpx 20rpx;
- box-sizing: border-box;
- .filter-text {
- width: 72rpx;
- height: 50rpx;
- line-height: 50rpx;
- color: rgba(1, 169, 146, 1);
- font-size: 36rpx;
- font-family: PingFangSC-bold;
- padding-left: 20rpx;
- }
- }
- .item-stats {
- margin-top: 80rpx;
- }
- .card {
- background: #fff;
- border-radius: 20rpx;
- box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
- padding: 0;
- margin-bottom: 20rpx;
- }
- .search-view uni-easyinput {
- width: 100% !important;
- flex: 1 !important;
- }
- </style>
|