form.vue 20 KB

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