mainPointsDetail.vue 48 KB

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