rapidRepNext.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. <template>
  2. <view class="handler">
  3. <view class="head">
  4. <view class="tab" :class="{active: tab.value === dataInfo.tabActiveValue}" v-for="tab in dataInfo.tabs" :key="tab.id" @click="clickTab(tab.value)">
  5. {{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
  6. </view>
  7. </view>
  8. <view class="body view-body" :class="{ page_padding: !(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder), bg: (dataInfo.tabActiveValue === 'doing' && isInSummaryOrder) }">
  9. <!-- 科内报修 -->
  10. <template v-if="dataInfo.tabActiveValue === 'doing'">
  11. <view class="form_item" v-if="isRepair.valueconfig==1">
  12. <view class="title select"><text class="required newicon newicon-bitian"></text>院区:</view>
  13. <uni-data-picker class="value" placeholder="请选择院区"
  14. v-model="dataInfo.branch" :localdata="branchData"
  15. :clear-icon="false" :class="{formRed: isSubmit && !dataInfo.branch}">
  16. </uni-data-picker>
  17. </view>
  18. <view class="form_item">
  19. <view class="title select"><text class="required newicon newicon-bitian"></text>报修科室:</view>
  20. <uni-data-picker class="value" placeholder="请选择报修科室"
  21. v-model="dataInfo.department" :localdata="dataInfo.repairTypeList"
  22. :clear-icon="false" :class="{formRed: isSubmit && !dataInfo.department}">
  23. </uni-data-picker>
  24. </view>
  25. <view class="candidate" v-if="candidateData.commonDeptDTO.length">
  26. <view class="candidate-item" v-for="item in candidateData.commonDeptDTO" :key="item" @click="itemCandidate(item)">{{item.dept}}</view>
  27. </view>
  28. <view class="form_item column" v-if="isRepair.valueconfig==1">
  29. <view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
  30. <uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址" :class="{formRed: isSubmit && !dataInfo.address }" />
  31. </view>
  32. <view class="candidate">
  33. <view class="candidate-item" v-for="item in addresData" :key="item" @click="itemAddres(item)">{{item.name}}</view>
  34. </view>
  35. <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
  36. <view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
  37. <input class="item-input" placeholder="请输入联系人" v-model="dataInfo.contacts" />
  38. </view>
  39. <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
  40. <view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
  41. <input class="item-input" placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
  42. </view>
  43. </template>
  44. <!-- 公共报修 -->
  45. <template v-if="dataInfo.tabActiveValue === 'overtime'">
  46. <view class="form_item" v-if="isRepair.valueconfig==1">
  47. <view class="title select"><text class="required newicon newicon-bitian"></text>楼栋:</view>
  48. <uni-data-picker class="value" placeholder="请选择楼栋" @change="areaChange"
  49. v-model="dataInfo.areaId" :localdata="dataInfo.buildingTypeList"
  50. :clear-icon="false" :class="{formRed: isSubmit && !dataInfo.areaId}">
  51. </uni-data-picker>
  52. </view>
  53. <view class="form_item" v-if="isRepair.valueconfig==1">
  54. <view class="title select"><text class="required newicon newicon-bitian"></text>楼层:</view>
  55. <uni-data-picker class="value" placeholder="请选择楼层"
  56. v-model="dataInfo.placeId" :localdata="dataInfo.placeTypeList"
  57. :clear-icon="false" :class="{formRed: isSubmit && !dataInfo.placeId}">
  58. </uni-data-picker>
  59. </view>
  60. <view class="form_item column" v-if="isRepair.valueconfig==1">
  61. <view class="title"><text class="required newicon newicon-bitian"></text>详细地址:</view>
  62. <uni-easyinput class="value" type="textarea" v-model="dataInfo.address" placeholder="请输入详细地址" :class="{formRed: isSubmit && !dataInfo.address}" />
  63. </view>
  64. <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contacts}">
  65. <view class="title select"><text class="required newicon newicon-bitian"></text>联系人:</view>
  66. <input class="item-input value" focus placeholder="请输入联系人" v-model="dataInfo.contacts"/>
  67. </view>
  68. <view class="form_item" :class="{formRed: isSubmit && !dataInfo.contactsInformation}">
  69. <view class="title select"><text class="required newicon newicon-bitian"></text>联系电话:</view>
  70. <input class="item-input value" focus placeholder="请输入联系电话" v-model="dataInfo.contactsInformation"/>
  71. </view>
  72. </template>
  73. </view>
  74. <view class="foot_common_btns">
  75. <button @click="goBackOrToList" type="default" class="primaryButton btn">上一步</button>
  76. <button @click="submit" type="default" class="primaryButton btn">提交</button>
  77. </view>
  78. <NumberModal v-if="dataInfo.isNumber" @cancelEmit="cancelNumber" @confirmEmit="conformNumber" @removeEmit="removeNumber" :selectData="dataInfo.selectData" :selectType="dataInfo.selectType" :evtNumber="dataInfo.evtNumber" showRemove></NumberModal>
  79. </view>
  80. </template>
  81. <script setup>
  82. import { ref, reactive, computed } from 'vue'
  83. import NumberModal from '@/components/NumberModal.vue';
  84. import { onLoad } from '@dcloudio/uni-app'
  85. import { generateNumberArray } from '@/utils/index.js'
  86. import { api_getDictionary, api_sj,api_request, getFetchDataList, api_place, api_getSolution, api_area, api_user, api_incidentTask, api_branch, api_dutyDepartment, api_department, api_querySummaryDoc, api_addSummaryDoc } from "@/http/api.js"
  87. import { defaultColor } from '@/static/js/theme.js'
  88. import { useSetTitle } from '@/share/useSetTitle.js'
  89. import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
  90. import { useUploadFile } from '@/share/useUploadFile.js'
  91. import { useGoBack } from '@/share/useGoBack.js'
  92. import { useLoginUserStore } from '@/stores/loginUser'
  93. import { useHandlerStore } from '@/stores/handler'
  94. useSetTitle();
  95. const loginUserStore = useLoginUserStore();
  96. const handlerStore = useHandlerStore();
  97. const { makePhoneCall } = useMakePhoneCall();
  98. const { uploadFile } = useUploadFile();
  99. const { goBack } = useGoBack();
  100. // 主题颜色
  101. const primaryColor = ref(defaultColor)
  102. // 备用机选项
  103. const machineData = ref([
  104. {
  105. text:'是',
  106. value:1
  107. },
  108. {
  109. text:'否',
  110. value:0
  111. },
  112. ])
  113. const isDept = ref({})
  114. const isRepair = ref({})
  115. const branchData = ref([])
  116. const candidateData = ref(loginUserStore.loginUser.user)
  117. const repairIncident = ref(null)
  118. const addresData = ref([
  119. {name:'护士站'},
  120. {name:'卫生间'},
  121. {name:'更衣室'},
  122. {name:'治疗室'}
  123. ])
  124. // 数据
  125. const dataInfo = reactive({
  126. tabs: [
  127. {id: 5, name: '科内报修', value: 'doing', num: ''},
  128. {id: 6, name: '公共报修', value: 'overtime', num: ''},
  129. ],
  130. tabActiveValue: 'doing',//当前选择的tab
  131. incidentId: undefined,//事件ID
  132. incidentData: {
  133. repairIncidentType:{
  134. id:''
  135. },
  136. department:{
  137. id:''
  138. }
  139. },//事件对象
  140. repairTypeList:[],//科室数据
  141. buildingTypeList:[],//楼栋数据
  142. placeTypeList:[],//楼层数据
  143. department:'',//报修科室
  144. address:'',//详细地址
  145. contacts:'',//联系人
  146. contactsInformation:'',//手机
  147. areaId:'',//楼栋
  148. placeId:'',//楼层
  149. branch:'', //院区
  150. })
  151. // 故障处理用是否提供备用机
  152. const newProvideBackupMachine = ref(0)
  153. // 知识库id
  154. const solutionId = ref(null)
  155. // 是否提交
  156. const isSubmit = ref(false)
  157. // 处理图片
  158. const handlerImgRef = ref(null)
  159. // 是否进入汇总单
  160. const isInSummaryOrder = computed(() => {
  161. return dataInfo.tabActiveValue === 'doing' && dataInfo.incidentData.duty && dataInfo.incidentData.duty.addSummary == 1 && (dataInfo.incidentData.handlingPersonnelUser.id == loginUserStore.loginUser.user.id);
  162. })
  163. // 上一步或者返回列表
  164. function goBackOrToList(){
  165. uni.setStorageSync('rapidRepNext',JSON.stringify(dataInfo))
  166. goBack();
  167. }
  168. // 重置
  169. function reset(){
  170. // dataInfo.department = '',//报修科室
  171. dataInfo.address = '',//详细地址
  172. // dataInfo.contacts = '',//联系人
  173. // dataInfo.contactsInformation = ''//手机
  174. dataInfo.areaId = ''//楼栋
  175. dataInfo.placeId = '' //院区
  176. dataInfo.placeTypeList = []
  177. }
  178. // 初始化表单
  179. function initForm(){
  180. if(dataInfo.tabActiveValue === 'doing'){
  181. getRepairTypes()
  182. }else if(dataInfo.tabActiveValue === 'overtime'){
  183. getbuildingList()
  184. }
  185. }
  186. function itemCandidate(item){
  187. dataInfo.department = item.id
  188. }
  189. function itemAddres(item){
  190. dataInfo.address = item.name
  191. }
  192. // 点击tab
  193. function clickTab(tabValue){
  194. if(dataInfo.tabActiveValue == tabValue){
  195. return;
  196. }
  197. dataInfo.tabActiveValue = tabValue;
  198. isSubmit.value = false;
  199. reset();
  200. dataInfo.category = dataInfo.incidentData.category || {};
  201. dataInfo.synergetic = dataInfo.incidentData.synergetic || [];
  202. newProvideBackupMachine.value = dataInfo.incidentData.provideBackupMachine
  203. initForm();
  204. }
  205. // 获取事件详情
  206. function getIncidentDetail(){
  207. if(uni.getStorageSync('rapidRepNext')){
  208. let data = JSON.parse(uni.getStorageSync('rapidRepNext'))
  209. if(data){
  210. dataInfo.department = data.department//报修科室
  211. dataInfo.address = data.address//详细地址
  212. dataInfo.contacts = data.contacts//联系人
  213. dataInfo.contactsInformation = data.contactsInformation//手机
  214. dataInfo.branch = data.branch//院区
  215. dataInfo.areaId = data.areaId//楼栋
  216. }
  217. }
  218. if(uni.getStorageSync('repairData')){
  219. let data = JSON.parse(uni.getStorageSync('repairData'))
  220. if(data){
  221. dataInfo.description = data.description
  222. dataInfo.handlerImgList = data.handlerImgList
  223. dataInfo.serverId = data.serverId
  224. dataInfo.assetId = data.assetId
  225. }
  226. }
  227. let data = JSON.parse(uni.getStorageSync('sysData'))
  228. isDept.value = data.find(i=>i.keyconfig=='deptRepair')
  229. isRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  230. let user = loginUserStore.loginUser.user
  231. if(user){
  232. dataInfo.branch = user.currentHospital.id
  233. dataInfo.contacts = user.name
  234. dataInfo.contactsInformation = user.phone
  235. dataInfo.department = user.dept.id
  236. }
  237. let postData = {
  238. "key": 'repair_incident_type',
  239. "type": "list",
  240. };
  241. api_getDictionary(postData).then(res => {
  242. res = res || [];
  243. repairIncident.value = res
  244. })
  245. getBranch()
  246. }
  247. // 获取院区列表
  248. function getBranch(){
  249. let postData = {
  250. idx:0,
  251. sum:9999
  252. }
  253. api_branch(postData).then(res => {
  254. uni.hideLoading();
  255. res = res.list || [];
  256. branchData.value = res.map(v => ({
  257. text: v.hosName,
  258. value: v.id,
  259. }));
  260. })
  261. }
  262. // 获取报修科室列表
  263. function getRepairTypes(){
  264. uni.showLoading({
  265. title: "加载中",
  266. mask: true,
  267. });
  268. let postData = {
  269. department: {
  270. hospital: loginUserStore.loginUser.user.currentHospital.id,
  271. },
  272. idx:0,
  273. sum:9999
  274. }
  275. api_department(postData).then(res => {
  276. uni.hideLoading();
  277. res = res.list || [];
  278. dataInfo.repairTypeList = res.map(v => ({
  279. text: v.dept,
  280. value: v.id,
  281. }));
  282. })
  283. }
  284. // 获取楼栋
  285. function getbuildingList(){
  286. uni.showLoading({
  287. title: "加载中",
  288. mask: true,
  289. });
  290. let postData = {
  291. idx: 0,
  292. sum: 9999,
  293. building:{
  294. hosId: loginUserStore.loginUser.user.currentHospital.id,
  295. }
  296. };
  297. getFetchDataList("simple/data", "building", postData)
  298. .then((res) => {
  299. uni.hideLoading();
  300. res = res.list || [];
  301. dataInfo.buildingTypeList = res.map(v => ({
  302. text: v.buildingName,
  303. value: v.id
  304. }));
  305. });
  306. }
  307. function areaChange(e){
  308. getPlaceList(dataInfo.areaId)
  309. }
  310. // 获取楼层
  311. function getPlaceList(e){
  312. let postData = {
  313. idx: 0,
  314. sum: 9999,
  315. floor: {
  316. buildId:e,
  317. hosId:loginUserStore.loginUser.user.currentHospital.id
  318. }
  319. };
  320. getFetchDataList("simple/data", "floor", postData)
  321. .then((res) => {
  322. uni.hideLoading();
  323. res = res.list || [];
  324. dataInfo.placeTypeList = res.map(v => ({
  325. text: v.floorName,
  326. value: v.id
  327. }));
  328. });
  329. }
  330. // 提交
  331. function submit(){
  332. isSubmit.value = true;
  333. submitHandler()
  334. }
  335. // 处理提交事件
  336. function handlerOrder(){
  337. if(dataInfo.tabActiveValue === 'doing'){
  338. let data = repairIncident.value.find(i=>i.value=='dept')
  339. dataInfo.incidentData.repairIncidentType.id = data.id
  340. }else if(dataInfo.tabActiveValue === 'overtime'){
  341. let data = repairIncident.value.find(i=>i.value=='public')
  342. dataInfo.incidentData.repairIncidentType.id = data.id
  343. }
  344. dataInfo.incidentData.department.id = dataInfo.department
  345. let postData = {
  346. incident: dataInfo.incidentData,
  347. serverId: ''
  348. }
  349. postData.incident.description = dataInfo.description;
  350. if(dataInfo.serverId){
  351. postData.serverId = dataInfo.serverId;
  352. }else{
  353. delete postData.serverId
  354. }
  355. postData.incident.assetId = dataInfo.assetId;
  356. postData.incident.houseNumber = dataInfo.address;
  357. postData.incident.contacts = dataInfo.contacts;
  358. postData.incident.contactsInformation = dataInfo.contactsInformation;
  359. postData.incident.hosId = dataInfo.branch;
  360. postData.incident.place = {}
  361. postData.incident.place.id = dataInfo.placeId;
  362. // postData.incident.buildId = dataInfo.areaId; //areaId:楼栋
  363. // postData.incident.floorId = dataInfo.placeId;//placeId:楼层
  364. // buildId
  365. // floorId
  366. api_getDictionary({
  367. key: "incident_source",
  368. type: "list"
  369. }).then(res1=>{
  370. let incidentSourceList = res1 || [];
  371. let im = incidentSourceList.find(v => v.value === 'im');
  372. // api_sj().then(res2=>{
  373. // postData.incident.incidentsign = res2.data;
  374. postData.incident.source = im;
  375. postData.incident.fromWx = true;
  376. postData.incident.requester = loginUserStore.loginUser.user;
  377. postData.incident.acceptUser = loginUserStore.loginUser.user;
  378. postData.incident.deleteFlag = 0
  379. api_request(postData).then(res=>{
  380. if(res.state == 200){
  381. dataInfo.incidentId = res.data.id
  382. let handlerOrder$ = res.data;
  383. let requestList = [handlerOrder$];
  384. if(dataInfo.handlerImgList.length){ // 有图片
  385. dataInfo.handlerImgList.forEach(v => {
  386. let handlerOrderImg$ = handlerOrderImg(v);
  387. requestList.push(handlerOrderImg$);
  388. })
  389. console.log(9999,requestList);
  390. Promise.all(requestList).then(resList => {
  391. uni.hideLoading();
  392. console.log(9999,resList);
  393. // if(resList[0].state == 200){
  394. uni.showToast({
  395. icon: 'none',
  396. title: '报修成功',
  397. mask: true,
  398. });
  399. setTimeout(() => {
  400. uni.setStorageSync('rapidRepNext','')
  401. uni.setStorageSync('repairData','')
  402. uni.reLaunch({
  403. url: '/pages/repair/home',
  404. })
  405. }, 1500)
  406. // }else{
  407. // uni.showToast({
  408. // icon: 'none',
  409. // title: resList[0].msg || '请求数据失败!'
  410. // });
  411. // }
  412. })
  413. }else{
  414. uni.showToast({
  415. icon: 'none',
  416. title: '报修成功',
  417. mask: true,
  418. });
  419. setTimeout(() => {
  420. uni.setStorageSync('rapidRepNext','')
  421. uni.setStorageSync('repairData','')
  422. uni.reLaunch({
  423. url: '/pages/repair/home',
  424. })
  425. }, 1500)
  426. }
  427. }else{
  428. uni.showToast({
  429. icon: 'none',
  430. title: res.msg || '请求数据失败!'
  431. });
  432. }
  433. })
  434. // })
  435. })
  436. }
  437. // 处理图片
  438. function handlerOrderImg(imgObj){
  439. return uploadFile(imgObj, 'wechatRequesterIncident', dataInfo.incidentId)
  440. }
  441. // 处理提交
  442. function submitHandler(){
  443. console.log(dataInfo);
  444. if(dataInfo.tabActiveValue=='doing'){
  445. if(dataInfo.dept==''){
  446. uni.showToast({
  447. icon: 'none',
  448. title: '请选择报修科室'
  449. });
  450. return;
  451. }
  452. }else{
  453. if(dataInfo.branch==''){
  454. uni.showToast({
  455. icon: 'none',
  456. title: '请选择院区'
  457. });
  458. return;
  459. }
  460. if(dataInfo.areaId==''){
  461. uni.showToast({
  462. icon: 'none',
  463. title: '请选择楼栋'
  464. });
  465. return;
  466. }
  467. if(dataInfo.placeId==''){
  468. uni.showToast({
  469. icon: 'none',
  470. title: '请选择楼层'
  471. });
  472. return;
  473. }
  474. }
  475. if(dataInfo.address==''){
  476. uni.showToast({
  477. icon: 'none',
  478. title: '请输入详细地址'
  479. });
  480. return;
  481. }
  482. if(dataInfo.contacts==''){
  483. uni.showToast({
  484. icon: 'none',
  485. title: '请输入联系人'
  486. });
  487. return;
  488. }
  489. if(dataInfo.contactsInformation==''){
  490. uni.showToast({
  491. icon: 'none',
  492. title: '请输入联系电话'
  493. });
  494. return;
  495. }
  496. console.log(dataInfo.handlerImgList)
  497. uni.showLoading({
  498. title: "加载中",
  499. mask: true,
  500. });
  501. handlerOrder()
  502. return
  503. if(dataInfo.handlerImgList.length){
  504. // 有图片
  505. // handlerImgRef.value.upload();
  506. }else{
  507. // 没有图片
  508. let handlerOrder$ = handlerOrder();
  509. let requestList = [handlerOrder$];
  510. Promise.all(requestList).then(resList => {
  511. uni.hideLoading();
  512. if(resList[0].state == 200){
  513. uni.showToast({
  514. icon: 'none',
  515. title: '报修成功',
  516. mask: true,
  517. });
  518. setTimeout(() => {
  519. uni.setStorageSync('rapidRepNext','')
  520. uni.reLaunch({
  521. url: '/pages/repair/home',
  522. })
  523. }, 1500)
  524. }else{
  525. uni.showToast({
  526. icon: 'none',
  527. title: resList[0].msg || '请求数据失败!'
  528. });
  529. }
  530. })
  531. }
  532. }
  533. // 获取文本内容
  534. function getHtml(html) {
  535. const tempDiv = document.createElement('div');
  536. tempDiv.innerHTML = html;
  537. return tempDiv.textContent || tempDiv.innerText || '';
  538. }
  539. onLoad((option) => {
  540. initForm()
  541. getIncidentDetail();
  542. })
  543. </script>
  544. <style lang="scss" scoped>
  545. .handler{
  546. height: 100%;
  547. display: flex;
  548. flex-direction: column;
  549. justify-content: space-between;
  550. .head{
  551. height: 88rpx;
  552. display: flex;
  553. position: fixed;
  554. z-index: 99;
  555. width: 100%;
  556. background-color: #fff;
  557. font-size: 30rpx;
  558. .tab{
  559. flex: 1;
  560. display: flex;
  561. justify-content: center;
  562. align-items: center;
  563. border-bottom: 4rpx solid transparent;
  564. &.active{
  565. color: $uni-primary;
  566. border-color: $uni-primary;
  567. }
  568. }
  569. }
  570. .body{
  571. margin-top: 88rpx;
  572. box-sizing: border-box;
  573. flex: 1;
  574. min-height: 0;
  575. &.bg{
  576. background-color: #F7F7F7;
  577. }
  578. .summaryItem{
  579. &:first-of-type{
  580. .summaryItem_head{
  581. border-bottom: 1rpx solid #DDDDDD;
  582. }
  583. }
  584. .summary_total{
  585. padding: 20rpx 0;
  586. display: flex;
  587. justify-content: center;
  588. align-items: center;
  589. }
  590. .summaryItem_head{
  591. padding: 24rpx;
  592. font-size: 26rpx;
  593. color: #3A3A3A;
  594. }
  595. .summaryItem_body{
  596. font-size: 30rpx;
  597. background-color: #fff;
  598. .summaryItem_bodyItem{
  599. padding: 24rpx;
  600. border-bottom: 1rpx solid #DDDDDD;
  601. .summaryItem_bodyItem_top{
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. .value{
  606. padding-left: 48rpx;
  607. flex-shrink: 0;
  608. }
  609. }
  610. .summaryItem_bodyItem_bottom{
  611. margin-top: 24rpx;
  612. display: flex;
  613. justify-content: space-between;
  614. align-items: center;
  615. .name{
  616. text-align: right;
  617. flex: 1;
  618. }
  619. .value{
  620. width: 240rpx;
  621. text-align: right;
  622. padding-left: 48rpx;
  623. flex-shrink: 0;
  624. }
  625. }
  626. }
  627. }
  628. .summaryItem_foot{
  629. font-size: 30rpx;
  630. background-color: #fff;
  631. &.total{
  632. margin-top: 24rpx;
  633. }
  634. .summaryItem_foot_total{
  635. padding: 24rpx 0;
  636. display: flex;
  637. justify-content: center;
  638. align-items: center;
  639. }
  640. .summaryItem_foot_add{
  641. border-top: 1rpx solid #DDDDDD;
  642. padding: 24rpx 0;
  643. display: flex;
  644. justify-content: center;
  645. align-items: center;
  646. .newicon-icon-test{
  647. font-size: 30rpx;
  648. font-weight: bold;
  649. }
  650. }
  651. }
  652. }
  653. .form_item_column{
  654. padding-top: 24rpx;
  655. min-height: 86rpx;
  656. .form_item{
  657. padding-top: 0;
  658. min-height: auto;
  659. }
  660. }
  661. .candidate{
  662. display: flex;
  663. flex-wrap: wrap;
  664. .candidate-item{
  665. padding: 6rpx 15rpx;
  666. font-size: 26rpx;
  667. color: #949494;
  668. background: #E9E9E9;
  669. border-radius: 50rpx;
  670. margin-right: 20rpx;
  671. margin-top: 15rpx;
  672. }
  673. }
  674. .form_item{
  675. display: flex;
  676. align-items: center;
  677. padding-top: 24rpx;
  678. min-height: 86rpx;
  679. &.column{
  680. height: auto;
  681. flex-direction: column;
  682. align-items: flex-start;
  683. .import-rep{
  684. padding: 5rpx 10rpx;
  685. border-radius: 50rpx;
  686. background: #d1fcd5;
  687. color: #49b856;
  688. font-size: 24rpx;
  689. }
  690. .title{
  691. margin-right: 0;
  692. }
  693. .title-width{
  694. width: 100%;
  695. }
  696. .title-fl-sb{
  697. display: flex;
  698. justify-content: space-between;
  699. width: 100%;
  700. }
  701. .value{
  702. margin-top: 10rpx;
  703. padding-left: 20rpx;
  704. box-sizing: border-box;
  705. }
  706. .tips{
  707. padding: 24rpx;
  708. text-align: center;
  709. font-size: 22rpx;
  710. color: #909399;
  711. width: 100%;
  712. box-sizing: border-box;
  713. }
  714. }
  715. .title{
  716. font-size: 26rpx;
  717. display: flex;
  718. align-items: center;
  719. margin-right: 12rpx;
  720. flex-shrink: 0;
  721. &.select{
  722. width: calc(5em + 20rpx);
  723. }
  724. }
  725. .value{
  726. width: 100%;
  727. &.category{
  728. width: 100%;
  729. display: flex;
  730. justify-content: space-between;
  731. align-items: center;
  732. .categoryName{
  733. font-size: 26rpx;
  734. color: #555;
  735. flex: 1;
  736. }
  737. .newicon-weibiaoti2010104{
  738. color: $uni-primary;
  739. margin-left: 24rpx;
  740. }
  741. }
  742. .imgTips{
  743. color: #909399;
  744. font-size: 22rpx;
  745. }
  746. }
  747. .item-input{
  748. border: 1px solid #DBDBDB;
  749. height: 70rpx;
  750. line-height: 70rpx;
  751. padding: 0 10rpx;
  752. border-radius: 4rpx;
  753. width: 100%;
  754. font-size: 14px;
  755. }
  756. .synergeticNames{
  757. font-size: 26rpx;
  758. margin-right: 24rpx;
  759. }
  760. .synergeticAdd{
  761. flex-shrink: 0;
  762. }
  763. }
  764. }
  765. }
  766. </style>