ex_warehouse_detail.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <template>
  2. <view class="container">
  3. <view class="center">
  4. <view class="title_b ">发运信息</view>
  5. <view class="c-row ">
  6. <text class="tit">合同编号</text>
  7. <view class="con-list">
  8. <text>{{WarehouseInOutInfo.contractNo}}</text>
  9. </view>
  10. </view>
  11. <view class="c-row ">
  12. <text class="tit">收货方</text>
  13. <view class="con-list">
  14. <text>{{WarehouseInOutInfo.consignee}}</text>
  15. </view>
  16. </view>
  17. <view class="c-row ">
  18. <text class="tit">货名</text>
  19. <view class="con-list">
  20. <text>{{WarehouseInOutInfo.goodsName}}</text>
  21. </view>
  22. </view>
  23. <view class="c-row ">
  24. <text class="tit">车牌号</text>
  25. <view class="con-list">
  26. <text>{{WarehouseInOutInfo.carNo}} ({{WarehouseInOutInfo.tranCarNo}})</text>
  27. </view>
  28. </view>
  29. <view class="c-row ">
  30. <text class="tit">箱号</text>
  31. <view class="con-list">
  32. <text>{{WarehouseInOutInfo.boxNo}}</text>
  33. </view>
  34. </view>
  35. <view class="c-row ">
  36. <text class="tit">封号</text>
  37. <view class="con-list">
  38. <text>{{WarehouseInOutInfo.titleNo}}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="center">
  43. <view class="title_c ">出库信息</view>
  44. <view class="c-list">
  45. <view class="c-row b-b">
  46. <text class="tit">毛重(吨)</text>
  47. <view style="color: #ff0000; padding-left: 10rpx;">*</view>
  48. <view class="con-list">
  49. {{WarehouseInOutInfo.grossWeight}}
  50. </view>
  51. </view>
  52. <view class="c-row b-b">
  53. <view class="tit">皮重(吨)</view>
  54. <view style="color: #ff0000; padding-left: 10rpx;">*</view>
  55. <view class="con-list">
  56. {{WarehouseInOutInfo.tare}}
  57. </view>
  58. </view>
  59. <view class="c-row b-b">
  60. <text class="tit">净重(吨)</text>
  61. <view class="con-list">
  62. <text>{{WarehouseInOutInfo.netWeight}}</text>
  63. </view>
  64. </view>
  65. <view class="c-row b-b">
  66. <text class="tit">仓库</text>
  67. <view style="color: #ff0000; padding-left: 10rpx;">*</view>
  68. <view class="con-list">
  69. <view>
  70. {{WarehouseInOutInfo.warehouseName}}
  71. </view>
  72. </view>
  73. </view>
  74. <view class="c-row b-b">
  75. <view class="title">仓位号</view>
  76. <view style="color: #ff0000; padding-left: 10rpx;">*</view>
  77. <view class="con-list">
  78. {{WarehouseInOutInfo.binNumber}}
  79. </view>
  80. </view>
  81. <view class="c-row b-b">
  82. <text class="tit">出库类型 </text>
  83. <view class="con-list">
  84. {{WarehouseInOutInfo.inOutType}}
  85. </view>
  86. </view>
  87. <view class="c-row b-b">
  88. <text class="tit">出库日期</text>
  89. <view class="con-list" @click="show = true">
  90. <text>{{WarehouseInOutInfo.inOutDate}}</text>
  91. </view>
  92. </view>
  93. <view class="c-row ">
  94. <text class="tit">磅单照片</text>
  95. </view>
  96. <view style="width: 90px;height: 90px; margin-left: 16px;" >
  97. <image v-bind:src="WarehouseInOutInfo.addressUrl" mode="" class="picture"></image>
  98. </view>
  99. </view>
  100. <view class="center">
  101. <view class="title_c ">化验信息</view>
  102. <view class="c-list">
  103. <view class="c-row b-b">
  104. <view class="title">质检员</view>
  105. <view class="con-list">
  106. {{WarehouseInOutInfo.warehouseInOutDetail.qualityInspector}}
  107. </view>
  108. </view>
  109. <view class="c-row b-b">
  110. <view class="title">蛋白(%)>=</view>
  111. <view class="con-list">
  112. {{WarehouseInOutInfo.warehouseInOutDetail.protein}}
  113. </view>
  114. </view>
  115. <view class="c-row b-b">
  116. <view class="title">水分(%)<= </view>
  117. <view class="con-list">
  118. {{WarehouseInOutInfo.warehouseInOutDetail.waterContent}}
  119. </view>
  120. </view>
  121. <view class="c-row b-b">
  122. <view class="title">容重(克/升)>= </view>
  123. <view class="con-list">
  124. {{WarehouseInOutInfo.warehouseInOutDetail.bulkDensity}}
  125. </view>
  126. </view>
  127. <view class="c-row b-b">
  128. <view class="title">热损伤(%)<= </view>
  129. <view class="con-list">
  130. {{WarehouseInOutInfo.warehouseInOutDetail.jiaorenli}}
  131. </view>
  132. </view>
  133. <view class="c-row b-b">
  134. <view class="title">杂质(%)<= </view>
  135. <view class="con-list">
  136. {{WarehouseInOutInfo.warehouseInOutDetail.impurity}}
  137. </view>
  138. </view>
  139. <view class="c-row b-b">
  140. <view class="title">霉变粒(%)<= </view>
  141. <view class="con-list">
  142. {{WarehouseInOutInfo.warehouseInOutDetail.mildewGrain}}
  143. </view>
  144. </view>
  145. <view class="c-row b-b">
  146. <view class="title">不完整粒(%)<= </view>
  147. <view class="con-list">
  148. {{WarehouseInOutInfo.warehouseInOutDetail.imperfectGrain}}
  149. </view>
  150. </view>
  151. <view class="c-row b-b">
  152. <text class="tit">品级 </text>
  153. <view class="con-list">
  154. {{WarehouseInOutInfo.grade}}
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </template>
  162. <script>
  163. export default {
  164. data() {
  165. return {
  166. WarehouseInOutInfo: {},
  167. }
  168. },
  169. onLoad(options) {
  170. this.getList(options.id)
  171. },
  172. methods: {
  173. typeChange(e) {
  174. this.typesIndex = e.detail.value
  175. this.types = this.typesType[this.typesIndex];
  176. },
  177. getList(id1) {
  178. var that = this
  179. this.$api.doRequest('get', '/warehouseInOutInfo/getInfo', {
  180. id: id1
  181. }).then(res => {
  182. console.log(res)
  183. this.WarehouseInOutInfo = res.data.data
  184. })
  185. .catch(res => {
  186. if(res.errmsg){
  187. uni.showToast({
  188. title: res.errmsg,
  189. icon: 'none',
  190. duration: 2000
  191. })
  192. }
  193. else{
  194. uni.showToast({
  195. title: "系统异常,请联系管理员",
  196. icon: 'none',
  197. duration: 2000
  198. })
  199. }
  200. });
  201. }
  202. }
  203. }
  204. </script>
  205. <style scoped lang='scss'>
  206. .center {
  207. margin: 15rpx 15rpx 10rpx 15rpx;
  208. /* padding: 0rpx 10rpx 30rpx 10rpx; */
  209. background-color: #FFFFFF;
  210. border-radius: 15px;
  211. }
  212. .title_b {
  213. margin: 20rpx 20rpx 0rpx 20rpx;
  214. padding: 20rpx 10rpx 20rpx 10rpx;
  215. font-size: 18px;
  216. font-weight: 550;
  217. border-bottom: 1px solid #d6d6d6;
  218. }
  219. .title_c {
  220. margin: 20rpx 20rpx 0rpx 20rpx;
  221. padding: 20rpx 10rpx 20rpx 10rpx;
  222. font-size: 18px;
  223. font-weight: 550;
  224. }
  225. .margin-bottom {
  226. margin-bottom: 30px;
  227. }
  228. .c-row {
  229. display: -webkit-box;
  230. display: -webkit-flex;
  231. display: flex;
  232. -webkit-box-align: center;
  233. -webkit-align-items: center;
  234. align-items: center;
  235. padding: 20rpx 30rpx;
  236. position: relative;
  237. }
  238. .con-list {
  239. -webkit-box-flex: 1;
  240. -webkit-flex: 1;
  241. flex: 1;
  242. display: -webkit-box;
  243. display: -webkit-flex;
  244. display: flex;
  245. -webkit-box-orient: vertical;
  246. -webkit-box-direction: normal;
  247. -webkit-flex-direction: column;
  248. flex-direction: column;
  249. color: #303133;
  250. line-height: 40rpx;
  251. text-align: right;
  252. padding-right: 20rpx;
  253. }
  254. .d-header {
  255. display: flex;
  256. justify-content: center;
  257. align-items: center;
  258. height: 80upx;
  259. font-size: $font-base + 2upx;
  260. color: $font-color-dark;
  261. position: relative;
  262. text {
  263. padding: 0 20upx;
  264. background: #fff;
  265. position: relative;
  266. z-index: 1;
  267. }
  268. &:after {
  269. position: absolute;
  270. left: 50%;
  271. top: 50%;
  272. transform: translateX(-50%);
  273. width: 300upx;
  274. height: 0;
  275. content: '';
  276. border-bottom: 1px solid #ccc;
  277. }
  278. }
  279. /* 底部操作菜单 */
  280. .page-bottom1 {
  281. position: fixed;
  282. left: 0;
  283. bottom: 0;
  284. z-index: 95;
  285. width: 100%;
  286. height: 70px;
  287. background: rgba(255, 255, 255, .9);
  288. padding: 15px;
  289. border-radius: 0;
  290. text-align: right;
  291. button {
  292. display: inline-block;
  293. border-radius: 18px;
  294. margin: 0 10px;
  295. font-size: 14px;
  296. background: #fff;
  297. color: #333;
  298. border: 1px solid #333;
  299. padding-left: 50rpx;
  300. padding-right: 50rpx;
  301. }
  302. .action-btn {
  303. background: #22C572;
  304. color: #fff;
  305. border: 1px solid #22C572;
  306. }
  307. .p-b-btn {
  308. display: flex;
  309. flex-direction: column;
  310. align-items: center;
  311. justify-content: center;
  312. font-size: $font-sm;
  313. color: $font-color-base;
  314. width: 96upx;
  315. height: 80upx;
  316. .yticon {
  317. font-size: 40upx;
  318. line-height: 48upx;
  319. color: $font-color-light;
  320. }
  321. &.active,
  322. &.active .yticon {
  323. color: $uni-color-primary;
  324. }
  325. .icon-fenxiang2 {
  326. font-size: 42upx;
  327. transform: translateY(-2upx);
  328. }
  329. .icon-shoucang {
  330. font-size: 46upx;
  331. }
  332. }
  333. }
  334. .container {
  335. padding-bottom: 16upx;
  336. }
  337. .xiangji{
  338. width: 25px;
  339. height: 25px;
  340. position: absolute;
  341. margin: 0 auto;
  342. margin-top: 35px;
  343. margin-left: -58px;
  344. }
  345. .picture{
  346. width: 90px;
  347. height: 90px;
  348. border-radius: 10px;
  349. }
  350. .picture{
  351. width: 75px;
  352. height: 75px;
  353. border-radius: 10px;
  354. }
  355. </style>