experimentReport.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. <template>
  2. <u-popup :show="show" @close="cancel" :closeable="false">
  3. <view class="mainBox">
  4. <uni-nav-bar
  5. fixed="true"
  6. statusBar="true"
  7. left-icon="back"
  8. title="实验"
  9. @clickLeft="cancel"
  10. >
  11. </uni-nav-bar>
  12. <view class="wrapper">
  13. <view class="herder_item">
  14. <view class="herder_text"></view>
  15. <view class="herder_view"> 实验时间 </view>
  16. </view>
  17. <view class="marginTop20">
  18. <uni-datetime-picker
  19. v-if="type == 'edit'"
  20. type="datetime"
  21. v-model="form.experimentalTime"
  22. ></uni-datetime-picker>
  23. <u-input
  24. v-else
  25. :disabled="true"
  26. placeholder=" "
  27. border="surround"
  28. :value="form.experimentalTime"
  29. ></u-input>
  30. </view>
  31. <view class="herder_item marginTop20">
  32. <view class="herder_text"></view>
  33. <view class="herder_view"> 执行标准 </view>
  34. </view>
  35. <u--input
  36. suffixIcon="arrow-right"
  37. style="background-color: #fff"
  38. :disabledColor="'#ffffff'"
  39. :disabled="true"
  40. class="marginTop20"
  41. placeholder=" "
  42. border="surround"
  43. :value="
  44. getDictValue('质检标准类型', projectData.qualityStandardType + '')
  45. "
  46. >
  47. </u--input>
  48. <view class="herder_item marginTop20">
  49. <view class="herder_text"></view>
  50. <view class="herder_view"> 实验室 </view>
  51. </view>
  52. <view class="marginTop20">
  53. <uni-data-picker
  54. v-if="type == 'edit'"
  55. :disabled="type == 'view'"
  56. v-model="form.workshopName"
  57. placeholder="请选择"
  58. :localdata="laboratoryList"
  59. @change="getWorkshopId"
  60. >
  61. </uni-data-picker>
  62. <u-input
  63. v-else
  64. :disabled="true"
  65. placeholder=" "
  66. border="surround"
  67. :value="form.workshopName"
  68. ></u-input>
  69. </view>
  70. <!-- <view class="herder_item marginTop20">
  71. <view class="herder_text"></view>
  72. <view class="herder_view">
  73. 实验设备
  74. </view>
  75. </view> -->
  76. <view v-for="(item, index) in form.experimentEquipmentList">
  77. <view
  78. class="herder_item marginTop20"
  79. @click="delEquipmentList(index)"
  80. >
  81. <view class="herder_text"></view>
  82. <view class="herder_view"> 实验设备{{ index + 1 }} </view>
  83. <u-icon
  84. name="trash-fill"
  85. style="margin-ledt: 10rpx"
  86. color="red"
  87. v-if="type == 'edit'"
  88. ></u-icon>
  89. </view>
  90. <u--input
  91. class="marginTop20"
  92. readonly
  93. placeholder="请选择"
  94. border="surround"
  95. :disabled="type == 'view'"
  96. @click.native="add(index, 'experimentEquipmentList', 2)"
  97. v-model="item.equipmentName"
  98. >
  99. </u--input>
  100. <view class="herder_item marginTop20">
  101. <view class="herder_text"></view>
  102. <view class="herder_view"> 开始时间 </view>
  103. </view>
  104. <uni-datetime-picker
  105. v-if="type == 'edit'"
  106. type="datetime"
  107. class="marginTop20"
  108. v-model="item.startTime"
  109. ></uni-datetime-picker>
  110. <u-input
  111. v-else
  112. :disabled="true"
  113. placeholder=" "
  114. border="surround"
  115. class="marginTop20"
  116. :value="item.startTime"
  117. ></u-input>
  118. <view class="herder_item marginTop20">
  119. <view class="herder_text"></view>
  120. <view class="herder_view"> 结束时间 </view>
  121. </view>
  122. <uni-datetime-picker
  123. v-if="type == 'edit'"
  124. type="datetime"
  125. class="marginTop20"
  126. v-model="item.endTime"
  127. ></uni-datetime-picker>
  128. <u-input
  129. v-else
  130. :disabled="true"
  131. placeholder=" "
  132. border="surround"
  133. class="marginTop20"
  134. :value="item.endTime"
  135. ></u-input>
  136. <view class="herder_item marginTop20">
  137. <view class="herder_text"></view>
  138. <view class="herder_view"> 运行参数 </view>
  139. </view>
  140. <u-input
  141. class="marginTop20"
  142. placeholder="请输入内容"
  143. border="surround"
  144. :disabled="type == 'view'"
  145. v-model="item.operatingParameters"
  146. >
  147. </u-input>
  148. </view>
  149. <view class="marginTop20" v-if="type == 'edit'">
  150. <view class="experimentP" @click="addExperimentEquipmentList"
  151. ><u-icon name="plus-circle" style="margin-right: 10rpx"></u-icon
  152. >添加实验设备
  153. </view>
  154. </view>
  155. <view class="herder_item marginTop20">
  156. <view class="herder_text"></view>
  157. <view class="herder_view"> 工艺要求 </view>
  158. </view>
  159. <view class="marginTop20 defValue">
  160. {{ form.processRequirementsJson }}
  161. </view>
  162. <view class="herder_item marginTop20">
  163. <view class="herder_text"></view>
  164. <view class="herder_view"> 实验工具 </view>
  165. <u-badge max="99" :value="form.toolJson.length"></u-badge>
  166. </view>
  167. <view class="marginTop20">
  168. <view class="experimentP" @click="addTool('toolJson')"
  169. ><u-icon name="plus-circle" style="margin-right: 10rpx"></u-icon>
  170. {{ type == "view" ? "查看实验工具" : "添加实验工具" }}
  171. </view>
  172. </view>
  173. <view class="herder_item marginTop20">
  174. <view class="herder_text"></view>
  175. <view class="herder_view"> 实验耗材 </view>
  176. <u-badge max="99" :value="form.consumablesJson.length"></u-badge>
  177. </view>
  178. <view class="marginTop20">
  179. <view class="experimentP" @click="addTool('consumablesJson')"
  180. ><u-icon name="plus-circle" style="margin-right: 10rpx"></u-icon>
  181. {{ type == "view" ? "查看实验耗材" : "添加实验耗材" }}
  182. </view>
  183. </view>
  184. <view class="herder_item marginTop20">
  185. <view class="herder_text"></view>
  186. <view class="herder_view"> 实验过程 </view>
  187. </view>
  188. <experimentationProcess
  189. ref="experimentationProcess1"
  190. :readonly="type == 'view'"
  191. class="marginTop20"
  192. ></experimentationProcess>
  193. <view class="herder_item marginTop20">
  194. <view class="herder_text"></view>
  195. <view class="herder_view"> 实验记录 </view>
  196. </view>
  197. <experimentationProcess
  198. ref="experimentationProcess2"
  199. :readonly="type == 'view'"
  200. class="marginTop20"
  201. ></experimentationProcess>
  202. <view class="herder_item marginTop20">
  203. <view class="herder_text"></view>
  204. <view class="herder_view"> 实验结果 </view>
  205. </view>
  206. <u--textarea
  207. class="marginTop20"
  208. placeholder="请输入内容"
  209. border="surround"
  210. autoHeight
  211. :disabled="type == 'view'"
  212. v-model="form.resultsDescription"
  213. ></u--textarea>
  214. <view class="herder_item marginTop20">
  215. <view class="herder_text"></view>
  216. <view class="herder_view"> 实验结论 </view>
  217. </view>
  218. <uni-data-picker
  219. v-if="type != 'view'"
  220. class="marginTop20"
  221. v-model="form.results"
  222. placeholder="请选择"
  223. :localdata="[
  224. {
  225. text: '合格',
  226. value: 1,
  227. },
  228. {
  229. text: '不合格',
  230. value: 2,
  231. },
  232. ]"
  233. >
  234. </uni-data-picker>
  235. <u-input
  236. disabled
  237. v-else
  238. class="marginTop20"
  239. placeholder="请输入内容"
  240. border="surround"
  241. :value="form.results == 2 ? '不合格' : '合格'"
  242. >
  243. </u-input>
  244. <view class="herder_item marginTop20">
  245. <view class="herder_text"></view>
  246. <view class="herder_view"> 实验图片 </view>
  247. </view>
  248. <view
  249. v-if="type != 'view'"
  250. class="marginTop20 imgAdd"
  251. @click="chooseImage('imgUrl')"
  252. >
  253. <u-icon name="camera"></u-icon>
  254. </view>
  255. <PreviewPhoto
  256. :type="type"
  257. @imagedelete="imagedelete"
  258. :imageList="imgUrl"
  259. />
  260. <view class="herder_item marginTop20">
  261. <view class="herder_text"></view>
  262. <view class="herder_view"> 附件图片 </view>
  263. </view>
  264. <view
  265. v-if="type != 'view'"
  266. class="marginTop20 imgAdd"
  267. @click="chooseImage('attachmentUrl')"
  268. >
  269. <u-icon name="camera"></u-icon>
  270. </view>
  271. <PreviewPhoto
  272. :type="type"
  273. @imagedelete="imagedelete1"
  274. :imageList="attachmentUrl"
  275. />
  276. </view>
  277. <view style="height: 84rpx"></view>
  278. <view class="footerButton">
  279. <u-button @click="cancel" type="default" text="返回"></u-button>
  280. <u-button
  281. v-if="type != 'view'"
  282. type="primary"
  283. @click="save"
  284. text="保存"
  285. ></u-button>
  286. </view>
  287. </view>
  288. <u-popup :show="toolJsonShow" :closeable="false" v-if="toolJsonShow">
  289. <view style="min-height: 400rpx; position: relative">
  290. <uni-nav-bar
  291. fixed="true"
  292. statusBar="true"
  293. left-icon="back"
  294. :title="toolKey == 'toolJson' ? '实验工具' : '实验耗材'"
  295. @clickLeft="toolJsonShow = false"
  296. >
  297. </uni-nav-bar>
  298. <view
  299. v-for="(item, index) in form[toolKey]"
  300. :key="index"
  301. style="position: relative"
  302. >
  303. <myCard
  304. :item="item"
  305. :index="index + 1"
  306. :btnList="[
  307. {
  308. name: '删除',
  309. apiName: 'del',
  310. btnType: 'error ',
  311. type: '2',
  312. pageUrl: '',
  313. judge: [
  314. {
  315. fn: isBtn,
  316. },
  317. ],
  318. },
  319. ]"
  320. :columns="columns()"
  321. @del="del(index)"
  322. >
  323. <u-input
  324. slot="batchNo"
  325. placeholder="请输入"
  326. border="surround"
  327. :disabled="type == 'view'"
  328. v-model="item.batchNo"
  329. >
  330. </u-input>
  331. <u--textarea
  332. slot="remark"
  333. placeholder="请输入内容"
  334. border="surround"
  335. autoHeight
  336. :disabled="type == 'view'"
  337. v-model="item.remark"
  338. ></u--textarea>
  339. </myCard>
  340. </view>
  341. <view class="add" @click="add(-1, toolKey, 1)" v-if="type == 'edit'">
  342. <u-icon name="plus" color="#fff"></u-icon>
  343. </view>
  344. </view>
  345. </u-popup>
  346. </u-popup>
  347. </template>
  348. <script>
  349. const defForm = {
  350. experimentalTime: "",
  351. qualityStandardType: "",
  352. workshopId: "",
  353. workshopName: "",
  354. processRequirementsJson: "",
  355. resultsDescription: "",
  356. results: 1,
  357. experimentEquipmentList: [],
  358. imgUrl: [],
  359. attachmentUrl: [],
  360. toolJson: [],
  361. consumablesJson: [],
  362. correlationId: "",
  363. qualityStandardName: "",
  364. qualityStandardId: "",
  365. qualityWorkOrderId: "",
  366. };
  367. import dictMixns from "@/mixins/dictMixins";
  368. import {
  369. getFactoryarea,
  370. getByIdExperiment,
  371. saveExperiment,
  372. updateExperiment,
  373. } from "@/api/inspectionWork/index.js";
  374. import PreviewPhoto from "@/pages/maintenance/check/components/PreviewPhoto.vue";
  375. import myCard from "@/pages/saleManage/components/myCard.vue";
  376. import experimentationProcess from "@/components/templateDiv/experimentationProcess.vue";
  377. export default {
  378. mixins: [dictMixns],
  379. components: {
  380. PreviewPhoto,
  381. myCard,
  382. experimentationProcess,
  383. },
  384. props: {
  385. type: {
  386. type: String,
  387. default: "view",
  388. },
  389. },
  390. computed: {
  391. imgUrl() {
  392. return this.form.imgUrl.map((item) => {
  393. return this.getFileUrl(item);
  394. });
  395. },
  396. attachmentUrl() {
  397. return this.form.attachmentUrl.map((item) => {
  398. return this.getFileUrl(item);
  399. });
  400. },
  401. },
  402. data() {
  403. return {
  404. dateShow: false,
  405. toolJsonShow: false,
  406. form: {
  407. ...JSON.parse(JSON.stringify(defForm)),
  408. },
  409. laboratoryList: [],
  410. show: false,
  411. currentIndex: "",
  412. currentKey: "",
  413. toolKey: "",
  414. projectData: {},
  415. };
  416. },
  417. created() {
  418. uni.$off("setProduceList");
  419. uni.$on("setProduceList", (data) => {
  420. if (this.currentKey == "experimentEquipmentList") {
  421. this.$set(
  422. this.form[this.currentKey][this.currentIndex],
  423. "equipmentId",
  424. data[0].id,
  425. );
  426. this.$set(
  427. this.form[this.currentKey][this.currentIndex],
  428. "equipmentName",
  429. data[0].name,
  430. );
  431. } else {
  432. this.form[this.currentKey].push(...data);
  433. }
  434. });
  435. },
  436. onUnload() {
  437. uni.$off("setProduceList");
  438. },
  439. methods: {
  440. isBtn() {
  441. return this.type == "edit";
  442. },
  443. columns() {
  444. console.log(this.toolKey, "this.toolKey");
  445. if (this.toolKey == "toolJson") {
  446. return [
  447. [
  448. {
  449. label: "工具名称:",
  450. prop: "name",
  451. type: "title",
  452. },
  453. ],
  454. [
  455. {
  456. label: "型号:",
  457. prop: "modelType",
  458. },
  459. ],
  460. [
  461. {
  462. label: "编号:",
  463. prop: "code",
  464. },
  465. ],
  466. [
  467. {
  468. label: "操作:",
  469. prop: "action",
  470. type: "action",
  471. className: "perce100",
  472. },
  473. ],
  474. ];
  475. } else {
  476. return [
  477. [
  478. {
  479. label: "耗材名称:",
  480. prop: "name",
  481. type: "title",
  482. },
  483. ],
  484. [
  485. {
  486. label: "编号:",
  487. prop: "code",
  488. },
  489. ],
  490. [
  491. {
  492. label: "批次号:",
  493. prop: "batchNo",
  494. slot: "batchNo",
  495. },
  496. ],
  497. [
  498. {
  499. label: "浓度:",
  500. prop: "specification",
  501. },
  502. ],
  503. [
  504. {
  505. label: "来源:",
  506. prop: "gys",
  507. },
  508. ],
  509. [
  510. {
  511. label: "过程:",
  512. prop: "remark",
  513. slot: "remark",
  514. },
  515. ],
  516. [
  517. {
  518. label: "操作:",
  519. prop: "action",
  520. type: "action",
  521. className: "perce100",
  522. },
  523. ],
  524. ];
  525. }
  526. },
  527. getFileUrl(item) {
  528. let fileNames = item.storePath.split("/");
  529. let url =
  530. this.apiUrl +
  531. "/main/file/getFile?objectName=" +
  532. item.storePath +
  533. "&fullfilename=" +
  534. fileNames[fileNames.length - 1];
  535. return url;
  536. },
  537. getWorkshopId({ detail }) {
  538. if (detail.value[0]) {
  539. this.form.workshopId = detail.value[0].value;
  540. } else {
  541. this.form.workshopId = "";
  542. }
  543. },
  544. add(index, key, type) {
  545. this.currentIndex = index;
  546. this.currentKey = key;
  547. uni.navigateTo({
  548. url: "/pages/purchasingManage/components/selectProduce?isAll=" + type,
  549. });
  550. },
  551. imagedelete(index) {
  552. this.form.imgUrl.splice(index, 1);
  553. },
  554. imagedelete1(index) {
  555. this.form.attachmentUrl.splice(index, 1);
  556. },
  557. addTool(key) {
  558. this.toolKey = key;
  559. this.toolJsonShow = true;
  560. },
  561. del(index) {
  562. this.form[this.toolKey].splice(index, 1);
  563. },
  564. delEquipmentList(index) {
  565. if (this.view == "view") {
  566. return;
  567. }
  568. this.form.experimentEquipmentList.splice(index, 1);
  569. },
  570. async open(row, type) {
  571. this.projectData = row;
  572. if (row.experimentId) {
  573. this.$set(this, "form", await getByIdExperiment(row.experimentId));
  574. } else {
  575. this.form.correlationId = row.id;
  576. this.form.qualityStandardName = row.qualityStandardName;
  577. this.form.qualityStandardId = row.qualityStandardId;
  578. this.form.qualityWorkOrderId = row.qualityWorkOrderId;
  579. this.form.recordJson = row.recordJson;
  580. this.form.procedureJson = row.procedureJson;
  581. if (row.symbol) {
  582. this.form.processRequirementsJson += row.symbol;
  583. }
  584. if (row.textType == 3) {
  585. this.form.processRequirementsJson +=
  586. row.minValue + "-" + row.maxValue;
  587. } else {
  588. this.form.processRequirementsJson += row.defaultValue;
  589. }
  590. if (row.unitName) {
  591. this.form.processRequirementsJson += row.unitName;
  592. }
  593. }
  594. getFactoryarea({
  595. pageNum: 1,
  596. size: 1000,
  597. type: 3,
  598. }).then((res) => {
  599. this.laboratoryList = res.list.map((item) => {
  600. return {
  601. text: item.workshopName,
  602. value: item.workshopId,
  603. };
  604. });
  605. });
  606. this.show = true;
  607. this.$nextTick(() => {
  608. // console.log(this.form,'this.form')
  609. if (this.form.procedureJson) {
  610. this.$refs.experimentationProcess1.init(
  611. this.form.procedureJson.tempJson,
  612. );
  613. }
  614. if (this.form.recordJson) {
  615. this.$refs.experimentationProcess2.init(
  616. this.form.recordJson.tempJson,
  617. );
  618. }
  619. });
  620. // this.init()
  621. },
  622. chooseImage(key) {
  623. const _this = this;
  624. uni.chooseImage({
  625. count: 9, //默认9
  626. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  627. success: function (res) {
  628. uni.showLoading({
  629. title: "加载中",
  630. });
  631. _this.uploadFile(res.tempFilePaths).then((res) => {
  632. _this.form[key].push(...res);
  633. console.log(this.form);
  634. // res.forEach(item => {
  635. // let fileNames = item.storePath.split('/')
  636. // let url = _this.apiUrl +
  637. // '/main/file/getFile?objectName=' + item.storePath +
  638. // '&fullfilename=' + fileNames[fileNames.length -
  639. // 1]
  640. // _this.imgs.push(url)
  641. // })
  642. uni.hideLoading();
  643. });
  644. },
  645. });
  646. },
  647. uploadFile(list) {
  648. let PromiseAll = [];
  649. const apiUrl = this.apiUrl;
  650. const token = uni.getStorageSync("token"); //取存本地的token
  651. list.forEach((item) => {
  652. PromiseAll.push(
  653. new Promise((resolve, reject) => {
  654. uni.uploadFile({
  655. url: apiUrl + "/main/file/upload",
  656. filePath: item,
  657. name: "multiPartFile",
  658. header: {
  659. authorization: token,
  660. },
  661. success: (uploadFileRes) => {
  662. let data = JSON.parse(uploadFileRes.data);
  663. resolve(data.data);
  664. },
  665. });
  666. }),
  667. );
  668. });
  669. return Promise.all(PromiseAll);
  670. },
  671. cancel() {
  672. this.form = {
  673. ...JSON.parse(JSON.stringify(defForm)),
  674. };
  675. this.show = false;
  676. },
  677. addExperimentEquipmentList() {
  678. this.form.experimentEquipmentList.push({});
  679. },
  680. // 时间字段补全时分秒
  681. formatDateTime(value) {
  682. if (!value) return value;
  683. // 先去掉首尾空格
  684. value = String(value).trim();
  685. // 已经有时分秒则直接返回
  686. if (/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/.test(value)) {
  687. return value;
  688. }
  689. // 只有日期则补上 00:00:00
  690. if (/^\d{4}-\d{2}-\d{2}$/.test(value)) {
  691. return value + " 00:00:00";
  692. }
  693. return value;
  694. },
  695. save() {
  696. // if (!this.form.qualityResultContent) {
  697. // this.$refs.uToast.show({
  698. // type: "error",
  699. // icon: false,
  700. // message: "请填写质检内容!",
  701. // }, )
  702. // return
  703. // }
  704. // if (!this.form.sampleQuantity) {
  705. // this.$refs.uToast.show({
  706. // type: "error",
  707. // icon: false,
  708. // message: "请填写样品数!",
  709. // }, )
  710. // return
  711. // }
  712. let data = JSON.parse(JSON.stringify(this.form));
  713. // 时间字段补全时分秒
  714. data.experimentalTime = this.formatDateTime(data.experimentalTime);
  715. if (data.experimentEquipmentList) {
  716. data.experimentEquipmentList.forEach((item) => {
  717. item.startTime = this.formatDateTime(item.startTime);
  718. item.endTime = this.formatDateTime(item.endTime);
  719. });
  720. }
  721. let procedureJson = this.$refs.experimentationProcess1.getValue();
  722. let recordJson = this.$refs.experimentationProcess2.getValue();
  723. if (procedureJson) {
  724. data.procedureJson = {
  725. tempJson: JSON.stringify(procedureJson),
  726. };
  727. }
  728. if (recordJson) {
  729. data.recordJson = {
  730. tempJson: JSON.stringify(recordJson),
  731. };
  732. }
  733. let api = data.id ? updateExperiment : saveExperiment;
  734. // console.log(data,'data')
  735. // return
  736. api(data)
  737. .then((msg) => {
  738. this.$emit("success", {
  739. workId: data.qualityWorkOrderId,
  740. projectId: this.projectData.id,
  741. });
  742. this.cancel();
  743. })
  744. .catch((e) => {
  745. this.cancel();
  746. });
  747. },
  748. },
  749. };
  750. </script>
  751. <style lang="scss" scoped>
  752. .mainBox {
  753. background-color: #f3f8fb;
  754. height: 100vh;
  755. font-size: 27rpx;
  756. overflow-y: auto;
  757. }
  758. .footerButton {
  759. width: 100%;
  760. height: 84rpx;
  761. display: flex;
  762. position: fixed;
  763. bottom: 0;
  764. z-index: 10;
  765. background-color: #fff;
  766. /deep/.u-button {
  767. height: 100%;
  768. }
  769. > view {
  770. flex: 1;
  771. }
  772. }
  773. .defValue {
  774. color: #c1353c;
  775. text-indent: 2ch;
  776. }
  777. /deep/.uni-textarea {
  778. padding: 0;
  779. max-height: auto;
  780. }
  781. /deep/uni-textarea {
  782. max-height: auto;
  783. }
  784. /deep/.input-value {
  785. font-size: 28rpx !important;
  786. height: 70rpx;
  787. }
  788. .defValue {
  789. color: #c1353c;
  790. text-indent: 2ch;
  791. }
  792. .marginTop20 {
  793. margin-top: 30rpx;
  794. }
  795. .herder_item {
  796. display: flex;
  797. font-weight: bold;
  798. // font-size: 26rpx;
  799. .herder_text {
  800. min-width: 10rpx;
  801. height: 32rpx;
  802. border-radius: 10rpx;
  803. background: #00c0a1;
  804. margin-right: 12rpx;
  805. margin-top: 5rpx;
  806. }
  807. }
  808. .wrapper {
  809. width: 720rpx;
  810. background: #fff;
  811. margin: 20rpx auto 0;
  812. border-radius: 30rpx;
  813. padding: 26rpx;
  814. }
  815. .experimentP {
  816. width: 100%;
  817. background-color: #f7f8fa;
  818. border-radius: 20rpx;
  819. height: 80rpx;
  820. justify-content: center;
  821. align-items: center;
  822. display: flex;
  823. font-weight: 800;
  824. }
  825. .imgAdd {
  826. width: 160rpx;
  827. height: 160rpx;
  828. background-color: #f7f8fa;
  829. border-radius: 20rpx;
  830. display: flex;
  831. justify-content: center;
  832. align-items: center;
  833. }
  834. .add {
  835. width: 96rpx;
  836. height: 96rpx;
  837. border-radius: 48rpx;
  838. background: #3c9cff;
  839. position: absolute;
  840. bottom: 50rpx;
  841. right: 24rpx;
  842. display: flex;
  843. align-items: center;
  844. justify-content: center;
  845. }
  846. </style>