teamSoundMoney.vue 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630
  1. <template>
  2. <div class="sound-container">
  3. <div class="topMsg">
  4. <p>当前选择声部数(个):{{chioseSoundNum}}</p>
  5. <p style="margin-left:30px;">计划招生人数(个):{{PlannedCount}}</p>
  6. </div>
  7. <div class="listWrap">
  8. <el-table :data="activeSoundList"
  9. ref="multipleTable"
  10. :header-cell-style="{background:'#EDEEF0',color:'#444'}"
  11. highlight-current-row
  12. @selection-change="handleSelectionChange"
  13. @row-click="handleclick">
  14. <el-table-column type="selection"
  15. width="55"></el-table-column>
  16. <el-table-column label="声部"
  17. align="center"
  18. width="80"
  19. prop="sound"></el-table-column>
  20. <el-table-column label="计划招生"
  21. align="center"
  22. width="100"
  23. prop="jihua">
  24. <template slot-scope="scope"
  25. width="100">
  26. <div>
  27. <el-input v-if="scope.row.type == 1"
  28. @mousewheel.native.prevent
  29. type="number"
  30. style="width:80px"
  31. size="mini"
  32. v-model.trim="scope.row.jihua"
  33. placeholder="请输入"></el-input>
  34. </div>
  35. </template>
  36. </el-table-column>
  37. <el-table-column label="课程费用"
  38. width="100"
  39. align="center"
  40. prop="yuji">
  41. <template slot-scope="scope">
  42. <div>
  43. <el-input v-if="scope.row.type == 1"
  44. @mousewheel.native.prevent
  45. type="number"
  46. style="width:80px"
  47. size="mini"
  48. v-model.trim="scope.row.yuji"
  49. placeholder="请输入"></el-input>
  50. </div>
  51. </template>
  52. </el-table-column>
  53. <el-table-column label="可选乐器规格"
  54. align="center"
  55. prop="zhonglei"
  56. width="300">
  57. <template slot-scope="scope">
  58. <!-- 'typeVisible':false,'provideVisible':false,'markVisible':false -->
  59. <div>
  60. <span>{{scope.row.zhonglei | zhongleiFilter(scope.row.goodsList)}}</span>
  61. <el-popover placement="bottom"
  62. @show="chioseType(scope.row)"
  63. v-model.trim="scope.row.typeVisible"
  64. v-if="scope.row.type == 1">
  65. <el-button type="text"
  66. slot="reference">修改</el-button>
  67. <!-- zhonglei -->
  68. <el-select v-model.trim="scope.row.zhonglei"
  69. multiple
  70. clearable
  71. filterable
  72. @change="changezhonglei(scope.row)"
  73. collapse-tags>
  74. <el-option v-for="(item,index) in scope.row.goodsList"
  75. :key="index"
  76. :label="item.name"
  77. :value="item.id"></el-option>
  78. </el-select>
  79. <div style="text-align: right; margin-top: 20px">
  80. <!-- <el-button size="mini"
  81. type="text"
  82. @click="closechioseType(scope.row)">取消</el-button>-->
  83. <el-button type="primary"
  84. size="mini"
  85. @click="scope.row.typeVisible = false">确定</el-button>
  86. </div>
  87. </el-popover>
  88. </div>
  89. </template>
  90. </el-table-column>
  91. <el-table-column label="乐器提供方式"
  92. width="300"
  93. align="center"
  94. prop="fangshi">
  95. <template slot-scope="scope">
  96. <div>
  97. <!-- <div class="chiose"
  98. >选择</div>-->
  99. <div style="white-space:pre"
  100. v-if="scope.row.fangshi.length >0">{{scope.row.fangshi | fangshiFilter(scope.row)}}</div>
  101. <i class="el-icon-edit"
  102. @click="setGiveMode(scope.row)"></i>
  103. <!-- <el-popover placement="bottom"
  104. v-model.trim="scope.row.provideVisible"
  105. v-if='scope.row.type == 1'>
  106. <i class='el-icon-edit'
  107. slot='reference'>
  108. </i>
  109. <el-select v-model.trim="scope.row.fangshi"
  110. clearable>
  111. <el-option label="团购"
  112. value="GROUP"></el-option>
  113. <el-option label="借用"
  114. value="LEASE"></el-option>
  115. <el-option label="免费"
  116. value="FREE"></el-option>
  117. </el-select>
  118. <el-input placeholder="请输入费用"
  119. v-if='scope.row.fangshi == "LEASE"'
  120. v-model.trim="scope.row.fangshiprice"
  121. style='width:180px; margin-top:20px'></el-input>
  122. <div style="text-align: right; margin-top: 20px">
  123. <el-button type="primary"
  124. size="mini"
  125. @click="scope.row.provideVisible = false">确定</el-button>
  126. </div>
  127. </el-popover>-->
  128. </div>
  129. </template>
  130. </el-table-column>
  131. <el-table-column label="教辅组合"
  132. align="center"
  133. prop="jiaopu">
  134. <template slot-scope="scope">
  135. <div>
  136. <el-dialog :visible.sync="scope.row.markVisible"
  137. style="text-align:left;"
  138. width="60%">
  139. <el-button type="text"
  140. @click="addMark(scope.row)">添加教辅</el-button>
  141. <div class="markWrap">
  142. <div class="markItem"
  143. v-for="(item, index) in scope.row.markList"
  144. :key="index">
  145. <el-form :model="item"
  146. :inline="true">
  147. <el-form-item label="教辅名称">
  148. <el-input type="text"
  149. v-model.trim="item.name"></el-input>
  150. </el-form-item>
  151. <el-form-item label="教辅商品">
  152. <el-select v-model.trim="item.goods"
  153. clearable
  154. filterable
  155. multiple
  156. collapse-tags>
  157. <el-option v-for="(item,index) in scope.row.markChioseList"
  158. :key="index"
  159. :label="item.name"
  160. :value="item.id"></el-option>
  161. </el-select>
  162. </el-form-item>
  163. <el-form-item label="教辅打包价">
  164. <el-input type="number"
  165. @mousewheel.native.prevent
  166. v-model.trim="item.price"></el-input>
  167. </el-form-item>
  168. <el-form-item>
  169. <el-button type="danger"
  170. icon="el-icon-delete"
  171. circle
  172. @click="removeMartItem(scope.row,index)"></el-button>
  173. </el-form-item>
  174. </el-form>
  175. </div>
  176. </div>
  177. <span slot="footer"
  178. class="dialog-footer">
  179. <el-button type="primary"
  180. @click="scope.row.markVisible = false">确 定</el-button>
  181. </span>
  182. </el-dialog>
  183. <span>
  184. <span v-if="scope.row.markChioseList.length>0&&item.name"
  185. v-for="(item,index) in scope.row.markList"
  186. :key="index">{{item.name+':'}}{{item.goods|goodsFilter(scope.row.markChioseList)}}{{' 价格 '+item.price }}</span>
  187. </span>
  188. <i class="el-icon-edit"
  189. slot="reference"
  190. @click="chioseMark(scope.row)"></i>
  191. </div>
  192. </template>
  193. </el-table-column>
  194. <!-- <el-table-column label="操作">
  195. <template slot-scope="scope">
  196. <div>
  197. <el-button v-if='scope.row.type == 2'
  198. type="text"
  199. @click="savecolumn(scope.row)">编辑</el-button>
  200. <el-button v-if='scope.row.type == 1'
  201. type="text"
  202. @click="savecolumn(scope.row)">保存</el-button>
  203. </div>
  204. </template>
  205. </el-table-column>-->
  206. <el-table-column label="预览"
  207. align="center"
  208. prop="sound">
  209. <template slot-scope="scope">
  210. <div>
  211. <el-button type="text"
  212. @click="lookPreview(scope.row)">预览</el-button>
  213. </div>
  214. </template>
  215. </el-table-column>
  216. </el-table>
  217. <div class="floor">
  218. <div class="remove"
  219. @click="removeListItem">删除</div>
  220. <div class="add"
  221. @click="addListItem">添加</div>
  222. </div>
  223. </div>
  224. <el-dialog title="声部选择"
  225. :visible.sync="dialogTableVisible"
  226. :modal-append-to-body="false">
  227. <div class="soundWrap">
  228. <div class="itemList">
  229. <div class="categroy"
  230. v-for="(item,index) in soundList"
  231. :key="index">
  232. <p>{{item.name }}</p>
  233. <el-checkbox-group v-model.trim="soundLists[index]"
  234. @change="changeList">
  235. <!-- sound: this.activeSoundList[item].name, // id
  236. jihua: '10', //计划招生人数
  237. yuji: '10', // 预计收费
  238. zhonglei: [], // 可选乐器种类
  239. fangshi: 2, // 乐器提供方式
  240. jiaopu: 'jiaopu1', // 教辅组合
  241. type: 1, // 操作
  242. id: this.activeSoundList[item].id, //声部id
  243. visible: false, // 当前乐器提供方式的pop提示框显示隐藏-->
  244. <el-checkbox :label="sound.id"
  245. @change="checkinlist({'id':sound.id,'sound':sound.name,'jihua':0,'yuji':0,'zhonglei':[],'fangshi':[],'fangshiprice':1500,'jiaopu':'','type':1,'typeVisible':false,'provideVisible':false,'markVisible':false,'goodsList':[],'markList':[],'markChioseList':[]})"
  246. v-for="(sound,indexs) in item.subjects"
  247. :key="indexs">{{sound.name }}</el-checkbox>
  248. </el-checkbox-group>
  249. </div>
  250. </div>
  251. </div>
  252. <p class="soundSubP">当前选择声部数:{{chioseSoundNum}}</p>
  253. <div class="btnWraps">
  254. <div class="dialogBtn"
  255. @click="generates">确定</div>
  256. </div>
  257. </el-dialog>
  258. <div class="btnWrap">
  259. <div class="PrevBtn"
  260. @click="goback">上一步</div>
  261. <div class="submitBtn"
  262. v-permission="{child: 'musicGroup/auditSuccess', parent: '/teamBuild/teamAudit/soundMoney'}"
  263. v-if="teamStatus == 'teamAudit'"
  264. @click="approval">审核通过</div>
  265. <div class="submitBtn"
  266. v-permission="{child: 'musicGroup/auditFailed', parent: '/teamBuild/teamAudit/soundMoney'}"
  267. v-if="teamStatus == 'teamAudit'"
  268. @click="refuse">拒绝</div>
  269. <div class="submitBtn"
  270. v-permission="{child: 'musicGroup/createGroup', parent: '/teamBuild/soundMoney'}"
  271. v-if="teamStatus != 'teamAudit'"
  272. @click="submitInfo(1)">保存</div>
  273. <div class="submitBtn"
  274. v-permission="{child: 'musicGroup/createGroup', parent: '/teamBuild/soundMoney'}"
  275. v-if="teamStatus != 'teamAudit'"
  276. @click="submitInfo(2)">提交审核</div>
  277. </div>
  278. <el-dialog title="乐团预览"
  279. :visible.sync="previewVisible"
  280. :close-on-click-modal="false"
  281. @close="onPreviewClose"
  282. width="450px">
  283. <div class="reductionWrap1 reductionWrap">
  284. <header style="background:#14928A;color:#fff">乐团缴费</header>
  285. <div class="noticeInfo">
  286. <i class="trumpet_icon"></i>1、为确保声部平衡,请家长确认 注册声部为孩子的最终录取声部。
  287. <br />2、为保障每个声部人数达标,我们都进行了超员20%的录取,系统将按照提交注册的先后顺序安排名额。超员后 有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,我们将优先调配您的孩子;
  288. </div>
  289. <!-- && (courseScheduleStatus || musicGroupSubject.fee > 0) -->
  290. <div class="section"
  291. v-if="courseScheduleInfo ">
  292. <h2 class="title line_bottom">课程</h2>
  293. <div class="options classInfo">
  294. <div class="option" v-if="courseScheduleInfo.soundInfo.ischeck" @click="onCourseChange(courseScheduleInfo.soundInfo)">
  295. <div class="0_hd" :style="courseScheduleInfo.soundInfo.checkBuy ? null : 'opacity: 0.5'"><i class="check_default" :class="[courseScheduleInfo.soundInfo.isStatus ? 'check_active' : '']"></i></div>
  296. <div class="o_bd">乐团声部训练</div>
  297. <span class="o_ft">
  298. 原价:¥{{ courseScheduleInfo.soundInfo.value ? courseScheduleInfo.soundInfo.value : 0 }}
  299. </span>
  300. </div>
  301. <div class="option" v-if="courseScheduleInfo.allInfo.ischeck" @click="onCourseChange(courseScheduleInfo.allInfo)">
  302. <div class="0_hd" :style="courseScheduleInfo.allInfo.checkBuy ? null : 'opacity: 0.5'"><i class="check_default" :class="[courseScheduleInfo.allInfo.isStatus ? 'check_active' : '']"></i></div>
  303. <div class="o_bd">乐团合奏训练</div>
  304. <span class="o_ft">
  305. 原价:¥{{ courseScheduleInfo.allInfo.value ? courseScheduleInfo.allInfo.value : 0 }}
  306. </span>
  307. </div>
  308. <div class="option" v-if="courseScheduleInfo.holidayInfo.ischeck" @click="onCourseChange(courseScheduleInfo.holidayInfo)">
  309. <div class="0_hd" :style="courseScheduleInfo.holidayInfo.checkBuy ? null : 'opacity: 0.5'"><i class="check_default" :class="[courseScheduleInfo.holidayInfo.isStatus ? 'check_active' : '']"></i></div>
  310. <div class="o_bd">假期集中训练</div>
  311. <span class="o_ft">
  312. 原价:¥{{ courseScheduleInfo.holidayInfo.value ? courseScheduleInfo.holidayInfo.value : 0 }}
  313. </span>
  314. </div>
  315. <div class="option" v-if="courseScheduleInfo.networkInfo && courseScheduleInfo.networkInfo.ischeck" @click="onCourseChange(courseScheduleInfo.networkInfo)">
  316. <div class="0_hd" :style="courseScheduleInfo.networkInfo.checkBuy ? null : 'opacity: 0.5'"><i class="check_default" :class="[courseScheduleInfo.networkInfo.isStatus ? 'check_active' : '']"></i></div>
  317. <div class="o_bd">乐团云课堂</div>
  318. <span class="o_ft">
  319. 原价:¥{{ courseScheduleInfo.networkInfo.value ? courseScheduleInfo.networkInfo.value : 0 }}
  320. </span>
  321. </div>
  322. <div class="option" v-if="courseScheduleInfo.baseInfo.ischeck" @click="onCourseChange(courseScheduleInfo.baseInfo)">
  323. <div class="0_hd" :style="courseScheduleInfo.baseInfo.checkBuy ? null : 'opacity: 0.5'"><i class="check_default" :class="[courseScheduleInfo.baseInfo.isStatus ? 'check_active' : '']"></i></div>
  324. <div class="o_bd">网络基础训练</div>
  325. <span class="o_ft">
  326. 原价:¥{{ courseScheduleInfo.baseInfo.value ? courseScheduleInfo.baseInfo.value : 0 }}
  327. </span>
  328. </div>
  329. </div>
  330. <div class="options sale"
  331. v-if="lookPreviewRow&&lookPreviewRow.yuji"
  332. :class="[courseScheduleStatus?'lines':'']">
  333. <div class="option">
  334. <div class="o_bd">现价</div>
  335. <span class="o_ft">¥{{ orderInfo.coursePrice }}</span>
  336. </div>
  337. </div>
  338. <div class="coutInfo"
  339. v-if="courseScheduleInfo.submit.ischeck">
  340. <i class="trumpet_icon"></i>
  341. {{ courseScheduleInfo.submit.value }}
  342. </div>
  343. </div>
  344. <div class="section"
  345. v-if="lookPreviewRow&&lookPreviewRow.goodsList.length > 0">
  346. <h2 class="title line_bottom">乐器</h2>
  347. <div class="options">
  348. <div v-for="(con, index) in lookPreviewRow.fangshi"
  349. @click="instrumentF(con)"
  350. :key="index"
  351. :class="[ lookPreviewRow.fangshi.length > 1 ? 'oc' : '' ]">
  352. <div class="option"
  353. v-if="con.mode.isGROUP"
  354. @click="con.chiosetype='GROUP'">
  355. <!-- :class="[ con.checked ? 'check_active' : '' ]" -->
  356. <div class="o_">
  357. <i class="check_default"
  358. :class="[ con.chiosetype=='GROUP'&&con.checked ? 'check_active' : '' ]"></i>
  359. </div>
  360. <div class="o_bd">{{ con.shopName }}</div>
  361. <span class="o_ft">
  362. <del>原价:¥{{ con.mode.marketPrice }}</del>
  363. 现价:¥{{ (con.mode.price - con.mode.GROUP).toFixed(2) }}
  364. </span>
  365. </div>
  366. <!-- v-if="con.marketPrice" -->
  367. <div v-if="con.mode.isGROUP"
  368. class="configuration">
  369. <div class="config">
  370. <div class="title">
  371. <span>配置参数</span>
  372. </div>
  373. <div class="content">
  374. <template v-for="(goods, index) in lookPreviewRow.goodsList">
  375. <p :key="goods.id" v-if="con.id == goods.id">{{ lookPreviewRow.goodsList[index].specification }}</p>
  376. </template>
  377. </div>
  378. </div>
  379. </div>
  380. <div class="option"
  381. v-if="(con.mode.isLEASE)"
  382. @click="con.chiosetype='LEASE'">
  383. <!-- :class="[ con.checked ? 'check_active' : '' ]" -->
  384. <div class="o_">
  385. <i class="check_default"
  386. :class="[ con.chiosetype=='LEASE'&&con.checked ? 'check_active' : '' ]"></i>
  387. </div>
  388. <div class="o_bd">{{ con.shopName }}</div>
  389. <template>
  390. <span class="o_ft">
  391. 押金:¥{{ (con.mode.depositFee).toFixed(2) }}
  392. </span>
  393. </template>
  394. </div>
  395. <!-- v-if="con.marketPrice" -->
  396. <div class="configuration"
  397. v-if="(con.mode.isLEASE)">
  398. <div class="config">
  399. <div class="title">
  400. <span>配置参数</span>
  401. </div>
  402. <div class="content">
  403. <!-- <p>{{ lookPreviewRow.goodsList[index].specification }}</p> -->
  404. <template v-for="(goods, index) in lookPreviewRow.goodsList">
  405. <p :key="goods.id" v-if="con.id == goods.id">{{ lookPreviewRow.goodsList[index].specification }}</p>
  406. </template>
  407. </div>
  408. </div>
  409. </div>
  410. <div class="option"
  411. v-if="con.mode.isFREE"
  412. @click="con.chiosetype='FREE'">
  413. <!-- :class="[ con.checked ? 'check_active' : '' ]" -->
  414. <div class="o_">
  415. <i class="check_default"
  416. :class="[ con.chiosetype=='FREE'&&con.checked ? 'check_active' : '' ]"></i>
  417. </div>
  418. <div class="o_bd">{{ con.shopName }}</div>
  419. <template>
  420. <span class="o_ft">
  421. <del>原价:¥{{ con.mode.marketPrice }}</del>
  422. 免费领用
  423. </span>
  424. </template>
  425. </div>
  426. <!-- v-if="con.marketPrice" -->
  427. <div class="configuration"
  428. v-if="con.mode.isFREE">
  429. <div class="config">
  430. <div class="title">
  431. <span>配置参数</span>
  432. </div>
  433. <div class="content">
  434. <!-- <p>{{ lookPreviewRow.goodsList[index].specification }}</p> -->
  435. <template v-for="(goods, index) in lookPreviewRow.goodsList">
  436. <p :key="goods.id" v-if="con.id == goods.id">{{ lookPreviewRow.goodsList[index].specification }}</p>
  437. </template>
  438. </div>
  439. </div>
  440. </div>
  441. </div>
  442. </div>
  443. </div>
  444. <div class="section"
  445. v-if="lookPreviewRow&&lookPreviewRow.markList&&lookPreviewRow.markList.length > 0"
  446. key="accessOries">
  447. <h2 class="title line_bottom">辅件</h2>
  448. <div class="options"
  449. v-for="(instr, index) in lookPreviewRow.markList"
  450. :key="index"
  451. @click="onAuxiliarie(instr)">
  452. <div class="option">
  453. <div class="o_hd">
  454. <i class="check_default"
  455. :class="[ instr.checked ? 'check_active' : '' ]"></i>
  456. </div>
  457. <div class="o_bd">{{ instr.name }}</div>
  458. <span class="o_ft">
  459. <!-- <del>原价:¥{{ instr.marketPrice }}</del> -->
  460. {{ instr.price == 0 ? '免费' : '现价:¥' + instr.price }}
  461. </span>
  462. </div>
  463. <div class="configuration">
  464. <div class="config">
  465. <div class="title">
  466. <span>配置</span>
  467. </div>
  468. <div class="content"
  469. v-for="item in instr.goods"
  470. :key="item">
  471. <div class="option">
  472. <div class="o_bd">{{ item | AccessoryName(lookPreviewRow)}}</div>
  473. <span class="o_ft">¥{{ item | AccessoryPrice(lookPreviewRow)}}</span>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. </div>
  480. <div class="section"
  481. v-else-if="accessGoods.length > 0"
  482. key="accessOries">
  483. <h2 class="title line_bottom">辅件</h2>
  484. <div class="options"
  485. v-for="(instr, index) in accessGoods"
  486. :key="index">
  487. <div class="option">
  488. <div class="o_hd">
  489. <i class="check_default"
  490. :class="[ instr.checked ? 'check_active' : '' ]"></i>
  491. </div>
  492. <div class="o_bd">{{ instr.name }}</div>
  493. <span class="o_ft">
  494. <del>原价:¥{{ instr.marketPrice }}</del>
  495. {{ instr.groupPurchasePrice == 0 ? '免费' : '现价:¥' + instr.groupPurchasePrice }}
  496. </span>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="section"
  501. v-if="otherResult.length > 0"
  502. key="otherResult">
  503. <h2 class="title line_bottom">其它</h2>
  504. <div class="options"
  505. v-for="(base, index) in otherResult"
  506. :key="index">
  507. <div class="option">
  508. <div class="o_hd">
  509. <i class="check_default check_active"></i>
  510. </div>
  511. <div class="o_bd">{{ base.name }}</div>
  512. <span class="o_ft">
  513. <del>原价:¥{{ base.marketPrice }}</del>
  514. {{ base.price == 0 ? '免费' : '现价:¥' + base.price }}
  515. </span>
  516. </div>
  517. <div class="configuration">
  518. <div class="config">
  519. <div class="title">
  520. <span>配置</span>
  521. </div>
  522. <div class="content"
  523. v-for="(item, index1) in base.goodsList"
  524. :key="index1">
  525. <div class="option">
  526. <div class="o_bd">{{ item.name }}</div>
  527. <span class="o_ft">¥{{ item.marketPrice }}</span>
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. </div>
  533. </div>
  534. <div class="section"
  535. v-else-if="otherGoods.length > 0"
  536. key="otherResult">
  537. <h2 class="title line_bottom">其它</h2>
  538. <div class="options"
  539. v-for="base in otherGoods"
  540. :key="base.id">
  541. <div class="option">
  542. <div class="o_hd">
  543. <i class="check_default check_active"></i>
  544. </div>
  545. <div class="o_bd">{{ base.name }}</div>
  546. <span class="o_ft">
  547. <del>原价:¥{{ base.marketPrice }}</del>
  548. {{ base.groupPurchasePrice == 0 ? '免费' : '现价:¥' + base.groupPurchasePrice }}
  549. </span>
  550. </div>
  551. </div>
  552. </div>
  553. <div class="section">
  554. <div class="needprice markerprice">
  555. <del>原价</del>
  556. <del>¥{{ orderInfo.marketPrice }}</del>
  557. </div>
  558. <!-- <div class="needprice markerprice">
  559. <p>现价</p>
  560. <p>¥{{ orderInfo.groupPurchasePrice }}</p>
  561. </div> -->
  562. <!-- <div class="needprice markerprice" v-if="orderInfo.couponPrice > 0">
  563. <p>优惠</p>
  564. <p>¥{{ orderInfo.couponPrice }}</p>
  565. </div> -->
  566. <div class="needprice grouopprice">
  567. <span>仅需支付</span>
  568. <span>¥{{ orderInfo.amount }}</span>
  569. </div>
  570. </div>
  571. <div class="buy">
  572. <div class="price">
  573. <p class="use_price">
  574. <img class="logo"
  575. src="@/assets/images/mycard.png"
  576. alt />
  577. <span>¥{{ needPrice }}</span>
  578. </p>
  579. </div>
  580. <a class="btn-submit"
  581. @click="previewVisible=false">购买</a>
  582. </div>
  583. </div>
  584. </el-dialog>
  585. <el-dialog tilte="请选择乐器的提供方式及减免金额"
  586. width="800px"
  587. :visible.sync="reductionVisible">
  588. <div v-if="editSound&&editSound.fangshi.length >0">
  589. <div class="reductionWrap"
  590. v-for="(item,index) in editSound.fangshi"
  591. :key="index">
  592. <div class="lineWrap">
  593. <div class="item">{{ item.shopName}}</div>
  594. <div class="item">提供方式</div>
  595. <div class="item">提供方式对应金额</div>
  596. <div class="item">乐器费用减免</div>
  597. <div class="item">课程费用减免</div>
  598. </div>
  599. <div class="lineWrap">
  600. <div class="item"></div>
  601. <div class="item">
  602. <el-checkbox v-model.trim="item.mode.isGROUP"></el-checkbox>团购
  603. </div>
  604. <div class="item">
  605. <el-input style="width:80%"
  606. type="number"
  607. @mousewheel.native.prevent
  608. v-model.trim="item.mode.price"
  609. disabled></el-input>
  610. </div>
  611. <div class="item">
  612. <el-input style="width:80%"
  613. type="number"
  614. @mousewheel.native.prevent
  615. v-model.trim="item.mode.GROUP"
  616. @input="groupInput(item)"></el-input>
  617. </div>
  618. <div class="item">
  619. <el-input style="width:80%"
  620. type="number"
  621. @mousewheel.native.prevent
  622. v-model.trim="item.mode.courseGroup"
  623. @input="groupCourseInput(item)"></el-input>
  624. </div>
  625. </div>
  626. <div class="lineWrap">
  627. <div class="item"></div>
  628. <div class="item">
  629. <el-checkbox v-model.trim="item.mode.isLEASE"></el-checkbox>租赁
  630. </div>
  631. <div class="item">
  632. <el-input style="width:80%"
  633. type="number"
  634. @mousewheel.native.prevent
  635. @input="(val)=>{
  636. setDeposiInput(val,item)
  637. }"
  638. v-model.trim="item.mode.depositFee"></el-input>
  639. </div>
  640. <div class="item">
  641. <el-input style="width:80%"
  642. type="number"
  643. disabled
  644. @mousewheel.native.prevent
  645. @input="deposiInput(item)"
  646. v-model.trim="item.mode.LEASE"></el-input>
  647. </div>
  648. <div class="item">
  649. <el-input style="width:80%" disabled
  650. type="number"></el-input>
  651. </div>
  652. </div>
  653. <div class="lineWrap">
  654. <div class="item"></div>
  655. <div class="item">
  656. <el-checkbox v-model.trim="item.mode.isFREE"></el-checkbox>免费
  657. </div>
  658. <div class="item">
  659. <el-input style="width:80%"
  660. disabled></el-input>
  661. </div>
  662. <div class="item">
  663. <el-input style="width:80%"
  664. type="number"
  665. @mousewheel.native.prevent
  666. disabled></el-input>
  667. </div>
  668. <div class="item">
  669. <el-input style="width:80%" disabled
  670. type="number"></el-input>
  671. </div>
  672. </div>
  673. </div>
  674. </div>
  675. <div slot="footer"
  676. class="dialog-footer">
  677. <el-button type="primary"
  678. @click="resetSoundItem">确 定</el-button>
  679. </div>
  680. </el-dialog>
  681. </div>
  682. </template>
  683. <script>
  684. import store from "@/store";
  685. import {
  686. getSubject,
  687. getDefaultSubject,
  688. getGoods,
  689. createTeam,
  690. getSoundTree,
  691. findMusicGroupSubjectInfo,
  692. updateSubjectInfo,
  693. auditSuccess,
  694. auditFailed
  695. } from "@/api/buildTeam";
  696. export default {
  697. name: "teamSoundMoney",
  698. data () {
  699. return {
  700. reductionVisible: false,
  701. previewVisible: false, // 乐团预览
  702. dialogTableVisible: false,
  703. soundList: [],
  704. soundLists: [], // 存储选中项的声部id 记录变量
  705. activeSoundList: [], // 记录存储后的所选中的声部列表
  706. checkList: [],
  707. multipleSelection: [], // 列表选择的集合
  708. isLoop: "", // 是否显示周期循环
  709. payfor: {},
  710. topfor: {},
  711. checkfor: {},
  712. teamStatus: "",
  713. teamid: "",
  714. isNullFangshi: true,
  715. Fsearch: null,
  716. Frules: null,
  717. editSound: null,
  718. // 预览
  719. courseScheduleInfo: null, // 课程组信息
  720. instrumentResult: [], // 乐器信息
  721. accessOries: [], // 辅件(打包)
  722. accessGoods: [],
  723. otherResult: [], // 其它打包
  724. otherGoods: [], // 其它商品
  725. lookPreviewRow: null,
  726. courseScheduleStatus: true, // 有没有数据
  727. orderInfo: {
  728. marketPrice: 0,
  729. amount: 0, // 现价总金额
  730. goodsGroupIds: null,
  731. goodsIds: null,
  732. contractGoodsIds: null, // 选中所有商品ID
  733. couponPrice: 0, //
  734. groupPurchasePrice: 0
  735. }, // 金额列表,金额计算
  736. needPrice: 0
  737. };
  738. },
  739. created () {
  740. // 判断是否带缓存参数
  741. this.init();
  742. },
  743. // activated () {
  744. // // 判断是否带缓存参
  745. // this.init();
  746. // },
  747. methods: {
  748. onCourseChange(item) {
  749. // 判断用户是否可以选择
  750. if(item.checkBuy) {
  751. item.isStatus = !item.isStatus
  752. this.calcPrice()
  753. }
  754. },
  755. init () {
  756. if (this.$route.query.search) {
  757. this.Fsearch = this.$route.query.search;
  758. }
  759. if (this.$route.query.rules) {
  760. this.Frules = this.$route.query.rules;
  761. }
  762. getSoundTree({ tenantId: 1 }).then(res => {
  763. if (res.code == 200) {
  764. this.soundList = res.data.rows;
  765. // // 生成动态的checkList
  766. for (let key in this.soundList) {
  767. this.$set(this.soundLists, key, []);
  768. }
  769. // 新建团带默认的数据 this.topfor.section
  770. if (this.teamStatus == "newTeam") {
  771. console.log({
  772. chargeTypeId: type,
  773. organId: this.topfor.section,
  774. number: 1
  775. })
  776. getDefaultSubject({
  777. chargeTypeId: type,
  778. organId: this.topfor.section,
  779. number: 1
  780. }).then(res => {
  781. if (res.code == 200) {
  782. this.activeSoundList = res.data.map(item => {
  783. // this.soundLists[0].push(item.subjectId)
  784. let obj = {
  785. id: item.id,
  786. sound: item.name,
  787. jihua: item.expectedStudentNum,
  788. yuji: item.fee,
  789. zhonglei: [],
  790. fangshi: [],
  791. fangshiprice: item.depositFee,
  792. jiaopu: "",
  793. type: 1,
  794. typeVisible: false,
  795. provideVisible: false,
  796. markVisible: false,
  797. goodsList: [],
  798. markList: [],
  799. markChioseList: []
  800. };
  801. // this.checkinlist(obj);
  802. return obj;
  803. });
  804. // = arr;
  805. this.soundList.forEach((item, i) => {
  806. item.subjects.forEach((some, j) => {
  807. res.data.forEach((sub, x) => {
  808. if (sub.id == some.id) {
  809. this.soundLists[i].push(some.id);
  810. }
  811. });
  812. });
  813. });
  814. // 并且把所有soundLists 里面
  815. }
  816. });
  817. }
  818. // 修改带原有团的数据
  819. if (
  820. this.teamStatus == "teamDraft" ||
  821. this.teamStatus == "teamAudit"
  822. ) {
  823. // 获取第二页的数据
  824. this.teamid = this.$route.query.id;
  825. findMusicGroupSubjectInfo({ musicGroupId: this.teamid }).then(
  826. res => {
  827. if (res.code == 200) {
  828. this.activeSoundList = res.data.musicGroupSubjectPlans.map(
  829. item => {
  830. console.log(item)
  831. let fangshi = [];
  832. res.data.musicGroupSubjectGoodsGroups.forEach(sub => {
  833. if (
  834. sub.subjectId == item.subjectId &&
  835. sub.type == "INSTRUMENT"
  836. ) {
  837. let FREE, courseFree, LEASE, courseLease, GROUP, courseGroup;
  838. let isFREE = false;
  839. let isLEASE = false;
  840. let isGROUP = false;
  841. let depositFee = sub.depositFee;
  842. let price = sub.price;
  843. let marketPrice = sub.goodsList[0].marketPrice;
  844. if (sub.kitGroupPurchaseTypeJson) {
  845. let expectJson = JSON.parse(
  846. sub.kitGroupPurchaseTypeJson
  847. );
  848. if (expectJson && expectJson.hasOwnProperty("FREE")) {
  849. FREE = expectJson.FREE;
  850. isFREE = true;
  851. }
  852. if (expectJson && expectJson.hasOwnProperty("LEASE")) {
  853. LEASE = expectJson.LEASE;
  854. isLEASE = true;
  855. }
  856. if (expectJson && expectJson.hasOwnProperty("GROUP")) {
  857. GROUP = expectJson.GROUP;
  858. isGROUP = true;
  859. }
  860. }
  861. if(sub.coursePurchaseTypeJson) {
  862. let courseJson = JSON.parse(sub.coursePurchaseTypeJson)
  863. if (courseJson && courseJson.hasOwnProperty("FREE")) {
  864. courseFree = courseJson.FREE;
  865. }
  866. if (courseJson && courseJson.hasOwnProperty("LEASE")) {
  867. courseLease = courseJson.LEASE;
  868. }
  869. if (courseJson && courseJson.hasOwnProperty("GROUP")) {
  870. courseGroup = courseJson.GROUP;
  871. }
  872. }
  873. fangshi.push({
  874. shopName: sub.name,
  875. id: sub.goodsIdList,
  876. mode: {
  877. courseFree: courseFree || 0,
  878. courseLease: courseLease || null,
  879. courseGroup: courseGroup || 0,
  880. yuji: item.fee,
  881. FREE: FREE || 0,
  882. GROUP: GROUP || 0,
  883. LEASE: LEASE || null,
  884. depositFee: depositFee || 0, // 保证金
  885. price: price || 0, // 团购价
  886. marketPrice: marketPrice || 0, // 商品原价
  887. isFREE: isFREE,
  888. isGROUP: isGROUP,
  889. isLEASE: isLEASE
  890. }
  891. });
  892. }
  893. });
  894. let obj = {
  895. id: item.subjectId,
  896. sound: item.subName,
  897. jihua: item.expectedStudentNum,
  898. yuji: item.fee,
  899. zhonglei: [],
  900. fangshi: fangshi,
  901. fangshiprice: item.depositFee,
  902. jiaopu: "",
  903. type: 1,
  904. typeVisible: false,
  905. provideVisible: false,
  906. markVisible: false,
  907. goodsList: [],
  908. markList: [],
  909. markChioseList: []
  910. };
  911. this.checkinlist(obj);
  912. return obj;
  913. }
  914. );
  915. // this.activeSoundList = arr;
  916. // 这里.....
  917. this.soundList.forEach((item, i) => {
  918. item.subjects.forEach((some, j) => {
  919. this.activeSoundList.forEach((sub, x) => {
  920. if (sub.id == some.id) {
  921. this.soundLists[i].push(some.id);
  922. // this.checkinlist(some)
  923. // this.activeSoundList.push(some)
  924. // 这里点击勾选
  925. }
  926. });
  927. });
  928. });
  929. // 循环列表里的声部 拿取商品
  930. for (let i in this.activeSoundList) {
  931. for (let j in res.data.musicGroupSubjectGoodsGroups) {
  932. if (
  933. this.activeSoundList[i].id ==
  934. res.data.musicGroupSubjectGoodsGroups[j].subjectId
  935. ) {
  936. //
  937. if (
  938. res.data.musicGroupSubjectGoodsGroups[j].type ==
  939. "INSTRUMENT"
  940. ) {
  941. this.activeSoundList[
  942. i
  943. ].zhonglei = this.activeSoundList[i].zhonglei.concat(
  944. res.data.musicGroupSubjectGoodsGroups[j].goodsIdList
  945. );
  946. this.activeSoundList[
  947. i
  948. ].zhonglei = this.activeSoundList[i].zhonglei.map(
  949. item => {
  950. return parseInt(item);
  951. }
  952. );
  953. this.activeSoundList[
  954. i
  955. ].goodsList = this.activeSoundList[
  956. i
  957. ].goodsList.concat(
  958. res.data.musicGroupSubjectGoodsGroups[j].goodsList
  959. );
  960. // goodsList
  961. }
  962. // 拿辅件
  963. if (
  964. res.data.musicGroupSubjectGoodsGroups[j].type ==
  965. "ACCESSORIES"
  966. ) {
  967. if (
  968. res.data.musicGroupSubjectGoodsGroups[j].goodsList
  969. .length >= 0
  970. ) {
  971. this.activeSoundList[i].markList
  972. ? this.activeSoundList[i].markList
  973. : (this.activeSoundList[i].markList = []);
  974. let obj = {};
  975. obj.goods = res.data.musicGroupSubjectGoodsGroups[
  976. j
  977. ].goodsIdList.split(",");
  978. obj.goods = obj.goods.map(item => {
  979. return parseInt(item);
  980. });
  981. obj.name =
  982. res.data.musicGroupSubjectGoodsGroups[j].name;
  983. obj.price =
  984. res.data.musicGroupSubjectGoodsGroups[j].price;
  985. this.activeSoundList[i].markList.push(obj);
  986. // this.activeSoundList[i].markList.goodsList.goods = JSON.parse(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
  987. this.activeSoundList[
  988. i
  989. ].markChioseList = this.activeSoundList[
  990. i
  991. ].markChioseList.concat(
  992. res.data.musicGroupSubjectGoodsGroups[j].goodsList
  993. );
  994. }
  995. }
  996. }
  997. }
  998. }
  999. }
  1000. }
  1001. );
  1002. }
  1003. }
  1004. });
  1005. // 拿到刚才的存储的信息
  1006. this.payfor = this.$store.getters.payList;
  1007. this.topfor = this.$store.getters.topinfo;
  1008. this.checkfor = this.$store.getters.checkinfo;
  1009. this.$nextTick(res => {
  1010. let tempInfo = this.$store.getters.checkinfo
  1011. // 默认课程都选中
  1012. tempInfo.soundInfo.isStatus = true
  1013. tempInfo.allInfo.isStatus = true
  1014. tempInfo.baseInfo.isStatus = true
  1015. tempInfo.holidayInfo.isStatus = true
  1016. tempInfo.networkInfo.isStatus = true
  1017. this.courseScheduleInfo = tempInfo;
  1018. // console.log(this.courseScheduleInfo)
  1019. });
  1020. // console.log(this.$store.getters.payList)
  1021. // console.log(this.$store.getters.checkinfo)
  1022. let type = this.topfor.type;
  1023. // 判断进来的乐团状态
  1024. this.teamStatus = this.$route.query.type;
  1025. },
  1026. // 改变checkbox
  1027. changeList (e) {
  1028. // console.log(e)
  1029. },
  1030. handleSelectionChange (e) {
  1031. // 点击改变勾选
  1032. this.multipleSelection = e;
  1033. },
  1034. handleclick (e) { },
  1035. handleStatus (data) { },
  1036. // 点击添加按钮
  1037. addListItem () {
  1038. this.dialogTableVisible = true;
  1039. },
  1040. // 点击确认按钮生成表单
  1041. generates () {
  1042. this.dialogTableVisible = false;
  1043. },
  1044. removeListItem () {
  1045. this.$confirm(`是否删除该声部?`, "提示", {
  1046. confirmButtonText: "确定",
  1047. cancelButtonText: "取消",
  1048. type: "warning"
  1049. })
  1050. .then(() => {
  1051. for (let i = 0; i < this.activeSoundList.length; i++) {
  1052. for (let j = 0; j < this.multipleSelection.length; j++) {
  1053. if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
  1054. this.activeSoundList.splice(i, 1);
  1055. // 遍历循环所有的group 删除所选id
  1056. for (let key in this.soundLists) {
  1057. if (
  1058. this.soundLists[key].indexOf(
  1059. this.multipleSelection[j].id
  1060. ) != -1
  1061. ) {
  1062. this.soundLists[key].splice(
  1063. this.soundLists[key].indexOf(
  1064. this.multipleSelection[j].id
  1065. ),
  1066. 1
  1067. );
  1068. }
  1069. }
  1070. }
  1071. }
  1072. }
  1073. })
  1074. .catch(() => { });
  1075. },
  1076. // 勾选选中框处理数据,存储勾选过的checkbox值
  1077. checkinlist (obj) {
  1078. // console.log(this.activeSoundList)
  1079. let flag = false;
  1080. this.activeSoundList.map(item => {
  1081. if (item.id == obj.id) {
  1082. flag = true;
  1083. }
  1084. });
  1085. if (!flag) {
  1086. this.activeSoundList.push(obj);
  1087. } else {
  1088. for (let i = 0; i < this.activeSoundList.length; i++) {
  1089. if (this.activeSoundList[i].id == obj.id) {
  1090. this.activeSoundList.splice(i, 1);
  1091. }
  1092. }
  1093. }
  1094. },
  1095. // 根据声部id获取可选乐器种类
  1096. chioseType (row) {
  1097. // 根据id查询可选类型种类
  1098. let id = row.id;
  1099. // 'subjectId': id, ' type'='INSTRUMENT'
  1100. getGoods({ subjectId: id, type: "INSTRUMENT" }).then(res => {
  1101. if (res.code == 200) {
  1102. row.goodsList = res.data;
  1103. }
  1104. });
  1105. },
  1106. // 点击关闭乐器种类
  1107. closechioseType (row) {
  1108. row.typeVisible = false;
  1109. },
  1110. // 更改乐器可选规格重置提供方式
  1111. changezhonglei (row) {
  1112. row.fangshi = [];
  1113. },
  1114. // 根据声部id查询可选教辅
  1115. chioseMark (row) {
  1116. row.markVisible = true;
  1117. let id = row.id;
  1118. getGoods({ subjectId: id, type: "ACCESSORIES" }).then(res => {
  1119. if (res.code == 200) {
  1120. row.markChioseList = res.data;
  1121. }
  1122. });
  1123. },
  1124. // 添加教辅
  1125. addMark (row) {
  1126. row.markList.push({ name: "", goods: [], price: "", marketPrice: 0 });
  1127. },
  1128. // 删除教辅
  1129. removeMartItem (row, index) {
  1130. row.markList.splice(index, 1);
  1131. },
  1132. // 点击保存或编辑
  1133. savecolumn (row) {
  1134. row.type == 1 ? (row.type = 2) : (row.type = 1);
  1135. },
  1136. // 返回上一步
  1137. goback () {
  1138. this.$emit("chiosetab", 0);
  1139. },
  1140. submitInfo (type) {
  1141. this.isNullFangshi = true;
  1142. // return;
  1143. let status;
  1144. let titleStr = "";
  1145. if (type == 1) {
  1146. // 保存
  1147. status = "DRAFT";
  1148. titleStr = "确定保存?";
  1149. } else if (type == 2) {
  1150. // 提交
  1151. status = "AUDIT";
  1152. titleStr = "确定提交";
  1153. }
  1154. // 整理数据提交
  1155. if (this.teamStatus == "newTeam") {
  1156. let obj = {};
  1157. obj.months = this.payfor.chioseMonth || [];
  1158. let enrollClasses;
  1159. this.topfor.startClass
  1160. ? (enrollClasses = this.topfor.startClass.join(","))
  1161. : (enrollClasses = null);
  1162. obj.musicGroup = {
  1163. settlementType: this.topfor.salary,
  1164. applyExpireDate: this.topfor.time + " 00:00:01",
  1165. chargeTypeId: this.topfor.type,
  1166. cooperationOrganId: this.topfor.school,
  1167. teamTeacherId: this.topfor.boss,
  1168. educationalTeacherId: this.topfor.teacher,
  1169. enrollClasses,
  1170. name: this.topfor.name,
  1171. organId: this.topfor.section,
  1172. // paymentMonths:obj.months 有待确认
  1173. schoolId: this.topfor.address,
  1174. courseForm: JSON.stringify(this.checkfor),
  1175. expectStartGroupDate: this.topfor.startTime,
  1176. isClassroomLessons: this.topfor.isClass,
  1177. status,
  1178. ownershipType: this.topfor.ownershipType,
  1179. repairUserId: this.topfor.repairUserId,
  1180. feeType: this.topfor.feeType
  1181. };
  1182. obj.musicGroupPaymentEntities = [];
  1183. // 添加学校主体付费方式
  1184. if (this.payfor.student.ischeck) {
  1185. obj.musicGroupPaymentEntities.push({
  1186. paymentMethod: this.payfor.student.chiose,
  1187. name: "学生"
  1188. });
  1189. }
  1190. if (this.payfor.school.ischeck) {
  1191. obj.musicGroupPaymentEntities.push({
  1192. amount: this.payfor.school.price,
  1193. memo: this.payfor.school.value,
  1194. paymentMethod: this.payfor.school.chiose,
  1195. name: "学校"
  1196. });
  1197. }
  1198. // 添加公司主体付费方式
  1199. if (this.payfor.company.ischeck) {
  1200. obj.musicGroupPaymentEntities.push({
  1201. amount: this.payfor.company.price,
  1202. memo: this.payfor.company.value,
  1203. paymentMethod: this.payfor.company.chiose,
  1204. name: "公司"
  1205. });
  1206. }
  1207. let activeSoundList = this.activeSoundList;
  1208. // 添加商品以及教辅
  1209. obj.musicGroupSubjectGoodsGroups = [];
  1210. obj.musicGroupSubjectPlans = [];
  1211. activeSoundList.forEach(active => {
  1212. // 乐器
  1213. active.zhonglei.forEach(zl => {
  1214. let goodsItem = [];
  1215. active.goodsList.forEach(goods => {
  1216. if (goods.id == zl) {
  1217. goodsItem = goods;
  1218. }
  1219. });
  1220. let kitGroupPurchaseTypeJson = null;
  1221. let depositFee, price;
  1222. let coursePurchaseTypeJson = null;
  1223. active.fangshi.forEach(fs => {
  1224. if (fs.id == zl) {
  1225. depositFee = fs.mode.depositFee;
  1226. price = fs.mode.price;
  1227. let types = {};
  1228. if (fs.mode.isFREE) {
  1229. types.FREE = fs.mode.FREE;
  1230. }
  1231. if (fs.mode.isGROUP) {
  1232. types.GROUP = fs.mode.GROUP;
  1233. }
  1234. if (fs.mode.isLEASE) {
  1235. types.LEASE = fs.mode.LEASE;
  1236. }
  1237. kitGroupPurchaseTypeJson = JSON.stringify(types);
  1238. if (kitGroupPurchaseTypeJson.length <= 0) {
  1239. kitGroupPurchaseTypeJson = null;
  1240. }
  1241. let courseTypes = {}
  1242. if(fs.mode.courseFree) {
  1243. courseTypes.FREE = fs.mode.courseFree
  1244. }
  1245. if(fs.mode.courseGroup) {
  1246. courseTypes.GROUP = fs.mode.courseGroup ? fs.mode.courseGroup : 0
  1247. }
  1248. if(fs.mode.courseLease) {
  1249. courseTypes.LEASE = fs.mode.courseLease
  1250. }
  1251. coursePurchaseTypeJson = JSON.stringify(courseTypes)
  1252. if (coursePurchaseTypeJson.length <= 0) {
  1253. coursePurchaseTypeJson = null;
  1254. }
  1255. }
  1256. });
  1257. let some = {
  1258. subjectId: active.id,
  1259. type: "INSTRUMENT",
  1260. goodsIdList: zl,
  1261. name: goodsItem.name,
  1262. price,
  1263. kitGroupPurchaseTypeJson,
  1264. coursePurchaseTypeJson,
  1265. depositFee
  1266. };
  1267. obj.musicGroupSubjectGoodsGroups.push(some);
  1268. });
  1269. // 附件
  1270. active.markList.forEach(mark => {
  1271. if (mark.goods.length >= 1) {
  1272. let some = {
  1273. subjectId: active.id,
  1274. type: "ACCESSORIES",
  1275. goodsIdList: mark.goods.join(","),
  1276. name: mark.name,
  1277. price: mark.price,
  1278. marketPrice: mark.marketPrice
  1279. };
  1280. obj.musicGroupSubjectGoodsGroups.push(some);
  1281. }
  1282. });
  1283. let depositFee;
  1284. if (!active.fangshi) {
  1285. this.isNullFangshi = false;
  1286. }
  1287. if (active.fangshi == "LEASE") {
  1288. depositFee = active.fangshiprice;
  1289. } else {
  1290. depositFee = 0;
  1291. }
  1292. // 添加声部
  1293. let item = {
  1294. expectedStudentNum: active.jihua,
  1295. fee: active.yuji,
  1296. // kitGroupPurchaseType: active.fangshi,
  1297. subName: active.sound,
  1298. subjectId: active.id
  1299. // depositFee// depositFee 只有租赁才有
  1300. };
  1301. obj.musicGroupSubjectPlans.push(item);
  1302. });
  1303. this.$confirm(titleStr, "提示", {
  1304. confirmButtonText: "确定",
  1305. cancelButtonText: "取消",
  1306. type: "warning"
  1307. })
  1308. .then(() => {
  1309. createTeam(obj).then(res => {
  1310. if (res.code == 200) {
  1311. // 成功 跳转到乐团报名详情
  1312. this.$router.push({
  1313. path: "/business/teamDetail",
  1314. query: { search: this.Fsearch, rules: this.Frules }
  1315. });
  1316. }
  1317. });
  1318. })
  1319. .catch(() => { });
  1320. } else {
  1321. // 只提交第二页的数据
  1322. let obj = {};
  1323. let activeSoundList = this.activeSoundList;
  1324. // 添加商品以及教辅
  1325. obj.musicGroupId = this.teamid;
  1326. obj.musicGroupStatus = status;
  1327. obj.musicGroupSubjectGoodsGroups = [];
  1328. obj.musicGroupSubjectPlans = [];
  1329. activeSoundList.forEach(active => {
  1330. // 乐器
  1331. active.zhonglei.forEach(zl => {
  1332. let goodsItem = [];
  1333. active.goodsList.forEach(goods => {
  1334. if (goods.id == zl) {
  1335. goodsItem = goods;
  1336. }
  1337. });
  1338. let kitGroupPurchaseTypeJson = null;
  1339. let depositFee, price;
  1340. let coursePurchaseTypeJson = null;
  1341. active.fangshi.forEach(fs => {
  1342. if (fs.id == zl) {
  1343. depositFee = fs.mode.depositFee;
  1344. price = fs.mode.price;
  1345. let types = {};
  1346. if (fs.mode.isFREE) {
  1347. types.FREE = fs.mode.FREE;
  1348. }
  1349. if (fs.mode.isGROUP) {
  1350. types.GROUP = fs.mode.GROUP ? fs.mode.GROUP : 0;
  1351. }
  1352. if (fs.mode.isLEASE) {
  1353. types.LEASE = fs.mode.LEASE;
  1354. }
  1355. kitGroupPurchaseTypeJson = JSON.stringify(types);
  1356. if (kitGroupPurchaseTypeJson.length <= 0) {
  1357. kitGroupPurchaseTypeJson = null;
  1358. }
  1359. let courseTypes = {}
  1360. if(fs.mode.courseFree) {
  1361. courseTypes.FREE = fs.mode.courseFree
  1362. }
  1363. if(fs.mode.courseGroup) {
  1364. courseTypes.GROUP = fs.mode.courseGroup ? fs.mode.courseGroup : 0
  1365. }
  1366. if(fs.mode.courseLease) {
  1367. courseTypes.LEASE = fs.mode.courseLease
  1368. }
  1369. coursePurchaseTypeJson = JSON.stringify(courseTypes)
  1370. if (coursePurchaseTypeJson.length <= 0) {
  1371. coursePurchaseTypeJson = null;
  1372. }
  1373. }
  1374. });
  1375. let some = {
  1376. subjectId: active.id,
  1377. type: "INSTRUMENT",
  1378. goodsIdList: zl,
  1379. name: goodsItem.name,
  1380. kitGroupPurchaseTypeJson,
  1381. coursePurchaseTypeJson,
  1382. depositFee,
  1383. price
  1384. };
  1385. obj.musicGroupSubjectGoodsGroups.push(some);
  1386. });
  1387. // 遍历声部里的教辅
  1388. active.markList.forEach(mark => {
  1389. if (mark.goods.length >= 1) {
  1390. let some = {
  1391. subjectId: active.id,
  1392. type: "ACCESSORIES",
  1393. goodsIdList: mark.goods.join(","),
  1394. name: mark.name,
  1395. price: mark.price,
  1396. marketPrice: mark.marketPrice
  1397. };
  1398. obj.musicGroupSubjectGoodsGroups.push(some);
  1399. }
  1400. });
  1401. // 添加声部
  1402. let depositFee;
  1403. // 如果没有提供方式则报错
  1404. if (!active.fangshi) {
  1405. this.isNullFangshi = false;
  1406. }
  1407. if (active.fangshi == "LEASE") {
  1408. depositFee = active.fangshiprice;
  1409. } else {
  1410. depositFee = 0;
  1411. }
  1412. let item = {
  1413. expectedStudentNum: active.jihua,
  1414. fee: active.yuji,
  1415. // kitGroupPurchaseType: active.fangshi,
  1416. subName: active.sound,
  1417. subjectId: active.id
  1418. // depositFee: depositFee // depositFee 只有租赁才有
  1419. };
  1420. obj.musicGroupSubjectPlans.push(item);
  1421. });
  1422. if (!this.isNullFangshi) {
  1423. this.$message.error("请填写乐器提供方式");
  1424. return;
  1425. }
  1426. this.$confirm(`确定提交?`, "提示", {
  1427. confirmButtonText: "确定",
  1428. cancelButtonText: "取消",
  1429. type: "warning"
  1430. })
  1431. .then(() => {
  1432. // 发请求修改声部信息
  1433. updateSubjectInfo(obj).then(res => {
  1434. if (res.code == 200) {
  1435. this.$message.success("提交成功");
  1436. this.$router.push({
  1437. path: "/business/teamDetail",
  1438. query: { search: this.Fsearch, rules: this.Frules }
  1439. });
  1440. }
  1441. });
  1442. })
  1443. .catch(() => { });
  1444. }
  1445. },
  1446. // 同意
  1447. approval () {
  1448. this.$confirm(`是否审核通过?`, "提示", {
  1449. confirmButtonText: "确定",
  1450. cancelButtonText: "取消",
  1451. type: "warning"
  1452. })
  1453. .then(() => {
  1454. auditSuccess({ musicGroupId: this.teamid }).then(res => {
  1455. if (res.code == 200) {
  1456. this.$message.success("审核通过");
  1457. this.$router.push({
  1458. path: "/business/teamDetail",
  1459. query: { search: this.Fsearch, rules: this.Frules }
  1460. });
  1461. }
  1462. });
  1463. })
  1464. .catch(() => { });
  1465. },
  1466. // 拒绝
  1467. refuse () {
  1468. // auditFailed
  1469. this.$prompt("请输入拒绝原因", "提示", {
  1470. confirmButtonText: "确定",
  1471. cancelButtonText: "取消"
  1472. }).then(({ value }) => {
  1473. // 点击确认 值是value
  1474. if (!value) {
  1475. this.$message.error("请输入拒绝原因");
  1476. return;
  1477. } else {
  1478. auditFailed({ musicGroupId: this.teamid, memo: value }).then(res => {
  1479. if (res.code == 200) {
  1480. this.$message.success("已拒绝");
  1481. this.$router.push({
  1482. path: "/business/teamDetail",
  1483. query: { search: this.Fsearch, rules: this.Frules }
  1484. });
  1485. }
  1486. });
  1487. }
  1488. });
  1489. },
  1490. // 设置乐器提供方式
  1491. setGiveMode (row) {
  1492. // goodsList
  1493. console.log(row)
  1494. if (row.zhonglei.length <= 0) {
  1495. this.$message.error("请先选择乐器规格");
  1496. return;
  1497. }
  1498. // row.fangshi = []
  1499. // row.zhonglei
  1500. // row.goodsList
  1501. const tyuji = row.yuji
  1502. if (row.fangshi[0] && row.fangshi[0].mode) {
  1503. row.fangshi.forEach(item => {
  1504. item.mode.yuji = tyuji
  1505. })
  1506. } else {
  1507. for (let i in row.goodsList) {
  1508. for (let j in row.zhonglei) {
  1509. if (row.goodsList[i].id == row.zhonglei[j]) {
  1510. row.fangshi.push({
  1511. shopName: row.goodsList[i].name,
  1512. id: row.goodsList[i].id,
  1513. mode: {
  1514. yuji: tyuji,
  1515. FREE: 0,
  1516. GROUP: 0,
  1517. LEASE: 0,
  1518. courseFree: 0,
  1519. courseLease: null,
  1520. courseGroup: 0,
  1521. depositFee: 1500, // 保证金
  1522. price: row.goodsList[i].groupPurchasePrice, // 团购价
  1523. marketPrice: row.goodsList[i].marketPrice, // 原价
  1524. isFREE: false,
  1525. isGROUP: false,
  1526. isLEASE: false
  1527. }
  1528. });
  1529. }
  1530. }
  1531. }
  1532. }
  1533. console.log(row)
  1534. this.editSound = row;
  1535. this.reductionVisible = true;
  1536. },
  1537. resetSoundItem () {
  1538. for (let i in this.activeSoundList) {
  1539. if (this.activeSoundList[i].id == this.editSound.id) {
  1540. this.activeSoundList[i].id = this.editSound.id;
  1541. this.reductionVisible = false;
  1542. }
  1543. }
  1544. },
  1545. groupInput (item) {
  1546. if (item.mode.price - item.mode.GROUP < 0) {
  1547. item.mode.GROUP = item.mode.price;
  1548. }
  1549. },
  1550. groupCourseInput(item) {
  1551. console.log(item)
  1552. let mode = item.mode
  1553. if(mode.yuji - mode.courseGroup < 0) {
  1554. mode.courseGroup = mode.yuji
  1555. }
  1556. },
  1557. deposiInput (item) {
  1558. if (item.mode.depositFee - item.mode.LEASE < 0) {
  1559. item.mode.LEASE = item.mode.depositFee;
  1560. }
  1561. },
  1562. setDeposiInput (val, item) {
  1563. item.mode.LEASE = 0;
  1564. },
  1565. // 查看预览
  1566. lookPreview (row) {
  1567. this.lookPreviewRow = row;
  1568. this.previewVisible = true;
  1569. this.calcPrice()
  1570. },
  1571. onAuxiliarie (item) {
  1572. // 辅件切换状态
  1573. item.checked = !item.checked;
  1574. // 重新计算金额
  1575. this.calcPrice();
  1576. },
  1577. instrumentF (item) {
  1578. // 乐器切换状态
  1579. this.lookPreviewRow.fangshi.forEach(item => {
  1580. item.checked = false;
  1581. });
  1582. item.checked = true;
  1583. // 重新计算金额
  1584. this.calcPrice();
  1585. },
  1586. onPreviewClose() {
  1587. this.lookPreviewRow.fangshi.forEach(item => {
  1588. item.checked = false;
  1589. });
  1590. this.lookPreviewRow.markList.forEach(item => {
  1591. item.checked = false;
  1592. })
  1593. },
  1594. calcPrice () {
  1595. let amount = 0,
  1596. marketPrice = 0,
  1597. goodsGroupIds = {},
  1598. couponPrice = 0, // 优惠金额
  1599. goodsIds = [],
  1600. contractGoodsIds = ""; // 合同所需要的商品Id (只需要乐器编号)
  1601. // 课程 this.topfor payfor checkfor
  1602. let mgs = this.lookPreviewRow.yuji;
  1603. let coursePrice = Number(mgs)
  1604. let csi = this.checkfor;
  1605. // 加上判断是否有课程信息
  1606. if (mgs) {
  1607. console.log(csi)
  1608. // amount += parseFloat(mgs);
  1609. const allInfo = csi.allInfo
  1610. if (allInfo.ischeck) {
  1611. const value = Number(parseFloat(allInfo.value ? allInfo.value : 0))
  1612. if(allInfo.isStatus) {
  1613. marketPrice += value;
  1614. }
  1615. if(allInfo.isStatus && allInfo.checkBuy) {
  1616. coursePrice += parseFloat(allInfo.checkBuy ? value : 0)
  1617. }
  1618. }
  1619. const baseInfo = csi.baseInfo
  1620. if (baseInfo.ischeck) {
  1621. const value = parseFloat(baseInfo.value ? baseInfo.value : 0)
  1622. if(baseInfo.isStatus) {
  1623. marketPrice += value;
  1624. }
  1625. if(baseInfo.isStatus && baseInfo.checkBuy) {
  1626. coursePrice += parseFloat(baseInfo.checkBuy ? value : 0)
  1627. }
  1628. }
  1629. const holidayInfo = csi.holidayInfo
  1630. if (holidayInfo.ischeck) {
  1631. const value = parseFloat(holidayInfo.value ? holidayInfo.value : 0)
  1632. if(holidayInfo.isStatus) {
  1633. marketPrice += value
  1634. }
  1635. if(holidayInfo.isStatus && holidayInfo.checkBuy) {
  1636. coursePrice += parseFloat(holidayInfo.checkBuy ? value : 0)
  1637. }
  1638. }
  1639. const soundInfo = csi.soundInfo
  1640. if (soundInfo.ischeck) {
  1641. const value = parseFloat(soundInfo.value ? soundInfo.value : 0)
  1642. if(soundInfo.isStatus) {
  1643. marketPrice += value;
  1644. }
  1645. if(soundInfo.isStatus && soundInfo.checkBuy) {
  1646. coursePrice += parseFloat(soundInfo.checkBuy ? value : 0)
  1647. }
  1648. }
  1649. const networkInfo = csi.networkInfo
  1650. if (networkInfo.ischeck) {
  1651. const value = parseFloat(networkInfo.value ? networkInfo.value : 0)
  1652. if(networkInfo.isStatus) {
  1653. marketPrice += value;
  1654. }
  1655. if(networkInfo.isStatus && networkInfo.checkBuy) {
  1656. coursePrice += parseFloat(networkInfo.checkBuy ? value : 0)
  1657. }
  1658. }
  1659. }
  1660. let ir = this.lookPreviewRow.fangshi;
  1661. let courseCouponPrice = 0
  1662. if (ir.length > 0) {
  1663. ir.forEach(item => {
  1664. if (item.checked) {
  1665. // if (item.name != "自备") {
  1666. // contractGoodsIds += item.goodsIdList;
  1667. // }
  1668. if (item.chiosetype == "FREE") {
  1669. // 免费
  1670. amount += 0;
  1671. couponPrice = 0; // 优惠金额
  1672. courseCouponPrice = 0
  1673. } else if (item.chiosetype == "LEASE") {
  1674. // 租赁
  1675. couponPrice = parseFloat(item.mode.LEASE); // 优惠金额
  1676. courseCouponPrice = parseFloat(item.mode.courseLease || 0)
  1677. if (item.name != "自备") {
  1678. amount += parseFloat(item.mode.depositFee);
  1679. } else {
  1680. amount += 0;
  1681. }
  1682. } else {
  1683. //团购
  1684. amount += parseFloat(item.mode.price);
  1685. couponPrice = parseFloat(item.mode.GROUP);
  1686. courseCouponPrice = parseFloat(item.mode.courseGroup)
  1687. }
  1688. marketPrice += parseFloat(item.mode.marketPrice)
  1689. }
  1690. });
  1691. }
  1692. if(coursePrice - Number(courseCouponPrice) >= 0) {
  1693. coursePrice = Number((coursePrice - courseCouponPrice).toFixed(2))
  1694. } else {
  1695. coursePrice = 0
  1696. }
  1697. amount += parseFloat(coursePrice);
  1698. // console.log(this.lookPreviewRow.markList)
  1699. // 辅件
  1700. if (this.lookPreviewRow.markList.length > 0) {
  1701. this.lookPreviewRow.markList.forEach(item => {
  1702. if (item.checked) {
  1703. amount += parseFloat(item.price);
  1704. let tempPrice = 0
  1705. item.goods.forEach(item => {
  1706. tempPrice += this.getAccessoryPrice(item)
  1707. })
  1708. marketPrice += parseFloat(tempPrice);
  1709. // if (item.goodsList && item.goodsList.length > 0) {
  1710. // item.goodsList.forEach(childGoods => {
  1711. // marketPrice += parseFloat(childGoods.marketPrice);
  1712. // });
  1713. // }
  1714. // goodsGroupIds.push(item.id)
  1715. // goodsGroupIds[item.id] = "ACCESSORIES";
  1716. // contractGoodsIds += ',' + item.goodsIdList
  1717. }
  1718. });
  1719. }
  1720. // 其它
  1721. // if (this.otherResult.length > 0) {
  1722. // this.otherResult.forEach(item => {
  1723. // amount += parseFloat(item.price);
  1724. // marketPrice += parseFloat(item.marketPrice);
  1725. // // goodsGroupIds.push(item.id)
  1726. // goodsGroupIds[item.id] = "OTHER";
  1727. // // contractGoodsIds += ',' + item.id
  1728. // });
  1729. // } else if (this.otherGoods) {
  1730. // this.otherGoods.forEach(item => {
  1731. // amount += parseFloat(item.groupPurchasePrice);
  1732. // marketPrice += parseFloat(item.marketPrice);
  1733. // goodsIds.push(item.id);
  1734. // // contractGoodsIds += ',' + item.id
  1735. // });
  1736. // }
  1737. let tempGroupPurchasePrice = amount || 0
  1738. // 判断减去优惠金额,是否大于0(这里有可能出现负数)
  1739. if (amount - couponPrice >= 0) {
  1740. amount = Number((amount - couponPrice).toFixed(2));
  1741. this.errorPrice = false;
  1742. } else {
  1743. amount = 0;
  1744. this.errorPrice = true; // 订单金额是否异常
  1745. }
  1746. // 计算是否使用过余额
  1747. if (this.payType) {
  1748. let tempPrice = Number((amount - this.balance).toFixed(2));
  1749. if (tempPrice > 0) {
  1750. this.needPrice = tempPrice;
  1751. } else {
  1752. this.needPrice = 0;
  1753. }
  1754. } else {
  1755. this.needPrice = Number(amount.toFixed(2));
  1756. }
  1757. this.orderInfo = {
  1758. amount: Number(amount.toFixed(2)),
  1759. marketPrice: Number(marketPrice.toFixed(2)),
  1760. groupPurchasePrice: Number(tempGroupPurchasePrice.toFixed(2)),
  1761. couponPrice: couponPrice,
  1762. goodsGroupIds: goodsGroupIds,
  1763. goodsIds: goodsIds.join(","),
  1764. contractGoodsIds: contractGoodsIds,
  1765. coursePrice: coursePrice
  1766. };
  1767. },
  1768. getAccessoryPrice (val) {
  1769. const lookPreviewRow = this.lookPreviewRow
  1770. if (lookPreviewRow && lookPreviewRow.markChioseList) {
  1771. for (let i in lookPreviewRow.markChioseList) {
  1772. if (lookPreviewRow.markChioseList[i].id == val) {
  1773. return lookPreviewRow.markChioseList[i].marketPrice;
  1774. }
  1775. }
  1776. }
  1777. return 0;
  1778. },
  1779. },
  1780. filters: {
  1781. AccessoryName (val, lookPreviewRow) {
  1782. if (lookPreviewRow && lookPreviewRow.markChioseList) {
  1783. for (let i in lookPreviewRow.markChioseList) {
  1784. if (lookPreviewRow.markChioseList[i].id == val) {
  1785. return lookPreviewRow.markChioseList[i].name;
  1786. }
  1787. }
  1788. }
  1789. return "";
  1790. },
  1791. AccessoryPrice (val, lookPreviewRow) {
  1792. if (lookPreviewRow && lookPreviewRow.markChioseList) {
  1793. for (let i in lookPreviewRow.markChioseList) {
  1794. if (lookPreviewRow.markChioseList[i].id == val) {
  1795. return lookPreviewRow.markChioseList[i].marketPrice;
  1796. }
  1797. }
  1798. }
  1799. return "";
  1800. },
  1801. zhongleiFilter (val, list) {
  1802. if (list.length <= 0) {
  1803. return;
  1804. }
  1805. let arr = [];
  1806. for (let i = 0; i < list.length; i++) {
  1807. for (let j = 0; j < val.length; j++) {
  1808. if (val[j] == list[i].id) {
  1809. arr.push(list[i].name);
  1810. }
  1811. }
  1812. }
  1813. if (arr.length > 0) {
  1814. return arr.join(",");
  1815. } else {
  1816. return "";
  1817. }
  1818. },
  1819. fangshiFilter (val, price) {
  1820. let str = "";
  1821. for (let i in val) {
  1822. let vals = val[i]
  1823. str += `${vals.shopName}:`;
  1824. if (vals.mode.isFREE) {
  1825. str += `免费:减免金额${vals.mode["FREE"]},课程减免${vals.mode['courseFree'] ? vals.mode['courseFree'] : 0}\n`;
  1826. }
  1827. if (vals.mode.isGROUP) {
  1828. str += `团购:团购价${vals.mode["price"]},减免金额${vals.mode["GROUP"] ? vals.mode["GROUP"] : 0},课程减免${vals.mode['courseGroup'] ? vals.mode['courseGroup'] : 0}\n`;
  1829. }
  1830. if (vals.mode.isLEASE) {
  1831. str += `租赁:${vals.mode.depositFee},减免金额${vals.mode["LEASE"] ? vals.mode["LEASE"] : 0},课程减免${vals.mode['courseLease'] ? vals.mode['courseLease'] : 0}\n`;
  1832. }
  1833. }
  1834. // if (val == 'FREE') {
  1835. // str = '免费'
  1836. // return str;
  1837. // } else if (val == 'GROUP') {
  1838. // str = '团购'
  1839. // return str
  1840. // } else if (val == 'LEASE') {
  1841. // str = '借用'
  1842. // }
  1843. // str = str.substring(0, str.length - 1)
  1844. return str;
  1845. },
  1846. goodsFilter (val, list) {
  1847. if (list.length <= 0) {
  1848. return "";
  1849. }
  1850. let arr = [];
  1851. for (let i = 0; i < val.length; i++) {
  1852. for (let j = 0; j < list.length; j++) {
  1853. if (val[i] == list[j].id) {
  1854. arr.push(list[j].name);
  1855. }
  1856. }
  1857. }
  1858. if (arr.length > 0) {
  1859. return arr.join(",");
  1860. } else {
  1861. return "";
  1862. }
  1863. }
  1864. // markFilter(val){
  1865. // for
  1866. // let name = val.name;
  1867. // let goods = val.goods.join(',');
  1868. // let price = val.price
  1869. // }
  1870. },
  1871. mounted () {
  1872. this.init();
  1873. },
  1874. watch: {
  1875. previewVisible (val) {
  1876. if (!val) {
  1877. this.orderInfo = {
  1878. marketPrice: 0,
  1879. groupPurchasePrice: 0,
  1880. amount: 0, // 现价总金额
  1881. goodsGroupIds: null,
  1882. goodsIds: null,
  1883. contractGoodsIds: null, // 选中所有商品ID
  1884. couponPrice: 0 //
  1885. };
  1886. this.needPrice = 0;
  1887. }
  1888. }
  1889. },
  1890. computed: {
  1891. // 返回当前选中声部数量
  1892. chioseSoundNum () {
  1893. let num = 0;
  1894. for (let key in this.soundList) {
  1895. num += this.soundLists[key].length;
  1896. }
  1897. return num;
  1898. },
  1899. // 计划招生人数
  1900. PlannedCount () {
  1901. let Count = 0;
  1902. for (let item in this.activeSoundList) {
  1903. Count += parseInt(this.activeSoundList[item].jihua) || 0;
  1904. }
  1905. return Count;
  1906. }
  1907. }
  1908. };
  1909. </script>
  1910. <style lang="scss" scoped>
  1911. // .el-table__body tr.current-row > td {
  1912. // background-color: #c6cbd4 !important;
  1913. // }
  1914. .el-checkbox__input.is-checked .el-checkbox__inner,
  1915. .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  1916. background-color: #14928a;
  1917. border-color: #14928a;
  1918. }
  1919. .el-select__tags .el-tag__close.el-icon-close {
  1920. display: inline-block;
  1921. }
  1922. // .el-dialog__header {
  1923. // padding: 0 32px !important;
  1924. // height: 40px;
  1925. // line-height: 40px;
  1926. // background-color: #14928a;
  1927. // .el-dialog__title {
  1928. // color: #fff;
  1929. // font-size: 16px;
  1930. // }
  1931. // }
  1932. .el-checkbox__input.is-checked + .el-checkbox__label {
  1933. color: #606266;
  1934. }
  1935. .sound-container {
  1936. .chioseWrap {
  1937. margin-bottom: 30px;
  1938. display: flex;
  1939. flex-direction: row;
  1940. padding: 0 25px;
  1941. p {
  1942. font-size: 14px;
  1943. margin-right: 30px;
  1944. }
  1945. }
  1946. .topMsg {
  1947. padding: 0 25px;
  1948. display: flex;
  1949. flex-direction: row;
  1950. justify-content: flex-start;
  1951. font-size: 14px;
  1952. color: #444;
  1953. margin-bottom: 15px;
  1954. }
  1955. .subTitle {
  1956. // width: 1203px;
  1957. height: 40px;
  1958. line-height: 40px;
  1959. background-color: #fefceb;
  1960. padding: 0 25px;
  1961. box-sizing: border-box;
  1962. font-size: 16px;
  1963. color: #474747;
  1964. margin-bottom: 20px;
  1965. }
  1966. .floor {
  1967. display: flex;
  1968. flex-direction: row;
  1969. justify-content: flex-start;
  1970. width: 100%;
  1971. height: 48px;
  1972. line-height: 48px;
  1973. background: rgba(237, 238, 240, 1);
  1974. font-size: 14px;
  1975. color: #444;
  1976. align-items: center;
  1977. position: relative;
  1978. z-index: 1;
  1979. .remove {
  1980. width: 98px;
  1981. height: 32px;
  1982. background: rgba(248, 80, 67, 1);
  1983. border-radius: 3px;
  1984. color: #fff;
  1985. line-height: 32px;
  1986. text-align: center;
  1987. margin-left: 164px;
  1988. cursor: pointer;
  1989. }
  1990. .add {
  1991. width: 98px;
  1992. height: 32px;
  1993. background: rgba(20, 146, 138, 1);
  1994. border-radius: 3px;
  1995. color: #fff;
  1996. line-height: 32px;
  1997. text-align: center;
  1998. margin-left: 20px;
  1999. cursor: pointer;
  2000. }
  2001. }
  2002. .xuanze {
  2003. width: 71px;
  2004. }
  2005. .chiose {
  2006. width: 65px;
  2007. height: 24px;
  2008. line-height: 24px;
  2009. border: 1px solid rgba(151, 151, 151, 1);
  2010. border-radius: 12px;
  2011. text-align: center;
  2012. cursor: pointer;
  2013. }
  2014. }
  2015. .soundWrap {
  2016. width: 100%;
  2017. overflow: auto;
  2018. .itemList {
  2019. display: flex;
  2020. flex-direction: row;
  2021. justify-content: flex-start;
  2022. flex-wrap: nowrap;
  2023. flex-grow: 1;
  2024. height: 300px;
  2025. max-height: 300px;
  2026. overflow: auto;
  2027. .categroy {
  2028. width: 150px;
  2029. min-width: 150px;
  2030. .el-checkbox {
  2031. height: 30px;
  2032. line-height: 30px;
  2033. display: block;
  2034. padding-left: 20px;
  2035. }
  2036. p {
  2037. height: 40px;
  2038. line-height: 40px;
  2039. background-color: #edeef0;
  2040. margin-bottom: 15px;
  2041. text-align: center;
  2042. }
  2043. }
  2044. }
  2045. }
  2046. .soundSubP {
  2047. height: 40px;
  2048. line-height: 40px;
  2049. background-color: #edeef0;
  2050. padding-left: 25px;
  2051. }
  2052. .btnWraps {
  2053. display: flex;
  2054. flex-direction: column;
  2055. align-items: center;
  2056. margin-top: 150px;
  2057. .dialogBtn {
  2058. width: 188px;
  2059. height: 40px;
  2060. background: rgba(249, 114, 21, 1);
  2061. border-radius: 4px;
  2062. line-height: 40px;
  2063. color: #fff;
  2064. text-align: center;
  2065. cursor: pointer;
  2066. }
  2067. }
  2068. .btnWrap {
  2069. margin-top: 40px;
  2070. .PrevBtn {
  2071. background-color: #444444;
  2072. width: 120px;
  2073. }
  2074. .submitBtn {
  2075. background-color: #f85043;
  2076. width: 120px;
  2077. }
  2078. }
  2079. .el-icon-plus {
  2080. cursor: pointer;
  2081. }
  2082. .baseRight {
  2083. width: 375px;
  2084. margin-left: 25px;
  2085. header {
  2086. width: 375px;
  2087. height: 40px;
  2088. line-height: 40px;
  2089. color: #000;
  2090. font-size: 14px;
  2091. background: #fff;
  2092. box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.07);
  2093. text-align: center;
  2094. margin-bottom: 6px;
  2095. }
  2096. .section {
  2097. width: 375px;
  2098. padding: 0 22px;
  2099. background: #fff;
  2100. margin-bottom: 10px;
  2101. .line_bottom {
  2102. border-bottom: 1px solid #ededed;
  2103. }
  2104. > .title {
  2105. font-size: 20px;
  2106. line-height: 28px;
  2107. font-weight: bold;
  2108. }
  2109. .indate {
  2110. font-size: 12px;
  2111. padding: 5px 0;
  2112. display: flex;
  2113. justify-content: space-between;
  2114. span {
  2115. color: #fa101d;
  2116. }
  2117. }
  2118. .coutInfo {
  2119. font-size: 14px;
  2120. color: #f85043;
  2121. text-align: left;
  2122. border-top: 1px solid #ededed;
  2123. padding: 12px 0 0 25px;
  2124. margin-top: 10px;
  2125. position: relative;
  2126. .trumpet_icon {
  2127. width: 14px;
  2128. height: 12px;
  2129. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAyZJREFUSA21Vk1IVFEUPufOezNilJXQD2UQRERamWhBaUWOSS3U0SawdgZai2gR0aoQXPSDm3JRCbm0xZBjbkQZS0KDjKywDCIIkoKKEIkm35uZezr32X0jQ+bY2IU359xzzj3fPXe++4PwDy0W8JdKgjYCWOkzzWIM9X5NN42RbqCKoxOHl1nR2FVJ1MRgqGzxhCxg8VDp6TSRTpCKsQL+aitqjwPRKQ3mjCVygFPz2MGKQqvG/zxW56+c7ZsXkIJH1liB8hARdQPButmD59WR8mUCuqy6ynwd686OmpsN++XjLUiYrZ0g5E6SdJmAVri2FMWDnnIz3P8gxex07Rp/owS6jQij3h1lu7G5Oe5UOF1bcc5+MTRFlBiTEH/iflLe+htYKsh0oHwzBcpztd3bHWlHxPtEUMTFHFV2YdceOglStnLiZGV6xEIlwbBF+JQaqpa6Qw246OiUOKOkICnPus4MFYGik7m80Z6MXtCpfKHIGBN6kIm2x66tLBJM7q3amak0DbqEgD84eQNzwiUkE+Wmk1vGjwtmnydTID0eQ5EpLoDZTGvjr4b2absXzGdKlwC73FloZ6aSSTKocjC7kyu3Ku8D2xOAuOk/ANKEAwhivZKqYXt7jFdyAnl7LTrgDMTcv4sOyCddnlOVnKlU6dTYaPKS5hHg5IIO77nnnfTw0h1QPTTgjWv9MrGB97ki5zvh/JmuJzOFgv4cPm9rGO6TUVD6SGezhV2sdF7OEcEB49qRqbRi0MKVLEEBHXxu8i6YabzMpx1NGJ18OIjr2pG5pHqu7r13efY1ncsK+rfxvtzPW2LY29U3Krxd/Xe4c55PiKgO+meJsNeHVIIdPd/dHHFoUToitSnpsDQrHGn1FpbmoMcoEIJPA/0BNvFEJlVgOi0rPPAWwwPfdKy6nphE1c71tL3snrK796EOSpVUX7Xano628cBgqk/157oP1Y1PcTkChDEwzRJfqNfhyrz7EO/2fPaFI8dAiGqe3sc/gc5pI3wtPFCrwVTcvBXOTuY8on7GrqBMvms8wjhodvWl/YhaEKAG//1MvMHXUO5Cn4m/ACXBMJBwQaFpAAAAAElFTkSuQmCC)
  2130. no-repeat center;
  2131. background-size: contain;
  2132. position: absolute;
  2133. left: 0;
  2134. top: 14px;
  2135. }
  2136. }
  2137. }
  2138. .options {
  2139. padding-top: 8px;
  2140. .oc {
  2141. &:last-child {
  2142. border-top: 1px solid #ededed;
  2143. margin-top: 8px;
  2144. padding-top: 9px;
  2145. }
  2146. }
  2147. .protocol {
  2148. padding-left: 20px;
  2149. font-size: 10px;
  2150. line-height: 14px;
  2151. }
  2152. .option {
  2153. width: 100%;
  2154. line-height: 26px;
  2155. font-size: 15px;
  2156. display: flex;
  2157. align-items: center;
  2158. position: relative;
  2159. .o_bd {
  2160. flex: 1;
  2161. .c {
  2162. font-size: 12px;
  2163. }
  2164. }
  2165. .o_ft {
  2166. font-size: 12px;
  2167. color: #fa101d;
  2168. del {
  2169. color: #aaaaaa;
  2170. font-size: 11px;
  2171. }
  2172. }
  2173. .check_default {
  2174. margin-right: 8px;
  2175. display: block;
  2176. width: 14px;
  2177. height: 14px;
  2178. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABK0lEQVQ4T6WSP0vDQBjGn3MIiYX+CbhYG7BR7CL5ANmS2SWQ7H4DZ3ed/QbuOcjinGz5ANGloqmQ2i5CmhZqQgZPLjRQFYS2N9297/t73+fuHoK15bruASHkijF2AeB0lXohhDwwxu4cx/moy0m9oZRaAO5VVW0qioJ2u12lsixDkiSI43gB4NK2bY/HK5BDoihSXdf3Wq0WZrMZPpfLCtxvNNDpdDCfzxGG4VdRFDaHyUreq2maTUmS8DYaoSzL9RtAEAQc9/vI8xy+7y8YYyeEUnqjquq1pml4Hg7/QHUHDp8NBoiiiMu+5RMfDcM45wXv4/GPSb8PR71eFQqC4ImDuWVZ4nQyQZqm/4KyLOOw24XnecVO4HZSd3kc7pbNv2NrA+xkuRrexOTfqpPUy7sW3D4AAAAASUVORK5CYII=)
  2179. no-repeat center;
  2180. background-size: contain;
  2181. &.check_active {
  2182. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAABaUlEQVQ4T2NkQAKHPD1F2TmYChgZGHwZGBlUwVL/GW7/Z2DY/PPHvwl227e/hilnhDFOBXoHMbKxzhd18eATtnNg4FJQBEt9e3Cf4e2hAwyv9+z49P/X70Sz9VvXgcTBGkGa2EREVqtU1jFxSUgy/F+1geHf6bNgjUymxgyMYQEM3148Z7jT3vTv15s3oSDNjCDncfKx39Fs7+Xj+vWX4U9YAgPDo8fIPmBgkJNlYFm1gOEbGzPD9criT98//VRhPB3o2yrq5V0lFx3H8MfCBVMTzAiQ5hN7GB4tXcTwctvmNsZTgd6XNDt6dbmOn2X4W1CBahMaj3lCB8M3S2OG6xXFlxlPBXl/N16+juNfURXD/6Wr8GpkjA5jYOprYzgbGfSDAo1wp55j+FtQTsCpnQzfLI0gTiU7cMiODuwJYD3Dv9PnoAnAiIExLBAzAVCU5GCawc7mYCn4z/APJZEzMjBt/v7jD0oiBwAFDdbhAm8qEQAAAABJRU5ErkJggg==)
  2183. no-repeat center;
  2184. background-size: contain;
  2185. }
  2186. }
  2187. }
  2188. }
  2189. .configuration {
  2190. padding-right: 5px;
  2191. padding-bottom: 9px;
  2192. .title {
  2193. background: rgba(246, 246, 246, 1);
  2194. height: 1px;
  2195. position: relative;
  2196. margin: 15px 0;
  2197. span {
  2198. position: absolute;
  2199. left: 12px;
  2200. top: -9px;
  2201. display: inline-block;
  2202. background-color: #fff;
  2203. font-size: 10px;
  2204. padding: 0 4px;
  2205. }
  2206. }
  2207. .content {
  2208. font-size: 12px;
  2209. padding-left: 16px;
  2210. line-height: 22px;
  2211. color: #acacac;
  2212. }
  2213. .options {
  2214. padding-top: 0;
  2215. padding-left: 16px;
  2216. .option {
  2217. font-size: 14px;
  2218. color: #6f6f6f;
  2219. }
  2220. }
  2221. }
  2222. .buy {
  2223. margin-top: 200px;
  2224. width: 450px;
  2225. bottom: 0;
  2226. left: 0;
  2227. right: 0;
  2228. height: 60px;
  2229. display: flex;
  2230. align-items: center;
  2231. padding: 0 20px;
  2232. border-top: 1px solid #ffe9e9e9;
  2233. color: #000000;
  2234. font-size: 12px;
  2235. background: #fff;
  2236. .price {
  2237. flex: 1;
  2238. font-size: 14px;
  2239. }
  2240. font-size: 14px;
  2241. span {
  2242. color: #fa101d;
  2243. }
  2244. .text {
  2245. font-size: 12px;
  2246. width: 60px;
  2247. display: inline-block;
  2248. color: #000;
  2249. }
  2250. del {
  2251. color: #b5b5b5;
  2252. &.text {
  2253. color: #b5b5b5;
  2254. }
  2255. }
  2256. a {
  2257. display: inline-block;
  2258. font-size: 18px;
  2259. color: #fff;
  2260. background: #f1111b;
  2261. border-radius: 4px;
  2262. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.19);
  2263. padding: 8px 28px;
  2264. }
  2265. }
  2266. .couponprice {
  2267. display: flex;
  2268. justify-content: space-between;
  2269. }
  2270. }
  2271. .use_price {
  2272. line-height: 52px;
  2273. display: flex;
  2274. align-items: center;
  2275. font-size: 14px;
  2276. font-weight: bold;
  2277. img {
  2278. padding-right: 8px;
  2279. }
  2280. span {
  2281. font-size: 16px;
  2282. }
  2283. }
  2284. .reductionWrap1 {
  2285. background-color: #ededed;
  2286. }
  2287. .reductionWrap {
  2288. width: 100%;
  2289. margin-bottom: 60px;
  2290. .lineWrap {
  2291. display: flex;
  2292. flex-direction: row;
  2293. justify-content: space-around;
  2294. height: 40px;
  2295. line-height: 40px;
  2296. margin-bottom: 10px;
  2297. .item {
  2298. width: 25%;
  2299. text-align: left;
  2300. .el-checkbox {
  2301. margin-right: 5px;
  2302. }
  2303. }
  2304. }
  2305. header {
  2306. height: 40px;
  2307. line-height: 40px;
  2308. color: #000;
  2309. font-size: 17px;
  2310. background: #fff;
  2311. box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.07);
  2312. text-align: center;
  2313. margin-bottom: 6px;
  2314. }
  2315. .noticeInfo {
  2316. position: relative;
  2317. margin-top: 7px;
  2318. // margin-bottom: 10px;
  2319. background: #fff;
  2320. padding: 10px 22px 10px 32px;
  2321. font-size: 12px;
  2322. line-height: 14px;
  2323. color: #fa101d;
  2324. .trumpet_icon {
  2325. width: 14px;
  2326. height: 12px;
  2327. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAyZJREFUSA21Vk1IVFEUPufOezNilJXQD2UQRERamWhBaUWOSS3U0SawdgZai2gR0aoQXPSDm3JRCbm0xZBjbkQZS0KDjKywDCIIkoKKEIkm35uZezr32X0jQ+bY2IU359xzzj3fPXe++4PwDy0W8JdKgjYCWOkzzWIM9X5NN42RbqCKoxOHl1nR2FVJ1MRgqGzxhCxg8VDp6TSRTpCKsQL+aitqjwPRKQ3mjCVygFPz2MGKQqvG/zxW56+c7ZsXkIJH1liB8hARdQPButmD59WR8mUCuqy6ynwd686OmpsN++XjLUiYrZ0g5E6SdJmAVri2FMWDnnIz3P8gxex07Rp/owS6jQij3h1lu7G5Oe5UOF1bcc5+MTRFlBiTEH/iflLe+htYKsh0oHwzBcpztd3bHWlHxPtEUMTFHFV2YdceOglStnLiZGV6xEIlwbBF+JQaqpa6Qw246OiUOKOkICnPus4MFYGik7m80Z6MXtCpfKHIGBN6kIm2x66tLBJM7q3amak0DbqEgD84eQNzwiUkE+Wmk1vGjwtmnydTID0eQ5EpLoDZTGvjr4b2absXzGdKlwC73FloZ6aSSTKocjC7kyu3Ku8D2xOAuOk/ANKEAwhivZKqYXt7jFdyAnl7LTrgDMTcv4sOyCddnlOVnKlU6dTYaPKS5hHg5IIO77nnnfTw0h1QPTTgjWv9MrGB97ki5zvh/JmuJzOFgv4cPm9rGO6TUVD6SGezhV2sdF7OEcEB49qRqbRi0MKVLEEBHXxu8i6YabzMpx1NGJ18OIjr2pG5pHqu7r13efY1ncsK+rfxvtzPW2LY29U3Krxd/Xe4c55PiKgO+meJsNeHVIIdPd/dHHFoUToitSnpsDQrHGn1FpbmoMcoEIJPA/0BNvFEJlVgOi0rPPAWwwPfdKy6nphE1c71tL3snrK796EOSpVUX7Xano628cBgqk/157oP1Y1PcTkChDEwzRJfqNfhyrz7EO/2fPaFI8dAiGqe3sc/gc5pI3wtPFCrwVTcvBXOTuY8on7GrqBMvms8wjhodvWl/YhaEKAG//1MvMHXUO5Cn4m/ACXBMJBwQaFpAAAAAElFTkSuQmCC)
  2328. no-repeat center;
  2329. background-size: contain;
  2330. position: absolute;
  2331. left: 10px;
  2332. top: 12px;
  2333. }
  2334. }
  2335. .protocolbtn {
  2336. margin: 35px 0;
  2337. background: #14928a;
  2338. color: #fff;
  2339. font-size: 18px;
  2340. border-radius: 50px;
  2341. text-align: center;
  2342. width: 100%;
  2343. }
  2344. .section {
  2345. padding: 16px 22px 10px;
  2346. background: #fff;
  2347. margin-bottom: 10px;
  2348. .line_bottom {
  2349. border-bottom: 1px solid #ededed;
  2350. }
  2351. > .title {
  2352. font-size: 20px;
  2353. line-height: 28px;
  2354. font-weight: bold;
  2355. padding-bottom: 5px;
  2356. &::before {
  2357. content: " ";
  2358. width: 4px;
  2359. height: 15px;
  2360. background: #14928a;
  2361. display: inline-block;
  2362. margin-right: 7px;
  2363. border-radius: 8px;
  2364. }
  2365. }
  2366. .indate {
  2367. font-size: 14px;
  2368. padding: 6px 0;
  2369. display: flex;
  2370. // justify-content: space-between;
  2371. justify-content: flex-end;
  2372. span {
  2373. color: #fa101d;
  2374. }
  2375. }
  2376. .coutInfo {
  2377. font-size: 12px;
  2378. color: #f85043;
  2379. text-align: left;
  2380. border-top: 1px solid #ededed;
  2381. padding: 12px 0 0 15px;
  2382. margin-top: 10px;
  2383. position: relative;
  2384. .trumpet_icon {
  2385. width: 14px;
  2386. height: 12px;
  2387. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAAAXNSR0IArs4c6QAAAyZJREFUSA21Vk1IVFEUPufOezNilJXQD2UQRERamWhBaUWOSS3U0SawdgZai2gR0aoQXPSDm3JRCbm0xZBjbkQZS0KDjKywDCIIkoKKEIkm35uZezr32X0jQ+bY2IU359xzzj3fPXe++4PwDy0W8JdKgjYCWOkzzWIM9X5NN42RbqCKoxOHl1nR2FVJ1MRgqGzxhCxg8VDp6TSRTpCKsQL+aitqjwPRKQ3mjCVygFPz2MGKQqvG/zxW56+c7ZsXkIJH1liB8hARdQPButmD59WR8mUCuqy6ynwd686OmpsN++XjLUiYrZ0g5E6SdJmAVri2FMWDnnIz3P8gxex07Rp/owS6jQij3h1lu7G5Oe5UOF1bcc5+MTRFlBiTEH/iflLe+htYKsh0oHwzBcpztd3bHWlHxPtEUMTFHFV2YdceOglStnLiZGV6xEIlwbBF+JQaqpa6Qw246OiUOKOkICnPus4MFYGik7m80Z6MXtCpfKHIGBN6kIm2x66tLBJM7q3amak0DbqEgD84eQNzwiUkE+Wmk1vGjwtmnydTID0eQ5EpLoDZTGvjr4b2absXzGdKlwC73FloZ6aSSTKocjC7kyu3Ku8D2xOAuOk/ANKEAwhivZKqYXt7jFdyAnl7LTrgDMTcv4sOyCddnlOVnKlU6dTYaPKS5hHg5IIO77nnnfTw0h1QPTTgjWv9MrGB97ki5zvh/JmuJzOFgv4cPm9rGO6TUVD6SGezhV2sdF7OEcEB49qRqbRi0MKVLEEBHXxu8i6YabzMpx1NGJ18OIjr2pG5pHqu7r13efY1ncsK+rfxvtzPW2LY29U3Krxd/Xe4c55PiKgO+meJsNeHVIIdPd/dHHFoUToitSnpsDQrHGn1FpbmoMcoEIJPA/0BNvFEJlVgOi0rPPAWwwPfdKy6nphE1c71tL3snrK796EOSpVUX7Xano628cBgqk/157oP1Y1PcTkChDEwzRJfqNfhyrz7EO/2fPaFI8dAiGqe3sc/gc5pI3wtPFCrwVTcvBXOTuY8on7GrqBMvms8wjhodvWl/YhaEKAG//1MvMHXUO5Cn4m/ACXBMJBwQaFpAAAAAElFTkSuQmCC)
  2388. no-repeat center;
  2389. background-size: contain;
  2390. position: absolute;
  2391. left: 0;
  2392. top: 12px;
  2393. }
  2394. }
  2395. }
  2396. .options {
  2397. padding-top: 8px;
  2398. .oc {
  2399. &:last-child {
  2400. border-top: 1px solid #ededed;
  2401. margin-top: 8px;
  2402. padding-top: 9px;
  2403. }
  2404. }
  2405. .protocol {
  2406. padding-left: 20px;
  2407. font-size: 10px;
  2408. line-height: 14px;
  2409. }
  2410. &.classInfo {
  2411. .option .o_ft {
  2412. color: #444444;
  2413. }
  2414. }
  2415. &.lines {
  2416. margin-top: 5px;
  2417. border-top: 1px solid #ededed;
  2418. }
  2419. &.sale {
  2420. .option {
  2421. .o_bd,
  2422. .o_ft {
  2423. font-size: 16px;
  2424. color: #f85043;
  2425. font-weight: bold;
  2426. }
  2427. }
  2428. }
  2429. .option {
  2430. line-height: 26px;
  2431. font-size: 15px;
  2432. display: flex;
  2433. align-items: center;
  2434. position: relative;
  2435. .o_bd {
  2436. flex: 1;
  2437. .c {
  2438. font-size: 12px;
  2439. }
  2440. }
  2441. .o_ft {
  2442. font-size: 14px;
  2443. color: #fa101d;
  2444. del {
  2445. color: #aaaaaa;
  2446. font-size: 12px;
  2447. }
  2448. }
  2449. .check_default {
  2450. position: relative;
  2451. margin-right: 8px;
  2452. display: block;
  2453. width: 14px;
  2454. height: 14px;
  2455. border-radius: 50%;
  2456. border: 1px solid #d0cfcf;
  2457. &::before {
  2458. position: absolute;
  2459. top: 1px;
  2460. left: 1px;
  2461. content: " ";
  2462. display: inline-block;
  2463. width: 10px;
  2464. height: 10px;
  2465. background: #d0cfcf;
  2466. border-radius: 50%;
  2467. }
  2468. &.check_active {
  2469. border: 1px solid #f1111b;
  2470. &::before {
  2471. background: #f1111b;
  2472. border-radius: 50%;
  2473. }
  2474. }
  2475. }
  2476. }
  2477. }
  2478. .configuration {
  2479. padding-right: 5px;
  2480. padding-bottom: 9px;
  2481. .title {
  2482. background: rgba(246, 246, 246, 1);
  2483. height: 1px;
  2484. position: relative;
  2485. margin: 15px 0;
  2486. span {
  2487. position: absolute;
  2488. left: 12px;
  2489. top: -9px;
  2490. display: inline-block;
  2491. background-color: #fff;
  2492. font-size: 12px;
  2493. padding: 0 4px;
  2494. }
  2495. }
  2496. .content {
  2497. font-size: 12px;
  2498. padding-left: 16px;
  2499. line-height: 22px;
  2500. color: #acacac;
  2501. .o_ft {
  2502. color: #aaaaaa;
  2503. font-size: 12px;
  2504. }
  2505. }
  2506. .options {
  2507. padding-top: 0;
  2508. padding-left: 16px;
  2509. .option {
  2510. font-size: 14px;
  2511. color: #6f6f6f;
  2512. }
  2513. }
  2514. }
  2515. .needprice {
  2516. display: flex;
  2517. justify-content: space-between;
  2518. del {
  2519. font-size: 14px;
  2520. color: #aaa;
  2521. font-weight: bold;
  2522. }
  2523. span {
  2524. font-size: 18px;
  2525. color: #f85043;
  2526. font-weight: bold;
  2527. }
  2528. }
  2529. .buy {
  2530. position: absolute;
  2531. margin: 0 auto;
  2532. bottom: 0;
  2533. left: 0;
  2534. right: 0;
  2535. height: 60px;
  2536. width: 440px;
  2537. display: flex;
  2538. flex-direction: row;
  2539. align-items: center;
  2540. padding: 0 20px;
  2541. border-top: 1px solid #ffe9e9e9;
  2542. color: #000000;
  2543. font-size: 12px;
  2544. background: #fff;
  2545. .price {
  2546. flex: 1;
  2547. font-size: 16px;
  2548. }
  2549. font-size: 16px;
  2550. span {
  2551. color: #fa101d;
  2552. }
  2553. .text {
  2554. font-size: 12px;
  2555. width: 60px;
  2556. display: inline-block;
  2557. color: #000;
  2558. }
  2559. del {
  2560. color: #b5b5b5;
  2561. &.text {
  2562. color: #b5b5b5;
  2563. }
  2564. }
  2565. .btn-submit {
  2566. display: inline-block;
  2567. font-size: 18px;
  2568. color: #fff;
  2569. background: #f85043;
  2570. border-radius: 10px;
  2571. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.19);
  2572. padding: 8px 46px;
  2573. }
  2574. }
  2575. .iframe {
  2576. width: 100%;
  2577. height: 100%;
  2578. -webkit-overflow-scrolling: touch;
  2579. overflow-y: scroll;
  2580. border-top: none !important;
  2581. min-height: calc(100vh - 41px);
  2582. }
  2583. }
  2584. </style>