form.vue 22 KB

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