form.vue 22 KB

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