form.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. <template>
  2. <view class="page-container uni-column">
  3. <view class="carrier-info uni-column">
  4. <view class="carrier-code uni-row">
  5. <text>箱号</text>
  6. <text style="margin-left: 24rpx;">{{processInspecion.lot.allCarrierName}}</text>
  7. </view>
  8. <view class="info-row uni-row">
  9. <view class="label">图号</view>
  10. <view class="value">{{ processInspecion.lot.drawingNumber }}</view>
  11. </view>
  12. <view class="info-row uni-row">
  13. <view class="label">批次号</view>
  14. <view class="value">{{ processInspecion.lot.lotCode }}</view>
  15. </view>
  16. <view class="info-row uni-row">
  17. <view class="label">工艺版本</view>
  18. <view class="value">{{ processInspecion.lot.technologyVersion }}</view>
  19. </view>
  20. <view class="info-row uni-row">
  21. <view class="label">产品描述</view>
  22. <view class="value">{{processInspecion.lot. productDescription }}</view>
  23. </view>
  24. <view class="info-row uni-row">
  25. <view class="label">当前工序</view>
  26. <view class="value">{{ processInspecion.lot.processAlias }}</view>
  27. </view>
  28. <view v-if="processInspecion.lot.nickName != ''" class="info-row uni-row">
  29. <view class="label">操作者</view>
  30. <view class="value">{{ processInspecion.lot.nickName }}</view>
  31. </view>
  32. <view v-if="processInspecion.lot.equipmentDetailCode != ''" class="info-row uni-row">
  33. <view class="label">设备</view>
  34. <view class="value">{{ processInspecion.lot.equipmentDetailCode }}</view>
  35. </view>
  36. <view class="info-row uni-row">
  37. <view class="label">检查载具</view>
  38. <view class="value">{{ processInspecion.lot.inspectionCarrierCode }}
  39. {{ processInspecion.isInspectionCarrierChanged == 1 ? '(已解绑)' : ''}}
  40. </view>
  41. </view>
  42. <view class="info-row uni-row">
  43. <view class="drawing-btn" @click="handleDrawingMenu">图纸信息</view>
  44. </view>
  45. </view>
  46. <!-- 废品信息 -->
  47. <view class="title unfit-title uni-row">
  48. <text>检查信息</text>
  49. <view v-if="editable()" class="add-btn" @click="handleAddWaste">添加</view>
  50. </view>
  51. <view class="unfit-container">
  52. <view class="unfit-item-container uni-column" v-for="(item, index) in unfitInfos" :key="index">
  53. <view class="resu uni-row">
  54. <view class="label">检查标准</view>
  55. <view class="value" style="margin-left:16rpx;width: 400rpx;">{{ item.checkStandard }}</view>
  56. <uni-icons v-if="editable()" type="trash" size="24" style="margin-left: 55rpx;" color="#fc6565"
  57. @click="handleDelWaste(index)" />
  58. </view>
  59. <view class="resu uni-row">
  60. <view class="label">检查结果</view>
  61. <input v-if="editable()" v-model="item.checkResult" placeholder="请输入检查结果" maxlength="50" />
  62. <view v-else class="value" style="margin-left:16rpx;">{{ item.checkResult }}</view>
  63. </view>
  64. <view class="resu uni-row">
  65. <view class="label">超差范围</view>
  66. <input v-if="editable()" v-model="item.exceedLimits" placeholder="请输入超差范围" maxlength="50" />
  67. <view v-else class="value" style="margin-left:16rpx;">{{ item.exceedLimits }}</view>
  68. </view>
  69. <view class="resu uni-row">
  70. <view :class="!editable() ? 'label' : ''">检查量</view>
  71. <input v-if="editable()" class="number" type="number" @blur="rejectNumberChange"
  72. v-model="item.examiningNum" placeholder="" />
  73. <view v-else class="number value" style="margin-left:16rpx;">{{ item.examiningNum }}</view>
  74. <view :class="!editable() ? 'label' : ''" style="margin-left: 16rpx;">不良品量</view>
  75. <input v-if="editable()" class="number" type="number" @blur="rejectNumberChange"
  76. v-model="item.disqualificationNum" placeholder="" />
  77. <view v-else class="value" style="margin-left:16rpx;">{{ item.disqualificationNum }}</view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 拍照上传部分 -->
  82. <view class="title unfit-title uni-row">
  83. <text>拍照上传</text>
  84. </view>
  85. <view class=" uni-row" style="padding: 24rpx;
  86. margin: 0 16rpx;
  87. background-color: #ffffff;
  88. border-radius: 12rpx;">
  89. <uni-file-picker v-model="photoList" :readonly="!editable()" return-type="array" :image-styles="imageStyles"
  90. @select="select" file-mediatype="image" class="my-files" @delete="handleDeletedPhoto"></uni-file-picker>
  91. </view>
  92. <!-- 咨询部分 -->
  93. <view class="title unfit-title uni-row">
  94. <text>咨询</text>
  95. </view>
  96. <view class="consultation-container uni-column">
  97. <view class="consultation-item-container" v-for="(item, index) in consultations" :key="index">
  98. <view class="question uni-column">
  99. <view class="label uni-row">
  100. <text>问题描述</text>
  101. <text :style="selectType(item)">{{item.consultDepartment == 0?'技术':'品管'}}
  102. {{ selectText(item) }}</text>
  103. </view>
  104. <view class="content">{{ item.content }}</view>
  105. </view>
  106. </view>
  107. </view>
  108. <!-- 报工部分 -->
  109. <view class="daywork-container">
  110. <view class="result uni-row">
  111. <view class="label" style="margin-top: 20rpx;width: 170rpx;">仪器室检状态</view>
  112. <uni-data-checkbox :disabled="!editable()" style="margin-top: 20rpx;" v-model="processInspecion.status"
  113. :localdata="range"></uni-data-checkbox>
  114. </view>
  115. <view class="remark uni-row">
  116. <view class="label">备注</view>
  117. <textarea v-if="editable()" v-model="processInspecion.remark" />
  118. <view v-else class="value">{{ processInspecion.remark }}</view>
  119. </view>
  120. <view v-if="editable()" class="btns-container uni-row">
  121. <view class="finished-btn" @click="endWork">提交</view>
  122. <view class="finished-btn" style="margin-left: 12rpx;background-color: #0055ff;"
  123. @click="handleToOtherChamber">移交其他仪器室</view>
  124. <view class="question-btn uni-column" @click.stop="handleAddConsultation">
  125. <uni-icons type="headphones" size="24" />
  126. <text>咨询</text>
  127. </view>
  128. </view>
  129. </view>
  130. <dialog-selectInspectionChamber ref='selectInspectionChamber'
  131. @handleSelectInspectionChamber='handleSelectInspectionChamber'></dialog-selectInspectionChamber>
  132. </view>
  133. </template>
  134. <script setup>
  135. import {
  136. ref,
  137. onMounted,
  138. getCurrentInstance
  139. } from 'vue'
  140. import {
  141. onLoad,
  142. onReady,
  143. onUnload,
  144. onShow
  145. } from '@dcloudio/uni-app'
  146. import {
  147. store
  148. } from '@/store/index.js'
  149. import {
  150. saveInstrumentRoomInspection,
  151. selectInspecion,
  152. updateChamberId
  153. } from '@/api/business/processInspection.js'
  154. import {
  155. getInspectionStandardsList
  156. } from '@/api/business/inspectionStandards.js'
  157. import {
  158. getURL
  159. } from '@/api/sys/user.js'
  160. const lot = ref({})
  161. const isEventTriggered = ref(false); // 创建一个标志位
  162. const unfitInfos = ref([]) //废品信息
  163. const consultations = ref([]) //咨询信息
  164. const flag = ref(false)
  165. const selectInspectionChamber = ref(null)
  166. // 创建一个引用来存储最后一次请求的时间戳
  167. const lastRequestTimestamp = ref(0);
  168. const processInspecion = ref({
  169. remark: "",
  170. rejectNum: 0,
  171. examiningNum: 0,
  172. status: 0,
  173. })
  174. const initStatus = ref(0)
  175. const urlList = JSON.parse(uni.getStorageSync('baseUrl'))
  176. const webHost = ref(urlList.baseUrl)
  177. const photoList = ref([])
  178. const selected = ref([]);
  179. const selectedPhotos = ref([])
  180. const imageStyles = {
  181. width: 60,
  182. height: 60
  183. }
  184. const editable = () => {
  185. // if (store.userInfo.permissions.some(item => item === 'business:outsourcedInspection:edit')) {
  186. // return true
  187. // }
  188. if (initStatus.value == 0) {
  189. return true
  190. }
  191. if (processInspecion.value.firstUpdaterId == store.userInfo.userId) {
  192. return true
  193. }
  194. return false
  195. }
  196. const consul = [{
  197. value: 0,
  198. text: "待确认",
  199. type: "color: #fcab53"
  200. }, {
  201. value: 2,
  202. text: "合格",
  203. type: "color: #55ff7f"
  204. }, {
  205. value: 1,
  206. text: "不合格",
  207. type: "color: #ff0c2c"
  208. }]
  209. const range = [{
  210. value: 0,
  211. text: "待确认",
  212. type: "color: #fcab53"
  213. }, {
  214. value: 1,
  215. text: "合格",
  216. type: "color: #55ff7f"
  217. }, {
  218. value: 2,
  219. text: "不合格",
  220. type: "color: #ff0c2c"
  221. }]
  222. /***************************** 页面生命周期函数 *****************************/
  223. onShow(() => {
  224. uni.$off('addWasteInfoEvent');
  225. })
  226. onLoad(() => {
  227. uni.$off('addWasteInfoEvent');
  228. console.log(store.processInspection)
  229. console.log(flag.value)
  230. if (!flag.value) {
  231. if (store.processInspection != null) {
  232. uni.showLoading({
  233. title: '加载中'
  234. });
  235. processInspecion.value = store.processInspection
  236. selectInspecion(processInspecion.value).then(res => {
  237. if (res.code == 200) {
  238. processInspecion.value = res.data;
  239. processInspecion.value.flag = false
  240. unfitInfos.value = res.data.processInspectionDetails;
  241. initStatus.value = res.data.status
  242. selectedPhotos.value = res.data.processInspectionPictureList
  243. photoList.value = res.data.processInspectionPictureList.map(item => {
  244. return {
  245. ...item,
  246. url: webHost.value + item.url
  247. };
  248. });
  249. consultations.value = res.data.dayworkItemConsults;
  250. console.log("res", res);
  251. console.log(processInspecion.value)
  252. uni.hideLoading();
  253. // getInspecion();
  254. } else {
  255. uni.showToast({
  256. icon: 'none',
  257. title: res.msg,
  258. duration: 2000
  259. })
  260. }
  261. });
  262. }
  263. }
  264. })
  265. function getOringicalList() {
  266. console.log(processInspecion.value)
  267. //查询该产品,当前工序,当前检查绑定的检查
  268. getInspectionStandardsList({
  269. productId: processInspecion.value.lot.productId,
  270. processId: processInspecion.value.lot.processId,
  271. inspectionCode: "instrumentRoomInspection"
  272. }).then(res => {
  273. unfitInfos.value = res.rows.map(item => {
  274. // 映射新的数组,包含 inspectionStandardsId 和 checkStandard 属性
  275. return {
  276. inspectionStandardsId: item.id, // 从 item 中获取 id
  277. checkStandard: item.standard // 从 item 中获取 standard
  278. };
  279. });
  280. })
  281. }
  282. /***************************** 定义了一些方法 *****************************/
  283. //咨询文本
  284. function selectText(item) {
  285. for (var i = 0; i < consul.length; i++) {
  286. if (item.status == consul[i].value) {
  287. return consul[i].text
  288. }
  289. }
  290. }
  291. function upLoadImageHandler(arg) {
  292. getURL(arg).then(res => {
  293. let data = JSON.parse(res)
  294. selectedPhotos.value.push({
  295. url: data.fileName,
  296. pictureName: data.originalFilename,
  297. tenantId: store.tenantId
  298. })
  299. console.log(selectedPhotos.value)
  300. })
  301. }
  302. function select(e) {
  303. console.log(e)
  304. const {
  305. tempFilePaths,
  306. tempFiles
  307. } = e
  308. tempFiles.forEach((item, index) => {
  309. upLoadImageHandler({
  310. filePath: tempFilePaths[index],
  311. name: item.name
  312. })
  313. })
  314. }
  315. function handleDeletedPhoto(e) {
  316. let fileName = selectedPhotos.value.map(info => info.pictureName)
  317. const firstSlashIndex = e.tempFile.url.lastIndexOf('/');
  318. const lastSlashIndex = e.tempFile.url.lastIndexOf('_');
  319. const type = e.tempFile.url.substring(firstSlashIndex + 1, lastSlashIndex)
  320. const pictureName = e.tempFile.url.substring(firstSlashIndex + 1, lastSlashIndex) + e.tempFile.url.substring(e
  321. .tempFile.url.lastIndexOf('.') - 1 + 1);;
  322. let index = -1; // 初始化 index 为 -1,表示未找到
  323. // 首先检查 e.tempFile.name 是否存在
  324. if (fileName.findIndex(name => name === e.tempFile.name) !== -1) {
  325. index = fileName.findIndex(name => name === e.tempFile.name);
  326. }
  327. // 如果 e.tempFile.name 不存在,检查 e.tempFile.pictureName 是否存在
  328. else if (fileName.findIndex(name => name === e.tempFile.pictureName) !== -1) {
  329. index = fileName.findIndex(name => name === e.tempFile.pictureName);
  330. }
  331. // 如果以上两个都不存在,检查 pictureName 是否存在
  332. else if (fileName.findIndex(name => name === pictureName) !== -1) {
  333. index = fileName.findIndex(name => name === pictureName);
  334. }
  335. selectedPhotos.value.splice(index, 1)
  336. }
  337. function handleDrawingMenu() {
  338. // 对 technologicalProcessDetailId 进行URL编码
  339. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  340. var enTechnologicalProcessId = encodeURIComponent(processInspecion.value.lot.technologicalProcessId);
  341. var enprocessCode = encodeURIComponent(processInspecion.value.lot.processCode);
  342. var encodeCode = encodeURIComponent(processInspecion.value.lot.lotCode);
  343. var enProcessAlias = encodeURIComponent(processInspecion.value.lot.processAlias);
  344. var enIsWasteRecycling = encodeURIComponent(processInspecion.value.lot.isWasteRecycling);
  345. var enIsAmend = encodeURIComponent(processInspecion.value.lot.isAmend);
  346. // 构建查询参数字符串
  347. var queryParam =
  348. `param1=${encodedId}&param2=${encodeCode}&param3=${enprocessCode}&param4=${enTechnologicalProcessId}&param5=${enProcessAlias}&param6=${enIsWasteRecycling}&param7=${enIsAmend}`;
  349. // 使用模板字符串构建完整的URL
  350. var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
  351. // 导航到指定页面
  352. uni.navigateTo({
  353. url: navigateUrl
  354. });
  355. }
  356. const rejectNumberChange = () => {
  357. let sumDisqualificationNum = 0
  358. let sumExaminingNum = 0
  359. unfitInfos.value.forEach(v => {
  360. sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
  361. sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
  362. })
  363. processInspecion.value.disqualificationNum = sumDisqualificationNum
  364. processInspecion.value.examiningNum = sumExaminingNum
  365. console.log(processInspecion.value)
  366. }
  367. //查询咨询列表
  368. function getInspecion() {
  369. processInspecion.value = store.processInspection
  370. selectInspecion(processInspecion.value).then(res => {
  371. console.log("咨询", res);
  372. if (res.code == 200) {
  373. console.log("res", res);
  374. } else {
  375. uni.showToast({
  376. icon: 'none',
  377. title: res.msg,
  378. duration: 2000
  379. })
  380. }
  381. });
  382. }
  383. //结束报工按钮
  384. function endWork() {
  385. let unf = unfitInfos.value;
  386. for (var i = 0; i < unfitInfos.value.length; i++) {
  387. if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
  388. uni.showToast({
  389. icon: 'none',
  390. title: '检查量,不良品量不能小于0',
  391. duration: 2000
  392. })
  393. return
  394. }
  395. if (unf[i].examiningNum > processInspecion.value.lot.pudName) {
  396. uni.showToast({
  397. icon: 'none',
  398. title: '检查量不能大于投产量'
  399. })
  400. return
  401. }
  402. }
  403. if (processInspecion.value.disqualificationNum > processInspecion.value.lot.pudName) {
  404. uni.showToast({
  405. icon: 'none',
  406. title: '不良品量不能大于投产量'
  407. })
  408. return
  409. }
  410. save();
  411. }
  412. function save() {
  413. const currentTime = Date.now();
  414. // 检查是否已经过去了 2 秒
  415. if (currentTime - lastRequestTimestamp.value < 2000) {
  416. // 如果在 2 秒 内已经点击,那么不执行
  417. uni.showToast({
  418. icon: 'none',
  419. title: `请勿重复点击`,
  420. duration: 2000
  421. })
  422. return;
  423. }
  424. let pages = getCurrentPages();
  425. processInspecion.value.dayworkItemConsults = consultations.value;
  426. processInspecion.value.processInspectionDetails = unfitInfos.value;
  427. processInspecion.value.user = store.userInfo;
  428. processInspecion.value.tenantId = store.tenantId
  429. processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
  430. processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
  431. processInspecion.value.processInspectionPictureList = selectedPhotos.value
  432. console.log(processInspecion.value)
  433. saveInstrumentRoomInspection(processInspecion.value).then(res => {
  434. if (res.code == 200) {
  435. let index = 0;
  436. for (let i = 0; i < pages.length; i++) {
  437. if (pages[i].$page.fullPath == "/pages/instrumentRoomInspection/index") {
  438. index = pages.length - i - 1;
  439. }
  440. }
  441. console.log("index", index);
  442. uni.navigateBack({
  443. delta: index
  444. });
  445. } else {
  446. uni.showToast({
  447. icon: 'none',
  448. title: res.msg,
  449. duration: 2000
  450. })
  451. }
  452. });
  453. }
  454. //咨询样式
  455. function selectType(item) {
  456. for (var i = 0; i < consul.length; i++) {
  457. if (item.status == consul[i].value) {
  458. return consul[i].type
  459. }
  460. }
  461. }
  462. const addWasteInfo = (data) => {
  463. console.log(data, "55555555")
  464. flag.value = true
  465. var info = {
  466. inspectionStandardsId: data.id,
  467. checkStandard: data.standard
  468. }
  469. unfitInfos.value.push(info)
  470. console.log(data)
  471. }
  472. const addConsultation = (data) => {
  473. let info = data
  474. info.forEach(item => {
  475. item.status = 0
  476. })
  477. consultations.value = consultations.value.concat(info)
  478. isEventTriggered.value = true; // 更新标志位状态
  479. }
  480. /***************************** 定义了一些事件 *****************************/
  481. // 添加不合格信息
  482. const handleAddWaste = () => {
  483. flag.value = true
  484. // 监听事件,暂时不用,后续会使用
  485. uni.$on('addWasteInfoEvent', (data) => {
  486. addWasteInfo(data)
  487. })
  488. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  489. var enprocessId = encodeURIComponent(processInspecion.value.lot.processId);
  490. // 构建查询参数字符串
  491. var queryParam = `param1=${encodedId}&param2=${enprocessId}`;
  492. // 使用模板字符串构建完整的URL
  493. var navigateUrl = `/pages/instrumentRoomInspection/options?${queryParam}`;
  494. // 导航到指定页面
  495. uni.navigateTo({
  496. url: navigateUrl
  497. });
  498. }
  499. //移交其他仪器室
  500. function handleToOtherChamber() {
  501. //打开选择仪器室的弹窗
  502. selectInspectionChamber.value.open()
  503. }
  504. //选择带回
  505. function handleSelectInspectionChamber(data) {
  506. processInspecion.value.inspectionChamberId = data
  507. //修改仪器室
  508. updateChamberId(processInspecion.value).then(res => {
  509. if (res.code == 200) {
  510. store.processInspection = null
  511. uni.showToast({
  512. icon: 'none',
  513. title: "修改成功",
  514. duration: 2000
  515. })
  516. let index = 0;
  517. let pages = getCurrentPages();
  518. for (let i = 0; i < pages.length; i++) {
  519. if (pages[i].$page.fullPath == "/pages/instrumentRoomInspection/index") {
  520. index = pages.length - i - 1;
  521. }
  522. }
  523. console.log(index)
  524. uni.navigateBack({
  525. delta: index
  526. });
  527. }
  528. })
  529. console.log(processInspecion.value)
  530. }
  531. // 删除不合格信息
  532. const handleDelWaste = (index) => {
  533. uni.showModal({
  534. title: '提示',
  535. content: '确定删除该项?',
  536. success: function(res) {
  537. if (res.confirm) {
  538. unfitInfos.value.splice(index, 1)
  539. } else if (res.cancel) {
  540. return
  541. }
  542. }
  543. })
  544. }
  545. // 咨询
  546. const handleAddConsultation = () => {
  547. console.log("9999")
  548. isEventTriggered.value = false;
  549. // 监听事件
  550. uni.$once('addWasteConsultationEvent', (data) => {
  551. if (!isEventTriggered.value) {
  552. // 如果事件尚未触发,则执行事件触发逻辑
  553. addConsultation(data)
  554. }
  555. })
  556. uni.navigateTo({
  557. url: "/pages/instrumentRoomInspection/consultation",
  558. success: (res) => {
  559. // 通过eventChannel向被打开页面传送数据
  560. res.eventChannel.emit("instrumentRoomInspectionConsultation", {
  561. data: processInspecion.value.lot
  562. })
  563. }
  564. })
  565. }
  566. </script>
  567. <style lang="scss">
  568. .page-container {
  569. // height: 100%;
  570. background-color: #ececec;
  571. font-size: 28rpx;
  572. >.title {
  573. font-weight: 700;
  574. margin: 24rpx 16rpx;
  575. }
  576. }
  577. .carrier-info {
  578. margin: 32rpx 16rpx 0 16rpx;
  579. padding: 24rpx;
  580. background-color: #ffffff;
  581. border-radius: 8rpx;
  582. .carrier-code {
  583. font-size: 32rpx;
  584. font-weight: 700;
  585. }
  586. .info-row {
  587. margin-top: 16rpx;
  588. color: #767676;
  589. .label {
  590. width: 160rpx;
  591. }
  592. .drawing-btn {
  593. padding: 12rpx 32rpx;
  594. background-color: #0055ff;
  595. color: #ffffff;
  596. border-radius: 12rpx;
  597. margin-left: auto;
  598. font-size: 28rpx;
  599. }
  600. .value {
  601. flex: 1;
  602. textarea {
  603. flex: 1;
  604. border: 1px solid #888888;
  605. box-sizing: border-box;
  606. padding: 16rpx;
  607. }
  608. }
  609. }
  610. }
  611. .unfit-title {
  612. margin-bottom: 24rpx;
  613. justify-content: space-between;
  614. align-items: center;
  615. text {
  616. font-size: 28rpx;
  617. font-weight: 700;
  618. }
  619. .add-btn {
  620. padding: 12rpx 32rpx;
  621. background-color: #a4adb3;
  622. color: #ffffff;
  623. border-radius: 12rpx;
  624. font-size: 24rpx;
  625. }
  626. }
  627. .unfit-container {
  628. padding: 24rpx;
  629. margin: 0 16rpx;
  630. background-color: #ffffff;
  631. border-radius: 12rpx;
  632. .unfit-item-container {
  633. position: relative;
  634. >* {
  635. margin-bottom: 24rpx;
  636. }
  637. .title {
  638. font-weight: 700;
  639. justify-content: space-between;
  640. align-items: center;
  641. image {
  642. width: 40rpx;
  643. height: 40rpx;
  644. }
  645. }
  646. .standard {}
  647. .resu {
  648. width: 100%;
  649. align-items: center;
  650. input {
  651. margin-left: 20rpx;
  652. width: 200rpx;
  653. height: 56rpx;
  654. flex: 1;
  655. border: 1px solid #9f9f9f;
  656. font-size: 28rpx;
  657. }
  658. }
  659. .result {
  660. align-items: center;
  661. border-bottom: 1px solid #9f9f9f;
  662. padding-bottom: 32rpx;
  663. .label {
  664. flex: 1;
  665. }
  666. input {
  667. width: 280rpx;
  668. height: 56rpx;
  669. border: 1px solid #9f9f9f;
  670. font-size: 28rpx;
  671. &.number {
  672. width: 104rpx;
  673. text-align: center;
  674. }
  675. }
  676. }
  677. }
  678. .unfit-item-container:last-child {
  679. .result {
  680. border-bottom: none;
  681. padding-bottom: 0;
  682. }
  683. }
  684. }
  685. .consultation-container {
  686. margin: 0 16rpx;
  687. padding: 24rpx;
  688. background-color: #ffffff;
  689. border-radius: 8rpx;
  690. .consultation-item-container {
  691. margin-bottom: 24rpx;
  692. border-bottom: 2px solid #888888;
  693. padding-bottom: 24rpx;
  694. }
  695. .consultation-item-container:last-child {
  696. margin-bottom: 0;
  697. border-bottom: 0;
  698. padding-bottom: 0;
  699. }
  700. .question,
  701. .answer {
  702. .label {
  703. justify-content: space-between;
  704. margin-bottom: 16rpx;
  705. font-weight: 700;
  706. }
  707. .content {
  708. line-height: 40rpx;
  709. }
  710. }
  711. .answer {
  712. margin-top: 24rpx;
  713. }
  714. }
  715. .daywork-container {
  716. margin-top: 24rpx;
  717. padding: 24rpx;
  718. background-color: #ffffff;
  719. border: 1px solid #bcbcbc;
  720. .result {
  721. align-items: center;
  722. .label {
  723. width: 112rpx;
  724. }
  725. input {
  726. flex: 1;
  727. height: 56rpx;
  728. border: 1px solid #9f9f9f;
  729. font-size: 28rpx;
  730. text-align: center;
  731. }
  732. }
  733. .remark {
  734. margin-top: 24rpx;
  735. .label {
  736. width: 112rpx;
  737. }
  738. textarea {
  739. flex: 1;
  740. border: 1px solid #9f9f9f;
  741. height: 168rpx;
  742. }
  743. }
  744. .btns-container {
  745. margin-top: 24rpx;
  746. .finished-btn {
  747. display: flex;
  748. flex: 1;
  749. height: 80rpx;
  750. background-color: #fc6565;
  751. color: #ffffff;
  752. text-align: center;
  753. justify-content: center;
  754. align-items: center;
  755. border-radius: 8rpx;
  756. }
  757. .question-btn {
  758. width: 80rpx;
  759. align-items: flex-end;
  760. image {
  761. width: 48rpx;
  762. height: 48rpx;
  763. }
  764. text {
  765. font-size: 24rpx;
  766. }
  767. }
  768. }
  769. }
  770. .my-files {
  771. display: flex;
  772. justify-content: center;
  773. :deep(.uni-file-picker__container) {
  774. flex-direction: row;
  775. }
  776. }
  777. </style>