form.vue 20 KB

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