form.vue 22 KB

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