dialog-lotInfo.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <dialog-base class="dialog-body" ref="baseDialog" title="批次详情">
  3. <view style="overflow: auto;">
  4. <view class='middle'>
  5. <view class='segment'></view>
  6. <uni-icons type="paperclip" size="30" style="margin-left: 16rpx;"></uni-icons>
  7. <view class="lotTitle">批次信息</view>
  8. <view class='segment'></view>
  9. </view>
  10. <view class="item-info uni-row">
  11. <text class="label">批次号</text>
  12. <text class="label right">{{ lotData['lotCode'] }}</text>
  13. </view>
  14. <view class="item-info uni-row">
  15. <text class="label">产品描述</text>
  16. <text class="label right">{{ store.planDetails['productDescription'] ? store.planDetails['productDescription'] : '-' }}</text>
  17. </view>
  18. <view class="item-info uni-row">
  19. <text class="label">箱号</text>
  20. <text class="label right">{{ lotData['carrierName'] ? lotData['carrierName'] : '-' }}</text>
  21. </view>
  22. <view class="item-info uni-row">
  23. <text class="label">投入数</text>
  24. <text class="label right">{{lotData['processQualifiedNum'] == 0 ? lotData['productionQuantity'] : lotData['processQualifiedNum']}}</text>
  25. </view>
  26. <view class="item-info uni-row">
  27. <text class="label">上道工序</text>
  28. <text class="label right">{{ lotData.prevProcess ? lotData['prevProcess'].processAlias : '-'}}</text>
  29. </view>
  30. <view class="item-info uni-row">
  31. <text class="label">当前工序</text>
  32. <text class="label right">{{ lotData.currentProcess ? lotData['currentProcess'].processAlias : '-'}}</text>
  33. </view>
  34. <view class="item-info uni-row">
  35. <text class="label">下道工序</text>
  36. <text class="label right">{{ lotData.nextDeptProcess ? lotData['nextDeptProcess'] : '-' }}</text>
  37. </view>
  38. <view class="item-info uni-row">
  39. <text class="label">所在区域</text>
  40. <text class="label right">{{ lotData['place'] ? lotData['place'] : '-' }}</text>
  41. </view>
  42. <view class='middle'>
  43. <view class='segment'></view>
  44. <uni-icons type="paperclip" size="30" style="margin-left: 16rpx;"></uni-icons>
  45. <view class="lotTitle">领料信息</view>
  46. <view class='segment'></view>
  47. </view>
  48. <view class="item-info uni-row">
  49. <text class="label">炉号</text>
  50. <text id="manufacturer" class="label right">{{ furnaceNoInfo.furnaceNumber ? furnaceNoInfo.furnaceNumber : '-'}}</text>
  51. </view>
  52. <view class="item-info uni-row">
  53. <text class="label">计划单号</text>
  54. <text id="manufacturer" class="label right">{{ furnaceNoInfo.productionPlanNo ? furnaceNoInfo.productionPlanNo : '-'}}</text>
  55. </view>
  56. <view class="item-info uni-row">
  57. <text class="label">序号</text>
  58. <text class="label right">{{ furnaceNoInfo.lineNumber ? furnaceNoInfo.lineNumber : '-'}}</text>
  59. </view>
  60. <view class="item-info uni-row">
  61. <text class="label">厂家</text>
  62. <text class="label right">{{ furnaceNoInfo.factory ? furnaceNoInfo.factory : '-'}}</text>
  63. </view>
  64. <view class="item-info uni-row">
  65. <text class="label">牌号</text>
  66. <text class="label right">{{ furnaceNoInfo.brandNumber ? furnaceNoInfo.brandNumber : '-' }}</text>
  67. </view>
  68. <view class="item-info uni-row">
  69. <text class="label">规格</text>
  70. <text class="label right">{{ furnaceNoInfo.spec ? furnaceNoInfo.spec : '-' }}</text>
  71. </view>
  72. <view class="item-info uni-row">
  73. <text class="label">形状</text>
  74. <text class="label right">{{ furnaceNoInfo.shape ? furnaceNoInfo.shape : '-'}}</text>
  75. </view>
  76. <view class="item-info uni-row">
  77. <text class="label">材料直径</text>
  78. <text class="label right">{{ furnaceNoInfo.diameter ? furnaceNoInfo.diameter : '-' }}</text>
  79. </view>
  80. <view class="item-info uni-row">
  81. <text class="label">原料编码</text>
  82. <text class="label right">{{ furnaceNoInfo.rawMaterialCode ? furnaceNoInfo.rawMaterialCode : '-' }}</text>
  83. </view>
  84. <view class="item-info uni-row">
  85. <text class="label">来料日期</text>
  86. <text class="label right">{{ furnaceNoInfo.incomingDate ? furnaceNoInfo.incomingDate : '-' }}</text>
  87. </view>
  88. <view class="item-info uni-row">
  89. <text class="label">技术要求1</text>
  90. <text class="label right">{{ furnaceNoInfo.firstTechnicalRequirement ? furnaceNoInfo.firstTechnicalRequirement : '-' }}</text>
  91. </view>
  92. <view class="item-info uni-row">
  93. <text class="label">技术要求2</text>
  94. <text class="label right">{{ furnaceNoInfo.secondTechnicalRequirement ? furnaceNoInfo.secondTechnicalRequirement : '-' }}</text>
  95. </view>
  96. </view>
  97. </dialog-base>
  98. </template>
  99. <script setup>
  100. import {
  101. ref,
  102. getCurrentInstance
  103. } from 'vue'
  104. import {
  105. store
  106. } from '../../store';
  107. import {
  108. getFurnaceNoInfoByDayworkId
  109. } from '@/api/business/furnaceNoInfo.js'
  110. const baseDialog = ref(null)
  111. const lotData = ref(null)
  112. const furnaceNoInfo = ref(null)
  113. function open() {
  114. lotData.value = store.dayworkInfo;
  115. getFurnaceNoInfoByDayworkId({
  116. dayworkId: store.dayworkInfo.id
  117. }).then(res => {
  118. if (res.code == 200) {
  119. furnaceNoInfo.value = res.rows.length == 0 ? [{}] : res.rows[0];
  120. baseDialog.value.open();
  121. } else {
  122. uni.showToast({
  123. icon: 'none',
  124. title: '炉号信息获取异常,请稍后重试'
  125. })
  126. }
  127. })
  128. }
  129. function close() {
  130. baseDialog.value.close()
  131. }
  132. defineExpose({
  133. open
  134. })
  135. </script>
  136. <style lang="scss">
  137. .dialog-body {
  138. // height: 60%;
  139. // margin: auto auto;
  140. overflow: auto;
  141. }
  142. .item-info {
  143. margin: 8rpx;
  144. .label {
  145. font-size: 28rpx;
  146. width: 220rpx;
  147. color: #808080;
  148. &.right {
  149. flex: 1;
  150. color: #000000;
  151. }
  152. }
  153. }
  154. .status-btn {
  155. justify-content: flex-end;
  156. align-items: center;
  157. .turnover-tag {
  158. padding-right: 12rpx;
  159. padding-left: 12rpx;
  160. border-radius: 8rpx;
  161. border: 1rpx solid #FF7901;
  162. background-color: #FF7901;
  163. font-size: 28rpx;
  164. color: #FFFFFF;
  165. }
  166. .reporting-tag {
  167. padding-right: 12rpx;
  168. padding-left: 12rpx;
  169. border-radius: 8rpx;
  170. margin-left: 16rpx;
  171. border: 1rpx solid #1684fc;
  172. background-color: #1684fc;
  173. font-size: 28rpx;
  174. color: #FFFFFF;
  175. }
  176. }
  177. .middle {
  178. display: flex;
  179. flex-direction: row;
  180. align-items: center;
  181. justify-content: center
  182. }
  183. .segment {
  184. width: 80rpx;
  185. background-color: rgba(213, 213, 213, 1);
  186. border: 1rpx solid rgba(213, 213, 213, 1);
  187. }
  188. .lotTitle {
  189. margin: 16rpx 16rpx 16rpx 0;
  190. }
  191. </style>