instrumentRoomForm.vue 22 KB

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