form.vue 21 KB

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