instrumentRoomForm.vue 22 KB

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