form.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  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. isAllChecked.value = (processInspecion.value.isAllChecked == 1)
  256. selectInspecion(processInspecion.value).then(res => {
  257. if (res.code == 200) {
  258. processInspecion.value = res.data;
  259. processInspecion.value.flag = false
  260. unfitInfos.value = res.data.processInspectionDetails;
  261. initStatus.value = res.data.status
  262. consultations.value = res.data.dayworkItemConsults;
  263. selectedPhotos.value = res.data.processInspectionPictureList
  264. photoList.value = res.data.processInspectionPictureList.map(item => {
  265. return {
  266. ...item,
  267. url: webHost.value + item.url
  268. };
  269. });
  270. console.log("res", res);
  271. console.log(processInspecion.value)
  272. uni.hideLoading();
  273. // getInspecion();
  274. } else {
  275. uni.showToast({
  276. icon: 'none',
  277. title: res.msg,
  278. duration: 2000
  279. })
  280. }
  281. });
  282. } else {
  283. init()
  284. }
  285. }
  286. })
  287. /***************************** 定义了一些方法 *****************************/
  288. //咨询文本
  289. function selectText(item) {
  290. for (var i = 0; i < consul.length; i++) {
  291. if (item.status == consul[i].value) {
  292. return consul[i].text
  293. }
  294. }
  295. }
  296. function upLoadImageHandler(arg) {
  297. getURL(arg).then(res => {
  298. let data = JSON.parse(res)
  299. selectedPhotos.value.push({
  300. url: data.fileName,
  301. pictureName: data.originalFilename
  302. })
  303. console.log(selectedPhotos.value)
  304. })
  305. }
  306. function select(e) {
  307. console.log(e)
  308. const {
  309. tempFilePaths,
  310. tempFiles
  311. } = e
  312. tempFiles.forEach((item, index) => {
  313. upLoadImageHandler({
  314. filePath: tempFilePaths[index],
  315. name: item.name
  316. })
  317. })
  318. }
  319. function handleDeletedPhoto(e) {
  320. let fileName = selectedPhotos.value.map(info => info.pictureName)
  321. const firstSlashIndex = e.tempFile.url.lastIndexOf('/');
  322. const lastSlashIndex = e.tempFile.url.lastIndexOf('_');
  323. const type = e.tempFile.url.substring(firstSlashIndex + 1, lastSlashIndex)
  324. const pictureName = e.tempFile.url.substring(firstSlashIndex + 1, lastSlashIndex) + e.tempFile.url.substring(e
  325. .tempFile.url.lastIndexOf('.') - 1 + 1);;
  326. let index = -1; // 初始化 index 为 -1,表示未找到
  327. // 首先检查 e.tempFile.name 是否存在
  328. if (fileName.findIndex(name => name === e.tempFile.name) !== -1) {
  329. index = fileName.findIndex(name => name === e.tempFile.name);
  330. }
  331. // 如果 e.tempFile.name 不存在,检查 e.tempFile.pictureName 是否存在
  332. else if (fileName.findIndex(name => name === e.tempFile.pictureName) !== -1) {
  333. index = fileName.findIndex(name => name === e.tempFile.pictureName);
  334. }
  335. // 如果以上两个都不存在,检查 pictureName 是否存在
  336. else if (fileName.findIndex(name => name === pictureName) !== -1) {
  337. index = fileName.findIndex(name => name === pictureName);
  338. }
  339. selectedPhotos.value.splice(index, 1)
  340. }
  341. function handleDrawingMenu() {
  342. // 对 technologicalProcessDetailId 进行URL编码
  343. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  344. var enTechnologicalProcessId = encodeURIComponent(processInspecion.value.lot.technologicalProcessId);
  345. var enprocessCode = encodeURIComponent(processInspecion.value.lot.processCode);
  346. var encodeCode = encodeURIComponent(processInspecion.value.lot.lotCode);
  347. var enProcessAlias = encodeURIComponent(processInspecion.value.lot.processAlias);
  348. // 构建查询参数字符串
  349. var queryParam =
  350. `param1=${encodedId}&param2=${encodeCode}&param3=${enprocessCode}&param4=${enTechnologicalProcessId}&param5=${enProcessAlias}`;
  351. // 使用模板字符串构建完整的URL
  352. var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
  353. // 导航到指定页面
  354. uni.navigateTo({
  355. url: navigateUrl
  356. });
  357. }
  358. function getOringicalList() {
  359. console.log(processInspecion.value)
  360. //查询该产品,当前工序,当前检查绑定的检查
  361. getInspectionStandardsList({
  362. productId: processInspecion.value.lot.productId,
  363. processId: processInspecion.value.lot.processId,
  364. inspectionCode: "factoryInspection"
  365. }).then(res => {
  366. unfitInfos.value = res.rows.map(item => {
  367. // 映射新的数组,包含 inspectionStandardsId 和 checkStandard 属性
  368. return {
  369. inspectionStandardsId: item.id, // 从 item 中获取 id
  370. checkStandard: item.standard // 从 item 中获取 standard
  371. };
  372. });
  373. })
  374. }
  375. const rejectNumberChange = () => {
  376. let sumDisqualificationNum = 0
  377. let sumExaminingNum = 0
  378. unfitInfos.value.forEach(v => {
  379. sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
  380. sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
  381. })
  382. processInspecion.value.disqualificationNum = sumDisqualificationNum
  383. processInspecion.value.examiningNum = sumExaminingNum
  384. console.log(processInspecion.value)
  385. }
  386. //查询咨询列表
  387. function getInspecion() {
  388. processInspecion.value = store.processInspection
  389. selectInspecion(processInspecion.value).then(res => {
  390. console.log("咨询", res);
  391. if (res.code == 200) {
  392. console.log("res", res);
  393. } else {
  394. uni.showToast({
  395. icon: 'none',
  396. title: res.msg,
  397. duration: 2000
  398. })
  399. }
  400. });
  401. }
  402. //结束报工按钮
  403. function endWork() {
  404. let unf = unfitInfos.value;
  405. for (var i = 0; i < unfitInfos.value.length; i++) {
  406. if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
  407. uni.showToast({
  408. icon: 'none',
  409. title: '检查量,不良品量不能小于0',
  410. duration: 2000
  411. })
  412. return
  413. }
  414. if (unf[i].examiningNum > processInspecion.value.lot.pudName) {
  415. uni.showToast({
  416. icon: 'none',
  417. title: '检查量不能大于投产量'
  418. })
  419. return
  420. }
  421. }
  422. if (processInspecion.value.disqualificationNum > processInspecion.value.lot.pudName) {
  423. uni.showToast({
  424. icon: 'none',
  425. title: '不良品量不能大于投产量'
  426. })
  427. return
  428. }
  429. save();
  430. }
  431. function save() {
  432. const currentTime = Date.now();
  433. // 检查是否已经过去了 2 秒
  434. if (currentTime - lastRequestTimestamp.value < 2000) {
  435. // 如果在 2 秒 内已经点击,那么不执行
  436. uni.showToast({
  437. icon: 'none',
  438. title: `请勿重复点击`,
  439. duration: 2000
  440. })
  441. return;
  442. }
  443. let pages = getCurrentPages();
  444. processInspecion.value.dayworkItemConsults = consultations.value;
  445. processInspecion.value.processInspectionDetails = unfitInfos.value;
  446. processInspecion.value.user = store.userInfo;
  447. processInspecion.value.reviewerId = store.userInfo.userId
  448. processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
  449. processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
  450. processInspecion.value.processInspectionPictureList = selectedPhotos.value
  451. console.log(processInspecion.value)
  452. saveFactoryInspecion(processInspecion.value).then(res => {
  453. if (res.code == 200) {
  454. let index = 0;
  455. for (let i = 0; i < pages.length; i++) {
  456. if (pages[i].$page.fullPath == "/pages/factoryInspection/index") {
  457. index = pages.length - i - 1;
  458. }
  459. }
  460. console.log("index", index);
  461. uni.navigateBack({
  462. delta: index
  463. });
  464. } else {
  465. uni.showToast({
  466. icon: 'none',
  467. title: res.msg,
  468. duration: 2000
  469. })
  470. }
  471. });
  472. }
  473. //咨询样式
  474. function selectType(item) {
  475. for (var i = 0; i < consul.length; i++) {
  476. if (item.status == consul[i].value) {
  477. return consul[i].type
  478. }
  479. }
  480. }
  481. const addWasteInfo = (data) => {
  482. console.log(data, "55555555")
  483. flag.value = true
  484. var info = {
  485. inspectionStandardsId: data.id,
  486. checkStandard: data.standard
  487. }
  488. unfitInfos.value.push(info)
  489. console.log(data)
  490. }
  491. const addConsultation = (data) => {
  492. let info = data
  493. info.forEach(item => {
  494. item.status = 0
  495. })
  496. consultations.value = consultations.value.concat(info)
  497. isEventTriggered.value = true; // 更新标志位状态
  498. }
  499. /***************************** 定义了一些事件 *****************************/
  500. // 添加不合格信息
  501. const handleAddWaste = () => {
  502. flag.value = true
  503. // 监听事件,暂时不用,后续会使用
  504. uni.$once('addWasteInfoEvent', (data) => {
  505. addWasteInfo(data)
  506. })
  507. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  508. var enprocessId = encodeURIComponent(processInspecion.value.lot.processId);
  509. // 构建查询参数字符串
  510. var queryParam = `param1=${encodedId}&param2=${enprocessId}`;
  511. // 使用模板字符串构建完整的URL
  512. var navigateUrl = `/pages/factoryInspection/options?${queryParam}`;
  513. // 导航到指定页面
  514. uni.navigateTo({
  515. url: navigateUrl
  516. });
  517. }
  518. // 删除不合格信息
  519. const handleDelWaste = (index) => {
  520. uni.showModal({
  521. title: '提示',
  522. content: '确定删除该项?',
  523. success: function(res) {
  524. if (res.confirm) {
  525. unfitInfos.value.splice(index, 1)
  526. } else if (res.cancel) {
  527. return
  528. }
  529. }
  530. })
  531. }
  532. // 咨询
  533. const handleAddConsultation = () => {
  534. console.log("9999")
  535. isEventTriggered.value = false;
  536. // 监听事件
  537. uni.$once('addWasteConsultationEvent', (data) => {
  538. if (!isEventTriggered.value) {
  539. // 如果事件尚未触发,则执行事件触发逻辑
  540. addConsultation(data)
  541. }
  542. })
  543. uni.navigateTo({
  544. url: "/pages/factoryInspection/consultation",
  545. success: (res) => {
  546. // 通过eventChannel向被打开页面传送数据
  547. res.eventChannel.emit("factoryInpsectionConsultation", {
  548. data: processInspecion.value.lot
  549. })
  550. }
  551. })
  552. }
  553. </script>
  554. <style lang="scss">
  555. .page-container {
  556. // height: 100%;
  557. background-color: #ececec;
  558. font-size: 28rpx;
  559. >.title {
  560. font-weight: 700;
  561. margin: 24rpx 16rpx;
  562. }
  563. }
  564. .carrier-info {
  565. margin: 32rpx 16rpx 0 16rpx;
  566. padding: 24rpx;
  567. background-color: #ffffff;
  568. border-radius: 8rpx;
  569. .carrier-code {
  570. font-size: 32rpx;
  571. font-weight: 700;
  572. }
  573. .info-row {
  574. margin-top: 16rpx;
  575. color: #767676;
  576. .label {
  577. width: 160rpx;
  578. }
  579. .drawing-btn {
  580. padding: 12rpx 32rpx;
  581. background-color: #0055ff;
  582. color: #ffffff;
  583. border-radius: 12rpx;
  584. margin-left: auto;
  585. font-size: 28rpx;
  586. }
  587. .value {
  588. flex: 1;
  589. textarea {
  590. flex: 1;
  591. border: 1px solid #888888;
  592. box-sizing: border-box;
  593. padding: 16rpx;
  594. }
  595. }
  596. }
  597. }
  598. .unfit-title {
  599. margin-bottom: 24rpx;
  600. justify-content: space-between;
  601. align-items: center;
  602. text {
  603. font-size: 28rpx;
  604. font-weight: 700;
  605. }
  606. .add-btn {
  607. padding: 12rpx 32rpx;
  608. background-color: #a4adb3;
  609. color: #ffffff;
  610. border-radius: 12rpx;
  611. font-size: 24rpx;
  612. }
  613. }
  614. .unfit-container {
  615. padding: 24rpx;
  616. margin: 0 16rpx;
  617. background-color: #ffffff;
  618. border-radius: 12rpx;
  619. .unfit-item-container {
  620. position: relative;
  621. >* {
  622. margin-bottom: 24rpx;
  623. }
  624. .title {
  625. font-weight: 700;
  626. justify-content: space-between;
  627. align-items: center;
  628. image {
  629. width: 40rpx;
  630. height: 40rpx;
  631. }
  632. }
  633. .standard {}
  634. .resu {
  635. width: 100%;
  636. align-items: center;
  637. input {
  638. margin-left: 20rpx;
  639. width: 200rpx;
  640. height: 56rpx;
  641. flex: 1;
  642. border: 1px solid #9f9f9f;
  643. font-size: 28rpx;
  644. }
  645. }
  646. .result {
  647. align-items: center;
  648. border-bottom: 1px solid #9f9f9f;
  649. padding-bottom: 32rpx;
  650. .label {
  651. flex: 1;
  652. }
  653. input {
  654. width: 280rpx;
  655. height: 56rpx;
  656. border: 1px solid #9f9f9f;
  657. font-size: 28rpx;
  658. &.number {
  659. width: 104rpx;
  660. text-align: center;
  661. }
  662. }
  663. }
  664. }
  665. .unfit-item-container:last-child {
  666. .result {
  667. border-bottom: none;
  668. padding-bottom: 0;
  669. }
  670. }
  671. }
  672. .consultation-container {
  673. margin: 0 16rpx;
  674. padding: 24rpx;
  675. background-color: #ffffff;
  676. border-radius: 8rpx;
  677. .consultation-item-container {
  678. margin-bottom: 24rpx;
  679. border-bottom: 2px solid #888888;
  680. padding-bottom: 24rpx;
  681. }
  682. .consultation-item-container:last-child {
  683. margin-bottom: 0;
  684. border-bottom: 0;
  685. padding-bottom: 0;
  686. }
  687. .question,
  688. .answer {
  689. .label {
  690. justify-content: space-between;
  691. margin-bottom: 16rpx;
  692. font-weight: 700;
  693. }
  694. .content {
  695. line-height: 40rpx;
  696. }
  697. }
  698. .answer {
  699. margin-top: 24rpx;
  700. }
  701. }
  702. .daywork-container {
  703. margin-top: 24rpx;
  704. padding: 24rpx;
  705. background-color: #ffffff;
  706. border: 1px solid #bcbcbc;
  707. .result {
  708. align-items: center;
  709. .label {
  710. width: 112rpx;
  711. }
  712. input {
  713. flex: 1;
  714. height: 56rpx;
  715. border: 1px solid #9f9f9f;
  716. font-size: 28rpx;
  717. text-align: center;
  718. }
  719. }
  720. .switch {
  721. margin-top: -8rpx;
  722. align-items: center;
  723. }
  724. .remark {
  725. margin-top: 24rpx;
  726. .label {
  727. width: 112rpx;
  728. }
  729. textarea {
  730. flex: 1;
  731. border: 1px solid #9f9f9f;
  732. height: 168rpx;
  733. }
  734. }
  735. .btns-container {
  736. margin-top: 24rpx;
  737. .finished-btn {
  738. display: flex;
  739. flex: 1;
  740. height: 80rpx;
  741. background-color: #fc6565;
  742. color: #ffffff;
  743. text-align: center;
  744. justify-content: center;
  745. align-items: center;
  746. border-radius: 8rpx;
  747. }
  748. .question-btn {
  749. width: 80rpx;
  750. align-items: flex-end;
  751. image {
  752. width: 48rpx;
  753. height: 48rpx;
  754. }
  755. text {
  756. font-size: 24rpx;
  757. }
  758. }
  759. }
  760. }
  761. .my-files {
  762. display: flex;
  763. justify-content: center;
  764. :deep(.uni-file-picker__container) {
  765. flex-direction: row;
  766. }
  767. }
  768. </style>