form.vue 22 KB

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