form.vue 21 KB

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