form.vue 22 KB

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