form.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816
  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. const info = {
  444. content: data.question,
  445. status: 0
  446. }
  447. consultations.value.push(info)
  448. isEventTriggered.value = true; // 更新标志位状态
  449. }
  450. /***************************** 定义了一些事件 *****************************/
  451. // 添加不合格信息
  452. const handleAddWaste = () => {
  453. let info = {}
  454. unfitInfos.value.push(info)
  455. // 监听事件,暂时不用,后续会使用
  456. // uni.$once('addWasteInfoEvent', (data) => {
  457. // addWasteInfo(data)
  458. // })
  459. // uni.navigateTo({
  460. // url: "/pages/processInspection/options"
  461. // })
  462. }
  463. // 删除不合格信息
  464. const handleDelWaste = (index) => {
  465. uni.showModal({
  466. title: '提示',
  467. content: '确定删除该项?',
  468. success: function(res) {
  469. if (res.confirm) {
  470. unfitInfos.value.splice(index, 1)
  471. rejectNumberChange()
  472. } else if (res.cancel) {
  473. return
  474. }
  475. }
  476. })
  477. }
  478. // 咨询
  479. const handleAddConsultation = () => {
  480. isEventTriggered.value = false;
  481. // 监听事件
  482. uni.$once('wasteConsultationEvent', (data) => {
  483. if (!isEventTriggered.value) {
  484. // 如果事件尚未触发,则执行事件触发逻辑
  485. addConsultation(data)
  486. }
  487. })
  488. uni.navigateTo({
  489. url: "/pages/outsourcedInspection/consultation",
  490. success: (res) => {
  491. // 通过eventChannel向被打开页面传送数据
  492. res.eventChannel.emit("outsourcedInspectionConsultation", {
  493. data: processInspecion.value.lot
  494. })
  495. }
  496. })
  497. }
  498. </script>
  499. <style lang="scss">
  500. .page-container {
  501. // height: 100%;
  502. background-color: #ececec;
  503. font-size: 28rpx;
  504. >.title {
  505. font-weight: 700;
  506. margin: 24rpx 16rpx;
  507. }
  508. }
  509. .carrier-info {
  510. margin: 32rpx 16rpx 0 16rpx;
  511. padding: 24rpx;
  512. background-color: #ffffff;
  513. border-radius: 8rpx;
  514. .carrier-code {
  515. font-size: 32rpx;
  516. font-weight: 700;
  517. }
  518. .info-row {
  519. margin-top: 16rpx;
  520. color: #767676;
  521. .label {
  522. width: 160rpx;
  523. }
  524. .drawing-btn {
  525. padding: 12rpx 32rpx;
  526. background-color: #0055ff;
  527. color: #ffffff;
  528. border-radius: 12rpx;
  529. margin-left: auto;
  530. font-size: 28rpx;
  531. }
  532. .value {
  533. flex: 1;
  534. textarea {
  535. flex: 1;
  536. border: 1px solid #888888;
  537. box-sizing: border-box;
  538. padding: 16rpx;
  539. }
  540. }
  541. }
  542. }
  543. .unfit-title {
  544. margin-bottom: 24rpx;
  545. justify-content: space-between;
  546. align-items: center;
  547. text {
  548. font-size: 28rpx;
  549. font-weight: 700;
  550. }
  551. .add-btn {
  552. margin-right: 26rpx;
  553. padding: 12rpx 32rpx;
  554. background-color: #a4adb3;
  555. color: #ffffff;
  556. border-radius: 12rpx;
  557. font-size: 24rpx;
  558. }
  559. }
  560. .unfit-container {
  561. padding: 24rpx;
  562. margin: 0 16rpx;
  563. background-color: #ffffff;
  564. border-radius: 12rpx;
  565. .unfit-item-container {
  566. position: relative;
  567. >* {
  568. margin-bottom: 24rpx;
  569. }
  570. .title {
  571. font-weight: 700;
  572. justify-content: space-between;
  573. align-items: center;
  574. image {
  575. width: 40rpx;
  576. height: 40rpx;
  577. }
  578. }
  579. .standard {}
  580. .resu {
  581. width: 100%;
  582. align-items: center;
  583. input {
  584. margin-left: 20rpx;
  585. width: 200rpx;
  586. height: 56rpx;
  587. flex: 1;
  588. border: 1px solid #9f9f9f;
  589. font-size: 28rpx;
  590. }
  591. .label {
  592. width: 160rpx;
  593. }
  594. .value {
  595. flex: 1;
  596. textarea {
  597. flex: 1;
  598. border: 1px solid #888888;
  599. box-sizing: border-box;
  600. padding: 16rpx;
  601. }
  602. }
  603. }
  604. .result {
  605. border-bottom: 1px solid #9f9f9f;
  606. padding-bottom: 32rpx;
  607. align-items: center;
  608. .label {
  609. width: 160rpx;
  610. }
  611. .value {
  612. flex: 1;
  613. textarea {
  614. flex: 1;
  615. border: 1px solid #888888;
  616. box-sizing: border-box;
  617. padding: 16rpx;
  618. }
  619. }
  620. input {
  621. width: 280rpx;
  622. height: 56rpx;
  623. border: 1px solid #9f9f9f;
  624. font-size: 28rpx;
  625. &.number {
  626. width: 104rpx;
  627. text-align: center;
  628. }
  629. }
  630. }
  631. }
  632. .unfit-item-container:last-child {
  633. .result {
  634. border-bottom: none;
  635. padding-bottom: 0;
  636. }
  637. }
  638. }
  639. .consultation-container {
  640. margin: 0 16rpx;
  641. padding: 24rpx;
  642. background-color: #ffffff;
  643. border-radius: 8rpx;
  644. .consultation-item-container {
  645. margin-bottom: 24rpx;
  646. border-bottom: 2px solid #888888;
  647. padding-bottom: 24rpx;
  648. }
  649. .consultation-item-container:last-child {
  650. margin-bottom: 0;
  651. border-bottom: 0;
  652. padding-bottom: 0;
  653. }
  654. .question,
  655. .answer {
  656. .label {
  657. justify-content: space-between;
  658. margin-bottom: 16rpx;
  659. font-weight: 700;
  660. }
  661. .content {
  662. line-height: 40rpx;
  663. }
  664. }
  665. .answer {
  666. margin-top: 24rpx;
  667. }
  668. }
  669. .daywork-container {
  670. margin-top: 24rpx;
  671. padding: 24rpx;
  672. background-color: #ffffff;
  673. border: 1px solid #bcbcbc;
  674. .result {
  675. align-items: center;
  676. .label {
  677. width: 112rpx;
  678. }
  679. input {
  680. flex: 1;
  681. height: 56rpx;
  682. border: 1px solid #9f9f9f;
  683. font-size: 28rpx;
  684. text-align: center;
  685. }
  686. }
  687. .remark {
  688. margin-top: 24rpx;
  689. .label {
  690. width: 112rpx;
  691. }
  692. textarea {
  693. flex: 1;
  694. border: 1px solid #9f9f9f;
  695. height: 168rpx;
  696. }
  697. }
  698. .btns-container {
  699. margin-top: 24rpx;
  700. .finished-btn {
  701. display: flex;
  702. flex: 1;
  703. height: 80rpx;
  704. background-color: #fc6565;
  705. color: #ffffff;
  706. text-align: center;
  707. justify-content: center;
  708. align-items: center;
  709. border-radius: 8rpx;
  710. }
  711. .question-btn {
  712. width: 80rpx;
  713. align-items: flex-end;
  714. image {
  715. width: 48rpx;
  716. height: 48rpx;
  717. }
  718. text {
  719. font-size: 24rpx;
  720. }
  721. }
  722. }
  723. }
  724. </style>