index.vue 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <template>
  2. <view class="query-wrap">
  3. <view class="inner-item">
  4. <view class="text-title">
  5. <view class="title-circ"> </view>
  6. <span class="title-text">基本信息</span>
  7. </view>
  8. <view class="inventory-item" style="margin-top: 40rpx">
  9. <view class="shuo-item-name">
  10. <view class="shuo-label-podnme"> 药品名称: </view>
  11. <view class="shuo-unit">
  12. <span>{{ item.drugName }}</span>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="inventory-item">
  17. <view class="shuo-item-name">
  18. <view class="shuo-label"> 药品编码: </view>
  19. <view class="shuo-unit">
  20. {{ acceptDetaData.id }}
  21. </view>
  22. </view>
  23. </view>
  24. <view class="inventory-item">
  25. <view class="shuo-item-name">
  26. <view class="shuo-label"> 医保编码: </view>
  27. <view class="shuo-unit">
  28. {{ acceptDetaData.purcPlanId }}
  29. </view>
  30. </view>
  31. </view>
  32. <view class="inventory-item">
  33. <view class="shuo-item">
  34. <view class="shuo-label"> 是否集采: </view>
  35. <view class="shuo-cont">
  36. {{ acceptDetaData.isFas || "" }}
  37. </view>
  38. </view>
  39. <view class="shuo-item">
  40. <view class="shuo-label"> 是否基药: </view>
  41. <view class="shuo-cont">
  42. {{ acceptDetaData.essdrugType || "" }}
  43. </view>
  44. </view>
  45. </view>
  46. <view class="inventory-item">
  47. <view class="shuo-item">
  48. <view class="shuo-label"> 集采批次: </view>
  49. <view class="shuo-cont">
  50. {{ acceptDetaData.fasBtch || "" }}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="inventory-item">
  55. <view class="shuo-item-name">
  56. <view class="shuo-label"> 药品规格: </view>
  57. <view class="shuo-cont">
  58. {{
  59. "【" +
  60. item.specName +
  61. "*" +
  62. item.convrat +
  63. item.pac +
  64. "/" +
  65. item.pacUnt +
  66. "】"
  67. }}
  68. </view>
  69. </view>
  70. </view>
  71. <view class="inventory-item">
  72. <view class="shuo-item-name">
  73. <view class="shuo-label"> 药品剂型: </view>
  74. <view class="shuo-cont">
  75. {{ acceptDetaData.dosformName }}
  76. </view>
  77. </view>
  78. </view>
  79. <view class="inventory-item">
  80. <view class="shuo-item-name">
  81. <view class="shuo-label"> 件装数: </view>
  82. <view class="shuo-cont">
  83. {{ acceptDetaData.convrat }}
  84. </view>
  85. </view>
  86. <view class="shuo-item-name">
  87. <view class="shuo-label"> 单价: </view>
  88. <view class="shuo-cont">
  89. {{ acceptDetaData.pric }}
  90. </view>
  91. </view>
  92. </view>
  93. <view class="inventory-item">
  94. <view class="shuo-item-name">
  95. <view class="shuo-label"> 配送企业: </view>
  96. <view class="shuo-cont">
  97. {{ acceptDetaData.splerName }}
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="empty-cont" v-if="listData.length == '0'"> 暂无明细数据 </view>
  103. <view class="inner-item" v-for="(item, idex) in listData" :key="idex">
  104. <view class="text-title" v-if="idex == '0'">
  105. <view class="title-circ"> </view>
  106. <span class="title-text">药品基础信息</span>
  107. </view>
  108. <view class="inventory-item" style="margin-top: 40rpx">
  109. <view class="shuo-item-name">
  110. <view class="shuo-label-podnme"> 药品分类: </view>
  111. <view class="shuo-unit">
  112. <span>{{ item.drugType }}</span>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="inventory-item">
  117. <view class="shuo-item">
  118. <view class="shuo-label"> 批准文号: </view>
  119. <view class="shuo-cont">
  120. <span>{{ item.aprvNo }}</span>
  121. </view>
  122. </view>
  123. </view>
  124. <view class="inventory-item">
  125. <view class="shuo-item-name">
  126. <view class="shuo-label-podnme"> 生产企业: </view>
  127. <view class="shuo-cont">
  128. <span>{{ item.prodentpName }}</span>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="inventory-item">
  133. <view class="shuo-item">
  134. <view class="shuo-label"> 生产方式: </view>
  135. <view class="shuo-cont">
  136. {{ item.prodMode || "" }}
  137. </view>
  138. </view>
  139. </view>
  140. <view class="inventory-item">
  141. <view class="shuo-item">
  142. <view class="shuo-label"> 通用名称: </view>
  143. <view class="shuo-cont">
  144. {{ item.genName || "" }}
  145. </view>
  146. </view>
  147. </view>
  148. <view class="inventory-item">
  149. <view class="shuo-item-name">
  150. <view class="shuo-label"> 化学名称: </view>
  151. <view class="shuo-cont">
  152. <span>{{ item.chemName || "" }}</span>
  153. </view>
  154. </view>
  155. </view>
  156. <view class="inventory-item">
  157. <view class="shuo-item-name">
  158. <view class="shuo-label-podnme"> 限价/参考价: </view>
  159. <view class="shuo-cont">
  160. <span>{{ item.lmtPric }}</span>
  161. </view>
  162. </view>
  163. </view>
  164. <view class="inventory-item">
  165. <view class="shuo-item-name">
  166. <view class="shuo-label"> 最小单位: </view>
  167. <view class="shuo-cont">
  168. <span>{{ item.pac }}</span>
  169. </view>
  170. </view>
  171. </view>
  172. <view class="inventory-item">
  173. <view class="shuo-item-name">
  174. <view class="shuo-label"> 包装单位: </view>
  175. <view class="shuo-cont">
  176. <span>{{ item.pacUnt }}</span>
  177. </view>
  178. </view>
  179. </view>
  180. <view class="inventory-item">
  181. <view class="shuo-item-name">
  182. <view class="shuo-label"> 包装数量: </view>
  183. <view class="shuo-cont">
  184. <span>{{ item.convrat }}</span>
  185. </view>
  186. </view>
  187. </view>
  188. <view class="inventory-item">
  189. <view class="shuo-item-name">
  190. <view class="shuo-label"> 件装数量: </view>
  191. <view class="shuo-cont">
  192. <span>{{ item.pieceUntNum }}</span>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="inventory-item">
  197. <view class="shuo-item-name">
  198. <view class="shuo-label"> 存储仓库: </view>
  199. <view class="shuo-cont">
  200. <span>{{ item.stogWrhs }}</span>
  201. </view>
  202. </view>
  203. </view>
  204. <view class="inventory-item">
  205. <view class="shuo-item-name">
  206. <view class="shuo-label"> 存储条件: </view>
  207. <view class="shuo-cont">
  208. <span>{{ item.stogCond }}</span>
  209. </view>
  210. </view>
  211. </view>
  212. <view class="inventory-item">
  213. <view class="shuo-item-name">
  214. <view class="shuo-label"> 适合温度: </view>
  215. <view class="shuo-cont">
  216. <span>{{ item.splerName }}</span>
  217. </view>
  218. </view>
  219. </view>
  220. <view class="inventory-item">
  221. <view class="shuo-item-name">
  222. <view class="shuo-label">采购价:</view>
  223. <view class="shuo-cont">
  224. <span class="link-text" @click="onPriceClick(item)">
  225. {{ item.pric || "—" }}(点击调价)
  226. </span>
  227. </view>
  228. </view>
  229. </view>
  230. <view class="inventory-item">
  231. <view class="shuo-item-name">
  232. <view class="shuo-label">配送企业:</view>
  233. <view class="shuo-cont">
  234. <span class="link-text" @click="onSupplierClick(item)">
  235. {{ item.splerName || "—" }}(点击更换供应商)
  236. </span>
  237. </view>
  238. </view>
  239. </view>
  240. </view>
  241. </view>
  242. </template>
  243. <script>
  244. import moment from "moment";
  245. export default {
  246. data() {
  247. return {
  248. listData: [],
  249. acceptDetaData: {},
  250. subMitData: {},
  251. };
  252. },
  253. onShow() {
  254. let that = this;
  255. uni.getStorage({
  256. key: "puhseOrderDetail",
  257. success: function (res) {
  258. that.acceptDetaData = res.data;
  259. that.getDetail(res.data.id);
  260. },
  261. });
  262. },
  263. mounted() {},
  264. methods: {
  265. async getDetail(id) {
  266. await this.$http("drugHospital.getPurcOrdDetl", { id }, "加载中").then((res) => {
  267. if (res && res.data) {
  268. this.listData = res.data || [];
  269. }
  270. });
  271. },
  272. forMatTime(row) {
  273. return moment(row).format("YYYY-MM-DD HH:mm");
  274. },
  275. //日期格式化
  276. forMatTime(time) {
  277. return moment(time).format("YYYY-MM-DD");
  278. },
  279. //加时分秒
  280. forMatTimehs(time) {
  281. return moment(time).format("YYYY-MM-DD HH:mm");
  282. },
  283. },
  284. watch: {},
  285. };
  286. </script>
  287. <style lang="scss" scoped>
  288. .query-wrap {
  289. width: 100%;
  290. height: 100%;
  291. padding: 20rpx;
  292. box-sizing: border-box;
  293. background-color: #f1f1f1;
  294. overflow-y: scroll;
  295. overflow-x: hidden;
  296. position: relative;
  297. padding-bottom: 200rpx;
  298. .botm-btn {
  299. width: 100%;
  300. height: 120rpx;
  301. background-color: #fff;
  302. position: fixed;
  303. left: 0;
  304. bottom: 0;
  305. padding-top: 40rpx;
  306. display: flex;
  307. align-items: center;
  308. justify-content: space-around;
  309. }
  310. .time-view {
  311. height: 350rpx;
  312. background-color: #fff;
  313. padding: 50rpx 50rpx 0 50rpx;
  314. box-sizing: border-box;
  315. .btn-view {
  316. width: 100%;
  317. height: 100rpx;
  318. margin-top: 100rpx;
  319. display: flex;
  320. justify-content: space-around;
  321. }
  322. }
  323. }
  324. .title-text {
  325. font-size: 32rpx;
  326. color: #5ab7a5;
  327. font-weight: bold;
  328. }
  329. .item-stats {
  330. margin-top: 80rpx;
  331. }
  332. uni-page-body {
  333. width: 100%;
  334. height: 100%;
  335. }
  336. .link-text {
  337. color: #1890ff;
  338. cursor: pointer;
  339. text-decoration: underline;
  340. }
  341. </style>