fillTask.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361
  1. <template>
  2. <view class="container">
  3. <Step :step="currentStep" :stepsData="currentText" />
  4. <scroll-view class="content" scroll-y>
  5. <!-- 驳回意见提示 -->
  6. <view class="rejection-banner" v-if="rejectionInfo">
  7. <view class="rejection-icon">✕</view>
  8. <view class="rejection-text">驳回意见: {{ rejectionInfo }}</view>
  9. </view>
  10. <!-- 基本信息 -->
  11. <view class="form-section">
  12. <view class="form-item">
  13. <view class="form-label">
  14. <text class="required">*</text>
  15. <text>任务归属</text>
  16. </view>
  17. <view class="form-input picker-input" :class="{ placeholder: !formData.deptId }"
  18. @click="showPicker('任务归属',companyData)">
  19. {{ institutionDisplayText || '请选择任务归属' }}
  20. <image class="icon" src="/static/image/icon_more.png"></image>
  21. </view>
  22. </view>
  23. <view class="form-item">
  24. <view class="form-label">
  25. <text class="required">*</text>
  26. <text>归属项目</text>
  27. </view>
  28. <view class="form-input picker-input" :class="{ placeholder: !formData.projectId }"
  29. @click="showPicker('归属项目',companyList)">
  30. {{ belongingProjectDisplayText || '请选择归属项目' }}
  31. <image class="icon" src="/static/image/icon_more.png"></image>
  32. </view>
  33. </view>
  34. <view class="form-item">
  35. <view class="form-label">
  36. <text class="required">*</text>
  37. <text>产品代码</text>
  38. </view>
  39. <view class="form-input picker-input" :class="{ placeholder: !formData.productId }"
  40. @click="showPicker('产品代码',productList)">
  41. {{ productNameDisplayText || '请选择产品代码' }}
  42. <image class="icon" src="/static/image/icon_more.png"></image>
  43. </view>
  44. </view>
  45. <view class="form-item">
  46. <view class="form-label">
  47. <text class="required">*</text>
  48. <text>费用分摊</text>
  49. </view>
  50. <view class="form-input picker-input" :class="{ placeholder: !formData.costShareId }"
  51. @click="showPicker('费用分摊',companyData)">
  52. {{ costAllocationDisplayText || '请选择费用分摊主体' }}
  53. <image class="icon" src="/static/image/icon_more.png"></image>
  54. </view>
  55. </view>
  56. <view class="form-item">
  57. <view class="form-label">
  58. <text class="required">*</text>
  59. <text>添加任务备注</text>
  60. </view>
  61. <EvanSwitch v-model="formData.addRemark"></EvanSwitch>
  62. </view>
  63. <view class="form-item">
  64. <view class="form-label">
  65. <text class="required">*</text>
  66. <text>归属类型</text>
  67. </view>
  68. <view class="form-input picker-input" :class="{ placeholder: !formData.belongType }"
  69. @click="showPicker('归属类型',dictTypeColumns)">
  70. {{ belongTypeDisplayText || '请选择归属类型' }}
  71. <image class="icon" src="/static/image/icon_more.png"></image>
  72. </view>
  73. </view>
  74. <view class="form-item">
  75. <view class="form-label">
  76. <text class="required">*</text>
  77. <text>任务类型</text>
  78. </view>
  79. <view class="form-input picker-input" :class="{ placeholder: !formData.taskType }"
  80. @click="showPicker('任务类型',taskTypeColumns)">
  81. {{ taskTypeDisplayText || '请选择任务类型' }}
  82. <image class="icon" src="/static/image/icon_more.png"></image>
  83. </view>
  84. </view>
  85. <view class="form-item">
  86. <view class="form-label">
  87. <text class="required">*</text>
  88. <text>计划开始时间</text>
  89. </view>
  90. <view class="form-input picker-input" :class="{ placeholder: !formData.planStartTime }"
  91. @click="showStartTimePicker = true">
  92. {{ formData.planStartTime || '请选择计划开始时间' }}
  93. <image class="icon" src="/static/image/icon_more.png"></image>
  94. </view>
  95. </view>
  96. <view class="form-item">
  97. <view class="form-label">
  98. <text class="required">*</text>
  99. <text>计划结束时间</text>
  100. </view>
  101. <view class="form-input picker-input" :class="{ placeholder: !formData.planEndTime }"
  102. @click="showEndTimePicker = true">
  103. {{ formData.planEndTime || '请选择计划结束时间' }}
  104. <image class="icon" src="/static/image/icon_more.png"></image>
  105. </view>
  106. </view>
  107. <!-- 观看方式 -->
  108. <!-- <view class="form-item">
  109. <view class="form-label">
  110. <text class="required">*</text>
  111. <text>观看方式</text>
  112. </view>
  113. <view class="radio-group">
  114. <label class="radio-item" :class="{ active: formData.viewMode === '公开' }"
  115. @click="formData.viewMode = '公开'">
  116. <image class="radio-circle" v-if="formData.viewMode === '公开'"
  117. src="/static/image/icon_circle_sel.png"></image>
  118. <image class="radio-circle" v-else src="/static/image/icon_circle.png"></image>
  119. <text>公开</text>
  120. </label>
  121. <label class="radio-item" :class="{ active: formData.viewMode === '加密' }"
  122. @click="formData.viewMode = '加密'">
  123. <image class="radio-circle" v-if="formData.viewMode === '加密'"
  124. src="/static/image/icon_circle_sel.png"></image>
  125. <image class="radio-circle" v-else src="/static/image/icon_circle.png"></image>
  126. <text>加密</text>
  127. </label>
  128. </view>
  129. </view> -->
  130. <!-- 观看要求 -->
  131. <!-- <view class="form-item">
  132. <view class="form-label">
  133. <text class="required">*</text>
  134. <text>观看要求</text>
  135. </view>
  136. <view class="radio-group">
  137. <label class="radio-item" :class="{ active: formData.viewRequire === '登录账户' }"
  138. @click="formData.viewRequire = '登录账户'">
  139. <image class="radio-circle" v-if="formData.viewRequire === '登录账户'"
  140. src="/static/image/icon_circle_sel.png"></image>
  141. <image class="radio-circle" v-else src="/static/image/icon_circle.png"></image>
  142. <text>登录账户</text>
  143. </label>
  144. <label class="radio-item" :class="{ active: formData.viewRequire === '认证客户' }"
  145. @click="formData.viewRequire = '认证客户'">
  146. <image class="radio-circle" v-if="formData.viewRequire === '认证客户'"
  147. src="/static/image/icon_circle_sel.png"></image>
  148. <image class="radio-circle" v-else src="/static/image/icon_circle.png"></image>
  149. <text>认证客户</text>
  150. </label>
  151. </view>
  152. </view> -->
  153. </view>
  154. <!-- <view class="form-section">
  155. <view class="form-item">
  156. <view class="form-label">
  157. <text class="required">*</text>
  158. <text>直播间标题</text>
  159. </view>
  160. <view class="form-input">
  161. <input v-model="formData.roomTitle" placeholder="请输入直播间标题" />
  162. </view>
  163. </view>
  164. <view class="form-item column baseline">
  165. <view class="form-label">
  166. <text class="required">*</text>
  167. <text>封面图</text>
  168. </view>
  169. <view class="upload-area" @click="chooseCoverImage">
  170. <image v-if="formData.coverImage" :src="formData.coverImage" class="cover-image" />
  171. <view v-else class="upload-placeholder">
  172. <text>点击上传封面图</text>
  173. </view>
  174. <image v-if="formData.coverImage" class="delete-icon" src="/static/image/icon_cross.png"
  175. @click.stop="deleteCoverImage" />
  176. </view>
  177. </view>
  178. </view> -->
  179. <view class="form-section">
  180. <!-- 申请补充讲者任务 -->
  181. <view class="form-item">
  182. <view class="form-label">
  183. <text class="required">*</text>
  184. <text>申请补充讲者任务</text>
  185. </view>
  186. <EvanSwitch v-model="formData.applySpeaker"></EvanSwitch>
  187. </view>
  188. </view>
  189. </scroll-view>
  190. <view class="next-button" @click="toNext">下一步</view>
  191. <u-picker :title='pickerTitle' :show="showPickerVisible" confirmColor='#576B95' ref="uPicker"
  192. :columns="pickerData" @confirm="confirm" @cancel="cancel">
  193. </u-picker>
  194. <u-datetime-picker :show="showStartTimePicker" v-model="startTimeValue" mode="date"
  195. confirmColor='#576B95' @confirm="onStartTimeConfirm" @cancel="showStartTimePicker = false">
  196. </u-datetime-picker>
  197. <u-datetime-picker :show="showEndTimePicker" v-model="endTimeValue" mode="date"
  198. confirmColor='#576B95' @confirm="onEndTimeConfirm" @cancel="showEndTimePicker = false">
  199. </u-datetime-picker>
  200. <u-popup :show="showBelongingPopup" mode="bottom" round="20" @close="closePopup" closeable>
  201. <view class="popup-content p32">
  202. <view class="popup-header">
  203. <text class="title">归属项目</text>
  204. </view>
  205. <view class="search-box">
  206. <image class="icon" src="/static/image/search.png"></image>
  207. <u-input v-model="searchKeyword" placeholder="请输入归属项目" border="none" clearable />
  208. </view>
  209. <scroll-view scroll-y class="project-list">
  210. <view v-for="(project, index) in filteredProjects" :key="index" class="project-item"
  211. :class="{ active: selectedIndex === index }" @tap="selectProject(project, index)">
  212. <text class="project-name">{{ project.name }}</text>
  213. <image class="icon" src="/static/image/icon_right.png"></image>
  214. </view>
  215. </scroll-view>
  216. </view>
  217. </u-popup>
  218. <u-popup :show="showTaskPopup" mode="bottom" round="16" @close="showTaskPopup = false" safeAreaInsetBottom>
  219. <view class="popup-content">
  220. <view class="popup-header">
  221. <text class="popup-title">任务归属</text>
  222. <image class="close-icon" src="/static/image/icon_cross.png" @click="showTaskPopup=false"></image>
  223. </view>
  224. <view class="two-level-container">
  225. <scroll-view class="primary-list" scroll-y>
  226. <view v-for="(item, index) in primaryOptions" :key="index" class="primary-item"
  227. :class="{ 'primary-active': activePrimaryIndex === index }"
  228. @click="handlePrimarySelect(index)">
  229. <text class="primary-text">{{ item.name }}</text>
  230. </view>
  231. </scroll-view>
  232. <scroll-view class="secondary-list" scroll-y>
  233. <view v-for="(subItem, subIndex) in currentSecondaryOptions" :key="subIndex"
  234. class="secondary-item" :class="{ 'secondary-active': selectedSecondaryItem === subItem }"
  235. @click="handleSecondarySelect(subItem)">
  236. <text class="secondary-text">{{ subItem }}</text>
  237. <u-icon v-if="selectedSecondaryItem === subItem" name="checkbox-mark" color="#2979ff"
  238. size="20" />
  239. </view>
  240. </scroll-view>
  241. </view>
  242. <view class="popup-footer">
  243. <button class="confirm-btn" @click="handleConfirm">确定</button>
  244. </view>
  245. </view>
  246. </u-popup>
  247. <!-- 通用选择器 -->
  248. <u-picker :title='pickerTitle' :show="showPickerVisible" confirmColor='#576B95' ref="uPicker"
  249. :columns="pickerData" @confirm="confirm" @cancel="cancel">
  250. </u-picker>
  251. <!-- 归属项目弹窗 -->
  252. <u-popup :show="showBelongingPopup" mode="bottom" round="20" @close="closePopup" closeable>
  253. <view class="popup-content p32">
  254. <view class="popup-header">
  255. <text class="title">归属项目</text>
  256. </view>
  257. <view class="search-box">
  258. <image class="icon" src="/static/image/search.png"></image>
  259. <u-input v-model="searchKeyword" placeholder="请输入归属项目" border="none" clearable />
  260. </view>
  261. <scroll-view scroll-y class="project-list">
  262. <view v-for="(project, index) in filteredProjects" :key="index" class="project-item"
  263. :class="{ active: selectedIndex === index }" @tap="selectProject(project, index)">
  264. <text class="project-name">{{ project.name }}</text>
  265. <image class="icon" src="/static/image/icon_right.png"></image>
  266. </view>
  267. </scroll-view>
  268. </view>
  269. </u-popup>
  270. <!-- 任务归属弹窗 -->
  271. <u-popup :show="showTaskPopup" mode="bottom" round="16" @close="showTaskPopup = false" safeAreaInsetBottom>
  272. <view class="popup-content">
  273. <view class="popup-header">
  274. <text class="popup-title">任务归属</text>
  275. <image class="close-icon" src="/static/image/icon_cross.png" @click="showTaskPopup=false"></image>
  276. </view>
  277. <view class="two-level-container">
  278. <scroll-view class="primary-list" scroll-y>
  279. <view v-for="(item, index) in primaryOptions" :key="index" class="primary-item"
  280. :class="{ 'primary-active': activePrimaryIndex === index }"
  281. @click="handlePrimarySelect(index)">
  282. <text class="primary-text">{{ item.name }}</text>
  283. </view>
  284. </scroll-view>
  285. <scroll-view class="secondary-list" scroll-y>
  286. <view v-for="(subItem, subIndex) in currentSecondaryOptions" :key="subIndex"
  287. class="secondary-item" :class="{ 'secondary-active': selectedSecondaryItem === subItem }"
  288. @click="handleSecondarySelect(subItem)">
  289. <text class="secondary-text">{{ subItem }}</text>
  290. <u-icon v-if="selectedSecondaryItem === subItem" name="checkbox-mark" color="#2979ff"
  291. size="20" />
  292. </view>
  293. </scroll-view>
  294. </view>
  295. <view class="popup-footer">
  296. <button class="confirm-btn" @click="handleConfirm">确定</button>
  297. </view>
  298. </view>
  299. </u-popup>
  300. </view>
  301. </template>
  302. <script>
  303. import { info, queryAllData, queryAllProduct, getAllData, company } from '@/api/task'
  304. import Step from '@/pages_task/components/step.vue'
  305. import EvanSwitch from '@/components/evan-switch.vue'
  306. import utils from '@/utils/common.js'
  307. export default {
  308. components: {
  309. Step,
  310. EvanSwitch
  311. },
  312. data() {
  313. return {
  314. showTaskPopup: false,
  315. primaryOptions: [],
  316. activePrimaryIndex: 0,
  317. currentSecondaryOptions: [],
  318. selectedSecondaryItem: '',
  319. selectedPrimaryItem: null,
  320. selectedIndex: -1,
  321. selectedProject: null,
  322. belongingprojects: [],
  323. searchKeyword: '',
  324. showBelongingPopup: false,
  325. showPickerVisible: false,
  326. currentStep: 1,
  327. currentText: [{
  328. id: 1,
  329. stepNumber: 1,
  330. title: '填写任务'
  331. },
  332. {
  333. id: 2,
  334. stepNumber: 2,
  335. title: '积分设置'
  336. }
  337. ],
  338. rejectionInfo: '',
  339. // 核心修复:所有表单字段统一放在formData里
  340. formData: {
  341. id:'',
  342. costShareId: '',
  343. planStartTime: '',
  344. planEndTime: '',
  345. deptId: '',
  346. projectId: '',
  347. productId: '',
  348. taskType: '',
  349. belongType: '',
  350. addRemark: false,
  351. viewMode: '公开', // 观看方式默认值
  352. viewRequire: '登录账户', // 观看要求默认值
  353. roomTitle: '', // 直播间标题
  354. coverImage: '', // 封面图
  355. applySpeaker: true // 申请补充讲者任务
  356. },
  357. pickerTitle: '默认标题',
  358. pickerData: [],
  359. companyId:'',
  360. showStartTimePicker: false,
  361. showEndTimePicker: false,
  362. startTimeValue: new Date(),
  363. endTimeValue: new Date(),
  364. originalCompanyData: null,
  365. companyData: [],
  366. companyList: [],
  367. productList: [],
  368. taskTypeOriginalData: [],
  369. taskTypeDict: [],
  370. belongTypeList: [],
  371. projectData: [],
  372. userInfo: {},
  373. // 页面显示数据
  374. deptName: '',
  375. costShareName: '',
  376. productName: '',
  377. projectName: '',
  378. id:'',
  379. doctorId:''
  380. }
  381. },
  382. onLoad: async function(options) {
  383. console.log("编辑任务接受数据",options);
  384. try {
  385. this.taskTypeDict = await utils.getDicts("task_type");//任务类型
  386. this.belongTypeList = await utils.getDicts("task_belong_type");//任务类型
  387. } catch (e) {
  388. console.log('获取字典数据失败:', e)
  389. }
  390. if(options.id){
  391. console.log('有id',options.id);
  392. this.id=options.id
  393. this.formData.id=options.id
  394. }
  395. if(options.doctorId){
  396. this.doctorId=options.doctorId
  397. }
  398. this.userInfo=JSON.parse(uni.getStorageSync("userInfo"))||''
  399. if (options.rejectionInfo) {
  400. this.rejectionInfo = decodeURIComponent(options.rejectionInfo)
  401. }
  402. // 初始化二级选项
  403. this.currentSecondaryOptions = this.primaryOptions[0]?.children || []
  404. // 获取用户信息
  405. const userInfoStr = uni.getStorageSync('userInfo')
  406. this.userInfo = userInfoStr ? JSON.parse(userInfoStr) : {}
  407. console.log(this.userInfo);
  408. // 加载信息
  409. this.companyId = this.userInfo.companyId || 1
  410. // 设置默认日期为当天
  411. this.formData.planStartTime = this.formatDateTime(new Date());
  412. this.formData.planEndTime = this.formatDateTime(new Date());
  413. this.info();
  414. },
  415. computed: {
  416. filteredProjects() {
  417. if (!this.searchKeyword.trim()) {
  418. return this.belongingprojects;
  419. }
  420. return this.belongingprojects.filter(project =>
  421. project.name.includes(this.searchKeyword)
  422. );
  423. },
  424. taskTypeDisplayText() {
  425. console.log('计算taskTypeDisplayText, formData.taskType:', this.formData.taskType);
  426. console.log('计算taskTypeDisplayText, taskTypeOriginalData:', this.taskTypeOriginalData);
  427. if (!this.formData.taskType || !this.taskTypeOriginalData) {
  428. return '';
  429. }
  430. const selectedType = this.taskTypeOriginalData.find(item => item.dictValue === this.formData.taskType);
  431. console.log('找到的selectedType:', selectedType);
  432. return selectedType ? selectedType.dictLabel : '';
  433. },
  434. institutionDisplayText() {
  435. if (!this.formData.deptId || !this.companyData) {
  436. return '';
  437. }
  438. const selectedItem = this.companyData.find(item => item.deptId === this.formData.deptId);
  439. return selectedItem ? selectedItem.deptName : '';
  440. },
  441. costAllocationDisplayText() {
  442. if (!this.formData.costShareId || !this.companyData) {
  443. return '';
  444. }
  445. const selectedItem = this.companyData.find(item => item.deptId === this.formData.costShareId);
  446. return selectedItem ? selectedItem.deptName : '';
  447. },
  448. belongingProjectDisplayText() {
  449. console.log('计算belongingProjectDisplayText:', this.formData.projectId, this.projectData);
  450. if (!this.formData.projectId || !this.projectData) {
  451. console.log('formData.projectId或projectData为空');
  452. return '';
  453. }
  454. const selectedItem = this.projectData.find(item => item.id === this.formData.projectId);
  455. console.log('找到的项目:', selectedItem);
  456. return selectedItem ? selectedItem.projectName : '';
  457. },
  458. productNameDisplayText() {
  459. if (!this.formData.productId || !this.productList) {
  460. return '';
  461. }
  462. const selectedItem = this.productList.find(item => item.id === this.formData.productId);
  463. return selectedItem ? selectedItem.productName : '';
  464. },
  465. belongTypeDisplayText() {
  466. if (!this.formData.belongType || !this.belongTypeList) {
  467. return '';
  468. }
  469. const selectedItem = this.belongTypeList.find(item => item.dictValue === this.formData.belongType);
  470. return selectedItem ? selectedItem.dictLabel : '';
  471. }
  472. },
  473. methods: {
  474. // 任务详情查询
  475. info() {
  476. info(this.id).then(res => {
  477. if (res.code === 200) {
  478. const data = res.data;
  479. // 直接将接口返回的数据赋值给 formData
  480. this.formData = {
  481. // 基本信息
  482. id: this.id || '',
  483. deptId: data.deptId || '',
  484. deptName: data.deptName || '',
  485. projectId: data.projectId || '',
  486. productId: data.productId || '',
  487. costShareId: data.costShareId || '',
  488. belongType: data.belongType || '',
  489. taskType: data.taskType || '',
  490. addRemark: false,
  491. // 时间信息
  492. planStartTime: data.planStartTime || '',
  493. planEndTime: data.planEndTime || '',
  494. // 直播信息
  495. viewMode: '公开', // 观看方式默认值
  496. viewRequire: '登录账户', // 观看要求默认值
  497. roomTitle: '', // 直播间标题
  498. coverImage: '', // 封面图
  499. applySpeaker: true // 申请补充讲者任务
  500. };
  501. // 保存其他需要的数据
  502. this.deptName = data.deptName || '';
  503. this.costShareName = data.costShareName || '';
  504. this.productName = data.productName || '';
  505. this.projectName = data.projectName || '';
  506. } else {
  507. uni.showToast({
  508. title: '查询任务详情失败',
  509. icon: 'none'
  510. });
  511. }
  512. })
  513. },
  514. // 封面图上传
  515. chooseCoverImage() {
  516. uni.chooseImage({
  517. count: 1,
  518. sizeType: ['compressed'],
  519. sourceType: ['album', 'camera'],
  520. success: (res) => {
  521. this.formData.coverImage = res.tempFilePaths[0]
  522. }
  523. })
  524. },
  525. // 删除封面图
  526. deleteCoverImage() {
  527. this.formData.coverImage = ''
  528. },
  529. // 一级分类选择
  530. handlePrimarySelect(index) {
  531. this.activePrimaryIndex = index;
  532. this.currentSecondaryOptions = this.primaryOptions[index].children || [];
  533. this.selectedSecondaryItem = '';
  534. },
  535. // 二级分类选择
  536. handleSecondarySelect(item) {
  537. this.selectedSecondaryItem = item;
  538. this.selectedPrimaryItem = this.primaryOptions[this.activePrimaryIndex];
  539. },
  540. // 任务归属确认
  541. handleConfirm() {
  542. if (this.selectedSecondaryItem) {
  543. const displayText = `${this.selectedPrimaryItem.name} > ${this.selectedSecondaryItem}`;
  544. this.formData.institution = displayText;
  545. this.showTaskPopup = false;
  546. } else {
  547. uni.showToast({
  548. title: '请选择二级部门',
  549. icon: 'none'
  550. });
  551. }
  552. },
  553. // 关闭归属项目弹窗
  554. closePopup() {
  555. this.showBelongingPopup = false;
  556. this.searchKeyword = '';
  557. this.selectedIndex = -1;
  558. },
  559. // 选择归属项目
  560. selectProject(project, index) {
  561. this.selectedIndex = index;
  562. this.selectedProject = project;
  563. this.formData.belongingProject = project.name;
  564. setTimeout(() => {
  565. this.showBelongingPopup = false;
  566. this.searchKeyword = '';
  567. this.selectedIndex = -1;
  568. }, 300);
  569. },
  570. //任务类型
  571. queryAllData(){
  572. return new Promise((resolve, reject) => {
  573. if(!this.formData.productId){
  574. uni.showToast({
  575. title: '请先选择产品',
  576. icon: 'none'
  577. })
  578. resolve();
  579. return
  580. }
  581. let data={
  582. companyId:this.userInfo.companyId||'',
  583. deptId:this.formData.deptId||'',
  584. productId:this.formData.productId||'',
  585. }
  586. queryAllData(data).then(res => {
  587. if (res.code === 200) {
  588. // 处理任务类型
  589. this.taskType = res.data || []
  590. console.log('company接口返回数据:', res)
  591. // 处理taskTypeIds,获取对应的字典数据
  592. if (res.data && res.data.length > 0) {
  593. const firstData = res.data[0];
  594. if (firstData.taskTypeIds) {
  595. // 分割taskTypeIds为数组
  596. const taskTypeIdsArray = firstData.taskTypeIds.split(',');
  597. // 从字典表中筛选出对应的项
  598. const filteredTaskTypes = this.taskTypeDict.filter(item =>
  599. taskTypeIdsArray.includes(item.dictValue)
  600. );
  601. // 保存原始数据(包含dictLabel和dictValue)
  602. this.taskTypeOriginalData = filteredTaskTypes;
  603. // 提取dictLabel并放到taskTypeColumns中
  604. const taskTypeLabels = filteredTaskTypes.map(item => item.dictLabel);
  605. this.taskTypeColumns = [taskTypeLabels];
  606. console.log('处理后的taskTypeColumns:', this.taskTypeColumns);
  607. console.log('任务类型原始数据:', this.taskTypeOriginalData);
  608. }
  609. }
  610. }
  611. resolve(res);
  612. }).catch(err => {
  613. console.error('获取任务类型失败:', err);
  614. reject(err);
  615. });
  616. });
  617. },
  618. //获取公司所有产品
  619. async queryAllProduct(){
  620. return new Promise((resolve, reject) => {
  621. let data={
  622. companyId:this.userInfo.companyId||'',
  623. }
  624. queryAllProduct(data).then(res => {
  625. if (res.code === 200) {
  626. // 处理公司所有产品数据
  627. this.productList = res.data || []
  628. console.log('company接口返回数据:', res)
  629. }
  630. resolve(res);
  631. }).catch(err => {
  632. console.error('获取公司所有产品失败:', err);
  633. reject(err);
  634. });
  635. });
  636. },
  637. // 归属项目
  638. async getAllData(){
  639. return new Promise((resolve, reject) => {
  640. let data={
  641. companyId:this.userInfo.companyId||'',
  642. deptId:this.userInfo.deptId||'',
  643. productCode:this.userInfo.productCode||''
  644. }
  645. getAllData(data).then(res => {
  646. if (res.code === 200) {
  647. // 处理公司项目设置列表数据
  648. this.companyList = res.data || []
  649. // 保存项目数据用于显示
  650. this.projectData = res.data || []
  651. console.log('company接口返回数据:', res)
  652. console.log('companyList数据结构:', this.companyList)
  653. }
  654. resolve(res);
  655. }).catch(err => {
  656. console.error('获取公司项目设置失败:', err);
  657. reject(err);
  658. });
  659. });
  660. },
  661. async company() {
  662. return new Promise((resolve, reject) => {
  663. try {
  664. uni.showLoading({
  665. title: '加载中...'
  666. })
  667. // 调用company接口获取公司项目设置列表
  668. company(this.companyId).then(companyRes => {
  669. uni.hideLoading()
  670. if (companyRes.code === 200) {
  671. // 处理公司项目设置列表数据
  672. this.companyData = companyRes.data || []
  673. console.log('company接口返回数据:', companyRes)
  674. // 这里可以根据接口返回的数据进行页面初始化,比如填充项目列表
  675. }
  676. resolve(companyRes);
  677. }).catch(e => {
  678. uni.hideLoading()
  679. console.error('加载信息失败', e)
  680. uni.showToast({
  681. title: '网络错误',
  682. icon: 'none'
  683. })
  684. reject(e);
  685. });
  686. } catch (e) {
  687. uni.hideLoading()
  688. console.error('加载信息失败', e)
  689. uni.showToast({
  690. title: '网络错误',
  691. icon: 'none'
  692. })
  693. reject(e);
  694. }
  695. });
  696. },
  697. // 打开通用选择器
  698. async showPicker(title, data) {
  699. // 根据不同的title调用对应的请求方法
  700. if (title === '任务归属' || title === '费用分摊') {
  701. // 调用company()获取任务归属和费用分摊数据
  702. await this.company();
  703. data = this.companyData;
  704. } else if (title === '归属项目') {
  705. // 调用getAllData()获取归属项目数据
  706. await this.getAllData();
  707. data = this.companyList;
  708. console.log('归属项目数据:', data);
  709. } else if (title === '产品代码') {
  710. // 调用queryAllProduct()获取产品代码数据
  711. await this.queryAllProduct();
  712. data = this.productList;
  713. } else if (title === '任务类型') {
  714. // queryAllData()获取任务类型数据
  715. await this.queryAllData();
  716. // 使用处理后的taskTypeColumns作为数据
  717. data = this.taskTypeColumns;
  718. console.log('任务类型数据:', data);
  719. } else if (title === '归属类型') {
  720. // 归属类型数据已经在onLoad中获取
  721. data = this.belongTypeList;
  722. console.log('归属类型数据:', data);
  723. }
  724. // 处理任务归属和费用分摊数据,将deptName作为显示文本
  725. if ((title === '任务归属' || title === '费用分摊') && data && data.length > 0) {
  726. // 转换为picker需要的格式
  727. this.pickerData = [data.map(item => item.deptName)]
  728. // 保存原始数据,用于后续获取deptId
  729. this.originalCompanyData = data
  730. } else if (title === '归属项目' && data && data.length > 0) {
  731. // 处理归属项目数据,将projectName作为显示文本
  732. this.pickerData = [data.map(item => item.projectName)]
  733. // 保存原始数据,用于后续获取productId
  734. this.originalCompanyData = data
  735. } else if (title === '产品代码' && data && data.length > 0) {
  736. // 处理产品代码数据,将productName作为显示文本
  737. this.pickerData = [data.map(item => item.productName)]
  738. // 保存原始数据,用于后续获取productCode
  739. this.originalCompanyData = data
  740. } else if (title === '归属类型' && data && data.length > 0) {
  741. // 处理归属类型数据,将dictLabel作为显示文本
  742. this.pickerData = [data.map(item => item.dictLabel)]
  743. // 保存原始数据,用于后续获取dictType
  744. this.originalCompanyData = data
  745. } else {
  746. this.pickerData = data
  747. this.originalCompanyData = null
  748. }
  749. this.pickerTitle = title
  750. console.log('打开picker, pickerTitle:', this.pickerTitle);
  751. console.log('pickerData:', this.pickerData);
  752. this.showPickerVisible = true
  753. },
  754. // 通用选择器确认
  755. confirm(e) {
  756. console.log('confirm事件返回值:', e);
  757. console.log('pickerTitle:', this.pickerTitle);
  758. console.log('e.value:', e.value);
  759. if (e.value && e.value.length > 0) {
  760. if (this.pickerTitle === '费用分摊') {
  761. // e.value[0]是选中的文本值(deptName)
  762. const selectedDeptStr = e.value[0];
  763. console.log('选中的费用分摊文本:', selectedDeptStr);
  764. console.log('originalCompanyData:', this.originalCompanyData);
  765. // 从originalCompanyData中找到对应的项
  766. const selectedItem = this.originalCompanyData.find(item => item.deptName === selectedDeptStr);
  767. if (selectedItem) {
  768. // 保存deptId到表单(存储id值)
  769. this.formData.costShareId = selectedItem.deptId;
  770. console.log('设置formData.costShareId为:', selectedItem.deptId);
  771. } else {
  772. this.formData.costShareId = '';
  773. console.log('未找到对应的费用分摊');
  774. }
  775. } else if (this.pickerTitle === '任务类型') {
  776. // e.value[0]是选中的文本值(dictLabel)
  777. const selectedLabel = e.value[0];
  778. console.log('选中的任务类型文本:', selectedLabel);
  779. console.log('taskTypeOriginalData:', this.taskTypeOriginalData);
  780. // 从taskTypeOriginalData中找到对应的项
  781. const selectedType = this.taskTypeOriginalData.find(item => item.dictLabel === selectedLabel);
  782. if (selectedType) {
  783. this.formData.taskType = selectedType.dictValue;
  784. console.log('设置formData.taskType为:', selectedType.dictValue);
  785. } else {
  786. }
  787. } else if (this.pickerTitle === '任务归属' && this.originalCompanyData) {
  788. // e.value[0]是选中的文本值(deptName)
  789. const selectedDeptStr = e.value[0];
  790. console.log('选中的任务归属文本:', selectedDeptStr);
  791. console.log('originalCompanyData:', this.originalCompanyData);
  792. // 从originalCompanyData中找到对应的项
  793. const selectedItem = this.originalCompanyData.find(item => item.deptName === selectedDeptStr);
  794. if (selectedItem) {
  795. // 保存deptId到表单(存储id值)
  796. this.formData.deptId = selectedItem.deptId;
  797. console.log('设置formData.deptId为:', selectedItem.deptId);
  798. } else {
  799. }
  800. } else if (this.pickerTitle === '归属项目' && this.originalCompanyData) {
  801. // e.value[0]是选中的文本值(projectName)
  802. const selectedProjectName = e.value[0];
  803. console.log('选中的归属项目文本:', selectedProjectName);
  804. console.log('originalCompanyData:', this.originalCompanyData);
  805. // 从originalCompanyData中找到对应的项
  806. const selectedItem = this.originalCompanyData.find(item => item.projectName === selectedProjectName);
  807. if (selectedItem) {
  808. // 保存id到表单(存储id值)
  809. this.formData.projectId = selectedItem.id;
  810. // 保存productId到表单
  811. this.formData.productId = selectedItem.productId;
  812. console.log('设置formData.projectId为:', selectedItem.id);
  813. } else {
  814. }
  815. } else if (this.pickerTitle === '产品代码' && this.originalCompanyData) {
  816. // e.value[0]是选中的文本值(productName)
  817. const selectedProductName = e.value[0];
  818. console.log('选中的产品代码文本:', selectedProductName);
  819. console.log('originalCompanyData:', this.originalCompanyData);
  820. // 从originalCompanyData中找到对应的项
  821. const selectedItem = this.originalCompanyData.find(item => item.productName === selectedProductName);
  822. if (selectedItem) {
  823. // 保存id到表单
  824. this.formData.productId = selectedItem.id;
  825. // 保存id用于获取任务类型
  826. console.log('设置formData.productId为:', selectedItem.id);
  827. } else {
  828. }
  829. } else if (this.pickerTitle === '归属类型' && this.originalCompanyData) {
  830. // e.value[0]是选中的文本值(dictLabel)
  831. const selectedLabel = e.value[0];
  832. console.log('选中的归属类型文本:', selectedLabel);
  833. console.log('originalCompanyData:', this.originalCompanyData);
  834. // 从originalCompanyData中找到对应的项
  835. const selectedItem = this.originalCompanyData.find(item => item.dictLabel === selectedLabel);
  836. if (selectedItem) {
  837. // 保存dictValue到表单的belongType字段
  838. this.formData.belongType = selectedItem.dictValue;
  839. console.log('设置formData.belongType为:', selectedItem.dictValue);
  840. } else {
  841. console.log('未找到对应的归属类型');
  842. }
  843. }
  844. }
  845. this.showPickerVisible = false
  846. },
  847. // 通用选择器取消
  848. cancel() {
  849. this.showPickerVisible = false
  850. },
  851. // 下一步
  852. toNext() {
  853. console.log('去编辑积分:', this.doctorId);
  854. console.log('去编辑积分formData:', this.formData);
  855. // 保存表单数据到本地存储,以便 editSelectCustomer.vue 页面使用
  856. uni.setStorageSync('fillTaskFormData', JSON.stringify(this.formData));
  857. uni.navigateTo({
  858. url: `/pages_task/editSelectCustomer?doctorId=${this.doctorId}`
  859. })
  860. },
  861. // 提交表单
  862. submit() {
  863. console.log('提交表单数据:', this.formData);
  864. // 这里可以添加表单验证逻辑
  865. // 然后调用接口提交数据
  866. uni.showToast({
  867. title: '提交成功',
  868. icon: 'success'
  869. });
  870. },
  871. // 开始时间选择确认
  872. onStartTimeConfirm(e) {
  873. this.formData.planStartTime = this.formatDateTime(e.value);
  874. this.showStartTimePicker = false;
  875. },
  876. // 结束时间选择确认
  877. onEndTimeConfirm(e) {
  878. this.formData.planEndTime = this.formatDateTime(e.value);
  879. this.showEndTimePicker = false;
  880. },
  881. // 格式化日期时间
  882. formatDateTime(timestamp) {
  883. const date = new Date(timestamp);
  884. const year = date.getFullYear();
  885. const month = String(date.getMonth() + 1).padStart(2, '0');
  886. const day = String(date.getDate()).padStart(2, '0');
  887. // const hours = String(date.getHours()).padStart(2, '0');
  888. // const minutes = String(date.getMinutes()).padStart(2, '0');
  889. // const seconds = String(date.getSeconds()).padStart(2, '0');
  890. // ${hours}:${minutes}:${seconds}
  891. return `${year}-${month}-${day}`;
  892. }
  893. }
  894. }
  895. </script>
  896. <style lang="scss" scoped>
  897. .column {
  898. flex-direction: column;
  899. }
  900. .baseline {
  901. align-items: baseline !important;
  902. }
  903. // 页面容器样式
  904. .container {
  905. min-height: 100vh;
  906. background: #F7F8FA;
  907. display: flex;
  908. flex-direction: column;
  909. position: relative;
  910. // 顶部渐变背景
  911. &::before {
  912. content: '';
  913. position: absolute;
  914. top: 0;
  915. left: 0;
  916. right: 0;
  917. width: 100%;
  918. height: 544rpx;
  919. background: linear-gradient(180deg, #E4EFFE 0%, rgba(228, 239, 254, 0) 100%);
  920. }
  921. // 滚动内容区
  922. .content {
  923. flex: 1;
  924. box-sizing: border-box;
  925. // 驳回提示
  926. .rejection-banner {
  927. display: flex;
  928. align-items: center;
  929. padding: 24rpx;
  930. background: #FF5030;
  931. color: #fff;
  932. margin: 24rpx;
  933. border-radius: 8rpx;
  934. .rejection-icon {
  935. width: 40rpx;
  936. height: 40rpx;
  937. border-radius: 50%;
  938. background: rgba(255, 255, 255, 0.3);
  939. display: flex;
  940. align-items: center;
  941. justify-content: center;
  942. font-size: 24rpx;
  943. margin-right: 16rpx;
  944. }
  945. .rejection-text {
  946. flex: 1;
  947. font-size: 28rpx;
  948. line-height: 1.5;
  949. }
  950. }
  951. // 表单区域
  952. .form-section {
  953. background: #fff;
  954. margin: 20rpx;
  955. border-radius: 24rpx;
  956. padding: 32rpx;
  957. // 表单项
  958. .form-item {
  959. display: flex;
  960. justify-content: space-between;
  961. align-items: center;
  962. border-bottom: 1px solid #EBEDF0;
  963. padding: 30rpx 0;
  964. &:last-child {
  965. border-bottom: 0;
  966. }
  967. // 表单标签
  968. .form-label {
  969. display: flex;
  970. align-items: center;
  971. font-size: 28rpx;
  972. color: #333;
  973. margin-bottom: 16rpx;
  974. .required {
  975. color: #CF3546;
  976. margin-right: 4rpx;
  977. }
  978. }
  979. // 纯文本展示
  980. .txt {
  981. font-size: 28rpx;
  982. color: #333333;
  983. }
  984. // 输入框容器
  985. .form-input {
  986. flex: 1;
  987. font-size: 28rpx;
  988. color: #C8C9CC;
  989. text-align: end;
  990. &.placeholder {
  991. color: #C8C9CC;
  992. }
  993. &.picker-input {
  994. display: flex;
  995. align-items: center;
  996. justify-content: flex-end;
  997. }
  998. .icon {
  999. width: 36rpx;
  1000. height: 36rpx;
  1001. }
  1002. }
  1003. // 单选组样式(嵌套到form-item里)
  1004. .radio-group {
  1005. display: flex;
  1006. gap: 40rpx;
  1007. .radio-item {
  1008. display: flex;
  1009. align-items: center;
  1010. font-size: 28rpx;
  1011. .radio-circle {
  1012. width: 36rpx;
  1013. height: 36rpx;
  1014. border-radius: 50%;
  1015. margin-right: 16rpx;
  1016. }
  1017. }
  1018. }
  1019. // 上传区域样式(嵌套到form-item里)
  1020. .upload-area {
  1021. position: relative;
  1022. width: 200rpx;
  1023. height: 120rpx;
  1024. border: 1rpx dashed #C8C9CC;
  1025. border-radius: 8rpx;
  1026. display: flex;
  1027. align-items: center;
  1028. justify-content: center;
  1029. .cover-image {
  1030. width: 100%;
  1031. height: 100%;
  1032. border-radius: 8rpx;
  1033. }
  1034. .upload-placeholder {
  1035. color: #C8C9CC;
  1036. font-size: 24rpx;
  1037. }
  1038. .delete-icon {
  1039. position: absolute;
  1040. top: -12rpx;
  1041. right: -12rpx;
  1042. width: 32rpx;
  1043. height: 32rpx;
  1044. background: #fff;
  1045. border-radius: 50%;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. }
  1051. // 下一步按钮
  1052. .next-button {
  1053. text-align: center;
  1054. font-size: 32rpx;
  1055. color: #FFFFFF;
  1056. height: 88rpx;
  1057. line-height: 88rpx;
  1058. background: #388BFF;
  1059. border-radius: 200rpx;
  1060. margin: 32rpx;
  1061. }
  1062. }
  1063. // 弹窗样式
  1064. ::v-deep .u-popup__content {
  1065. border-radius: 40rpx 40rpx 0 0 !important;
  1066. }
  1067. .popup-content {
  1068. border-radius: 40rpx 40rpx 0rpx 0rpx;
  1069. height: 70vh;
  1070. background-color: #fff;
  1071. .popup-header {
  1072. padding: 40rpx 30rpx 20rpx;
  1073. text-align: center;
  1074. .close-icon {
  1075. width: 44rpx;
  1076. height: 44rpx;
  1077. position: absolute;
  1078. right: 32rpx;
  1079. }
  1080. flex-shrink: 0;
  1081. .title,
  1082. .popup-title {
  1083. font-size: 32rpx;
  1084. font-weight: 600;
  1085. color: #333;
  1086. }
  1087. }
  1088. .search-box {
  1089. display: flex;
  1090. align-items: center;
  1091. background: #F7F8FA;
  1092. border-radius: 38rpx;
  1093. padding: 16rpx 28rpx;
  1094. margin-bottom: 24rpx;
  1095. .icon {
  1096. width: 26rpx;
  1097. height: 26rpx;
  1098. margin-right: 10rpx;
  1099. }
  1100. }
  1101. .project-list {
  1102. height: calc(100% - 200rpx);
  1103. .project-item {
  1104. display: flex;
  1105. justify-content: space-between;
  1106. align-items: center;
  1107. padding: 28rpx 0;
  1108. font-size: 28rpx;
  1109. border-bottom: 1rpx solid #eee;
  1110. &:active {
  1111. background-color: #f9f9f9;
  1112. }
  1113. &.active {
  1114. .project-name {
  1115. font-weight: 500;
  1116. color: #388BFF;
  1117. }
  1118. .icon {
  1119. opacity: 1;
  1120. }
  1121. }
  1122. .project-name {
  1123. color: #333;
  1124. transition: all 0.2s ease;
  1125. }
  1126. .icon {
  1127. width: 36rpx;
  1128. height: 36rpx;
  1129. opacity: 0;
  1130. transition: opacity 0.2s ease;
  1131. }
  1132. }
  1133. }
  1134. .two-level-container {
  1135. display: flex;
  1136. flex: 1;
  1137. border-top: 1rpx solid #f5f5f5;
  1138. .primary-list {
  1139. width: 40%;
  1140. background-color: #f8f9fa;
  1141. .primary-item {
  1142. padding: 28rpx 20rpx;
  1143. background: #F2F3F5;
  1144. &:active {
  1145. background: #FFFFFF;
  1146. }
  1147. &.primary-active {
  1148. position: relative;
  1149. background-color: #fff;
  1150. &::before {
  1151. content: '';
  1152. position: absolute;
  1153. top: 50%;
  1154. left: 0;
  1155. transform: translateY(-50%);
  1156. width: 8rpx;
  1157. height: 32rpx;
  1158. background: #388BFF;
  1159. }
  1160. .primary-text {
  1161. font-weight: 500;
  1162. }
  1163. }
  1164. .primary-text {
  1165. font-size: 28rpx;
  1166. color: #666;
  1167. }
  1168. }
  1169. }
  1170. .secondary-list {
  1171. width: 60%;
  1172. padding: 0 20rpx;
  1173. .secondary-item {
  1174. display: flex;
  1175. justify-content: space-between;
  1176. align-items: center;
  1177. padding: 28rpx 10rpx;
  1178. font-size: 28rpx;
  1179. color: #333;
  1180. &.secondary-active {
  1181. font-weight: 500;
  1182. color: #388BFF;
  1183. }
  1184. }
  1185. }
  1186. }
  1187. .popup-footer {
  1188. padding: 20rpx 30rpx 40rpx;
  1189. background-color: #fff;
  1190. border-top: 1rpx solid #f5f5f5;
  1191. flex-shrink: 0;
  1192. .confirm-btn {
  1193. width: 100%;
  1194. height: 88rpx;
  1195. line-height: 88rpx;
  1196. background-color: #2979ff;
  1197. color: #fff;
  1198. font-size: 32rpx;
  1199. border-radius: 200rpx;
  1200. &:active {
  1201. opacity: 0.8;
  1202. }
  1203. }
  1204. }
  1205. }
  1206. // 暗黑模式适配
  1207. @media (prefers-color-scheme: dark) {
  1208. .popup-content {
  1209. background-color: #1e1e1e;
  1210. .popup-header {
  1211. .title,
  1212. .popup-title {
  1213. color: #fff;
  1214. }
  1215. }
  1216. .two-level-container {
  1217. .primary-list {
  1218. background-color: #2d2d2d;
  1219. border-right-color: #3d3d3d;
  1220. .primary-item {
  1221. border-bottom-color: #3d3d3d;
  1222. &:active {
  1223. background-color: #3d3d3d;
  1224. }
  1225. &.primary-active {
  1226. background-color: #3d3d3d;
  1227. .primary-text {
  1228. color: #2979ff;
  1229. }
  1230. }
  1231. .primary-text {
  1232. color: #ccc;
  1233. }
  1234. }
  1235. }
  1236. .secondary-list {
  1237. .secondary-item {
  1238. border-bottom-color: #3d3d3d;
  1239. &:active {
  1240. background-color: #3d3d3d;
  1241. }
  1242. &.secondary-active {
  1243. background-color: #2d2d2d;
  1244. }
  1245. .secondary-text {
  1246. color: #fff;
  1247. }
  1248. }
  1249. }
  1250. }
  1251. .popup-footer {
  1252. background-color: #1e1e1e;
  1253. border-top-color: #3d3d3d;
  1254. }
  1255. }
  1256. }
  1257. </style>