packingTgBom.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">打包信息: ({{ isWarehousing ? list.length : item.pickOutInList.length || 0}})个</view>
  5. </view>
  6. <view class="material " v-for="(it, idx) in isWarehousing ? list : item.pickOutInList" :key="idx">
  7. <view class="content_table">
  8. <view class="item rx-sc">
  9. <view class="rx">
  10. <view class="lable lable190 rx-cc ">
  11. <view class="round">{{idx + 1}}</view>物料编码
  12. </view>
  13. <view class="content rx-sc">
  14. <view>{{it.code}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="item rx-sc">
  19. <view class="rx">
  20. <view class="lable lable150 rx-cc ">名称</view>
  21. <view class="content rx-sc">
  22. <view>{{it.name}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="item rx-sc">
  27. <view class="rx">
  28. <view class="lable lable150 rx-cc ">型号</view>
  29. <view class="content rx-sc">
  30. <view>{{it.modelType}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="item rx-sc" v-if="item.singleReport == 1">
  35. <view class="rx ww50 ">
  36. <view class="lable lable150 rx-cc ">物料代号</view>
  37. <view class="content content_num">
  38. <view v-if='isDetails'>{{it.extInfo.materielCode }}</view>
  39. <input class="uni-input" v-else v-model="it.extInfo.materielCode"></input>
  40. </view>
  41. </view>
  42. <view class="rx ww50">
  43. <view class="lable lable150 rx-cc ">客户代号</view>
  44. <view class="content content_num">
  45. <view v-if='isDetails'>{{it.extInfo.clientCode }}</view>
  46. <input class="uni-input" v-else v-model="it.extInfo.clientCode"></input>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="item rx-sc" v-if="item.singleReport == 1">
  51. <view class="rx ww50 ">
  52. <view class="lable lable150 rx-cc ">刻码</view>
  53. <view class="content content_num ">
  54. <view v-if='isDetails'>{{it.extInfo.engrave }}</view>
  55. <input class="uni-input" v-else v-model="it.extInfo.engrave"></input>
  56. </view>
  57. </view>
  58. <view class="rx ww50">
  59. <view class="lable lable150 rx-cc ">位置</view>
  60. <view class="content content_num">
  61. <view>{{it.extInfo.position }}</view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="item rx-sc" v-if="item.singleReport == 0">
  66. <view class="rx ww50">
  67. <view class="lable lable150 rx-cc ">打包类型</view>
  68. <view class="content" style="color:#157A2C;">
  69. <view>批量打包</view>
  70. </view>
  71. </view>
  72. <view class="rx ww50 ">
  73. <view class="lable lable150 rx-cc ">打包数量</view>
  74. <view class="content content_num ">
  75. <view v-if='isDetails'>{{it.feedQuantity }}</view>
  76. <input class="uni-input" v-else v-model="it.feedQuantity"></input>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="content_table2" v-if="item.singleReport == 1">
  82. <view class="head row rx-sc">
  83. <view class="item ww25">工序重量{{it.extInfo.weightUnit}}</view>
  84. <view class="item ww25">处置</view>
  85. <view class="item ww50">
  86. 发货(包装)码
  87. </view>
  88. </view>
  89. <view class="table">
  90. <view class="tr row rx-sc">
  91. <view class="item ww25">{{it.extInfo.newWeight }}
  92. </view>
  93. <view class="item ww25 content_num">
  94. 入库
  95. </view>
  96. <view class="item ww50">
  97. <input class="uni-input content_num" v-model="it.sendCode" :disabled="isDetails"></input>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. import {
  107. getTaskInstanceList
  108. } from '@/api/pda/workOrder.js'
  109. import {
  110. saveParam,
  111. getComputeParam
  112. } from '@/api/pda/tangu.js'
  113. export default {
  114. props: {
  115. item: {
  116. type: Object,
  117. default: () => {}
  118. },
  119. list: {
  120. type: Array,
  121. default: () => []
  122. },
  123. isDetails: {
  124. type: Boolean,
  125. default: false
  126. },
  127. isWarehousing: {
  128. type: Boolean,
  129. default: false
  130. },
  131. isDetails: {
  132. type: Boolean,
  133. default: false
  134. },
  135. },
  136. watch: {
  137. list: {
  138. immediate: true,
  139. deep: true,
  140. handler(newVal) {
  141. if (this.isWarehousing == false) {
  142. }
  143. }
  144. }
  145. },
  146. data() {
  147. return {
  148. }
  149. },
  150. created() {
  151. },
  152. methods: {
  153. }
  154. }
  155. </script>
  156. <style lang="scss" scoped>
  157. .title_box {
  158. margin-top: 20rpx;
  159. .name {
  160. font-size: 28rpx;
  161. font-style: normal;
  162. font-weight: 400;
  163. color: $theme-color;
  164. padding-left: 20rpx;
  165. position: relative;
  166. &:before {
  167. position: absolute;
  168. content: '';
  169. left: 0rpx;
  170. top: 0rpx;
  171. bottom: 0rpx;
  172. width: 4rpx;
  173. height: 28rpx;
  174. background: $theme-color;
  175. margin: auto;
  176. }
  177. }
  178. .btn_box {
  179. .btn {
  180. padding: 0 18rpx;
  181. height: 50rpx;
  182. line-height: 50rpx;
  183. background: $theme-color;
  184. font-size: 26rpx;
  185. font-style: normal;
  186. font-weight: 400;
  187. font-size: 24rpx;
  188. color: #fff;
  189. border-radius: 4rpx;
  190. margin-left: 24rpx;
  191. }
  192. }
  193. }
  194. .material {
  195. margin-top: 10rpx;
  196. .content_table {
  197. width: 100%;
  198. border: 2rpx solid $border-color;
  199. .item {
  200. display: flex;
  201. border-bottom: 2rpx solid $border-color;
  202. .lable {
  203. width: 132rpx;
  204. text-align: center;
  205. background-color: #F7F9FA;
  206. font-size: 26rpx;
  207. border-right: 2rpx solid $border-color;
  208. flex-shrink: 0;
  209. }
  210. .lable150 {
  211. width: 156rpx !important;
  212. font-size: 24rpx;
  213. }
  214. .lable190 {
  215. width: 190rpx !important;
  216. font-size: 24rpx;
  217. }
  218. .ww80 {
  219. width: 80rpx;
  220. }
  221. .content {
  222. width: 518rpx;
  223. min-height: 64rpx;
  224. font-size: 28rpx;
  225. line-height: 28rpx;
  226. font-style: normal;
  227. font-weight: 400;
  228. padding: 18rpx 8rpx;
  229. box-sizing: border-box;
  230. word-wrap: break-word;
  231. flex-grow: 1 !important;
  232. .unit {
  233. padding: 0 4rpx;
  234. font-size: 24rpx;
  235. color: #404446;
  236. }
  237. .penalize {
  238. width: 160rpx;
  239. line-height: 60rpx;
  240. background: $theme-color;
  241. font-size: 24rpx;
  242. text-align: center;
  243. color: #fff;
  244. }
  245. }
  246. .content_H {
  247. min-height: 92rpx;
  248. }
  249. .pd4 {
  250. padding: 4rpx 8rpx;
  251. }
  252. &:last-child {
  253. border-bottom: none;
  254. }
  255. }
  256. .ww55 {
  257. width: 55%;
  258. }
  259. .ww50 {
  260. width: 50%;
  261. }
  262. .ww45 {
  263. width: 45%;
  264. }
  265. }
  266. }
  267. .content_table2 {
  268. width: 100%;
  269. margin-top: 16rpx;
  270. .row {
  271. width: 100%;
  272. .item {
  273. color: #404446;
  274. font-size: 28rpx;
  275. padding-left: 12rpx;
  276. }
  277. .color157 {
  278. color: $theme-color;
  279. }
  280. .ww30 {
  281. width: 30%;
  282. }
  283. .ww20 {
  284. width: 20%;
  285. }
  286. .ww15 {
  287. width: 15%;
  288. }
  289. .ww25 {
  290. width: 25%;
  291. }
  292. .ww50 {
  293. width: 50%;
  294. }
  295. .ww10 {
  296. width: 10%;
  297. }
  298. }
  299. .head {
  300. height: 64rpx;
  301. background: #F7F9FA;
  302. border-top: 2rpx solid #E3E5E5;
  303. border-left: 2rpx solid #E3E5E5;
  304. .item {
  305. height: 64rpx;
  306. line-height: 64rpx;
  307. border-right: 2rpx solid #E3E5E5;
  308. box-sizing: border-box;
  309. font-size: 22rpx;
  310. }
  311. }
  312. .tr {
  313. border-top: 2rpx solid #E3E5E5;
  314. border-left: 2rpx solid #E3E5E5;
  315. .item {
  316. font-size: 24rpx;
  317. min-height: 74rpx;
  318. display: flex;
  319. align-items: center;
  320. border-right: 2rpx solid #E3E5E5;
  321. box-sizing: border-box;
  322. white-space: normal;
  323. word-break: break-all;
  324. }
  325. &:last-child {
  326. border-bottom: 2rpx solid #E3E5E5;
  327. }
  328. .numerate {
  329. font-size: 22rpx;
  330. color: $theme-color;
  331. }
  332. }
  333. }
  334. .content_num {
  335. display: flex;
  336. align-items: center;
  337. padding: 0 4rpx;
  338. /deep/ .uni-input-input {
  339. border: 2rpx solid #F0F8F2;
  340. background: #F0F8F2;
  341. color: $theme-color;
  342. }
  343. }
  344. .round {
  345. width: 32rpx;
  346. height: 32rpx;
  347. line-height: 32rpx;
  348. text-align: center;
  349. border-radius: 50%;
  350. background: $theme-color;
  351. font-size: 24rpx;
  352. font-style: normal;
  353. font-weight: 400;
  354. color: #fff;
  355. margin-right: 18rpx;
  356. }
  357. .popup_box {
  358. width: 94vw;
  359. padding: 16rpx 12rpx;
  360. box-sizing: border-box;
  361. }
  362. .operate_box {
  363. margin-top: 32rpx;
  364. padding: 10rpx 100rpx;
  365. /deep/ .u-button {
  366. width: 160rpx;
  367. }
  368. }
  369. .formula_box {
  370. font-size: 24rpx;
  371. font-style: normal;
  372. font-weight: 400;
  373. margin-top: 12rpx;
  374. }
  375. .reportWeight {
  376. font-size: 24rpx;
  377. font-style: normal;
  378. font-weight: 400;
  379. margin-top: 30rpx;
  380. text {
  381. color: $theme-color;
  382. }
  383. }
  384. </style>