oneJobBom.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">报工信息</view>
  5. </view>
  6. <view class="material ">
  7. <view class="content_table">
  8. <view class="item rx-sc">
  9. <view class="rx">
  10. <view class="lable lable150 rx-cc ">物料编码</view>
  11. <view class="content rx-sc">
  12. <view>tgcc001061001001</view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="item rx-sc">
  17. <view class="rx">
  18. <view class="lable lable150 rx-cc ">名称</view>
  19. <view class="content rx-sc">
  20. <view>X5 CC筒10#</view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="item rx-sc">
  25. <view class="rx">
  26. <view class="lable lable150 rx-cc ">型号</view>
  27. <view class="content rx-sc">
  28. <view>1065*1019x619</view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="item rx-sc">
  33. <view class="rx ww50 ">
  34. <view class="lable lable150 rx-cc ">物料代号</view>
  35. <view class="content content_num">
  36. <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
  37. </view>
  38. </view>
  39. <view class="rx ww50">
  40. <view class="lable lable150 rx-cc ">客户代号</view>
  41. <view class="content content_num">
  42. <input class="uni-input" v-model="item.workReportInfo.formedWeight"></input>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="item rx-sc">
  47. <view class="rx ww50 ">
  48. <view class="lable lable150 rx-cc ">刻码</view>
  49. <view class="content content_num content_H">
  50. <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
  51. </view>
  52. </view>
  53. <view class="rx ww50">
  54. <view class="lable lable150 rx-cc ">位置</view>
  55. <view class="content ">
  56. <zxz-uni-data-select :localdata="positionList" v-model="item.categoryId" dataValue='id'
  57. format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="content_table2">
  63. <view class="head row rx-sc">
  64. <view class="item ww25">物料重量Kg</view>
  65. <view class="item ww25">报工重量kg</view>
  66. <view class="item ww25">质检结果</view>
  67. <view class="item ww25">处置</view>
  68. </view>
  69. <view class="table">
  70. <view class="tr row rx-sc">
  71. <view class="item ww25">32.67</view>
  72. <view class="item ww25 content_num">
  73. <input class="uni-input" v-model="item.workReportInfo.formedNum"></input>
  74. </view>
  75. <view class="item ww25">
  76. <zxz-uni-data-select :localdata="inspectionList" v-model="item.categoryId" dataValue='id'
  77. format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  78. </view>
  79. <view class="item ww25">
  80. <zxz-uni-data-select :localdata="inspectionList" v-model="item.categoryId" dataValue='id'
  81. format='{name}' dataKey="code" filterable :clear='false'></zxz-uni-data-select>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. import baTreePicker from '@/components/ba-tree-picker/ba-tree-picker.vue'
  91. import {
  92. treeByPid,
  93. pageeLedgerMain,
  94. assetPage
  95. } from '@/api/pda/workOrder.js'
  96. export default {
  97. props: {
  98. item: {
  99. type: Object,
  100. default: () => {}
  101. },
  102. notFormed: {
  103. type: Array,
  104. default: () => []
  105. },
  106. },
  107. watch: {
  108. notFormed: {
  109. immediate: true,
  110. deep: true,
  111. handler(newVal) {
  112. console.log(newVal)
  113. this.notFormedList = newVal
  114. }
  115. }
  116. },
  117. data() {
  118. return {
  119. classificationList: [],
  120. positionList: [{
  121. id: '1',
  122. name: '内'
  123. },
  124. {
  125. id: '2',
  126. name: '中'
  127. },
  128. {
  129. id: '1',
  130. name: '外'
  131. }
  132. ],
  133. inspectionList: [{
  134. id: '1',
  135. name: '合格'
  136. },
  137. {
  138. id: '2',
  139. name: '不合格'
  140. },
  141. ]
  142. }
  143. },
  144. created() {
  145. },
  146. methods: {
  147. }
  148. }
  149. </script>
  150. <style lang="scss" scoped>
  151. .title_box {
  152. margin-top: 20rpx;
  153. .name {
  154. font-size: 28rpx;
  155. font-style: normal;
  156. font-weight: 400;
  157. color: $theme-color;
  158. padding-left: 20rpx;
  159. position: relative;
  160. &:before {
  161. position: absolute;
  162. content: '';
  163. left: 0rpx;
  164. top: 0rpx;
  165. bottom: 0rpx;
  166. width: 4rpx;
  167. height: 28rpx;
  168. background: $theme-color;
  169. margin: auto;
  170. }
  171. }
  172. }
  173. .material {
  174. margin-top: 10rpx;
  175. .content_table {
  176. width: 100%;
  177. border: 2rpx solid $border-color;
  178. .item {
  179. display: flex;
  180. border-bottom: 2rpx solid $border-color;
  181. .lable {
  182. width: 132rpx;
  183. text-align: center;
  184. background-color: #F7F9FA;
  185. font-size: 26rpx;
  186. border-right: 2rpx solid $border-color;
  187. flex-shrink: 0;
  188. }
  189. .lable150 {
  190. width: 156rpx !important;
  191. font-size: 24rpx;
  192. }
  193. .ww80 {
  194. width: 80rpx;
  195. }
  196. .content {
  197. width: 518rpx;
  198. min-height: 64rpx;
  199. font-size: 28rpx;
  200. line-height: 28rpx;
  201. font-style: normal;
  202. font-weight: 400;
  203. padding: 18rpx 8rpx;
  204. box-sizing: border-box;
  205. word-wrap: break-word;
  206. flex-grow: 1 !important;
  207. .unit {
  208. padding: 0 4rpx;
  209. font-size: 24rpx;
  210. color: #404446;
  211. }
  212. .penalize {
  213. width: 160rpx;
  214. line-height: 60rpx;
  215. background: $theme-color;
  216. font-size: 24rpx;
  217. text-align: center;
  218. color: #fff;
  219. }
  220. }
  221. .content_H {
  222. min-height: 92rpx;
  223. }
  224. .pd4 {
  225. padding: 4rpx 8rpx;
  226. }
  227. &:last-child {
  228. border-bottom: none;
  229. }
  230. }
  231. .ww55 {
  232. width: 55%;
  233. }
  234. .ww50 {
  235. width: 50%;
  236. }
  237. .ww45 {
  238. width: 45%;
  239. }
  240. }
  241. }
  242. .content_table2 {
  243. width: 100%;
  244. .row {
  245. width: 100%;
  246. .item {
  247. color: #404446;
  248. font-size: 28rpx;
  249. padding-left: 12rpx;
  250. }
  251. .color157 {
  252. color: $theme-color;
  253. }
  254. .ww20 {
  255. width: 20%;
  256. }
  257. .ww35 {
  258. width: 35%;
  259. }
  260. .ww25 {
  261. width: 25%;
  262. }
  263. }
  264. .head {
  265. height: 64rpx;
  266. background: #F7F9FA;
  267. border-top: 2rpx solid #E3E5E5;
  268. border-left: 2rpx solid #E3E5E5;
  269. .item {
  270. height: 64rpx;
  271. line-height: 64rpx;
  272. border-right: 2rpx solid #E3E5E5;
  273. box-sizing: border-box;
  274. }
  275. }
  276. .tr {
  277. border-top: 2rpx solid #E3E5E5;
  278. border-left: 2rpx solid #E3E5E5;
  279. .item {
  280. font-size: 24rpx;
  281. min-height: 74rpx;
  282. display: flex;
  283. align-items: center;
  284. border-right: 2rpx solid #E3E5E5;
  285. box-sizing: border-box;
  286. white-space: normal;
  287. word-break: break-all;
  288. }
  289. &:last-child {
  290. border-bottom: 2rpx solid #E3E5E5;
  291. }
  292. }
  293. }
  294. .content_num {
  295. display: flex;
  296. align-items: center;
  297. padding: 0 4rpx;
  298. /deep/ .uni-input-input {
  299. border: 2rpx solid #F0F8F2;
  300. background: #F0F8F2;
  301. color: $theme-color;
  302. }
  303. }
  304. </style>