form.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  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. // 构建查询参数字符串
  345. var queryParam =
  346. `param1=${encodedId}&param2=${encodeCode}&param3=${enprocessCode}&param4=${enTechnologicalProcessId}&param5=${enProcessAlias}`;
  347. // 使用模板字符串构建完整的URL
  348. var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
  349. // 导航到指定页面
  350. uni.navigateTo({
  351. url: navigateUrl
  352. });
  353. }
  354. const rejectNumberChange = () => {
  355. let sumDisqualificationNum = 0
  356. let sumExaminingNum = 0
  357. unfitInfos.value.forEach(v => {
  358. sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
  359. sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
  360. })
  361. processInspecion.value.disqualificationNum = sumDisqualificationNum
  362. processInspecion.value.examiningNum = sumExaminingNum
  363. console.log(processInspecion.value)
  364. }
  365. //查询咨询列表
  366. function getInspecion() {
  367. processInspecion.value = store.processInspection
  368. selectInspecion(processInspecion.value).then(res => {
  369. console.log("咨询", res);
  370. if (res.code == 200) {
  371. console.log("res", res);
  372. } else {
  373. uni.showToast({
  374. icon: 'none',
  375. title: res.msg,
  376. duration: 2000
  377. })
  378. }
  379. });
  380. }
  381. //结束报工按钮
  382. function endWork() {
  383. let unf = unfitInfos.value;
  384. for (var i = 0; i < unfitInfos.value.length; i++) {
  385. if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
  386. uni.showToast({
  387. icon: 'none',
  388. title: '检查量,不良品量不能小于0',
  389. duration: 2000
  390. })
  391. return
  392. }
  393. if (unf[i].examiningNum > processInspecion.value.lot.pudName) {
  394. uni.showToast({
  395. icon: 'none',
  396. title: '检查量不能大于投产量'
  397. })
  398. return
  399. }
  400. }
  401. if (processInspecion.value.disqualificationNum > processInspecion.value.lot.pudName) {
  402. uni.showToast({
  403. icon: 'none',
  404. title: '不良品量不能大于投产量'
  405. })
  406. return
  407. }
  408. save();
  409. }
  410. function save() {
  411. const currentTime = Date.now();
  412. // 检查是否已经过去了 2 秒
  413. if (currentTime - lastRequestTimestamp.value < 2000) {
  414. // 如果在 2 秒 内已经点击,那么不执行
  415. uni.showToast({
  416. icon: 'none',
  417. title: `请勿重复点击`,
  418. duration: 2000
  419. })
  420. return;
  421. }
  422. let pages = getCurrentPages();
  423. processInspecion.value.dayworkItemConsults = consultations.value;
  424. processInspecion.value.processInspectionDetails = unfitInfos.value;
  425. processInspecion.value.user = store.userInfo;
  426. processInspecion.value.tenantId = store.tenantId
  427. processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
  428. processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
  429. processInspecion.value.processInspectionPictureList = selectedPhotos.value
  430. console.log(processInspecion.value)
  431. saveInstrumentRoomInspection(processInspecion.value).then(res => {
  432. if (res.code == 200) {
  433. let index = 0;
  434. for (let i = 0; i < pages.length; i++) {
  435. if (pages[i].$page.fullPath == "/pages/instrumentRoomInspection/index") {
  436. index = pages.length - i - 1;
  437. }
  438. }
  439. console.log("index", index);
  440. uni.navigateBack({
  441. delta: index
  442. });
  443. } else {
  444. uni.showToast({
  445. icon: 'none',
  446. title: res.msg,
  447. duration: 2000
  448. })
  449. }
  450. });
  451. }
  452. //咨询样式
  453. function selectType(item) {
  454. for (var i = 0; i < consul.length; i++) {
  455. if (item.status == consul[i].value) {
  456. return consul[i].type
  457. }
  458. }
  459. }
  460. const addWasteInfo = (data) => {
  461. console.log(data, "55555555")
  462. flag.value = true
  463. var info = {
  464. inspectionStandardsId: data.id,
  465. checkStandard: data.standard
  466. }
  467. unfitInfos.value.push(info)
  468. console.log(data)
  469. }
  470. const addConsultation = (data) => {
  471. let info = data
  472. info.forEach(item => {
  473. item.status = 0
  474. })
  475. consultations.value = consultations.value.concat(info)
  476. isEventTriggered.value = true; // 更新标志位状态
  477. }
  478. /***************************** 定义了一些事件 *****************************/
  479. // 添加不合格信息
  480. const handleAddWaste = () => {
  481. flag.value = true
  482. // 监听事件,暂时不用,后续会使用
  483. uni.$on('addWasteInfoEvent', (data) => {
  484. addWasteInfo(data)
  485. })
  486. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  487. var enprocessId = encodeURIComponent(processInspecion.value.lot.processId);
  488. // 构建查询参数字符串
  489. var queryParam = `param1=${encodedId}&param2=${enprocessId}`;
  490. // 使用模板字符串构建完整的URL
  491. var navigateUrl = `/pages/instrumentRoomInspection/options?${queryParam}`;
  492. // 导航到指定页面
  493. uni.navigateTo({
  494. url: navigateUrl
  495. });
  496. }
  497. //移交其他仪器室
  498. function handleToOtherChamber() {
  499. //打开选择仪器室的弹窗
  500. selectInspectionChamber.value.open()
  501. }
  502. //选择带回
  503. function handleSelectInspectionChamber(data) {
  504. processInspecion.value.inspectionChamberId = data
  505. //修改仪器室
  506. updateChamberId(processInspecion.value).then(res => {
  507. if (res.code == 200) {
  508. store.processInspection = null
  509. uni.showToast({
  510. icon: 'none',
  511. title: "修改成功",
  512. duration: 2000
  513. })
  514. let index = 0;
  515. let pages = getCurrentPages();
  516. for (let i = 0; i < pages.length; i++) {
  517. if (pages[i].$page.fullPath == "/pages/instrumentRoomInspection/index") {
  518. index = pages.length - i - 1;
  519. }
  520. }
  521. console.log(index)
  522. uni.navigateBack({
  523. delta: index
  524. });
  525. }
  526. })
  527. console.log(processInspecion.value)
  528. }
  529. // 删除不合格信息
  530. const handleDelWaste = (index) => {
  531. uni.showModal({
  532. title: '提示',
  533. content: '确定删除该项?',
  534. success: function(res) {
  535. if (res.confirm) {
  536. unfitInfos.value.splice(index, 1)
  537. } else if (res.cancel) {
  538. return
  539. }
  540. }
  541. })
  542. }
  543. // 咨询
  544. const handleAddConsultation = () => {
  545. console.log("9999")
  546. isEventTriggered.value = false;
  547. // 监听事件
  548. uni.$once('addWasteConsultationEvent', (data) => {
  549. if (!isEventTriggered.value) {
  550. // 如果事件尚未触发,则执行事件触发逻辑
  551. addConsultation(data)
  552. }
  553. })
  554. uni.navigateTo({
  555. url: "/pages/instrumentRoomInspection/consultation",
  556. success: (res) => {
  557. // 通过eventChannel向被打开页面传送数据
  558. res.eventChannel.emit("instrumentRoomInspectionConsultation", {
  559. data: processInspecion.value.lot
  560. })
  561. }
  562. })
  563. }
  564. </script>
  565. <style lang="scss">
  566. .page-container {
  567. // height: 100%;
  568. background-color: #ececec;
  569. font-size: 28rpx;
  570. >.title {
  571. font-weight: 700;
  572. margin: 24rpx 16rpx;
  573. }
  574. }
  575. .carrier-info {
  576. margin: 32rpx 16rpx 0 16rpx;
  577. padding: 24rpx;
  578. background-color: #ffffff;
  579. border-radius: 8rpx;
  580. .carrier-code {
  581. font-size: 32rpx;
  582. font-weight: 700;
  583. }
  584. .info-row {
  585. margin-top: 16rpx;
  586. color: #767676;
  587. .label {
  588. width: 160rpx;
  589. }
  590. .drawing-btn {
  591. padding: 12rpx 32rpx;
  592. background-color: #0055ff;
  593. color: #ffffff;
  594. border-radius: 12rpx;
  595. margin-left: auto;
  596. font-size: 28rpx;
  597. }
  598. .value {
  599. flex: 1;
  600. textarea {
  601. flex: 1;
  602. border: 1px solid #888888;
  603. box-sizing: border-box;
  604. padding: 16rpx;
  605. }
  606. }
  607. }
  608. }
  609. .unfit-title {
  610. margin-bottom: 24rpx;
  611. justify-content: space-between;
  612. align-items: center;
  613. text {
  614. font-size: 28rpx;
  615. font-weight: 700;
  616. }
  617. .add-btn {
  618. padding: 12rpx 32rpx;
  619. background-color: #a4adb3;
  620. color: #ffffff;
  621. border-radius: 12rpx;
  622. font-size: 24rpx;
  623. }
  624. }
  625. .unfit-container {
  626. padding: 24rpx;
  627. margin: 0 16rpx;
  628. background-color: #ffffff;
  629. border-radius: 12rpx;
  630. .unfit-item-container {
  631. position: relative;
  632. >* {
  633. margin-bottom: 24rpx;
  634. }
  635. .title {
  636. font-weight: 700;
  637. justify-content: space-between;
  638. align-items: center;
  639. image {
  640. width: 40rpx;
  641. height: 40rpx;
  642. }
  643. }
  644. .standard {}
  645. .resu {
  646. width: 100%;
  647. align-items: center;
  648. input {
  649. margin-left: 20rpx;
  650. width: 200rpx;
  651. height: 56rpx;
  652. flex: 1;
  653. border: 1px solid #9f9f9f;
  654. font-size: 28rpx;
  655. }
  656. }
  657. .result {
  658. align-items: center;
  659. border-bottom: 1px solid #9f9f9f;
  660. padding-bottom: 32rpx;
  661. .label {
  662. flex: 1;
  663. }
  664. input {
  665. width: 280rpx;
  666. height: 56rpx;
  667. border: 1px solid #9f9f9f;
  668. font-size: 28rpx;
  669. &.number {
  670. width: 104rpx;
  671. text-align: center;
  672. }
  673. }
  674. }
  675. }
  676. .unfit-item-container:last-child {
  677. .result {
  678. border-bottom: none;
  679. padding-bottom: 0;
  680. }
  681. }
  682. }
  683. .consultation-container {
  684. margin: 0 16rpx;
  685. padding: 24rpx;
  686. background-color: #ffffff;
  687. border-radius: 8rpx;
  688. .consultation-item-container {
  689. margin-bottom: 24rpx;
  690. border-bottom: 2px solid #888888;
  691. padding-bottom: 24rpx;
  692. }
  693. .consultation-item-container:last-child {
  694. margin-bottom: 0;
  695. border-bottom: 0;
  696. padding-bottom: 0;
  697. }
  698. .question,
  699. .answer {
  700. .label {
  701. justify-content: space-between;
  702. margin-bottom: 16rpx;
  703. font-weight: 700;
  704. }
  705. .content {
  706. line-height: 40rpx;
  707. }
  708. }
  709. .answer {
  710. margin-top: 24rpx;
  711. }
  712. }
  713. .daywork-container {
  714. margin-top: 24rpx;
  715. padding: 24rpx;
  716. background-color: #ffffff;
  717. border: 1px solid #bcbcbc;
  718. .result {
  719. align-items: center;
  720. .label {
  721. width: 112rpx;
  722. }
  723. input {
  724. flex: 1;
  725. height: 56rpx;
  726. border: 1px solid #9f9f9f;
  727. font-size: 28rpx;
  728. text-align: center;
  729. }
  730. }
  731. .remark {
  732. margin-top: 24rpx;
  733. .label {
  734. width: 112rpx;
  735. }
  736. textarea {
  737. flex: 1;
  738. border: 1px solid #9f9f9f;
  739. height: 168rpx;
  740. }
  741. }
  742. .btns-container {
  743. margin-top: 24rpx;
  744. .finished-btn {
  745. display: flex;
  746. flex: 1;
  747. height: 80rpx;
  748. background-color: #fc6565;
  749. color: #ffffff;
  750. text-align: center;
  751. justify-content: center;
  752. align-items: center;
  753. border-radius: 8rpx;
  754. }
  755. .question-btn {
  756. width: 80rpx;
  757. align-items: flex-end;
  758. image {
  759. width: 48rpx;
  760. height: 48rpx;
  761. }
  762. text {
  763. font-size: 24rpx;
  764. }
  765. }
  766. }
  767. }
  768. .my-files {
  769. display: flex;
  770. justify-content: center;
  771. :deep(.uni-file-picker__container) {
  772. flex-direction: row;
  773. }
  774. }
  775. </style>