form.vue 20 KB

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