form.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  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 (store.userInfo.permissions.some(item => item === 'business:outsourcedInspection:edit')) {
  208. return true
  209. }
  210. if (initStatus.value == 0) {
  211. return true
  212. }
  213. if (processInspecion.value.firstUpdaterId == store.userInfo.userId) {
  214. return true
  215. }
  216. return false
  217. }
  218. const consul = [{
  219. value: 0,
  220. text: "待确认",
  221. type: "color: #fcab53"
  222. }, {
  223. value: 2,
  224. text: "合格",
  225. type: "color: #55ff7f"
  226. }, {
  227. value: 1,
  228. text: "不合格",
  229. type: "color: #ff0c2c"
  230. }]
  231. const range = [{
  232. value: 0,
  233. text: "待确认",
  234. type: "color: #fcab53"
  235. }, {
  236. value: 1,
  237. text: "合格",
  238. type: "color: #55ff7f"
  239. }, {
  240. value: 2,
  241. text: "不合格",
  242. type: "color: #ff0c2c"
  243. }]
  244. /***************************** 页面生命周期函数 *****************************/
  245. onMounted(() => {
  246. const instance = getCurrentInstance().proxy
  247. const eventChannel = instance.getOpenerEventChannel();
  248. eventChannel.on('outsourcedInspectionFrom', function(data) {
  249. console.log('outsourcedInspectionFrom', data)
  250. if (data && data.data) {
  251. processInspecion.value.lot = data.data;
  252. }
  253. })
  254. })
  255. onShow(() => {
  256. if (store.processInspection != null) {
  257. uni.showLoading({
  258. title: '加载中'
  259. });
  260. processInspecion.value = store.processInspection
  261. selectOutsourcedInspecion(processInspecion.value).then(res => {
  262. console.log("res", res);
  263. if (res.code == 200) {
  264. processInspecion.value = res.data;
  265. initStatus.value = res.data.status
  266. unfitInfos.value = res.data.rejects;
  267. oldUnfitInfos.value = res.data.oldRejects;
  268. consultations.value = res.data.dayworkItemConsults;
  269. console.log("res", res);
  270. uni.hideLoading();
  271. // getInspecion();
  272. } else {
  273. uni.showToast({
  274. icon: 'none',
  275. title: res.msg,
  276. duration: 2000
  277. })
  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. //打开电子图纸
  292. function handleDrawingMenu() {
  293. var outsourceOrderDetailId = encodeURIComponent(processInspecion.value.outsourceOrderDetailId);
  294. var lotCode = encodeURIComponent(processInspecion.value.lot.lotCode);
  295. // 构建查询参数字符串
  296. var queryParam = `param1=${outsourceOrderDetailId}&param2=${lotCode}`;
  297. // 使用模板字符串构建完整的URL
  298. var navigateUrl = `/pages/outsourcedDrawingMenu/index?${queryParam}`;
  299. // 导航到指定页面
  300. uni.navigateTo({
  301. url: navigateUrl
  302. });
  303. }
  304. const rejectNumberChange = () => {
  305. let sumReject = 0
  306. let sumDisqualificationNum = 0
  307. let sumExaminingNum = 0
  308. unfitInfos.value.forEach(v => {
  309. sumReject += (v.rejectNum != null ? Number(v.rejectNum) : 0)
  310. sumDisqualificationNum += (v.disqualificationNum != null ? Number(v.disqualificationNum) : 0)
  311. sumExaminingNum += (v.examiningNum != null ? Number(v.examiningNum) : 0)
  312. })
  313. processInspecion.value.rejectNum = sumReject
  314. processInspecion.value.disqualificationNum = sumDisqualificationNum
  315. processInspecion.value.examiningNum = sumExaminingNum
  316. console.log(processInspecion.value)
  317. }
  318. //查询咨询列表
  319. function getInspecion() {
  320. processInspecion.value = store.processInspection
  321. selectInspecion(processInspecion.value).then(res => {
  322. console.log("咨询", res);
  323. if (res.code == 200) {
  324. console.log("res", res);
  325. } else {
  326. uni.showToast({
  327. icon: 'none',
  328. title: res.msg,
  329. duration: 2000
  330. })
  331. }
  332. });
  333. }
  334. //结束报工按钮
  335. function endWork() {
  336. let unf = unfitInfos.value;
  337. for (var i = 0; i < unfitInfos.value.length; i++) {
  338. console.log("废品信息");
  339. // if (!unf[i].checkStandard && !unf[i].checkResult && !unf[i].rejectNum) {
  340. // uni.showToast({
  341. // icon: 'none',
  342. // title: "废品信息不能为空",
  343. // duration: 2000
  344. // })
  345. // return;
  346. // }
  347. if (unf[i].checkStandard == '' || unf[i].checkStandard == null) {
  348. uni.showToast({
  349. icon: 'none',
  350. title: "检查标准不能为空",
  351. duration: 2000
  352. })
  353. return;
  354. }
  355. // if (unf[i].checkResult == '' || unf[i].checkResult == null) {
  356. // uni.showToast({
  357. // icon: 'none',
  358. // title: "检查结果不能为空",
  359. // duration: 2000
  360. // })
  361. // return;
  362. // }
  363. if (unf[i].rejectNum == null) {
  364. uni.showToast({
  365. icon: 'none',
  366. title: "废品量不能为空",
  367. duration: 2000
  368. })
  369. return;
  370. }
  371. if (unf[i].rejectNum < 0 || unf[i].examiningNum < 0 || unf[i].disqualificationNum < 0) {
  372. uni.showToast({
  373. icon: 'none',
  374. title: '检查量,不良品量,废品量不能小于0',
  375. duration: 2000
  376. })
  377. return
  378. }
  379. if (unf[i].examiningNum > processInspecion.value.lot.pudName) {
  380. uni.showToast({
  381. icon: 'none',
  382. title: '检查量不能大于投产量'
  383. })
  384. return
  385. }
  386. }
  387. let sumReject = 0
  388. unfitInfos.value.forEach(v => {
  389. sumReject += Number(v.rejectNum)
  390. })
  391. if (processInspecion.value.rejectNum != sumReject) {
  392. uni.showToast({
  393. icon: 'none',
  394. title: "废品量与废品信息不一致",
  395. duration: 2000
  396. })
  397. return;
  398. }
  399. if (processInspecion.value.rejectNum > processInspecion.value.lot.pudName) {
  400. uni.showToast({
  401. icon: 'none',
  402. title: '废品量不能大于投产量'
  403. })
  404. return
  405. }
  406. if (processInspecion.value.disqualificationNum > processInspecion.value.lot.pudName) {
  407. uni.showToast({
  408. icon: 'none',
  409. title: '不良品量不能大于投产量'
  410. })
  411. return
  412. }
  413. save();
  414. }
  415. function save() {
  416. const currentTime = Date.now();
  417. // 检查是否已经过去了 2 秒
  418. if (currentTime - lastRequestTimestamp.value < 2000) {
  419. // 如果在 2 秒 内已经点击,那么不执行
  420. uni.showToast({
  421. icon: 'none',
  422. title: `请勿重复点击`,
  423. duration: 2000
  424. })
  425. return;
  426. }
  427. let pages = getCurrentPages();
  428. processInspecion.value.dayworkItemConsults = consultations.value;
  429. processInspecion.value.dayworkItemRejects = unfitInfos.value;
  430. processInspecion.value.user = store.userInfo;
  431. saveOutsourcedInspecion(processInspecion.value).then(res => {
  432. if (res.code == 200) {
  433. let index = 0;
  434. for (let i = 0; i < pages.length; i++) {
  435. if (pages[i].$page.fullPath == "/pages/outsourcedInspection/index") {
  436. index = pages.length - i - 1;
  437. }
  438. }
  439. console.log("index", index);
  440. uni.navigateBack({
  441. delta: index
  442. });
  443. } else {
  444. uni.showToast({
  445. icon: 'none',
  446. title: res.msg,
  447. duration: 2000
  448. })
  449. }
  450. });
  451. }
  452. //咨询样式
  453. function selectType(item) {
  454. for (var i = 0; i < consul.length; i++) {
  455. if (item.status == consul[i].value) {
  456. return consul[i].type
  457. }
  458. }
  459. }
  460. const addWasteInfo = (data) => {
  461. const info = {
  462. title: data.title,
  463. checkStandard: data.standard
  464. }
  465. unfitInfos.value.push(info)
  466. }
  467. const addConsultation = (data) => {
  468. console.log(data)
  469. let info = data
  470. info.forEach(item => {
  471. item.status = 0
  472. })
  473. consultations.value = info
  474. isEventTriggered.value = true; // 更新标志位状态
  475. }
  476. /***************************** 定义了一些事件 *****************************/
  477. // 添加不合格信息
  478. const handleAddWaste = () => {
  479. let info = {}
  480. unfitInfos.value.push(info)
  481. // 监听事件,暂时不用,后续会使用
  482. // uni.$once('addWasteInfoEvent', (data) => {
  483. // addWasteInfo(data)
  484. // })
  485. // uni.navigateTo({
  486. // url: "/pages/processInspection/options"
  487. // })
  488. }
  489. // 删除不合格信息
  490. const handleDelWaste = (index) => {
  491. uni.showModal({
  492. title: '提示',
  493. content: '确定删除该项?',
  494. success: function(res) {
  495. if (res.confirm) {
  496. unfitInfos.value.splice(index, 1)
  497. rejectNumberChange()
  498. } else if (res.cancel) {
  499. return
  500. }
  501. }
  502. })
  503. }
  504. // 咨询
  505. const handleAddConsultation = () => {
  506. isEventTriggered.value = false;
  507. // 监听事件
  508. uni.$once('wasteConsultationEvent', (data) => {
  509. if (!isEventTriggered.value) {
  510. // 如果事件尚未触发,则执行事件触发逻辑
  511. addConsultation(data)
  512. }
  513. })
  514. uni.navigateTo({
  515. url: "/pages/outsourcedInspection/consultation",
  516. success: (res) => {
  517. // 通过eventChannel向被打开页面传送数据
  518. res.eventChannel.emit("outsourcedInspectionConsultation", {
  519. data: processInspecion.value.lot
  520. })
  521. }
  522. })
  523. }
  524. </script>
  525. <style lang="scss">
  526. .page-container {
  527. // height: 100%;
  528. background-color: #ececec;
  529. font-size: 28rpx;
  530. >.title {
  531. font-weight: 700;
  532. margin: 24rpx 16rpx;
  533. }
  534. }
  535. .carrier-info {
  536. margin: 32rpx 16rpx 0 16rpx;
  537. padding: 24rpx;
  538. background-color: #ffffff;
  539. border-radius: 8rpx;
  540. .carrier-code {
  541. font-size: 32rpx;
  542. font-weight: 700;
  543. }
  544. .info-row {
  545. margin-top: 16rpx;
  546. color: #767676;
  547. .label {
  548. width: 160rpx;
  549. }
  550. .drawing-btn {
  551. padding: 12rpx 32rpx;
  552. background-color: #0055ff;
  553. color: #ffffff;
  554. border-radius: 12rpx;
  555. margin-left: auto;
  556. font-size: 28rpx;
  557. }
  558. .value {
  559. flex: 1;
  560. textarea {
  561. flex: 1;
  562. border: 1px solid #888888;
  563. box-sizing: border-box;
  564. padding: 16rpx;
  565. }
  566. }
  567. }
  568. }
  569. .unfit-title {
  570. margin-bottom: 24rpx;
  571. justify-content: space-between;
  572. align-items: center;
  573. text {
  574. font-size: 28rpx;
  575. font-weight: 700;
  576. }
  577. .add-btn {
  578. margin-right: 26rpx;
  579. padding: 12rpx 32rpx;
  580. background-color: #a4adb3;
  581. color: #ffffff;
  582. border-radius: 12rpx;
  583. font-size: 24rpx;
  584. }
  585. }
  586. .unfit-container {
  587. padding: 24rpx;
  588. margin: 0 16rpx;
  589. background-color: #ffffff;
  590. border-radius: 12rpx;
  591. .unfit-item-container {
  592. position: relative;
  593. >* {
  594. margin-bottom: 24rpx;
  595. }
  596. .title {
  597. font-weight: 700;
  598. justify-content: space-between;
  599. align-items: center;
  600. image {
  601. width: 40rpx;
  602. height: 40rpx;
  603. }
  604. }
  605. .standard {}
  606. .resu {
  607. width: 100%;
  608. align-items: center;
  609. input {
  610. margin-left: 20rpx;
  611. width: 200rpx;
  612. height: 56rpx;
  613. flex: 1;
  614. border: 1px solid #9f9f9f;
  615. font-size: 28rpx;
  616. }
  617. .label {
  618. width: 160rpx;
  619. }
  620. .value {
  621. flex: 1;
  622. textarea {
  623. flex: 1;
  624. border: 1px solid #888888;
  625. box-sizing: border-box;
  626. padding: 16rpx;
  627. }
  628. }
  629. }
  630. .result {
  631. border-bottom: 1px solid #9f9f9f;
  632. padding-bottom: 32rpx;
  633. align-items: center;
  634. .label {
  635. width: 160rpx;
  636. }
  637. .value {
  638. flex: 1;
  639. textarea {
  640. flex: 1;
  641. border: 1px solid #888888;
  642. box-sizing: border-box;
  643. padding: 16rpx;
  644. }
  645. }
  646. input {
  647. width: 280rpx;
  648. height: 56rpx;
  649. border: 1px solid #9f9f9f;
  650. font-size: 28rpx;
  651. &.number {
  652. width: 104rpx;
  653. text-align: center;
  654. }
  655. }
  656. }
  657. }
  658. .unfit-item-container:last-child {
  659. .result {
  660. border-bottom: none;
  661. padding-bottom: 0;
  662. }
  663. }
  664. }
  665. .consultation-container {
  666. margin: 0 16rpx;
  667. padding: 24rpx;
  668. background-color: #ffffff;
  669. border-radius: 8rpx;
  670. .consultation-item-container {
  671. margin-bottom: 24rpx;
  672. border-bottom: 2px solid #888888;
  673. padding-bottom: 24rpx;
  674. }
  675. .consultation-item-container:last-child {
  676. margin-bottom: 0;
  677. border-bottom: 0;
  678. padding-bottom: 0;
  679. }
  680. .question,
  681. .answer {
  682. .label {
  683. justify-content: space-between;
  684. margin-bottom: 16rpx;
  685. font-weight: 700;
  686. }
  687. .content {
  688. line-height: 40rpx;
  689. }
  690. }
  691. .answer {
  692. margin-top: 24rpx;
  693. }
  694. }
  695. .daywork-container {
  696. margin-top: 24rpx;
  697. padding: 24rpx;
  698. background-color: #ffffff;
  699. border: 1px solid #bcbcbc;
  700. .result {
  701. align-items: center;
  702. .label {
  703. width: 112rpx;
  704. }
  705. input {
  706. flex: 1;
  707. height: 56rpx;
  708. border: 1px solid #9f9f9f;
  709. font-size: 28rpx;
  710. text-align: center;
  711. }
  712. }
  713. .remark {
  714. margin-top: 24rpx;
  715. .label {
  716. width: 112rpx;
  717. }
  718. textarea {
  719. flex: 1;
  720. border: 1px solid #9f9f9f;
  721. height: 168rpx;
  722. }
  723. }
  724. .btns-container {
  725. margin-top: 24rpx;
  726. .finished-btn {
  727. display: flex;
  728. flex: 1;
  729. height: 80rpx;
  730. background-color: #fc6565;
  731. color: #ffffff;
  732. text-align: center;
  733. justify-content: center;
  734. align-items: center;
  735. border-radius: 8rpx;
  736. }
  737. .question-btn {
  738. width: 80rpx;
  739. align-items: flex-end;
  740. image {
  741. width: 48rpx;
  742. height: 48rpx;
  743. }
  744. text {
  745. font-size: 24rpx;
  746. }
  747. }
  748. }
  749. }
  750. </style>