warehousingDetails.vue 9.1 KB

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