instrumentRoomForm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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. var enIsWasteRecycling = encodeURIComponent(processInspecion.value.lot.isWasteRecycling);
  358. var enIsAmend = encodeURIComponent(processInspecion.value.lot.isAmend);
  359. // 构建查询参数字符串
  360. var queryParam =
  361. `param1=${encodedId}&param2=${encodeCode}&param3=${enprocessCode}&param4=${enTechnologicalProcessId}&param5=${enProcessAlias}&param6=${enIsWasteRecycling}&param7=${enIsAmend}`;
  362. // 使用模板字符串构建完整的URL
  363. var navigateUrl = `/pages/drawingMenu/index?${queryParam}`;
  364. // 导航到指定页面
  365. uni.navigateTo({
  366. url: navigateUrl
  367. });
  368. }
  369. const rejectNumberChange = () => {
  370. let sumDisqualificationNum = 0
  371. let sumExaminingNum = 0
  372. unfitInfos.value.forEach(v => {
  373. sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
  374. sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
  375. })
  376. processInspecion.value.disqualificationNum = sumDisqualificationNum
  377. processInspecion.value.examiningNum = sumExaminingNum
  378. console.log(processInspecion.value)
  379. }
  380. //查询咨询列表
  381. function getInspecion() {
  382. processInspecion.value = store.processInspection
  383. selectInspecion(processInspecion.value).then(res => {
  384. console.log("咨询", res);
  385. if (res.code == 200) {
  386. console.log("res", res);
  387. } else {
  388. uni.showToast({
  389. icon: 'none',
  390. title: res.msg,
  391. duration: 2000
  392. })
  393. }
  394. });
  395. }
  396. //结束报工按钮
  397. function endWork() {
  398. // let unf = unfitInfos.value;
  399. // for (var i = 0; i < unfitInfos.value.length; i++) {
  400. // if (unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
  401. // uni.showToast({
  402. // icon: 'none',
  403. // title: '检查量,不良品量不能小于0',
  404. // duration: 2000
  405. // })
  406. // return
  407. // }
  408. // if (unf[i].examiningNum > processInspecion.value.lot.pudName) {
  409. // uni.showToast({
  410. // icon: 'none',
  411. // title: '检查量不能大于投产量'
  412. // })
  413. // return
  414. // }
  415. // }
  416. // if (processInspecion.value.disqualificationNum > processInspecion.value.lot.pudName) {
  417. // uni.showToast({
  418. // icon: 'none',
  419. // title: '不良品量不能大于投产量'
  420. // })
  421. // return
  422. // }
  423. save();
  424. }
  425. function save() {
  426. const currentTime = Date.now();
  427. // 检查是否已经过去了 2 秒
  428. if (currentTime - lastRequestTimestamp.value < 2000) {
  429. // 如果在 2 秒 内已经点击,那么不执行
  430. uni.showToast({
  431. icon: 'none',
  432. title: `请勿重复点击`,
  433. duration: 2000
  434. })
  435. return;
  436. }
  437. let pages = getCurrentPages();
  438. processInspecion.value.dayworkItemConsults = consultations.value;
  439. processInspecion.value.processInspectionDetails = unfitInfos.value;
  440. processInspecion.value.user = store.userInfo;
  441. processInspecion.value.tenantId = store.tenantId
  442. processInspecion.value.inspectionChamberId = processInspecion.value.lot.inspectionChamberId
  443. processInspecion.value.inspectionCarrierId = processInspecion.value.lot.inspectionCarrierId
  444. processInspecion.value.inspectionCarrierCode = processInspecion.value.lot.inspectionCarrierCode
  445. processInspecion.value.processInspectionPictureList = selectedPhotos.value
  446. console.log(processInspecion.value)
  447. saveFirstInstrumentRoomInspection(processInspecion.value).then(res => {
  448. if (res.code == 200) {
  449. let index = 0;
  450. for (let i = 0; i < pages.length; i++) {
  451. if (pages[i].$page.fullPath == "/pages/reportingForWork/index") {
  452. index = pages.length - i - 1;
  453. }
  454. }
  455. console.log("index", index);
  456. uni.navigateBack({
  457. delta: index
  458. });
  459. } else {
  460. uni.showToast({
  461. icon: 'none',
  462. title: res.msg,
  463. duration: 2000
  464. })
  465. }
  466. });
  467. }
  468. function handleSelectInspectionChamber(data) {
  469. processInspecion.value.inspectionChamberId = data
  470. console.log(processInspecion.value)
  471. saveOnSiteInspecion(processInspecion.value).then(res => {
  472. if (res.code == 200) {
  473. let index = 0;
  474. let pages = getCurrentPages();
  475. for (let i = 0; i < pages.length; i++) {
  476. if (pages[i].$page.fullPath == "/pages/firstInspection/index") {
  477. index = pages.length - i - 1;
  478. }
  479. }
  480. console.log("index", index);
  481. uni.navigateBack({
  482. delta: index
  483. });
  484. } else {
  485. uni.showToast({
  486. icon: 'none',
  487. title: res.msg,
  488. duration: 2000
  489. })
  490. }
  491. });
  492. }
  493. //咨询样式
  494. function selectType(item) {
  495. for (var i = 0; i < consul.length; i++) {
  496. if (item.status == consul[i].value) {
  497. return consul[i].type
  498. }
  499. }
  500. }
  501. const addWasteInfo = (data) => {
  502. console.log(data, "55555555")
  503. flag.value = true
  504. var info = {
  505. inspectionStandardsId: data.id,
  506. checkStandard: data.standard
  507. }
  508. unfitInfos.value.push(info)
  509. console.log(data)
  510. }
  511. const addConsultation = (data) => {
  512. let info = data
  513. info.forEach(item => {
  514. item.status = 0
  515. })
  516. consultations.value = info
  517. isEventTriggered.value = true; // 更新标志位状态
  518. }
  519. /***************************** 定义了一些事件 *****************************/
  520. // 添加不合格信息
  521. const handleAddWaste = () => {
  522. // 监听事件,暂时不用,后续会使用
  523. uni.$on('addWasteInfoEvent', (data) => {
  524. addWasteInfo(data)
  525. })
  526. var encodedId = encodeURIComponent(processInspecion.value.lot.productId);
  527. var enprocessId = encodeURIComponent(processInspecion.value.lot.processId);
  528. // 构建查询参数字符串
  529. var queryParam = `param1=${encodedId}&param2=${enprocessId}`;
  530. // 使用模板字符串构建完整的URL
  531. var navigateUrl = `/pages/firstInspection/instrumentOptions?${queryParam}`;
  532. // 导航到指定页面
  533. uni.navigateTo({
  534. url: navigateUrl
  535. });
  536. }
  537. // 删除不合格信息
  538. const handleDelWaste = (index) => {
  539. uni.showModal({
  540. title: '提示',
  541. content: '确定删除该项?',
  542. success: function(res) {
  543. if (res.confirm) {
  544. unfitInfos.value.splice(index, 1)
  545. } else if (res.cancel) {
  546. return
  547. }
  548. }
  549. })
  550. }
  551. // 咨询
  552. const handleAddConsultation = () => {
  553. console.log("9999")
  554. isEventTriggered.value = false;
  555. // 监听事件
  556. uni.$once('addWasteConsultationEvent', (data) => {
  557. if (!isEventTriggered.value) {
  558. // 如果事件尚未触发,则执行事件触发逻辑
  559. addConsultation(data)
  560. }
  561. })
  562. uni.navigateTo({
  563. url: "/pages/firstInspection/consultation",
  564. success: (res) => {
  565. // 通过eventChannel向被打开页面传送数据
  566. res.eventChannel.emit("firstInpsectionConsultation", {
  567. data: processInspecion.value.lot
  568. })
  569. }
  570. })
  571. }
  572. </script>
  573. <style lang="scss">
  574. .page-container {
  575. // height: 100%;
  576. background-color: #ececec;
  577. font-size: 28rpx;
  578. >.title {
  579. font-weight: 700;
  580. margin: 24rpx 16rpx;
  581. }
  582. }
  583. .carrier-info {
  584. margin: 32rpx 16rpx 0 16rpx;
  585. padding: 24rpx;
  586. background-color: #ffffff;
  587. border-radius: 8rpx;
  588. .carrier-code {
  589. font-size: 32rpx;
  590. font-weight: 700;
  591. }
  592. .info-row {
  593. margin-top: 16rpx;
  594. color: #767676;
  595. .label {
  596. width: 160rpx;
  597. }
  598. .drawing-btn {
  599. padding: 12rpx 32rpx;
  600. background-color: #0055ff;
  601. color: #ffffff;
  602. border-radius: 12rpx;
  603. margin-left: auto;
  604. font-size: 28rpx;
  605. }
  606. .value {
  607. flex: 1;
  608. textarea {
  609. flex: 1;
  610. border: 1px solid #888888;
  611. box-sizing: border-box;
  612. padding: 16rpx;
  613. }
  614. }
  615. }
  616. }
  617. .unfit-title {
  618. margin-bottom: 24rpx;
  619. justify-content: space-between;
  620. align-items: center;
  621. text {
  622. font-size: 28rpx;
  623. font-weight: 700;
  624. }
  625. .add-btn {
  626. padding: 12rpx 32rpx;
  627. background-color: #a4adb3;
  628. color: #ffffff;
  629. border-radius: 12rpx;
  630. font-size: 24rpx;
  631. }
  632. }
  633. .unfit-container {
  634. padding: 24rpx;
  635. margin: 0 16rpx;
  636. background-color: #ffffff;
  637. border-radius: 12rpx;
  638. .unfit-item-container {
  639. position: relative;
  640. >* {
  641. margin-bottom: 24rpx;
  642. }
  643. .title {
  644. font-weight: 700;
  645. justify-content: space-between;
  646. align-items: center;
  647. image {
  648. width: 40rpx;
  649. height: 40rpx;
  650. }
  651. }
  652. .standard {}
  653. .resu {
  654. width: 100%;
  655. align-items: center;
  656. input {
  657. margin-left: 20rpx;
  658. width: 200rpx;
  659. height: 56rpx;
  660. flex: 1;
  661. border: 1px solid #9f9f9f;
  662. font-size: 28rpx;
  663. }
  664. }
  665. .result {
  666. align-items: center;
  667. border-bottom: 1px solid #9f9f9f;
  668. padding-bottom: 32rpx;
  669. .label {
  670. flex: 1;
  671. }
  672. input {
  673. width: 280rpx;
  674. height: 56rpx;
  675. border: 1px solid #9f9f9f;
  676. font-size: 28rpx;
  677. &.number {
  678. width: 104rpx;
  679. text-align: center;
  680. }
  681. }
  682. }
  683. }
  684. .unfit-item-container:last-child {
  685. .result {
  686. border-bottom: none;
  687. padding-bottom: 0;
  688. }
  689. }
  690. }
  691. .consultation-container {
  692. margin: 0 16rpx;
  693. padding: 24rpx;
  694. background-color: #ffffff;
  695. border-radius: 8rpx;
  696. .consultation-item-container {
  697. margin-bottom: 24rpx;
  698. border-bottom: 2px solid #888888;
  699. padding-bottom: 24rpx;
  700. }
  701. .consultation-item-container:last-child {
  702. margin-bottom: 0;
  703. border-bottom: 0;
  704. padding-bottom: 0;
  705. }
  706. .question,
  707. .answer {
  708. .label {
  709. justify-content: space-between;
  710. margin-bottom: 16rpx;
  711. font-weight: 700;
  712. }
  713. .content {
  714. line-height: 40rpx;
  715. }
  716. }
  717. .answer {
  718. margin-top: 24rpx;
  719. }
  720. }
  721. .daywork-container {
  722. margin-top: 24rpx;
  723. padding: 24rpx;
  724. background-color: #ffffff;
  725. border: 1px solid #bcbcbc;
  726. .switch {
  727. margin-top: -4px;
  728. //align-items: center;
  729. }
  730. .result {
  731. align-items: center;
  732. .label {
  733. width: 112rpx;
  734. }
  735. input {
  736. flex: 1;
  737. height: 56rpx;
  738. border: 1px solid #9f9f9f;
  739. font-size: 28rpx;
  740. text-align: center;
  741. }
  742. }
  743. .remark {
  744. margin-top: 24rpx;
  745. .label {
  746. width: 112rpx;
  747. }
  748. textarea {
  749. flex: 1;
  750. border: 1px solid #9f9f9f;
  751. height: 168rpx;
  752. }
  753. }
  754. .btns-container {
  755. margin-top: 24rpx;
  756. .finished-btn {
  757. display: flex;
  758. flex: 1;
  759. height: 80rpx;
  760. background-color: #fc6565;
  761. color: #ffffff;
  762. text-align: center;
  763. justify-content: center;
  764. align-items: center;
  765. border-radius: 8rpx;
  766. }
  767. .question-btn {
  768. width: 80rpx;
  769. align-items: flex-end;
  770. image {
  771. width: 48rpx;
  772. height: 48rpx;
  773. }
  774. text {
  775. font-size: 24rpx;
  776. }
  777. }
  778. }
  779. .switch {
  780. margin-top: -8rpx;
  781. align-items: center;
  782. transform: scale(0.7);
  783. }
  784. }
  785. .uni-input-input:disabled {
  786. background-color: #f5f7fa;
  787. }
  788. .my-files {
  789. display: flex;
  790. justify-content: center;
  791. :deep(.uni-file-picker__container) {
  792. flex-direction: row;
  793. }
  794. }
  795. </style>