form.vue 20 KB

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