form.vue 21 KB

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