instrumentRoomForm.vue 21 KB

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