form.vue 21 KB

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