form.vue 20 KB

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