outbound.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <template>
  2. <view class="picking-wrap">
  3. <view class="ground-title-picking">
  4. <csr-tab :value.sync="index" :rangeKey="rangeKey" :tabList="tabList"
  5. style="{position: 'relative';z-index: 51;}" @change="tabChange"></csr-tab>
  6. <view class="ground-icon"></view>
  7. <ren-dropdown-filter :filterData='filterData' :defaultIndex='defaultIndex' @ed='ed'
  8. :stylesData="{padding:'0 0 0 580rpx'}"></ren-dropdown-filter>
  9. </view>
  10. <uni-easyinput prefixIcon="search" v-model="value" placeholder="请输入或扫描入库单号" @iconClick="iconClick" :focus="true"
  11. @input="input">
  12. </uni-easyinput>
  13. <z-paging ref="paging" @query="queryList" v-model="dataList" :use-page-scroll="true">
  14. <view class="inner-item" v-for="(item,index) in dataList" :key="index" @click="itemDetails(item)">
  15. <view class="inventory-item">
  16. <view class="shuo-item shuo-one-cont">
  17. <view class="shuo-label">
  18. 出库单号:
  19. </view>
  20. <view class="shuo-cont">
  21. {{item.id_bill}}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="inventory-item">
  26. <view class="shuo-item">
  27. <view class="shuo-label">
  28. 目标科室:
  29. </view>
  30. <view class="shuo-cont">
  31. {{item.id_dept_super}}
  32. </view>
  33. </view>
  34. </view>
  35. <view class="inventory-item">
  36. <view class="shuo-item">
  37. <view class="shuo-label">
  38. 申请数量:
  39. </view>
  40. <view class="shuo-await">
  41. {{item.yansliang}}
  42. </view>
  43. </view>
  44. <view class="shuo-item">
  45. <view class="shuo-label">
  46. 已拣数量:
  47. </view>
  48. <view class="shuo-ready">
  49. {{item.yishangj}}
  50. </view>
  51. </view>
  52. </view>
  53. <view class="inventory-item">
  54. <view class="shuo-item">
  55. <view class="shuo-label">
  56. 耗材类型:
  57. </view>
  58. <view class="shuo-cont">
  59. {{item.guige}}
  60. </view>
  61. </view>
  62. <view class="shuo-item">
  63. <view class="shuo-label">
  64. 结算方式:
  65. </view>
  66. <view class="shuo-cont">
  67. {{item.xinghao}}
  68. </view>
  69. </view>
  70. </view>
  71. <view class="inventory-item">
  72. <view class="shuo-item shuo-min">
  73. <view class="shuo-label">
  74. 制单人:
  75. </view>
  76. <view class="shuo-cont">
  77. {{item.hispName}}
  78. </view>
  79. </view>
  80. <view class="shuo-item max-item">
  81. <view class="shuo-label">
  82. 制单时间:
  83. </view>
  84. <view class="shuo-cont">
  85. {{item.rq}}
  86. </view>
  87. </view>
  88. </view>
  89. <view class="inventory-item">
  90. <view class="shuo-item shuo-one-cont">
  91. <view class="shuo-label">
  92. 请领单号:
  93. </view>
  94. <view class="shuo-cont">
  95. {{item.shangjiatime}}
  96. </view>
  97. </view>
  98. </view>
  99. <view class="all-text">已出库</view>
  100. </view>
  101. </z-paging>
  102. </view>
  103. </template>
  104. <script>
  105. import {
  106. listData
  107. } from './list.js';
  108. import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js';
  109. import {
  110. mapState,
  111. mapMutations,
  112. mapActions
  113. } from 'vuex';
  114. export default {
  115. mixins: [ZPMixin],
  116. data() {
  117. return {
  118. index: 0,
  119. rangeKey: "rangeKey",
  120. tabList: [{
  121. rangeKey: "全部",
  122. value: ""
  123. }, {
  124. rangeKey: "待出库",
  125. value: "NotOut"
  126. }, {
  127. rangeKey: "已出库",
  128. value: "YesOut"
  129. }, ],
  130. value: "",
  131. rangeKeyVal: "",
  132. dataList: [],
  133. listData: listData,
  134. filterData: [
  135. [{
  136. text: '血透室',
  137. value: 0
  138. }, {
  139. text: '已上架',
  140. value: 1
  141. }]
  142. ],
  143. defaultIndex: [0],
  144. }
  145. },
  146. computed: {
  147. ...mapState(['outboundData'])
  148. },
  149. mounted() {
  150. },
  151. methods: {
  152. ...mapActions(['getoutbondData']),
  153. queryList(pageNo, pageSize) {
  154. this.getoutbondData({
  155. type: ""
  156. })
  157. },
  158. //跳转上架详情
  159. itemDetails(item) {
  160. uni.navigateTo({
  161. url: '/pages/pickingetials/pickingetials',
  162. success: function(res) {}
  163. });
  164. uni.setStorageSync('outBounddetails', [item]);
  165. },
  166. tabChange(data) {
  167. this.rangeKeyVal = data['tab']['value'];
  168. this.getoutbondData({
  169. type: data['tab']['value'],
  170. id_bill:this.value
  171. })
  172. },
  173. input(e) {
  174. this.$nextTick(() => {
  175. this.value = e;
  176. })
  177. this.getoutbondData({
  178. id_bill: e,
  179. type: this.rangeKeyVal
  180. })
  181. },
  182. },
  183. watch: {
  184. outboundData(newData, flodData) {
  185. this.$refs.paging.complete(newData);
  186. }
  187. }
  188. }
  189. </script>
  190. <style lang="scss" scoped>
  191. .picking-wrap {
  192. width: 100%;
  193. height: 100%;
  194. padding: 20rpx;
  195. box-sizing: border-box;
  196. background-color: #F1F1F1;
  197. .ground-title-picking {
  198. width: 100%;
  199. height: 100rpx;
  200. border-bottom: 2rpx solid #ccc;
  201. display: flex;
  202. align-items: center;
  203. padding: 20rpx;
  204. box-sizing: border-box;
  205. position: relative;
  206. margin-bottom: 10rpx;
  207. }
  208. .inner-item {
  209. width: 100%;
  210. height: 360rpx;
  211. border-bottom: 2rpx solid #BDBDBD;
  212. padding: 20rpx 20rpx 20rpx 50rpx;
  213. box-sizing: border-box;
  214. position: relative;
  215. background-color: #fff;
  216. border-radius: 20rpx;
  217. position: relative;
  218. margin-top: 10rpx;
  219. .all-text {
  220. width: 150rpx;
  221. height: 40rpx;
  222. position: absolute;
  223. right: 20rpx;
  224. top: 30rpx;
  225. font-family: PingFangSC-regular;
  226. font-size: 28rpx;
  227. color: rgba(52, 124, 175, 0.6);
  228. }
  229. .inventory-item {
  230. width: 100%;
  231. height: 40rpx;
  232. color: rgba(16, 16, 16, 1);
  233. font-size: 28rpx;
  234. text-align: left;
  235. font-family: PingFangSC-semiBold;
  236. margin-top: 10rpx;
  237. display: flex;
  238. align-items: center;
  239. .shuo-label {
  240. color: rgba(16, 16, 16, 1);
  241. font-size: 28rpx;
  242. text-align: left;
  243. font-family: PingFangSC-regular;
  244. }
  245. .shuo-cont {
  246. color: rgba(16, 16, 16, 1);
  247. font-size: 28rpx;
  248. text-align: left;
  249. font-family: PingFangSC-regular;
  250. margin-left: 30rpx;
  251. }
  252. .shuo-item {
  253. width: 50%;
  254. height: 100%;
  255. line-height: 20rpx;
  256. display: flex;
  257. align-items: center;
  258. .shuo-label {
  259. color: rgba(16, 16, 16, 1);
  260. font-size: 28rpx;
  261. text-align: left;
  262. font-family: PingFangSC-regular;
  263. }
  264. .shuo-cont {
  265. color: rgba(16, 16, 16, 1);
  266. font-size: 28rpx;
  267. text-align: left;
  268. font-family: PingFangSC-regular;
  269. margin-left: 30rpx;
  270. }
  271. .shuo-await {
  272. color: rgba(255, 191, 107, 1);
  273. font-size: 28rpx;
  274. text-align: left;
  275. font-family: PingFangSC-regular;
  276. margin-left: 20rpx;
  277. }
  278. .shuo-ready {
  279. color: rgba(162, 239, 77, 1);
  280. font-size: 28rpx;
  281. text-align: left;
  282. font-family: PingFangSC-regular;
  283. margin-left: 20rpx;
  284. }
  285. }
  286. .shuo-one-cont {
  287. width: 60%;
  288. }
  289. .shuo-min {
  290. width: 33%;
  291. }
  292. .max-item {
  293. width: 68%;
  294. margin-left: 10rpx;
  295. .shuo-cont {
  296. font-size: 25rpx;
  297. }
  298. }
  299. }
  300. }
  301. }
  302. </style>