dialog-lotInfo.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <dialog-base class="dialog-body" ref="baseDialog" title="批次详情">
  3. <view class='middle'>
  4. <view class='segment'></view>
  5. <uni-icons type="paperclip" size="30" style="margin-left: 16rpx;"></uni-icons>
  6. <view class="lotTitle">批次信息</view>
  7. <view class='segment'></view>
  8. </view>
  9. <view class="item-info uni-row">
  10. <text class="label">批次号</text>
  11. <text class="label right">{{ lotData['lotCode'] }}</text>
  12. </view>
  13. <view class="item-info uni-row">
  14. <text class="label">产品描述</text>
  15. <text class="label right">{{ store.planDetails['productDescription'] ? store.planDetails['productDescription'] : '-' }}</text>
  16. </view>
  17. <view class="item-info uni-row">
  18. <text class="label">箱号</text>
  19. <text class="label right">{{ lotData['carrierName'] ? lotData['carrierName'] : '-' }}</text>
  20. </view>
  21. <view class="item-info uni-row">
  22. <text class="label">投入数</text>
  23. <text class="label right">{{lotData['processQualifiedNum'] == 0 ? lotData['oneLotQuantity'] : lotData['processQualifiedNum']}}</text>
  24. </view>
  25. <view class="item-info uni-row">
  26. <text class="label">上道工序</text>
  27. <text class="label right">{{ lotData.prevProcess ? lotData['prevProcess'].processAlias : '-'}}</text>
  28. </view>
  29. <view class="item-info uni-row">
  30. <text class="label">当前工序</text>
  31. <text class="label right">{{ lotData.currentProcess ? lotData['currentProcess'].processAlias : '-'}}</text>
  32. </view>
  33. <view class="item-info uni-row">
  34. <text class="label">下道工序</text>
  35. <text class="label right">{{ lotData.nextDeptProcess ? lotData['nextDeptProcess'] : '-' }}</text>
  36. </view>
  37. <view class="item-info uni-row">
  38. <text class="label">所在区域</text>
  39. <text class="label right">{{ lotData['place'] ? lotData['place'] : '-' }}</text>
  40. </view>
  41. <view class='middle'>
  42. <view class='segment'></view>
  43. <uni-icons type="paperclip" size="30" style="margin-left: 16rpx;"></uni-icons>
  44. <view class="lotTitle">领料信息</view>
  45. <view class='segment'></view>
  46. </view>
  47. <view class="item-info uni-row">
  48. <text class="label">炉号</text>
  49. <text id="manufacturer" class="label right">{{ furnaceNoInfo.furnaceNumber ? furnaceNoInfo.furnaceNumber : '-'}}</text>
  50. </view>
  51. <view class="item-info uni-row">
  52. <text class="label">计划单号</text>
  53. <text id="manufacturer" class="label right">{{ furnaceNoInfo.productionPlanNo ? furnaceNoInfo.productionPlanNo : '-'}}</text>
  54. </view>
  55. <view class="item-info uni-row">
  56. <text class="label">序号</text>
  57. <text class="label right">{{ furnaceNoInfo.lineNumber ? furnaceNoInfo.lineNumber : '-'}}</text>
  58. </view>
  59. <view class="item-info uni-row">
  60. <text class="label">厂家</text>
  61. <text class="label right">{{ furnaceNoInfo.factory ? furnaceNoInfo.factory : '-'}}</text>
  62. </view>
  63. <view class="item-info uni-row">
  64. <text class="label">牌号</text>
  65. <text class="label right">{{ furnaceNoInfo.brandNumber ? furnaceNoInfo.brandNumber : '-' }}</text>
  66. </view>
  67. <view class="item-info uni-row">
  68. <text class="label">规格</text>
  69. <text class="label right">{{ furnaceNoInfo.spec ? furnaceNoInfo.spec : '-' }}</text>
  70. </view>
  71. <view class="item-info uni-row">
  72. <text class="label">形状</text>
  73. <text class="label right">{{ furnaceNoInfo.shape ? furnaceNoInfo.shape : '-'}}</text>
  74. </view>
  75. <view class="item-info uni-row">
  76. <text class="label">材料直径</text>
  77. <text class="label right">{{ furnaceNoInfo.diameter ? furnaceNoInfo.diameter : '-' }}</text>
  78. </view>
  79. <view class="item-info uni-row">
  80. <text class="label">原料编码</text>
  81. <text class="label right">{{ furnaceNoInfo.rawMaterialCode ? furnaceNoInfo.rawMaterialCode : '-' }}</text>
  82. </view>
  83. <view class="item-info uni-row">
  84. <text class="label">来料日期</text>
  85. <text class="label right">{{ furnaceNoInfo.incomingDate ? furnaceNoInfo.incomingDate : '-' }}</text>
  86. </view>
  87. <view class="item-info uni-row">
  88. <text class="label">技术要求1</text>
  89. <text class="label right">{{ furnaceNoInfo.firstTechnicalRequirement ? furnaceNoInfo.firstTechnicalRequirement : '-' }}</text>
  90. </view>
  91. <view class="item-info uni-row">
  92. <text class="label">技术要求2</text>
  93. <text class="label right">{{ furnaceNoInfo.SecondTechnicalRequirement ? furnaceNoInfo.SecondTechnicalRequirement : '-' }}</text>
  94. </view>
  95. </dialog-base>
  96. </template>
  97. <script setup>
  98. import {
  99. ref,
  100. getCurrentInstance
  101. } from 'vue'
  102. import {
  103. store
  104. } from '../../store';
  105. import {
  106. getFurnaceNoInfoByDayworkId
  107. } from '@/api/business/furnaceNoInfo.js'
  108. const baseDialog = ref(null)
  109. const lotData = ref(null)
  110. const furnaceNoInfo = ref(null)
  111. function open() {
  112. lotData.value = store.dayworkInfo;
  113. console.log(lotData.value);
  114. getFurnaceNoInfoByDayworkId({
  115. dayworkId: store.dayworkInfo.id
  116. }).then(res => {
  117. if (res.code == 200) {
  118. furnaceNoInfo.value = res.rows[0]
  119. console.log(res.rows);
  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>