teamSoundMoney.vue 86 KB

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