form.vue 22 KB

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