form.vue 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340
  1. <template>
  2. <view class="page-container uni-column">
  3. <view class="tab-container">
  4. <view v-for="(item, index) in processInspectionTypeList" :key="index"
  5. :class="{ 'tab-item': true, 'active': isActived === item }">
  6. <text @click="selectedStatus(item)">{{ item.label }}</text>
  7. </view>
  8. </view>
  9. <!-- 交检 -->
  10. <view v-if="isActived.label == '交检' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  11. <view class="carrier-info uni-column">
  12. <view class="carrier-code uni-row">
  13. <text>箱号</text>
  14. <text
  15. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].carrierCode}}</text>
  16. <text style="margin-left: 150px;color: aquamarine">交检</text>
  17. </view>
  18. <view class="info-row uni-row">
  19. <view class="label">图号</view>
  20. <view class="value">
  21. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].drawingNumber }}
  22. </view>
  23. </view>
  24. <view class="info-row uni-row">
  25. <view class="label">批次号</view>
  26. <view class="value">
  27. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].lotCode }}
  28. </view>
  29. </view>
  30. <view class="info-row uni-row">
  31. <view class="label">工艺版本</view>
  32. <view class="value">
  33. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].technologyVersion }}
  34. </view>
  35. </view>
  36. <view class="info-row uni-row">
  37. <view class="label">产品描述</view>
  38. <view class="value">
  39. {{inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')]. productDescription }}
  40. </view>
  41. </view>
  42. <view class="info-row uni-row">
  43. <view class="label">当前工序</view>
  44. <view class="value">
  45. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].processAlias }}
  46. </view>
  47. </view>
  48. <view class="info-row uni-row">
  49. <view class="label">操作者</view>
  50. <view class="value">
  51. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].nickName }}
  52. </view>
  53. </view>
  54. <view class="info-row uni-row">
  55. <view class="label">设备</view>
  56. <view class="value">
  57. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].equipmentDetailCode }}
  58. </view>
  59. </view>
  60. <view class="info-row uni-row">
  61. <view class="label">检查载具</view>
  62. <view class="value">
  63. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].inspectionCarrierCode }}
  64. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  65. </view>
  66. </view>
  67. <view class="info-row uni-row">
  68. <view class="drawing-btn"
  69. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')])">
  70. 图纸信息</view>
  71. </view>
  72. </view>
  73. <!-- 废品信息 -->
  74. <view class="title unfit-title uni-row">
  75. <text>检查信息</text>
  76. </view>
  77. <view class="unfit-container">
  78. <view class="unfit-item-container uni-column"
  79. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].processInspectionDetails"
  80. :key="index">
  81. <view class="resu uni-row">
  82. <view class="label">检查标准</view>
  83. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  84. </view>
  85. <view class="resu uni-row">
  86. <view class="label">检查结果</view>
  87. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  88. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  89. </view>
  90. <view class="resu uni-row">
  91. <view class="label">超差范围</view>
  92. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  93. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  94. </view>
  95. <view class="resu uni-row">
  96. <view :class="!editable() ? 'label' : ''">检查量</view>
  97. <input v-if="editable()" class="number" type="number"
  98. v-model="item.examiningNum" />
  99. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  100. <view :class="!editable() ? 'label' : ''">不良品量</view>
  101. <input v-if="editable()" class="number" type="number"
  102. v-model="item.disqualificationNum" />
  103. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  104. </view>
  105. </view>
  106. </view>
  107. <!-- 咨询部分 -->
  108. <view class="title unfit-title uni-row">
  109. <text>咨询</text>
  110. </view>
  111. <view class="consultation-container uni-column">
  112. <view class="consultation-item-container"
  113. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].dayworkItemConsults"
  114. :key="index">
  115. <view class="question uni-column">
  116. <view class="label uni-row">
  117. <text>问题描述</text>
  118. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  119. {{ selectText(item) }}</text>
  120. </view>
  121. <view class="content">{{ item.content }}</view>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 报工部分 -->
  126. <view class="daywork-container">
  127. <view class="result uni-row">
  128. <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">交检状态</view>
  129. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  130. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].status"
  131. :localdata="range"></uni-data-checkbox>
  132. </view>
  133. <view class="remark uni-row">
  134. <view class="label">备注</view>
  135. <textarea v-if="editable()"
  136. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].remark" />
  137. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'deliveryInspection')].remark }}</view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 巡检 -->
  142. <view v-if="isActived.label == '巡检' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  143. <view class="carrier-info uni-column">
  144. <view class="carrier-code uni-row">
  145. <text>箱号</text>
  146. <text
  147. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].carrierCode}}</text>
  148. <text style="margin-left: 150px;color: aquamarine">巡检</text>
  149. </view>
  150. <view class="info-row uni-row">
  151. <view class="label">图号</view>
  152. <view class="value">
  153. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].drawingNumber }}
  154. </view>
  155. </view>
  156. <view class="info-row uni-row">
  157. <view class="label">批次号</view>
  158. <view class="value">
  159. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].lotCode }}
  160. </view>
  161. </view>
  162. <view class="info-row uni-row">
  163. <view class="label">工艺版本</view>
  164. <view class="value">
  165. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].technologyVersion }}
  166. </view>
  167. </view>
  168. <view class="info-row uni-row">
  169. <view class="label">产品描述</view>
  170. <view class="value">
  171. {{inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')]. productDescription }}
  172. </view>
  173. </view>
  174. <view class="info-row uni-row">
  175. <view class="label">当前工序</view>
  176. <view class="value">
  177. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].processAlias }}
  178. </view>
  179. </view>
  180. <view class="info-row uni-row">
  181. <view class="label">操作者</view>
  182. <view class="value">
  183. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].nickName }}
  184. </view>
  185. </view>
  186. <view class="info-row uni-row">
  187. <view class="label">设备</view>
  188. <view class="value">
  189. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].equipmentDetailCode }}
  190. </view>
  191. </view>
  192. <view class="info-row uni-row">
  193. <view class="label">检查载具</view>
  194. <view class="value">
  195. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].inspectionCarrierCode }}
  196. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  197. </view>
  198. </view>
  199. <view class="info-row uni-row">
  200. <view class="drawing-btn"
  201. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')])">
  202. 图纸信息</view>
  203. </view>
  204. </view>
  205. <!-- 废品信息 -->
  206. <view class="title unfit-title uni-row">
  207. <text>检查信息</text>
  208. </view>
  209. <view class="unfit-container">
  210. <view class="unfit-item-container uni-column"
  211. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].processInspectionDetails"
  212. :key="index">
  213. <view class="resu uni-row">
  214. <view class="label">检查标准</view>
  215. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  216. </view>
  217. <view class="resu uni-row">
  218. <view class="label">检查结果</view>
  219. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  220. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  221. </view>
  222. <view class="resu uni-row">
  223. <view class="label">超差范围</view>
  224. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  225. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  226. </view>
  227. <view class="resu uni-row">
  228. <view :class="!editable() ? 'label' : ''">检查量</view>
  229. <input v-if="editable()" class="number" type="number"
  230. v-model="item.examiningNum" />
  231. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  232. <view :class="!editable() ? 'label' : ''">不良品量</view>
  233. <input v-if="editable()" class="number" type="number"
  234. v-model="item.disqualificationNum" />
  235. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  236. </view>
  237. </view>
  238. </view>
  239. <!-- 咨询部分 -->
  240. <view class="title unfit-title uni-row">
  241. <text>咨询</text>
  242. </view>
  243. <view class="consultation-container uni-column">
  244. <view class="consultation-item-container"
  245. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].dayworkItemConsults"
  246. :key="index">
  247. <view class="question uni-column">
  248. <view class="label uni-row">
  249. <text>问题描述</text>
  250. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  251. {{ selectText(item) }}</text>
  252. </view>
  253. <view class="content">{{ item.content }}</view>
  254. </view>
  255. </view>
  256. </view>
  257. <!-- 报工部分 -->
  258. <view class="daywork-container">
  259. <view class="result uni-row">
  260. <view class="label" style="margin-top: 20rpx; margin-right: 10rpx;">巡检状态</view>
  261. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  262. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].status"
  263. :localdata="range"></uni-data-checkbox>
  264. </view>
  265. <view class="remark uni-row">
  266. <view class="label">备注</view>
  267. <textarea v-if="editable()"
  268. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].remark" />
  269. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'patrolInspection')].remark }}</view>
  270. </view>
  271. </view>
  272. </view>
  273. <!-- 仪器室 -->
  274. <view v-if="isActived.label == '仪器室' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  275. <view class="carrier-info uni-column">
  276. <view class="carrier-code uni-row">
  277. <text>箱号</text>
  278. <text
  279. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].carrierCode}}</text>
  280. <text style="margin-left: 150px;color: aquamarine">仪器室</text>
  281. </view>
  282. <view class="info-row uni-row">
  283. <view class="label">图号</view>
  284. <view class="value">
  285. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].drawingNumber }}
  286. </view>
  287. </view>
  288. <view class="info-row uni-row">
  289. <view class="label">批次号</view>
  290. <view class="value">
  291. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].lotCode }}
  292. </view>
  293. </view>
  294. <view class="info-row uni-row">
  295. <view class="label">工艺版本</view>
  296. <view class="value">
  297. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].technologyVersion }}
  298. </view>
  299. </view>
  300. <view class="info-row uni-row">
  301. <view class="label">产品描述</view>
  302. <view class="value">
  303. {{inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')]. productDescription }}
  304. </view>
  305. </view>
  306. <view class="info-row uni-row">
  307. <view class="label">当前工序</view>
  308. <view class="value">
  309. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].processAlias }}
  310. </view>
  311. </view>
  312. <view class="info-row uni-row">
  313. <view class="label">操作者</view>
  314. <view class="value">
  315. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].nickName }}
  316. </view>
  317. </view>
  318. <view class="info-row uni-row">
  319. <view class="label">设备</view>
  320. <view class="value">
  321. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].equipmentDetailCode }}
  322. </view>
  323. </view>
  324. <view class="info-row uni-row">
  325. <view class="label">检查载具</view>
  326. <view class="value">
  327. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].inspectionCarrierCode }}
  328. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  329. </view>
  330. </view>
  331. <view class="info-row uni-row">
  332. <view class="drawing-btn"
  333. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')])">
  334. 图纸信息</view>
  335. </view>
  336. </view>
  337. <!-- 废品信息 -->
  338. <view class="title unfit-title uni-row">
  339. <text>检查信息</text>
  340. </view>
  341. <view class="unfit-container">
  342. <view class="unfit-item-container uni-column"
  343. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].processInspectionDetails"
  344. :key="index">
  345. <view class="resu uni-row">
  346. <view class="label">检查标准</view>
  347. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  348. </view>
  349. <view class="resu uni-row">
  350. <view class="label">检查结果</view>
  351. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  352. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  353. </view>
  354. <view class="resu uni-row">
  355. <view class="label">超差范围</view>
  356. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  357. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  358. </view>
  359. <view class="resu uni-row">
  360. <view :class="!editable() ? 'label' : ''">检查量</view>
  361. <input v-if="editable()" class="number" type="number"
  362. v-model="item.examiningNum" />
  363. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  364. <view :class="!editable() ? 'label' : ''">不良品量</view>
  365. <input v-if="editable()" class="number" type="number"
  366. v-model="item.disqualificationNum" />
  367. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  368. </view>
  369. </view>
  370. </view>
  371. <!-- 咨询部分 -->
  372. <view class="title unfit-title uni-row">
  373. <text>咨询</text>
  374. </view>
  375. <view class="consultation-container uni-column">
  376. <view class="consultation-item-container"
  377. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].dayworkItemConsults"
  378. :key="index">
  379. <view class="question uni-column">
  380. <view class="label uni-row">
  381. <text>问题描述</text>
  382. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  383. {{ selectText(item) }}</text>
  384. </view>
  385. <view class="content">{{ item.content }}</view>
  386. </view>
  387. </view>
  388. </view>
  389. <!-- 报工部分 -->
  390. <view class="daywork-container">
  391. <view class="result uni-row">
  392. <view class="label" style="margin-top: 20rpx; width: 170rpx;">仪器室检状态</view>
  393. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  394. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].status"
  395. :localdata="range"></uni-data-checkbox>
  396. </view>
  397. <view class="remark uni-row">
  398. <view class="label">备注</view>
  399. <textarea v-if="editable()"
  400. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].remark" />
  401. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'instrumentRoomInspection')].remark }}</view>
  402. </view>
  403. </view>
  404. </view>
  405. <!-- 外协检 -->
  406. <view v-if="isActived.label == '外协检' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  407. <view class="carrier-info uni-column">
  408. <view class="carrier-code uni-row">
  409. <text>箱号</text>
  410. <text
  411. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].carrierCode}}</text>
  412. <text style="margin-left: 150px;color: aquamarine">外协检</text>
  413. </view>
  414. <view class="info-row uni-row">
  415. <view class="label">图号</view>
  416. <view class="value">
  417. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].drawingNumber }}
  418. </view>
  419. </view>
  420. <view class="info-row uni-row">
  421. <view class="label">批次号</view>
  422. <view class="value">
  423. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].lotCode }}
  424. </view>
  425. </view>
  426. <view class="info-row uni-row">
  427. <view class="label">工艺版本</view>
  428. <view class="value">
  429. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].technologyVersion }}
  430. </view>
  431. </view>
  432. <view class="info-row uni-row">
  433. <view class="label">产品描述</view>
  434. <view class="value">
  435. {{inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')]. productDescription }}
  436. </view>
  437. </view>
  438. <view class="info-row uni-row">
  439. <view class="label">当前工序</view>
  440. <view class="value">
  441. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].processAlias }}
  442. </view>
  443. </view>
  444. <view class="info-row uni-row">
  445. <view class="label">检查载具</view>
  446. <view class="value">
  447. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].inspectionCarrierCode }}
  448. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  449. </view>
  450. </view>
  451. <view class="info-row uni-row">
  452. <view class="drawing-btn"
  453. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')])">
  454. 图纸信息</view>
  455. </view>
  456. </view>
  457. <!-- 废品信息 -->
  458. <view class="title unfit-title uni-row">
  459. <text>检查信息</text>
  460. </view>
  461. <view class="unfit-container">
  462. <view class="unfit-item-container uni-column"
  463. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].processInspectionDetails"
  464. :key="index">
  465. <view class="resu uni-row">
  466. <view class="label">检查标准</view>
  467. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  468. </view>
  469. <view class="resu uni-row">
  470. <view class="label">检查结果</view>
  471. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  472. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  473. </view>
  474. <view class="resu uni-row">
  475. <view class="label">超差范围</view>
  476. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  477. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  478. </view>
  479. <view class="resu uni-row">
  480. <view :class="!editable() ? 'label' : ''">检查量</view>
  481. <input v-if="editable()" class="number" type="number"
  482. v-model="item.examiningNum" />
  483. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  484. <view :class="!editable() ? 'label' : ''">不良品量</view>
  485. <input v-if="editable()" class="number" type="number"
  486. v-model="item.disqualificationNum" />
  487. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  488. <view :class="!editable() ? 'label' : ''">废品量</view>
  489. <input v-if="editable()" class="number" type="number"
  490. v-model="item.rejectNum" />
  491. <view v-else class="value" style="margin-left:16rpx;">{{ item.rejectNum }}</view>
  492. </view>
  493. </view>
  494. </view>
  495. <!-- 咨询部分 -->
  496. <view class="title unfit-title uni-row">
  497. <text>咨询</text>
  498. </view>
  499. <view class="consultation-container uni-column">
  500. <view class="consultation-item-container"
  501. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].dayworkItemConsults"
  502. :key="index">
  503. <view class="question uni-column">
  504. <view class="label uni-row">
  505. <text>问题描述</text>
  506. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  507. {{ selectText(item) }}</text>
  508. </view>
  509. <view class="content">{{ item.content }}</view>
  510. </view>
  511. </view>
  512. </view>
  513. <!-- 报工部分 -->
  514. <view class="daywork-container">
  515. <view class="result uni-row">
  516. <view class="label" style="margin-top: 20rpx; width: 170rpx;">外协检状态</view>
  517. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  518. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].status"
  519. :localdata="range"></uni-data-checkbox>
  520. </view>
  521. <view class="remark uni-row">
  522. <view class="label">备注</view>
  523. <textarea v-if="editable()"
  524. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].remark" />
  525. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'outsourcedInspector')].remark }}</view>
  526. </view>
  527. </view>
  528. </view>
  529. <!-- 出厂检 -->
  530. <view v-if="isActived.label == '出厂检' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  531. <view class="carrier-info uni-column">
  532. <view class="carrier-code uni-row">
  533. <text>箱号</text>
  534. <text
  535. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].carrierCode}}</text>
  536. <text style="margin-left: 150px;color: aquamarine">出厂检</text>
  537. </view>
  538. <view class="info-row uni-row">
  539. <view class="label">图号</view>
  540. <view class="value">
  541. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].drawingNumber }}
  542. </view>
  543. </view>
  544. <view class="info-row uni-row">
  545. <view class="label">批次号</view>
  546. <view class="value">
  547. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].lotCode }}
  548. </view>
  549. </view>
  550. <view class="info-row uni-row">
  551. <view class="label">工艺版本</view>
  552. <view class="value">
  553. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].technologyVersion }}
  554. </view>
  555. </view>
  556. <view class="info-row uni-row">
  557. <view class="label">产品描述</view>
  558. <view class="value">
  559. {{inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')]. productDescription }}
  560. </view>
  561. </view>
  562. <view class="info-row uni-row">
  563. <view class="label">当前工序</view>
  564. <view class="value">
  565. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].processAlias }}
  566. </view>
  567. </view>
  568. <view class="info-row uni-row">
  569. <view class="label">检查载具</view>
  570. <view class="value">
  571. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].inspectionCarrierCode }}
  572. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  573. </view>
  574. </view>
  575. <view class="info-row uni-row">
  576. <view class="drawing-btn"
  577. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')])">
  578. 图纸信息</view>
  579. </view>
  580. </view>
  581. <!-- 废品信息 -->
  582. <view class="title unfit-title uni-row">
  583. <text>检查信息</text>
  584. </view>
  585. <view class="unfit-container">
  586. <view class="unfit-item-container uni-column"
  587. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].processInspectionDetails"
  588. :key="index">
  589. <view class="resu uni-row">
  590. <view class="label">检查标准</view>
  591. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  592. </view>
  593. <view class="resu uni-row">
  594. <view class="label">检查结果</view>
  595. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  596. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  597. </view>
  598. <view class="resu uni-row">
  599. <view class="label">超差范围</view>
  600. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  601. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  602. </view>
  603. <view class="resu uni-row">
  604. <view :class="!editable() ? 'label' : ''">检查量</view>
  605. <input v-if="editable()" class="number" type="number"
  606. v-model="item.examiningNum" />
  607. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  608. <view :class="!editable() ? 'label' : ''">不良品量</view>
  609. <input v-if="editable()" class="number" type="number"
  610. v-model="item.disqualificationNum" />
  611. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  612. </view>
  613. </view>
  614. </view>
  615. <!-- 咨询部分 -->
  616. <view class="title unfit-title uni-row">
  617. <text>咨询</text>
  618. </view>
  619. <view class="consultation-container uni-column">
  620. <view class="consultation-item-container"
  621. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].dayworkItemConsults"
  622. :key="index">
  623. <view class="question uni-column">
  624. <view class="label uni-row">
  625. <text>问题描述</text>
  626. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  627. {{ selectText(item) }}</text>
  628. </view>
  629. <view class="content">{{ item.content }}</view>
  630. </view>
  631. </view>
  632. </view>
  633. <!-- 报工部分 -->
  634. <view class="daywork-container">
  635. <view class="result uni-row">
  636. <view class="label" style="margin-top: 20rpx; width: 170rpx;">出厂检状态</view>
  637. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  638. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].status"
  639. :localdata="range"></uni-data-checkbox>
  640. </view>
  641. <view class="remark uni-row">
  642. <view class="label">备注</view>
  643. <textarea v-if="editable()"
  644. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].remark" />
  645. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'factoryInspection')].remark }}</view>
  646. </view>
  647. </view>
  648. </view>
  649. <!-- 首件检 -->
  650. <view v-if="isActived.label == '首件检' " style="margin-bottom: 130rpx;margin-top: 16rpx;">
  651. <view class="carrier-info uni-column">
  652. <view class="carrier-code uni-row">
  653. <text>箱号</text>
  654. <text
  655. style="margin-left: 24rpx;">{{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].carrierCode}}</text>
  656. <text style="margin-left: 150px;color: aquamarine">首件检</text>
  657. </view>
  658. <view class="info-row uni-row">
  659. <view class="label">图号</view>
  660. <view class="value">
  661. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].drawingNumber }}
  662. </view>
  663. </view>
  664. <view class="info-row uni-row">
  665. <view class="label">批次号</view>
  666. <view class="value">
  667. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].lotCode }}
  668. </view>
  669. </view>
  670. <view class="info-row uni-row">
  671. <view class="label">工艺版本</view>
  672. <view class="value">
  673. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].technologyVersion }}
  674. </view>
  675. </view>
  676. <view class="info-row uni-row">
  677. <view class="label">产品描述</view>
  678. <view class="value">
  679. {{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')]. productDescription }}
  680. </view>
  681. </view>
  682. <view class="info-row uni-row">
  683. <view class="label">当前工序</view>
  684. <view class="value">
  685. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].processAlias }}
  686. </view>
  687. </view>
  688. <view class="info-row uni-row">
  689. <view class="label">操作者</view>
  690. <view class="value">
  691. {{inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].nickName }}
  692. </view>
  693. </view>
  694. <view class="info-row uni-row">
  695. <view class="label">设备</view>
  696. <view class="value">
  697. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].equipmentDetailCode }}
  698. </view>
  699. </view>
  700. <view class="info-row uni-row">
  701. <view class="label">检查载具</view>
  702. <view class="value">
  703. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].inspectionCarrierCode }}
  704. {{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  705. </view>
  706. </view>
  707. <view class="info-row uni-row">
  708. <view class="drawing-btn"
  709. @click="handleDrawingMenu(inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')])">
  710. 图纸信息</view>
  711. </view>
  712. </view>
  713. <!-- 废品信息 -->
  714. <view class="title unfit-title uni-row">
  715. <text>检查信息</text>
  716. </view>
  717. <view class="unfit-container">
  718. <view class="unfit-item-container uni-column"
  719. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].processInspectionDetails"
  720. :key="index">
  721. <view class="resu uni-row">
  722. <view class="label">检查标准</view>
  723. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  724. </view>
  725. <view class="resu uni-row">
  726. <view class="label">检查结果</view>
  727. <input v-if="editable()" v-model="item.checkResult" maxlength="50" />
  728. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  729. </view>
  730. <view class="resu uni-row">
  731. <view class="label">超差范围</view>
  732. <input v-if="editable()" v-model="item.exceedLimits" maxlength="50" />
  733. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  734. </view>
  735. <view class="resu uni-row">
  736. <view :class="!editable() ? 'label' : ''">检查量</view>
  737. <input v-if="editable()" class="number" type="number"
  738. v-model="item.examiningNum" />
  739. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  740. <view :class="!editable() ? 'label' : ''">不良品量</view>
  741. <input v-if="editable()" class="number" type="number"
  742. v-model="item.disqualificationNum" />
  743. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  744. </view>
  745. </view>
  746. </view>
  747. <!-- 咨询部分 -->
  748. <view class="title unfit-title uni-row">
  749. <text>咨询</text>
  750. </view>
  751. <view class="consultation-container uni-column">
  752. <view class="consultation-item-container"
  753. v-for="(item, index) in inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].dayworkItemConsults"
  754. :key="index">
  755. <view class="question uni-column">
  756. <view class="label uni-row">
  757. <text>问题描述</text>
  758. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  759. {{ selectText(item) }}</text>
  760. </view>
  761. <view class="content">{{ item.content }}</view>
  762. </view>
  763. </view>
  764. </view>
  765. <!-- 报工部分 -->
  766. <view class="daywork-container">
  767. <view class="result uni-row">
  768. <view class="label" style="margin-top: 20rpx; width: 170rpx;">首件检状态</view>
  769. <uni-data-checkbox disabled="true" style="margin-top: 20rpx;"
  770. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].status"
  771. :localdata="range"></uni-data-checkbox>
  772. </view>
  773. <view class="remark uni-row">
  774. <view class="label">备注</view>
  775. <textarea v-if="editable()"
  776. v-model="inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].remark" />
  777. <view v-else class="value">{{ inspectionList[inspectionList.findIndex(item =>item.type === 'firstArticleInspection')].remark }}</view>
  778. </view>
  779. </view>
  780. </view>
  781. <view class="bottom uni-row">
  782. <button class="start-batch-btn" style="margin-right: 10rpx;" type="primary"
  783. @click="handleConfirm">确定领取</button>
  784. </view>
  785. </view>
  786. </template>
  787. <script setup>
  788. import {
  789. ref,
  790. onMounted,
  791. getCurrentInstance
  792. } from 'vue'
  793. import {
  794. onLoad,
  795. onReady,
  796. onUnload,
  797. onShow
  798. } from '@dcloudio/uni-app'
  799. import {
  800. store
  801. } from '@/store/index.js'
  802. import {
  803. unbindInspectionCarrier,
  804. getInspectionInfoByInspectionCarrierCode
  805. } from '@/api/business/processInspection.js'
  806. const lot = ref({})
  807. const isEventTriggered = ref(false); // 创建一个标志位
  808. const unfitInfos = ref([]) //废品信息
  809. const consultations = ref([]) //咨询信息
  810. // 创建一个引用来存储最后一次请求的时间戳
  811. const lastRequestTimestamp = ref(0);
  812. const processInspecion = ref({
  813. remark: "",
  814. rejectNum: 0,
  815. examiningNum: 0,
  816. status: 0,
  817. })
  818. const inspectionList = ref([])
  819. const processInspectionTypeList = ref([])
  820. const isActived = ref(null)
  821. const initStatus = ref(0)
  822. const carrierCode = ref(null)
  823. const editable = () => {
  824. return false
  825. }
  826. const consul = [{
  827. value: 0,
  828. text: "待确认",
  829. type: "color: #fcab53"
  830. }, {
  831. value: 2,
  832. text: "合格",
  833. type: "color: #55ff7f"
  834. }, {
  835. value: 1,
  836. text: "不合格",
  837. type: "color: #ff0c2c"
  838. }]
  839. const range = [{
  840. value: 0,
  841. text: "待确认",
  842. type: "color: #fcab53"
  843. }, {
  844. value: 1,
  845. text: "合格",
  846. type: "color: #55ff7f"
  847. }, {
  848. value: 2,
  849. text: "不合格",
  850. type: "color: #ff0c2c"
  851. }]
  852. /***************************** 页面生命周期函数 *****************************/
  853. function init() {
  854. const instance = getCurrentInstance().proxy
  855. const eventChannel = instance.getOpenerEventChannel();
  856. eventChannel.on('inspecionCarrierCode', function(data) {
  857. if (data && data.carrierCode) {
  858. carrierCode.value = data.carrierCode;
  859. getInspectionInfoByInspectionCarrierCode({
  860. carrierCode: carrierCode.value
  861. }).then(res => {
  862. processInspectionTypeList.value = res.data.map(v => {
  863. if (v.type === "deliveryInspection") {
  864. return {
  865. id: v.id,
  866. text: v.type,
  867. label: '交检'
  868. };
  869. } else if (v.type === "firstArticleInspection") {
  870. return {
  871. id: v.id,
  872. text: v.type,
  873. label: '首件检'
  874. };
  875. } else if (v.type === "patrolInspection") {
  876. return {
  877. id: v.id,
  878. text: v.type,
  879. label: '巡检'
  880. };
  881. } else if (v.type === "outsourcedInspector") {
  882. return {
  883. id: v.id,
  884. text: v.type,
  885. label: '外协检查'
  886. };
  887. } else if (v.type === "factoryInspection") {
  888. return {
  889. id: v.id,
  890. text: v.type,
  891. label: '出厂检'
  892. };
  893. } else {
  894. return {
  895. id: v.id,
  896. text: v.type,
  897. label: '仪器室'
  898. };
  899. }
  900. });
  901. inspectionList.value = res.data
  902. isActived.value = processInspectionTypeList.value[0]
  903. console.log(processInspectionTypeList.value)
  904. })
  905. }
  906. })
  907. }
  908. onShow(() => {
  909. init()
  910. })
  911. /***************************** 定义了一些方法 *****************************/
  912. //咨询文本
  913. function selectText(item) {
  914. for (var i = 0; i < consul.length; i++) {
  915. if (item.status == consul[i].value) {
  916. return consul[i].text
  917. }
  918. }
  919. }
  920. //确定领取
  921. function handleConfirm() {
  922. unbindInspectionCarrier({carrierCode:carrierCode.value}).then(res => {
  923. if(res.code == 200) {
  924. let pages = getCurrentPages();
  925. let index = 0
  926. for (let i = 0; i < pages.length; i++) {
  927. if (pages[i].$page.fullPath == "/pages/dashboard/index") {
  928. index = pages.length - i - 1;
  929. }
  930. }
  931. console.log("index", index);
  932. uni.navigateBack({
  933. delta: index
  934. });
  935. }else{
  936. uni.showToast({
  937. icon: 'none',
  938. title: res.msg,
  939. duration: 2000
  940. })
  941. }
  942. })
  943. }
  944. //图纸
  945. function handleDrawingMenu(data) {
  946. // 对 technologicalProcessDetailId 进行URL编码
  947. var encodedId = encodeURIComponent(data.productId);
  948. var enTechnologicalProcessId = encodeURIComponent(data.technologicalProcessId);
  949. var enprocessCode = encodeURIComponent(data.processCode);
  950. var encodeCode = encodeURIComponent(data.lotCode);
  951. var enProcessAlias = encodeURIComponent(data.processAlias);
  952. // 构建查询参数字符串
  953. var queryParam =
  954. `param1=${encodedId}&param2=${encodeCode}&param3=${enprocessCode}&param4=${enTechnologicalProcessId}&param5=${enProcessAlias}`;
  955. // 使用模板字符串构建完整的URL
  956. var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
  957. // 导航到指定页面
  958. uni.navigateTo({
  959. url: navigateUrl
  960. });
  961. }
  962. function selectedStatus(item) {
  963. isActived.value = item
  964. }
  965. //咨询样式
  966. function selectType(item) {
  967. for (var i = 0; i < consul.length; i++) {
  968. if (item.status == consul[i].value) {
  969. return consul[i].type
  970. }
  971. }
  972. }
  973. </script>
  974. <style lang="scss">
  975. .page-container {
  976. // height: 100%;
  977. background-color: #ececec;
  978. font-size: 28rpx;
  979. >.title {
  980. font-weight: 700;
  981. margin: 24rpx 16rpx;
  982. }
  983. }
  984. // .tab-container {
  985. // display: flex;
  986. // flex-direction: row;
  987. // height: 32px;
  988. // background-color: #ffffff;
  989. // margin-bottom: 16rpx;
  990. // .tab-item {
  991. // display: flex;
  992. // flex-direction: row;
  993. // flex: 1;
  994. // font-size: 14px;
  995. // color: #666;
  996. // align-items: center;
  997. // justify-content: center;
  998. // }
  999. // }
  1000. .tab-container {
  1001. position: fixed; /* 固定定位 */
  1002. top: 0; /* 距离顶部0,即页面顶部 */
  1003. left: 0; /* 距离左侧0,即页面左侧 */
  1004. right: 0; /* 宽度充满整个页面宽度 */
  1005. display: flex;
  1006. flex-direction: row;
  1007. height: 32px;
  1008. background-color: #ffffff;
  1009. z-index: 999; /* 确保.tab-container在页面最上层 */
  1010. padding: 8rpx 0; /* 根据需要添加一些内边距 */
  1011. box-sizing: border-box; /* 边框计算在宽度内 */
  1012. }
  1013. .tab-item {
  1014. display: flex;
  1015. flex-direction: row;
  1016. flex: 1;
  1017. font-size: 14px;
  1018. color: #666;
  1019. align-items: center;
  1020. justify-content: center;
  1021. }
  1022. .carrier-info {
  1023. margin: 32rpx 16rpx 0 16rpx;
  1024. padding: 24rpx;
  1025. background-color: #ffffff;
  1026. border-radius: 8rpx;
  1027. .carrier-code {
  1028. font-size: 32rpx;
  1029. font-weight: 700;
  1030. }
  1031. .info-row {
  1032. margin-top: 16rpx;
  1033. color: #767676;
  1034. .label {
  1035. width: 160rpx;
  1036. }
  1037. .drawing-btn {
  1038. padding: 12rpx 32rpx;
  1039. background-color: #0055ff;
  1040. color: #ffffff;
  1041. border-radius: 12rpx;
  1042. margin-left: auto;
  1043. font-size: 28rpx;
  1044. }
  1045. .value {
  1046. flex: 1;
  1047. textarea {
  1048. flex: 1;
  1049. border: 1px solid #888888;
  1050. box-sizing: border-box;
  1051. padding: 16rpx;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. .unfit-title {
  1057. margin-bottom: 24rpx;
  1058. justify-content: space-between;
  1059. align-items: center;
  1060. text {
  1061. font-size: 28rpx;
  1062. font-weight: 700;
  1063. }
  1064. .add-btn {
  1065. padding: 12rpx 32rpx;
  1066. background-color: #a4adb3;
  1067. color: #ffffff;
  1068. border-radius: 12rpx;
  1069. font-size: 24rpx;
  1070. }
  1071. }
  1072. .unfit-container {
  1073. padding: 24rpx;
  1074. margin: 0 16rpx;
  1075. background-color: #ffffff;
  1076. border-radius: 12rpx;
  1077. .unfit-item-container {
  1078. position: relative;
  1079. >* {
  1080. margin-bottom: 24rpx;
  1081. }
  1082. .title {
  1083. font-weight: 700;
  1084. justify-content: space-between;
  1085. align-items: center;
  1086. image {
  1087. width: 40rpx;
  1088. height: 40rpx;
  1089. }
  1090. }
  1091. .standard {}
  1092. .resu {
  1093. width: 100%;
  1094. align-items: center;
  1095. input {
  1096. margin-left: 20rpx;
  1097. width: 200rpx;
  1098. height: 56rpx;
  1099. flex: 1;
  1100. border: 1px solid #9f9f9f;
  1101. font-size: 28rpx;
  1102. }
  1103. }
  1104. .result {
  1105. align-items: center;
  1106. border-bottom: 1px solid #9f9f9f;
  1107. padding-bottom: 32rpx;
  1108. .label {
  1109. flex: 1;
  1110. }
  1111. input {
  1112. width: 280rpx;
  1113. height: 56rpx;
  1114. border: 1px solid #9f9f9f;
  1115. font-size: 28rpx;
  1116. &.number {
  1117. width: 104rpx;
  1118. text-align: center;
  1119. }
  1120. }
  1121. }
  1122. }
  1123. .unfit-item-container:last-child {
  1124. .result {
  1125. border-bottom: none;
  1126. padding-bottom: 0;
  1127. }
  1128. }
  1129. }
  1130. .consultation-container {
  1131. margin: 0 16rpx;
  1132. padding: 24rpx;
  1133. background-color: #ffffff;
  1134. border-radius: 8rpx;
  1135. .consultation-item-container {
  1136. margin-bottom: 24rpx;
  1137. border-bottom: 2px solid #888888;
  1138. padding-bottom: 24rpx;
  1139. }
  1140. .consultation-item-container:last-child {
  1141. margin-bottom: 0;
  1142. border-bottom: 0;
  1143. padding-bottom: 0;
  1144. }
  1145. .question,
  1146. .answer {
  1147. .label {
  1148. justify-content: space-between;
  1149. margin-bottom: 16rpx;
  1150. font-weight: 700;
  1151. }
  1152. .content {
  1153. line-height: 40rpx;
  1154. }
  1155. }
  1156. .answer {
  1157. margin-top: 24rpx;
  1158. }
  1159. }
  1160. .daywork-container {
  1161. margin-top: 24rpx;
  1162. padding: 24rpx;
  1163. background-color: #ffffff;
  1164. border: 1px solid #bcbcbc;
  1165. .result {
  1166. align-items: center;
  1167. .label {
  1168. width: 112rpx;
  1169. }
  1170. input {
  1171. flex: 1;
  1172. height: 56rpx;
  1173. border: 1px solid #9f9f9f;
  1174. font-size: 28rpx;
  1175. text-align: center;
  1176. }
  1177. }
  1178. .remark {
  1179. margin-top: 24rpx;
  1180. .label {
  1181. width: 112rpx;
  1182. }
  1183. textarea {
  1184. flex: 1;
  1185. border: 1px solid #9f9f9f;
  1186. height: 168rpx;
  1187. }
  1188. }
  1189. .btns-container {
  1190. margin-top: 24rpx;
  1191. .finished-btn {
  1192. display: flex;
  1193. flex: 1;
  1194. height: 80rpx;
  1195. background-color: #fc6565;
  1196. color: #ffffff;
  1197. text-align: center;
  1198. justify-content: center;
  1199. align-items: center;
  1200. border-radius: 8rpx;
  1201. }
  1202. .question-btn {
  1203. width: 80rpx;
  1204. align-items: flex-end;
  1205. image {
  1206. width: 48rpx;
  1207. height: 48rpx;
  1208. }
  1209. text {
  1210. font-size: 24rpx;
  1211. }
  1212. }
  1213. }
  1214. }
  1215. .active {
  1216. color: rgba(25, 137, 250, 1);
  1217. border-bottom: solid 1rpx #0055ff;
  1218. font-weight: 700;
  1219. }
  1220. .bottom {
  1221. height: 10%;
  1222. position: fixed;
  1223. right: 0;
  1224. bottom: 0;
  1225. left: 0;
  1226. height: 100rpx;
  1227. border-top: 1px solid #999999;
  1228. padding: 16rpx 32rpx;
  1229. align-items: center;
  1230. background-color: #fff;
  1231. justify-content: space-evenly;
  1232. .start-batch-btn {
  1233. flex: 1;
  1234. height: 80rpx;
  1235. line-height: 80rpx;
  1236. border-radius: 8rpx;
  1237. color: #FFFFFF;
  1238. font-size: 28rpx;
  1239. }
  1240. .view-end-btn {
  1241. flex: 1;
  1242. height: 80rpx;
  1243. line-height: 80rpx;
  1244. border-radius: 8rpx;
  1245. color: #FFFFFF;
  1246. font-size: 28rpx;
  1247. }
  1248. }
  1249. </style>