form.vue 21 KB

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