mainPointsDetail.vue 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564
  1. <template>
  2. <view class="mainPointsDetailPage">
  3. <tm-modal v-if="showSelectModal" @click="clickModalhandle">
  4. <view class="checkItemResultModal">
  5. <view class="modalContent">
  6. <view class="modalBar">请选择查核结果</view>
  7. <scroll-view v-if="data.checkModelName != '访谈'" class="scroll" scroll-y="true">
  8. <view v-for="item in checkItemResultList"
  9. :class="[checkedSelectResultListIds.includes(item.id)?'list on':'list']" :key="item.id"
  10. @click.stop="selectResultHandle(item)">
  11. <image class="checkIcon"
  12. :src="`../../static/${!moreDeduction?'check-radio.png':'check-checkbox.png'}`" mode="">
  13. </image>
  14. {{item.resultName}}
  15. </view>
  16. </scroll-view>
  17. <scroll-view v-if="data.checkModelName == '访谈'" class="scroll" scroll-y="true">
  18. <view v-for="item in checkItemResultList"
  19. :class="[checkedSelectResultListIds[currentEditTextAreaIndex]&&checkedSelectResultListIds[currentEditTextAreaIndex].includes(item.id)?'list on':'list']"
  20. :key="item.id" @click.stop="selectResultHandle(item)">
  21. <image class="checkIcon"
  22. :src="`../../static/${!moreDeduction?'check-radio.png':'check-checkbox.png'}`" mode="">
  23. </image>
  24. {{item.resultName}}
  25. </view>
  26. </scroll-view>
  27. <view class="comfirmBtn" @click="commitSelectResult">确定</view>
  28. </view>
  29. </view>
  30. </tm-modal>
  31. <scroll-view scroll-y="true" class="scroll-y">
  32. <view class="checkItem">
  33. <view class="chBg">
  34. <image src="../../static/chahexiang-bg.png" mode="" class="img"></image>
  35. <text class="title">查核项</text>
  36. </view>
  37. <image src="../../static/tuli.png" mode="" class="tlImg" @click="toTuLi"></image>
  38. <view class="chContent">
  39. <view class="checkItemName">{{ data.checkItemName ? data.checkItemName : "" }}</view>
  40. <view class="checkPointName">{{ data.checkPointName ? data.checkPointName : "" }}</view>
  41. <view class="cont">
  42. <view class="floatLeft other">
  43. <view class="letterTitle2">{{ data.deptName ? data.deptName : "" }}</view>
  44. <view class="letterTitle">查核单位</view>
  45. </view>
  46. <view class="floatLeft borderLine"></view>
  47. <view class="floatLeft other">
  48. <view class="letterTitle2">{{ data.checkModelName ? data.checkModelName : "" }}</view>
  49. <view class="letterTitle">查核方式</view>
  50. </view>
  51. <view class="floatLeft borderLine"></view>
  52. <view class="floatLeft other">
  53. <view class="letterTitle2">{{ data.lastResult ? data.lastResult : "" }}</view>
  54. <view class="letterTitle">上次结果</view>
  55. </view>
  56. <view class="floatLeft borderLine"></view>
  57. <view class="floatLeft other">
  58. <view class="letterTitle2">{{ data.checkResult ? data.checkResult : "" }}</view>
  59. <view class="letterTitle">本次结果</view>
  60. </view>
  61. </view>
  62. <view class="checked">
  63. <view class="checked-checkItem" v-for="item in checkConfiglist" :key="item.attr"
  64. @click="checkedOne(item)" :style="
  65. Index == item.attr
  66. ? { backgroundColor: '#3377FF', color: '#fff' }
  67. : { backgroundColor: '#EBEFF7' }
  68. ">{{item.attr}}
  69. <view v-if="lastIndex == item.attr">
  70. <image src="../../static/shangci.png" mode="" class="img"></image>
  71. <text class="lastName">上次</text>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="more" @click="toHistory">
  76. <text>查看改善历史</text>
  77. <view class="moreImg">
  78. <image src="../../static/blue-arrow.png" mode="" class="moreImg2"></image>
  79. </view>
  80. </view>
  81. <view class="multipleResponsible">
  82. <view class="inner" @click="toSelectResponsible">
  83. <text class="label">当事人</text>
  84. <input type="text" disabled v-model="checkedResponsibleList.join(',')"
  85. placeholder="请选择当事人(可多选)" class="value" placeholder-class="valuePlaceholder" />
  86. <image class="arrow" src="../../static/incon-more.png" mode=""></image>
  87. </view>
  88. </view>
  89. <view class="score">
  90. <view class="box">
  91. <text class="lable">总分</text>
  92. <text class="totalScore">{{totalScore}}</text>
  93. </view>
  94. <view class="box">
  95. <text class="lable">本次得分</text>
  96. <text class="currentScore">{{currentScore>0?currentScore:0}}</text>
  97. </view>
  98. </view>
  99. <view class="inputScore">
  100. <text class="label">本项扣分</text>
  101. <view class="textValue" v-if="!ifInputScore" @click='changeToInputScore'>{{deductPoint}}</view>
  102. <input class="value" v-if="ifInputScore" @input="onInputScore" focus='true' auto-blur='true'
  103. @blur='inputOnBlur' type="number" v-model="inputScore" placeholder-class="placeholder" />
  104. </view>
  105. </view>
  106. </view>
  107. <view v-if="data.checkModelName == '访谈'" class="talk">
  108. <view v-for="(item, i) in talkList">
  109. <view class="talkTitle">
  110. <text>访谈内容{{ i + 1 }}{{ i == 0 ? "" : "(访谈人员:护士、医生)" }}</text>
  111. <text v-if="i != 0" class="del" @click="del(i)">删除</text>
  112. </view>
  113. <view>
  114. <view class="talkResult">
  115. <view class="seeResultFloorOne">
  116. <text class="seeName">查核结果</text>
  117. <view class="plusAction" v-if="checkItemResultList.length>0"
  118. @click="openSelectModal(i)">
  119. <image class="plusIcon" src="../../static/icon-add.png" mode=""></image>
  120. <text class="threePoint">缺陷</text>
  121. </view>
  122. </view>
  123. <text class="clear" @click="clearResult(true,i)">清空</text>
  124. <textarea maxlength="300" class="seeTextarea" value="" placeholder="请输入"
  125. v-model="item.talkResult" @blur="changeTextarea($event, i)"></textarea>
  126. </view>
  127. <view class="talkImg" @click="imgClick(i)">
  128. <tm-upload-img label="上传图片" :filePaths="item.filePath" :isMultiple="true" :pickIndex="i"
  129. @changeFilePaths="changeFilePaths2" />
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <view v-else class="see">
  135. <view class="seeResult">
  136. <view class="seeResultFloorOne">
  137. <text class="seeName">查核结果</text>
  138. <view class="plusAction" v-if="checkItemResultList.length>0" @click="openSelectModal">
  139. <image class="plusIcon" src="../../static/icon-add.png" mode=""></image>
  140. <text class="threePoint">缺陷</text>
  141. </view>
  142. </view>
  143. <text class="clear" @click="clearResult(false)">清空</text>
  144. <textarea maxlength="300" class="seeTextarea" placeholder="请输入" v-model="recordList[0].seeResult"
  145. @blur="changeTextarea2"></textarea>
  146. </view>
  147. <view class="seeImg">
  148. <tm-upload-img label="上传图片" :filePaths="filePath" :isMultiple="true"
  149. @changeFilePaths="changeFilePaths" />
  150. </view>
  151. </view>
  152. <button class="insert" @click="insert" v-if="data.checkModelName == '访谈'">
  153. + 增加一条记录
  154. </button>
  155. </scroll-view>
  156. <!-- <button type="primary" class="sureDetail" @click="sureDetail" v-if="data.display?data.display:false">完成</button> -->
  157. <view class="bottomMenuGroup">
  158. <view class="menuBtn" @click="goToPrevPage">
  159. <image class="threeLineMenuIcon" src="/static/threeLineMenu.png"></image>
  160. </view>
  161. <view class="prevBtn" @click="switchItem(1)">下一项</view>
  162. <view class="nextBtn" @click="sureDetail('back')" v-if="data.display?data.display:false">完成</view>
  163. </view>
  164. </view>
  165. </template>
  166. <script>
  167. import {
  168. _goBackFresh
  169. } from '../../utils/compatible.js';
  170. export default {
  171. data() {
  172. return {
  173. value: '',
  174. showSelectModal: false,
  175. data: {}, //详情数据
  176. lastIndex: null, //上次选中的结果
  177. Index: null, //点击修改本次选中样式
  178. filePath: [],
  179. recordList: [{
  180. seeResult: "",
  181. filePath: []
  182. }],
  183. talkLength: 1,
  184. talkList: [{
  185. talkResult: "",
  186. filePath: []
  187. }],
  188. editIndex: null,
  189. resultConfigList: [],
  190. id: "",
  191. checkPointId: "",
  192. itemBelongGroup: [],
  193. itemId: '',
  194. currentEditTextAreaIndex: -1, //当前编辑的查核结果下标
  195. checkItemResultList: [], //查核结果说明下拉列表
  196. checkedSelectResultList: [], //下拉结果选中集合
  197. checkedSelectResultListIds: [],
  198. currentSelect: '',
  199. checkItemScore: 0, //查核选中的分数
  200. checkItemValue: null, //查核选中的分数占比
  201. checkConfiglist: [], //查核情况可配置列表
  202. totalScore: 0, //总分
  203. currentScore: 0, //当前得分
  204. inputScore: null, //手动填写分值
  205. selectedScore: 0, //缺失项分值
  206. checkedResponsibleList: [],
  207. deptId: '', //病区id
  208. checkedResponsibleData: [],
  209. checkedSelectResultListData: [],
  210. multiSelectScore: [],
  211. deductPoint: 0, //本次扣分
  212. currentCheckedTab: null, //当前选中的查核tab
  213. moreDeduction: false, //缺陷项是否多选
  214. ifInputScore: false, //是否手动干预分值
  215. };
  216. },
  217. onShow() {
  218. const {
  219. responsibleList
  220. } = this.$store.state;
  221. this.checkedResponsibleData = responsibleList.checkedResponsibleList;
  222. this.checkedResponsibleList = responsibleList.checkedResponsibleList.map(item => item.main);
  223. },
  224. computed: {},
  225. watch: {
  226. checkedResponsibleList: function() {
  227. const {
  228. responsibleList
  229. } = this.$store.state;
  230. return responsibleList.checkedResponsibleList.map(item => item.main);
  231. },
  232. selectedScore: function(newVal, oldVal) {
  233. this.scoreCounter()
  234. },
  235. checkItemScore: function(newVal) {
  236. this.scoreCounter()
  237. },
  238. deductPoint: function(newVal, oldVal) {
  239. this.currentScore = this.totalScore - newVal
  240. }
  241. },
  242. mounted() {
  243. this.checkTaskDetail(this.id);
  244. this.getPeizhiList();
  245. },
  246. onBackPress() {
  247. this.$store.commit('checkMainPoints/comChangeState', { //刷新前一页数据
  248. key: 'ifReloadPageData',
  249. data: true
  250. });
  251. },
  252. methods: {
  253. scoreCounter() {
  254. if(this.checkItemValue == -1){
  255. //清空分数
  256. this.deductPoint = 0;
  257. return
  258. }
  259. if (this.inputScore) {
  260. this.deductPoint = Number(this.inputScore) + this.selectedScore
  261. } else {
  262. this.deductPoint = this.selectedScore + this.checkItemValue
  263. }
  264. },
  265. changeToInputScore() {
  266. this.ifInputScore = true;
  267. },
  268. inputOnBlur() {
  269. this.ifInputScore = false;
  270. // this.inputScore = null;
  271. },
  272. onInputScore(e) {
  273. this.deductPoint = e.target.value;
  274. },
  275. //查核结果清空操作
  276. clearResult(ifMulti, index) {
  277. if (ifMulti) {
  278. //多个查核结果组件时
  279. this.talkList[index].talkResult = '';
  280. if (this.multiSelectScore[index]) {
  281. this.selectedScore = this.selectedScore - this.multiSelectScore[index];
  282. }
  283. this.checkedSelectResultListIds.splice(index, 1, []);
  284. this.checkedSelectResultList.splice(index, 1, []);
  285. this.checkedSelectResultListData.splice(index, 1, []);
  286. this.multiSelectScore[index] = 0;
  287. this.currentEditTextAreaIndex = -1;
  288. } else {
  289. this.recordList[0].seeResult = '';
  290. this.checkedSelectResultListIds = [];
  291. this.checkedSelectResultList = [];
  292. this.checkedSelectResultListData = [];
  293. this.selectedScore = 0;
  294. }
  295. },
  296. clickModalhandle() {
  297. this.showSelectModal = false;
  298. this.currentEditTextAreaIndex = -1;
  299. },
  300. openSelectModal(index) {
  301. if (index >= 0) {
  302. this.currentEditTextAreaIndex = index;
  303. }
  304. this.showSelectModal = true;
  305. },
  306. //跳转选择当事人
  307. toSelectResponsible() {
  308. uni.navigateTo({
  309. url: `/pages/responsibleList/responsibleList?deptId=${this.deptId}&checkId=${this.id}`,
  310. });
  311. },
  312. selectResultHandle(item) {
  313. if (this.data.checkModelName == '访谈') {
  314. const currentIndex = this.currentEditTextAreaIndex;
  315. if (!this.moreDeduction) {
  316. //缺陷项单选
  317. this.checkedSelectResultListIds.splice(currentIndex, 1, [item.id]);
  318. this.checkedSelectResultList.splice(currentIndex, 1, [item.resultName]);
  319. this.checkedSelectResultListData.splice(currentIndex, 1, [item]);
  320. return;
  321. }
  322. if (this.checkedSelectResultListIds[currentIndex] && this.checkedSelectResultListIds[currentIndex]
  323. .includes(item.id)) {
  324. const tempIdsArr = JSON.parse(JSON.stringify(this.checkedSelectResultListIds[currentIndex]));
  325. const tempArr = JSON.parse(JSON.stringify(this.checkedSelectResultList[currentIndex]));
  326. const tempArrData = JSON.parse(JSON.stringify(this.checkedSelectResultListData[currentIndex]));
  327. tempIdsArr.splice(tempIdsArr.indexOf(item.id), 1);
  328. tempArr.splice(tempArr.indexOf(item.resultName), 1);
  329. tempArrData.splice(tempArrData.indexOf(item.id), 1);
  330. this.checkedSelectResultListIds.splice(currentIndex, 1, tempIdsArr);
  331. this.checkedSelectResultList.splice(currentIndex, 1, tempArr);
  332. this.checkedSelectResultListData.splice(currentIndex, 1, tempArrData);
  333. } else {
  334. if (!Array.isArray(this.checkedSelectResultListIds[currentIndex])) this.checkedSelectResultListIds[
  335. currentIndex] = [];
  336. if (!Array.isArray(this.checkedSelectResultList[currentIndex])) this.checkedSelectResultList[
  337. currentIndex] = [];
  338. if (!Array.isArray(this.checkedSelectResultListData[currentIndex])) this
  339. .checkedSelectResultListData[currentIndex] = [];
  340. const tempIdsArr = this.checkedSelectResultListIds[currentIndex].concat([item.id]);
  341. const tempArr = this.checkedSelectResultList[currentIndex].concat([item.resultName]);
  342. const tempArrData = this.checkedSelectResultListData[currentIndex].concat([item]);
  343. this.checkedSelectResultListIds.splice(currentIndex, 1, tempIdsArr);
  344. this.checkedSelectResultList.splice(currentIndex, 1, tempArr);
  345. this.checkedSelectResultListData.splice(currentIndex, 1, tempArrData);
  346. }
  347. } else {
  348. if (!this.moreDeduction) {
  349. //缺陷项单选
  350. this.checkedSelectResultListIds = [item.id];
  351. this.checkedSelectResultList = [item.resultName];
  352. this.checkedSelectResultListData = [item];
  353. return;
  354. }
  355. // 缺陷项多选
  356. if (this.checkedSelectResultListIds.includes(item.id)) {
  357. const tempIdsArr = this.checkedSelectResultListIds;
  358. const tempArr = this.checkedSelectResultList;
  359. const tempArrData = this.checkedSelectResultListData;
  360. tempIdsArr.splice(tempIdsArr.indexOf(item.id), 1);
  361. tempArr.splice(tempArr.indexOf(item.resultName), 1);
  362. tempArrData.splice(tempArrData.findIndex(t => t.id == item.id), 1);
  363. this.checkedSelectResultListIds = tempIdsArr;
  364. this.checkedSelectResultList = tempArr;
  365. this.checkedSelectResultListData = tempArrData;
  366. } else {
  367. this.checkedSelectResultListIds.push(item.id);
  368. this.checkedSelectResultList.push(item.resultName);
  369. this.checkedSelectResultListData.push(item);
  370. }
  371. }
  372. },
  373. commitSelectResult() {
  374. const _commitFunc = () => {
  375. if (this.data.checkModelName == '访谈') {
  376. const tempArr = this.checkedSelectResultListData[this.currentEditTextAreaIndex].map(item =>
  377. item.percentScore);
  378. const tempScore = tempArr.reduce((prev, cur) => {
  379. return prev + cur;
  380. }, 0);
  381. this.talkList[this.currentEditTextAreaIndex].talkResult = this.checkedSelectResultList[this
  382. .currentEditTextAreaIndex].join(',');
  383. this.multiSelectScore[this.currentEditTextAreaIndex] = tempScore;
  384. this.selectedScore = this.multiSelectScore.reduce((prev, cur) => (prev + cur), 0);
  385. } else {
  386. const tempArr = this.checkedSelectResultListData.map(item => item.percentScore);
  387. const tempScore = tempArr.reduce((prev, cur) => {
  388. return prev + cur;
  389. }, 0);
  390. this.recordList[0].seeResult = this.checkedSelectResultList.join(',');
  391. this.selectedScore = tempScore;
  392. }
  393. }
  394. _commitFunc();
  395. this.showSelectModal = false;
  396. },
  397. checkTaskDetail(id) {
  398. this.$store.dispatch({
  399. type: "mainPointsDetail/commActions",
  400. payload: {
  401. key: "checkTaskDetail",
  402. data: {
  403. id: id,
  404. },
  405. },
  406. }).then((res) => {
  407. uni.$once('未在查核规定时间内', function(data) {
  408. uni.navigateBack();
  409. });
  410. this.id = id;
  411. this.deptId = res.deptId;
  412. //再次编辑回显
  413. const filePath = res.checkResultTxt ? JSON.parse(res.checkResultTxt) : [];
  414. this.filePath = filePath[0] && filePath[0].checkResultUrl != '' ? filePath[0].checkResultUrl
  415. .split(',') : [];
  416. this.Index = res.checkResult;
  417. this.totalScore = res.totalScore;
  418. this.currentScore = res.checkResult ? res.score : res.totalScore;
  419. this.deductPoint = res.deductPoint;
  420. this.moreDeduction = res.moreDeduction;
  421. if (res.checkResultRequestList && res.checkResultRequestList.length > 0) {
  422. if (res.checkModelName == '访谈') {
  423. this.talkList = res.checkResultRequestList.map((item, currentIndex) => {
  424. const arr = item.checkResultDescribe.split(',');
  425. const tempResult = this.checkItemResultList.filter(v => arr.includes(v
  426. .resultName));
  427. if (!Array.isArray(this.checkedSelectResultListIds[currentIndex])) this
  428. .checkedSelectResultListIds[currentIndex] = [];
  429. if (!Array.isArray(this.checkedSelectResultList[currentIndex])) this
  430. .checkedSelectResultList[currentIndex] = [];
  431. if (!Array.isArray(this.checkedSelectResultListData[currentIndex])) this
  432. .checkedSelectResultListData[currentIndex] = [];
  433. const tempIdsArr = this.checkedSelectResultListIds[currentIndex].concat(
  434. tempResult.map(item => item.id));
  435. const tempArr = this.checkedSelectResultList[currentIndex].concat(
  436. tempResult.map(item => item.resultName));
  437. this.checkedSelectResultListIds.splice(currentIndex, 1, tempIdsArr);
  438. this.checkedSelectResultList.splice(currentIndex, 1, tempArr);
  439. this.checkedSelectResultListData.splice(currentIndex, 1, tempResult);
  440. const tempArrFull = this.checkedSelectResultListData[currentIndex].map(
  441. item => item.percentScore);
  442. const tempScore = tempArrFull.reduce((prev, cur) => {
  443. return prev + cur;
  444. }, 0);
  445. this.multiSelectScore[currentIndex] = tempScore;
  446. return {
  447. talkResult: item.checkResultDescribe,
  448. filePath: item.checkResultUrl != '' ? item.checkResultUrl.split(',') :
  449. []
  450. }
  451. });
  452. //设置回显分数
  453. // this.selectedScore = this.multiSelectScore.reduce((prev, cur) => (prev + cur), 0);
  454. } else {
  455. const arr = res.checkResultRequestList[0].checkResultDescribe.split(',');
  456. const tempResult = this.checkItemResultList.filter(v => arr.includes(v.resultName));
  457. const tempIds = tempResult.map(item => item.id);
  458. const scores = tempResult.map(item => item.percentScore);
  459. const tempScore = scores.reduce((prev, cur) => (prev + cur), 0);
  460. this.recordList[0].seeResult = res.checkResultRequestList[0].checkResultDescribe;
  461. this.checkedSelectResultListIds = tempIds;
  462. this.checkedSelectResultList = res.checkResultRequestList[0].checkResultDescribe.split(
  463. ',');
  464. this.checkedSelectResultListData = tempResult;
  465. console.log({
  466. tempResult
  467. });
  468. // this.selectedScore = tempScore;
  469. }
  470. }
  471. //用于当时人页面回显
  472. if (res.responsibleUserName) {
  473. const tempResponsibleUserName = res.responsibleUserName.split(',');
  474. const tempResponsibleUserId = res.responsibleUserId.split(',');
  475. this.checkedResponsibleList = tempResponsibleUserName;
  476. const arr = tempResponsibleUserName.map((item, index) => ({
  477. main: item,
  478. id: parseInt(tempResponsibleUserId[index])
  479. }));
  480. // console.log({arr});
  481. this.$store.commit('responsibleList/updateCheckedResponsibleList', arr);
  482. } else {
  483. this.checkedResponsibleList = [];
  484. this.$store.commit('responsibleList/updateCheckedResponsibleList', []);
  485. }
  486. if (res) {
  487. this.data = res;
  488. if (res && res.lastResult == "不适用") {
  489. // this.lastIndex = 1;
  490. this.lastIndex = res.lastResult;
  491. } else if (res && res.lastResult == "无缺失") {
  492. this.lastIndex = res.lastResult;
  493. } else if (res && res.lastResult == "主要缺失") {
  494. this.lastIndex = res.lastResult;
  495. } else if (res && res.lastResult == "次要缺失") {
  496. this.lastIndex = res.lastResult;
  497. } else if (res && res.lastResult == "观察事项") {
  498. this.lastIndex = res.lastResult;
  499. } else {
  500. this.lastIndex = 0;
  501. }
  502. }
  503. });
  504. },
  505. getPeizhiList() {
  506. this.$store.dispatch({
  507. type: "configure/commActions",
  508. payload: {
  509. key: "getResultConfig",
  510. },
  511. }).then((res) => {
  512. this.resultConfigList = res ? res : [];
  513. });
  514. },
  515. //查核点击回调
  516. checkedOne(data) {
  517. const parsedData = JSON.parse(JSON.stringify(data));
  518. this.currentCheckedTab = data;
  519. this.Index = parsedData.attr;
  520. this.data.checkResult = parsedData.attr;
  521. this.checkItemScore = parsedData.itemGetScore;
  522. this.checkItemValue = parsedData.value;
  523. this.calScore = parsedData.calScore;
  524. if (!this.inputScore) { //没有手输调整过的才可以修改
  525. this.checkItemScore = parsedData.itemGetScore;
  526. }
  527. },
  528. /**
  529. * @param {{
  530. files
  531. index,
  532. }} fileInfo
  533. files:文件集合
  534. index:当前编辑的下标
  535. */
  536. changeFilePaths({
  537. files,
  538. index
  539. }) {
  540. let _recordList = [...this.recordList];
  541. _recordList[index].filePath = files;
  542. this.filePath = _recordList[0].filePath;
  543. },
  544. insert() {
  545. let list = [...this.talkList];
  546. if (list.length < 10) {
  547. list.push({
  548. talkResult: "",
  549. filePath: []
  550. });
  551. this.talkList = list;
  552. }
  553. },
  554. del(index) {
  555. let list = [...this.talkList];
  556. let list2 = [];
  557. //清空该项数据
  558. this.clearResult(true, index);
  559. for (let i = 0; i < list.length; i++) {
  560. if (i != index) {
  561. list2.push(list[i]);
  562. }
  563. }
  564. this.talkList = list2;
  565. },
  566. /**
  567. * @param {{
  568. files
  569. index,
  570. }} fileInfo
  571. files:文件集合
  572. index:当前编辑的下标
  573. */
  574. changeFilePaths2(fileInfo) {
  575. const {
  576. files,
  577. index
  578. } = fileInfo;
  579. for (let j = 0; j < this.talkList.length; j++) {
  580. this.talkList[index].filePath = files;
  581. }
  582. },
  583. changeTextarea(e, i) {
  584. for (let j = 0; j < this.talkList.length; j++) {
  585. this.talkList[i].talkResult = e.detail.value;
  586. }
  587. },
  588. changeTextarea2(e) {
  589. this.recordList[0].seeResult = e.target.value;
  590. },
  591. imgClick(i) {
  592. this.editIndex = i;
  593. },
  594. sureDetail(key) {
  595. console.log('commit check');
  596. return new Promise((resolve) => {
  597. const _commitCheck = () => {
  598. try {
  599. if (this.Index) {
  600. let params = {
  601. id: this.data.id,
  602. checkResult: this.data.checkResult,
  603. checkResultRequestList: [],
  604. checkItemScore: this.checkItemScore,
  605. value: this.checkItemValue,
  606. situationType: this.situationType,
  607. calScore: this.calScore,
  608. score: this.currentScore,
  609. deductPoint: this.deductPoint,
  610. };
  611. if (this.data.checkModelName == "访谈") {
  612. let list = [];
  613. for (let i = 0; i < this.talkList.length; i++) {
  614. let path = "";
  615. for (let j = 0; j < this.talkList[i].filePath.length; j++) {
  616. if (j == 0) {
  617. path += `${this.talkList[i].filePath[j]}`;
  618. } else {
  619. path += `,${this.talkList[i].filePath[j]}`;
  620. }
  621. }
  622. let item = {
  623. checkResultId: i,
  624. checkResultDescribe: this.talkList[i].talkResult,
  625. checkResultUrl: path,
  626. };
  627. list.push(item);
  628. }
  629. params.checkResultRequestList = list;
  630. } else {
  631. let item = {
  632. checkResultId: 1,
  633. checkResultDescribe: this.recordList[0].seeResult,
  634. checkResultUrl: this.filePath.join(','),
  635. };
  636. params.checkResultRequestList = [item];
  637. }
  638. const checkConfiglist = JSON.parse(JSON.stringify(this.checkConfiglist));
  639. this.$store.dispatch({
  640. type: "mainPointsDetail/commActions",
  641. payload: {
  642. key: "saveCheckTaskDetail",
  643. data: {
  644. ...params,
  645. },
  646. },
  647. }).then((res) => {
  648. if (res) {
  649. resolve(true);
  650. // console.log({checkConfiglist,params});
  651. for (let i = 0; i < checkConfiglist.length; i++) {
  652. if (
  653. checkConfiglist[i].attr == params.checkResult &&
  654. (checkConfiglist[i].resultType == 2 ||
  655. checkConfiglist[i].resultType == 3)
  656. ) {
  657. //当主要缺失和次要缺失时发起改善任务
  658. console.log('开始提交改善前准备');
  659. let param = {
  660. situationId: this.data.situationId,
  661. situationName: this.data.situationName,
  662. checkGroupId: this.data.checkGroupId,
  663. checkGroupName: this.data.checkGroupName,
  664. checkItemId: this.data.checkItemId,
  665. checkItemName: this.data.checkItemName,
  666. checkPointId: this.data.checkPointId,
  667. checkPointName: this.data.checkPointName,
  668. deptName: this.data.deptName,
  669. deptId: this.data.deptId,
  670. appointFlag: false,
  671. desicion: 0,
  672. taskType: "1",
  673. checkId: this.data.checkId,
  674. checkResult: 0,
  675. newResultType: checkConfiglist[i].resultType,
  676. // checkResult: this.resultConfigList[i].id,
  677. receiveEmpId: this.data.receiveEmpId,
  678. receiveEmpName: this.data.receiveEmpName,
  679. checkDetailId: this.data.id,
  680. };
  681. this.$store.dispatch({
  682. type: "mission/commActions",
  683. payload: {
  684. key: "comTaskCirculation",
  685. data: {
  686. ...param,
  687. },
  688. },
  689. });
  690. } else {
  691. console.log('改善条件为false');
  692. }
  693. }
  694. if (key == 'back') {
  695. //点完成时返回
  696. this.$store.commit('checkMainPoints/comChangeState', {
  697. 'key': 'ifUpdate',
  698. 'data': true
  699. });
  700. _goBackFresh('pages/checkMainPoints/checkMainPoints');
  701. }
  702. } else {
  703. console.log('res为false');
  704. resolve(false);
  705. }
  706. });
  707. } else {
  708. uni.showToast({
  709. title: '请先选择查核结果!',
  710. duration: 2000,
  711. icon: 'none'
  712. });
  713. resolve(false);
  714. }
  715. } catch (err) {
  716. resolve(err);
  717. }
  718. }
  719. if (this.data.checkResult == '无缺失' && this.deductPoint != 0) {
  720. //查核结果为‘无缺失’且扣分为非0
  721. uni.showModal({
  722. title: '提示',
  723. content: `当前选择无缺失结果,但扣分数为${this.deductPoint},确认继续提交么?`,
  724. success: function(res) {
  725. if (res.confirm) {
  726. _commitCheck();
  727. } else if (res.cancel) {
  728. console.log('用户点击取消操作');
  729. resolve(false);
  730. }
  731. }
  732. });
  733. } else {
  734. _commitCheck();
  735. }
  736. })
  737. },
  738. toTuLi() {
  739. uni.navigateTo({
  740. url: `/pages/legendDetails/legendDetails?checkItemId=${this.data.checkItemId}&checkPointId=${this.checkPointId}`,
  741. });
  742. },
  743. toHistory() {
  744. const situationId = this.data.situationId;
  745. this.$store.dispatch({
  746. type: 'mission/commActions',
  747. payload: {
  748. key: "getMissionList",
  749. data: {
  750. situationId
  751. }
  752. }
  753. }).then(data => {
  754. if (data) {
  755. if (data.improvingTaskResponses.length > 0) {
  756. uni.navigateTo({
  757. url: `/pages/improve-mission-list/improve-mission-list?situationId=${this.data.situationId}`,
  758. });
  759. } else {
  760. uni.showModal({
  761. content: '暂无改善历史',
  762. showCancel: false
  763. });
  764. }
  765. }
  766. });
  767. },
  768. clearForm(index) {
  769. //清除上一项的查核信息
  770. this.Index = '';
  771. // this.deductPoint = 0;
  772. this.currentScore = 0;
  773. this.inputScore = 0;
  774. if (this.data.checkModelName == '访谈') {
  775. if (index) {
  776. this.talkList[index].talkResult = '';
  777. } else {
  778. for (let i = 0; i < this.talkList.length; i++) {
  779. this.talkList[i].talkResult = '';
  780. }
  781. }
  782. } else {
  783. this.recordList[0].talkResult = '';
  784. }
  785. this.checkedSelectResultListIds = [];
  786. this.checkedSelectResultList = [];
  787. this.checkedSelectResultListData = [];
  788. },
  789. goToPrevPage() {
  790. _goBackFresh('pages/checkMainPoints/checkMainPoints');
  791. },
  792. switchItem: async function(num) {
  793. if (!this.data.checkResult) {
  794. uni.showToast({
  795. title: '请先选择查核结果!',
  796. duration: 2000,
  797. icon: 'none'
  798. });
  799. return;
  800. }
  801. const result = await this.sureDetail();
  802. if (result) {
  803. let current = this.itemBelongGroup.filter(item => {
  804. return item.id == this.id;
  805. });
  806. if (num < 0) {
  807. if (current[0].index == 0) {
  808. uni.showToast({
  809. title: '已经没有上一项',
  810. duration: 2000,
  811. icon: 'none'
  812. });
  813. return;
  814. }
  815. }
  816. if (num > 0) {
  817. if (current[0].index == this.itemBelongGroup.length - 1) {
  818. uni.showToast({
  819. title: '已经没有下一项',
  820. duration: 2000,
  821. icon: 'none'
  822. });
  823. return;
  824. }
  825. }
  826. let needItemIndex = num > 0 ? current[0].index + 1 : current[0].index - 1;
  827. let needItemId = this.itemBelongGroup[needItemIndex].id;
  828. let needItemCheckId = this.itemBelongGroup[needItemIndex].checkItemId;
  829. this.clearForm();
  830. this.clearResult();
  831. this.checkTaskDetail(needItemId);
  832. this.getCheckItemResultList(needItemCheckId); //获取缺陷项列表数据
  833. };
  834. },
  835. // 获取查核项可配置列表
  836. getCheckConfigList(checkItemId) {
  837. this.$store.dispatch({
  838. type: 'mainPointsDetail/commActions',
  839. payload: {
  840. key: 'getCheckItemAttr',
  841. data: checkItemId
  842. }
  843. }).then(data => {
  844. this.checkConfiglist = data
  845. })
  846. },
  847. // 获取查核项结果说明下拉列表
  848. getCheckItemResultList(checkItemId) {
  849. this.$store.dispatch({
  850. type: 'mainPointsDetail/commActions',
  851. payload: {
  852. key: 'getCheckItemResultList',
  853. data: checkItemId
  854. }
  855. }).then(data => {
  856. this.checkItemResultList = data;
  857. })
  858. },
  859. },
  860. onLoad({
  861. id,
  862. checkPointId,
  863. checkItemId,
  864. situationType
  865. }) {
  866. this.id = id;
  867. this.checkPointId = checkPointId;
  868. this.situationType = situationType;
  869. this.checkItemId = checkItemId;
  870. this.getCheckConfigList(checkItemId);
  871. this.getCheckItemResultList(checkItemId);
  872. //接收来自上个页面所传过来的数据
  873. const eventChannel = this.getOpenerEventChannel();
  874. eventChannel.on('acceptDataFromOpenerPage', (data) => {
  875. // console.log({data});
  876. this.itemBelongGroup = data.data[0].responseList.map((item, index) => {
  877. return ({
  878. index: index,
  879. id: item['id'],
  880. checkItemId: item['checkItemId']
  881. })
  882. });
  883. //重新导航进页面,删除缓存并设置最新数据
  884. uni.removeStorageSync('itemBelongGroup');
  885. uni.setStorageSync('itemBelongGroup', this.itemBelongGroup);
  886. });
  887. //手动刷新页面,获取本地缓存
  888. const itemBelongGroup = uni.getStorageSync('itemBelongGroup');
  889. this.itemBelongGroup = itemBelongGroup;
  890. },
  891. };
  892. </script>
  893. <style lang="less">
  894. .mainPointsDetailPage {
  895. position: relative;
  896. // min-height: 75rpx;
  897. // overflow-y: auto;
  898. height: 100%;
  899. .checkItemResultModal {
  900. display: flex;
  901. height: 100%;
  902. justify-content: center;
  903. align-items: center;
  904. .modalContent {
  905. width: 90%;
  906. height: 600rpx;
  907. border-radius: 10rpx;
  908. overflow: hidden;
  909. background-color: #FFFFFF;
  910. .modalBar {
  911. display: flex;
  912. justify-content: center;
  913. align-items: center;
  914. height: 80rpx;
  915. color: #4E78FF;
  916. font-size: 22.5rpx;
  917. box-shadow: 0 6rpx 6rpx #E5E5E5;
  918. border-bottom: 0.1rpx solid #E5E5E5;
  919. }
  920. .comfirmBtn {
  921. font-size: 22rpx;
  922. color: #FFFFFF;
  923. height: 85rpx;
  924. line-height: 85rpx;
  925. text-align: center;
  926. background-color: #3377FF;
  927. }
  928. .scroll {
  929. height: calc(100% - 160rpx);
  930. .list {
  931. position: relative;
  932. display: flex;
  933. height: 80rpx;
  934. justify-content: center;
  935. align-items: center;
  936. border-bottom: 0.1rpx solid #E5E5E5;
  937. .checkIcon {
  938. display: none;
  939. position: absolute;
  940. left: 5%;
  941. width: 25rpx;
  942. height: 25rpx;
  943. }
  944. &.on {
  945. color: #3377FF;
  946. .checkIcon {
  947. display: block;
  948. }
  949. }
  950. }
  951. }
  952. }
  953. }
  954. .scroll-y {
  955. height: calc(100% - 75rpx);
  956. }
  957. .checkItem {
  958. padding-top: 47.5rpx;
  959. width: 100%;
  960. min-height: 450rpx;
  961. background-color: #fff;
  962. position: relative;
  963. .chBg {
  964. position: absolute;
  965. top: 0;
  966. left: 0;
  967. width: 125rpx;
  968. height: 37.5rpx;
  969. .img {
  970. width: 125rpx;
  971. height: 37.5rpx;
  972. }
  973. .title {
  974. position: absolute;
  975. top: 8.75rpx;
  976. left: 25rpx;
  977. font-size: 20rpx;
  978. color: #fff;
  979. font-weight: 500;
  980. line-height: 20rpx;
  981. }
  982. }
  983. .tlImg {
  984. width: 40rpx;
  985. height: 40rpx;
  986. position: absolute;
  987. right: 25rpx;
  988. top: 25rpx;
  989. }
  990. .chContent {
  991. width: 100%;
  992. .checkItemName {
  993. margin-left: 31.25rpx;
  994. font-size: 25rpx;
  995. line-height: 55rpx;
  996. color: #292c33;
  997. }
  998. .checkPointName {
  999. margin-left: 31.25rpx;
  1000. font-size: 17.5rpx;
  1001. line-height: 17.5rpx;
  1002. color: #7a8599;
  1003. }
  1004. .cont {
  1005. height: 135rpx;
  1006. .floatLeft {
  1007. float: left;
  1008. }
  1009. .borderLine {
  1010. margin-top: 56.25rpx;
  1011. width: 0.62rpx;
  1012. height: 25rpx;
  1013. background-color: #dadee6;
  1014. }
  1015. .other {
  1016. padding: 40rpx 0rpx;
  1017. height: 95rpx;
  1018. width: 187.18rpx;
  1019. text-align: center;
  1020. .letterTitle {
  1021. font-size: 17.5rpx;
  1022. color: #7a8599;
  1023. line-height: 17.5rpx;
  1024. }
  1025. .letterTitle2 {
  1026. height: 22.5rpx;
  1027. font-size: 22.5rpx;
  1028. line-height: 22.5rpx;
  1029. color: #292c33;
  1030. margin-bottom: 15rpx;
  1031. font-weight: 500;
  1032. overflow: hidden;
  1033. word-break: break-all;
  1034. /* break-all(允许在单词内换行。) */
  1035. text-overflow: ellipsis;
  1036. /* 超出部分省略号 */
  1037. display: -webkit-box;
  1038. /** 对象作为伸缩盒子模型显示 **/
  1039. -webkit-box-orient: vertical;
  1040. /** 设置或检索伸缩盒对象的子元素的排列方式 **/
  1041. -webkit-line-clamp: 1;
  1042. /** 显示的行数 **/
  1043. }
  1044. }
  1045. }
  1046. .checked {
  1047. margin-bottom: 40rpx;
  1048. padding: 0rpx 15.62rpx;
  1049. height: 75rpx;
  1050. .checked-checkItem {
  1051. margin: 0rpx 9.37rpx;
  1052. padding: 0;
  1053. width: 125rpx;
  1054. height: 75rpx;
  1055. background: #ebeff7;
  1056. float: left;
  1057. line-height: 75rpx;
  1058. text-align: center;
  1059. color: #292c33;
  1060. border-radius: 20rpx;
  1061. position: relative;
  1062. .img {
  1063. width: 51.25rpx;
  1064. height: 25rpx;
  1065. position: absolute;
  1066. right: -6.25rpx;
  1067. top: -6.25rpx;
  1068. }
  1069. .lastName {
  1070. color: #fff;
  1071. font-size: 13.75rpx;
  1072. line-height: 13.75rpx;
  1073. position: absolute;
  1074. right: 5rpx;
  1075. top: -1.87rpx;
  1076. }
  1077. }
  1078. }
  1079. .more {
  1080. margin: 0rpx 25rpx 0rpx 25rpx;
  1081. text-align: center;
  1082. border-top: 0.62rpx solid #dadee6;
  1083. text {
  1084. padding: 29.37rpx 0rpx 27.5rpx;
  1085. margin-right: 10rpx;
  1086. line-height: 22.5rpx;
  1087. font-size: 22.5rpx;
  1088. color: #3377ff;
  1089. display: inline-block;
  1090. vertical-align: top;
  1091. }
  1092. .moreImg {
  1093. margin-top: 28.75rpx;
  1094. width: 12.37rpx;
  1095. height: 21.21rpx;
  1096. display: inline-block;
  1097. }
  1098. .moreImg2 {
  1099. width: 12.37rpx;
  1100. height: 21.21rpx;
  1101. }
  1102. }
  1103. .multipleResponsible {
  1104. padding-top: 15rpx;
  1105. background-color: #F5F6FA;
  1106. .inner {
  1107. position: relative;
  1108. display: flex;
  1109. height: 87.5rpx;
  1110. z-index: 10;
  1111. flex-direction: row;
  1112. justify-content: flex-start;
  1113. align-items: center;
  1114. padding: 0 25rpx;
  1115. background-color: #FFFFFF;
  1116. .label {
  1117. display: inline-block;
  1118. font-size: 22.5rpx;
  1119. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1120. font-weight: 400;
  1121. color: #525866;
  1122. margin-right: 105rpx;
  1123. }
  1124. .value {
  1125. flex: 0.9;
  1126. font-size: 22.5rpx;
  1127. overflow: hidden; //超出的文本隐藏
  1128. text-overflow: ellipsis; //溢出用省略号显示
  1129. white-space: nowrap; //溢出不换行
  1130. }
  1131. .valuePlaceholder {
  1132. font-size: 22.5rpx;
  1133. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1134. font-weight: 400;
  1135. color: #B8BECC;
  1136. }
  1137. .arrow {
  1138. position: absolute;
  1139. right: 25rpx;
  1140. width: 12.5rpx;
  1141. height: 20rpx;
  1142. }
  1143. }
  1144. }
  1145. .score {
  1146. display: flex;
  1147. height: 87.5rpx;
  1148. flex-direction: row;
  1149. justify-content: space-between;
  1150. align-items: center;
  1151. padding: 0 25rpx;
  1152. background: #F5F6FA;
  1153. .box {
  1154. text-align: center;
  1155. vertical-align: bottom;
  1156. .lable {
  1157. display: inline-block;
  1158. font-size: 22.5rpx;
  1159. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1160. font-weight: 400;
  1161. color: #525866;
  1162. margin-right: 10rpx;
  1163. }
  1164. .totalScore {
  1165. font-size: 30rpx;
  1166. font-family: SourceHanSansCN-Bold, SourceHanSansCN;
  1167. font-weight: bold;
  1168. color: #292C33;
  1169. }
  1170. .currentScore {
  1171. font-size: 30rpx;
  1172. font-family: SourceHanSansCN-Bold, SourceHanSansCN;
  1173. font-weight: bold;
  1174. color: #3377FF;
  1175. }
  1176. }
  1177. }
  1178. .textValue {
  1179. display: flex;
  1180. flex-direction: row;
  1181. justify-content: flex-start;
  1182. align-items: center;
  1183. width: 70%;
  1184. height: 100%;
  1185. }
  1186. .inputScore {
  1187. display: flex;
  1188. flex-direction: row;
  1189. justify-content: flex-start;
  1190. align-items: center;
  1191. height: 87.5rpx;
  1192. padding: 0 25rpx;
  1193. background-color: #FFFFFF;
  1194. .label {
  1195. display: inline-block;
  1196. font-size: 22.5rpx;
  1197. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1198. font-weight: 400;
  1199. color: #525866;
  1200. margin-right: 81.25rpx;
  1201. }
  1202. .value {
  1203. font-size: 22.5rpx;
  1204. }
  1205. .placeholder {
  1206. font-size: 22.5rpx;
  1207. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1208. font-weight: 400;
  1209. color: #525866;
  1210. }
  1211. }
  1212. }
  1213. }
  1214. .see {
  1215. margin-top: 15rpx;
  1216. height: 287.5rpx;
  1217. background-color: #fff;
  1218. // padding-left: 25rpx;
  1219. .seeResult {
  1220. position: relative;
  1221. margin-left: 25rpx;
  1222. padding-top: 32.5rpx;
  1223. // height: 200rpx;
  1224. border-bottom: 1px solid #dadee6;
  1225. .clear {
  1226. position: absolute;
  1227. z-index: 10;
  1228. right: 25rpx;
  1229. bottom: 25rpx;
  1230. font-size: 22.5rpx;
  1231. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1232. font-weight: 400;
  1233. color: #FF3355;
  1234. }
  1235. .seeResultFloorOne {
  1236. display: flex;
  1237. flex-direction: row;
  1238. justify-content: space-between;
  1239. align-items: center;
  1240. margin-bottom: 25rpx;
  1241. padding-right: 25rpx;
  1242. .plusAction {
  1243. display: flex;
  1244. flex-direction: row;
  1245. justify-content: center;
  1246. align-items: center;
  1247. .plusIcon {
  1248. width: 25rpx;
  1249. height: 25rpx;
  1250. margin-right: 10rpx;
  1251. }
  1252. .threePoint {
  1253. font-size: 22.5rpx;
  1254. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1255. font-weight: 400;
  1256. color: #7A8599;
  1257. }
  1258. }
  1259. }
  1260. .seeName {
  1261. width: 175rpx;
  1262. font-size: 22.5rpx;
  1263. color: #525866;
  1264. line-height: 22.5rpx;
  1265. display: inline-block;
  1266. }
  1267. .seeTextarea {
  1268. width: 97%;
  1269. height: 155rpx;
  1270. display: inline-block;
  1271. font-size: 22.5rpx;
  1272. line-height: 27.5rpx;
  1273. }
  1274. }
  1275. .seeImg {
  1276. min-height: 87.5rpx;
  1277. .seeName2 {
  1278. width: 175rpx;
  1279. font-size: 22.5rpx;
  1280. color: #525866;
  1281. line-height: 87.5rpx;
  1282. display: inline-block;
  1283. }
  1284. }
  1285. }
  1286. .talk {
  1287. .talkTitle {
  1288. padding: 25rpx 25rpx 15rpx;
  1289. font-size: 22.5rpx;
  1290. line-height: 22.5rpx;
  1291. color: #666f80;
  1292. .del {
  1293. float: right;
  1294. color: #3377ff;
  1295. }
  1296. }
  1297. .talkResult {
  1298. position: relative;
  1299. padding-left: 25rpx;
  1300. padding-top: 32.5rpx;
  1301. border-bottom: 1px solid #dadee6;
  1302. background-color: #fff;
  1303. .clear {
  1304. position: absolute;
  1305. z-index: 10;
  1306. right: 25rpx;
  1307. bottom: 25rpx;
  1308. font-size: 22.5rpx;
  1309. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1310. font-weight: 400;
  1311. color: #FF3355;
  1312. }
  1313. .seeResultFloorOne {
  1314. display: flex;
  1315. flex-direction: row;
  1316. justify-content: space-between;
  1317. align-items: center;
  1318. margin-bottom: 25rpx;
  1319. padding-right: 25rpx;
  1320. .plusAction {
  1321. display: flex;
  1322. flex-direction: row;
  1323. justify-content: center;
  1324. align-items: center;
  1325. .plusIcon {
  1326. width: 25rpx;
  1327. height: 25rpx;
  1328. margin-right: 10rpx;
  1329. }
  1330. .threePoint {
  1331. font-size: 22.5rpx;
  1332. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1333. font-weight: 400;
  1334. color: #7A8599;
  1335. }
  1336. }
  1337. }
  1338. .seeName {
  1339. width: 175rpx;
  1340. font-size: 22.5rpx;
  1341. color: #525866;
  1342. line-height: 22.5rpx;
  1343. display: inline-block;
  1344. }
  1345. .seeTextarea {
  1346. width: 531.25rpx;
  1347. height: 155rpx;
  1348. display: inline-block;
  1349. font-size: 22.5rpx;
  1350. line-height: 27.5rpx;
  1351. }
  1352. }
  1353. .talkImg {
  1354. min-height: 87.5rpx;
  1355. .seeName2 {
  1356. width: 175rpx;
  1357. font-size: 22.5rpx;
  1358. color: #525866;
  1359. line-height: 87.5rpx;
  1360. display: inline-block;
  1361. }
  1362. }
  1363. }
  1364. .insert {
  1365. background-color: #fff;
  1366. font-size: 22.5rpx;
  1367. line-height: 22.5rpx;
  1368. color: #3377ff;
  1369. padding: 26.25rpx;
  1370. }
  1371. .sureDetail {
  1372. width: 100%;
  1373. height: 75rpx;
  1374. font-size: 22.5rpx;
  1375. background-color: #3377ff;
  1376. line-height: 75rpx;
  1377. position: absolute;
  1378. bottom: 0rpx;
  1379. }
  1380. .bottomMenuGroup {
  1381. position: fixed;
  1382. bottom: 0;
  1383. width: 100%;
  1384. height: 75rpx;
  1385. display: flex;
  1386. flex-direction: row;
  1387. background: #FFFFFF;
  1388. border-top: 0.62rpx solid #DADEE6;
  1389. .menuBtn {
  1390. display: flex;
  1391. width: 75rpx;
  1392. height: 75rpx;
  1393. justify-content: center;
  1394. align-items: center;
  1395. border-right: 0.62rpx solid #DADEE6;
  1396. .threeLineMenuIcon {
  1397. width: 26.25rpx;
  1398. height: 21.25rpx;
  1399. }
  1400. }
  1401. .prevBtn,
  1402. .nextBtn {
  1403. display: flex;
  1404. flex: 1;
  1405. justify-content: center;
  1406. height: 75rpx;
  1407. line-height: 75rpx;
  1408. font-size: 22.5rpx;
  1409. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  1410. font-weight: 400;
  1411. color: #3377FF;
  1412. }
  1413. .prevBtn {
  1414. border-right: 0.62rpx solid #DADEE6;
  1415. }
  1416. .nextBtn {
  1417. color: #FFFFFF;
  1418. background: #3377FF;
  1419. }
  1420. }
  1421. }
  1422. </style>