mainPointsDetail.vue 44 KB

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