warehousingDetails.vue 7.9 KB

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