details.vue 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321
  1. <template>
  2. <div class="m-details">
  3. <!--审核轨迹 -->
  4. <div class="infor-card">
  5. <div class="cont">
  6. <div class="tit">审核轨迹</div>
  7. <div class="classfity">
  8. <reviewRecord :hideTitle="true" ref="othersReviewRecord" style="width: 710px"></reviewRecord>
  9. </div>
  10. </div>
  11. <Divider />
  12. </div>
  13. <!-- 订单信息 -->
  14. <div class="infor-card">
  15. <div class="cont">
  16. <div class="tit">订单信息</div>
  17. <div class="classfity">
  18. <span>
  19. <p>订单编号:</p> {{ orDetails ? orDetails.order_code : '--' }}
  20. </span>
  21. <span v-if="orDetails.product_type == '大会员-AI中标预测包' || orDetails.product_type == '大会员-招标文件解读'">
  22. <p>产品类型:</p>大会员-补充包
  23. </span>
  24. <span v-else>
  25. <p>产品类型:</p>{{ orDetails ? prosType(orDetails.product_type) : '--' }}
  26. </span>
  27. <span v-if="orderType == 14 && orDetails.product_type == '广告'">
  28. <p>广告来源:</p>{{ book ? book.adSource : '--' }}
  29. </span>
  30. <span v-if="(orDetails.product_type == '大会员' || orDetails.product_type == '大会员-子账号') && book.areaCount == 1">
  31. <p>规格:</p>单省版
  32. </span>
  33. <!-- <span>
  34. <p>销售人员:</p>
  35. <i class="i-inpt">{{orDetails.salesperson?orDetails.salesperson:'--'}}</i>
  36. </span> -->
  37. <span v-show="saleTableData.length > 0">
  38. <p>业绩归属:</p><span>(以下为最新业绩归属情况)</span>
  39. </span>
  40. <span v-show="saleTableData.length > 0">
  41. <Table border :columns="saleTable" :data="saleTableData">
  42. <template slot-scope="{ row }" slot="name">
  43. <strong>{{ row.name }}</strong>
  44. </template>
  45. <template slot-scope="{ row }" slot="saler_dept">
  46. <strong>{{ row.saler_dept }}</strong>
  47. </template>
  48. <template slot-scope="{ row, index }" slot="money">
  49. <span>{{ saleTableData[index].money }}</span>
  50. </template>
  51. </Table>
  52. </span>
  53. <!-- <span><p>业绩归属部门:</p>{{orDetails?orDetails.saleDepShow?orDetails.saleDepShow:'--':'--'}}</span> -->
  54. <span>
  55. <!-- {{orDetails?orDetails.sale_time?orDetails.sale_time:'--':'--'}} -->
  56. <p>业绩统计时间:</p>
  57. <i class="i-inpt">{{ saleDataRes.saleFinal?.time? saleDataRes.saleFinal.time : '--' }}</i>
  58. </span>
  59. <!-- <span ><p>合同性质:</p>{{orDetails.contract_nature | natureContract}}</span> -->
  60. <span>
  61. <p>付费类型:</p>{{ orDetails.vip_type | vip_typeF }}
  62. </span>
  63. <span v-if="orDetails.buy_subject">
  64. <p>购买主体:</p>{{ orDetails.buy_subject == 1 ? '个人' : '企业' }}
  65. </span>
  66. <span>
  67. <p>公司名称:</p>{{ orDetails ? orDetails.company_name ? orDetails.company_name : '--' : '--' }}
  68. </span>
  69. <span>
  70. <p>签约主体:</p>{{ orDetails ? orDetails.return_commpany ? orDetails.return_commpany : '--' : '--' }}<span
  71. style="color: red;" v-if="orDetails.isUpEnt">(红冲过)</span>
  72. </span>
  73. <span>
  74. <p>约定支付方式:</p>
  75. {{ orDetails ? (orDetails.orderStatus != 0 && book.source != 'qmx') || book.source == 'qmx' ? orDetails.payType ? orDetails.payType : '--' : '--' : '--' }}
  76. </span>
  77. <span>
  78. <p>销售渠道:</p>{{ orDetails ? orDetails.sales_channel ? orDetails.sales_channel : '--' : '--' }}
  79. </span>
  80. <span>
  81. <p>下单渠道:</p>{{ orDetails ? orDetails.order_channel_new ? orDetails.order_channel_new : '--' : '--' }}
  82. </span>
  83. <span>
  84. <p>创建时间:</p>{{ orDetails ? orDetails.create_time : '--' }}
  85. </span>
  86. <span v-if="orDetails.order_channel == 'd03'"><!-- 微信小商店 -->
  87. <p>录入时间:</p>--
  88. </span>
  89. <!-- <span v-else><p>录入时间:</p>{{orDetails?orDetails.entry_time?orDetails.entry_time:'--':'--'}}</span> -->
  90. <span>
  91. <p>支付审核状态:</p><i :class="orDetails.course_status | courseColr">{{ orDetails.course_status |
  92. coursed }}</i>
  93. </span>
  94. <span>
  95. <p>订单审核状态:</p><i :class="orDetails.audit_status | auditColr">{{ orDetails.audit_status |
  96. orderCoursed }}</i>
  97. </span>
  98. <span>
  99. <p>订单状态:</p>{{ orDetails.orderStatus | orderStatus }}
  100. </span>
  101. <span v-if="book.zeroOrderType">
  102. <p>0元订单类型:</p>{{ book.zeroOrderType || '--' }}
  103. </span>
  104. <span>
  105. <p>创建人:</p>{{ orDetails.create_person || '--' }}
  106. </span>
  107. <span>
  108. <p>最近一次更新人:</p>{{ orDetails.last_update_person || '--' }}
  109. </span>
  110. <span>
  111. <p>最近一次更新时间:</p>{{ orDetails.last_update_time || '--' }}
  112. </span>
  113. </div>
  114. </div>
  115. <Divider />
  116. </div>
  117. <!-- 中标必听课 -->
  118. <div class="infor-card" v-if="orderType == 0">
  119. <div class="cont">
  120. <div class="tit">产品信息</div>
  121. <div class="classfity">
  122. <span>
  123. <p>课程名称:</p><i>{{ strCourse.s_name ? strCourse.s_name : '--' }}</i>
  124. </span>
  125. <span>
  126. <p>发票开取方:</p><i>{{ book.i_drawer ? book.i_drawer : '--' }}</i>
  127. </span>
  128. <span>
  129. <p>课程时长:</p>{{ strCourse.s_courseDate ? strCourse.s_courseDate : '--' }}
  130. </span>
  131. <span>
  132. <p>有效日期:</p>{{ strCourse.l_endtime ? l_endtime + '到期' : '--' }}
  133. </span>
  134. <span>
  135. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  136. </span>
  137. </div>
  138. </div>
  139. <Divider />
  140. </div>
  141. <!-- 数据报告 -->
  142. <div class="infor-card" v-if="orderType == 2">
  143. <div class="cont">
  144. <div class="tit">产品信息</div>
  145. <div class="classfity">
  146. <span>
  147. <p>报告名称:</p><i v-if="orDetails">{{ orDetails.reportName }}</i>
  148. </span>
  149. <span>
  150. <p>邮箱地址:</p><i v-if="orDetails">{{ orDetails.user_mail }}</i>
  151. </span>
  152. <span>
  153. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  154. </span>
  155. </div>
  156. </div>
  157. <Divider />
  158. </div>
  159. <!-- 历史数据 -->
  160. <div class="infor-card" v-if="orderType == 3">
  161. <div class="cont">
  162. <div class="tit">产品信息</div>
  163. <div class="classfity">
  164. <span>
  165. <p>筛选日期:</p><i v-if="book">{{ orderObjectd(book.startime) ? book.startime + ' -
  166. ':' - '}}{{ orderObjectd(book.endtime) ? book.endtime : '-' }}</i>
  167. </span>
  168. <span>
  169. <p>区域:</p><i>{{ orderObjectd(book.area) ? String(book.area) : '全国' }}</i>
  170. </span>
  171. <span>
  172. <p>行业:</p><i>{{ orderObjectd(book.industry) ? String(book.industry).replace(/,/g, ',') : '全部' }}</i>
  173. </span>
  174. <span v-if="orderObjectd(book.keywords)">
  175. <div class="par-word">
  176. <div class="words" v-for="(item, index) in book.keywords" :key="item.keyword + index">
  177. <p><em>关键词:</em>{{ orderObjectd(item.keyword) ? item.keyword : '--' }}</p>
  178. <p><em>附加词:</em>{{ orderObjectd(item.appended) ? String(item.appended) : '--' }}</p>
  179. <p><em>排除词:</em>{{ orderObjectd(item.exclude) ? String(item.exclude) : '--' }}</p>
  180. </div>
  181. </div>
  182. </span>
  183. <span v-else>
  184. <p>关键词:</p><i>--</i>
  185. </span>
  186. <span>
  187. <p>关键词匹配方式:</p><i
  188. v-if="book">{{ orderObjectd(book.selectType) ? book.selectType == 'title' ? '按标题匹配' : book.selectType == 'all' ? '按全文匹配' : '--' : '--' }}</i>
  189. </span>
  190. <span>
  191. <p>金额:</p>
  192. <i v-if="book.minprice && book.maxprice">{{ book.minprice || '' }}万元 - {{ book.maxprice ||
  193. '' }}万元</i>
  194. <i v-else>全部</i>
  195. </span>
  196. <span>
  197. <p>信息类型:</p><i v-if="book">{{ orderObjectd(book.subtype) ? book.subtype : '全部' }}</i>
  198. </span>
  199. <span>
  200. <p>采购单位:</p><i v-if="book">{{ orderObjectd(book.buyer) ? String(book.buyer) : '--' }}</i>
  201. </span>
  202. <span>
  203. <p>采购单位类型:</p><i v-if="book">{{ orderObjectd(book.buyerclass) ? String(book.buyerclass) : '--' }}</i>
  204. </span>
  205. <span>
  206. <p>中标单位:</p><i v-if="book">{{ orderObjectd(book.winner) ? String(book.winner) : '--' }}</i>
  207. </span>
  208. <span>
  209. <p>数据规格:</p><i v-if="orDetails">{{ orDetails.data_spec || '--' }}</i>
  210. </span>
  211. <span>
  212. <p>数据数量:</p><i v-if="orDetails">{{ orDetails.data_count }}条</i>
  213. </span>
  214. <span>
  215. <p>邮箱地址:</p><i v-if="orDetails">{{ orDetails.user_mail || '--' }}</i>
  216. </span>
  217. <span>
  218. <p>开通权益手机号:</p><i v-if="orDetails">{{ orDetails.user_phone || '--' }}</i>
  219. </span>
  220. <span>
  221. <p>下载链接:</p>
  222. <i v-if="orDetails">
  223. <a :href="orDetails ? orDetails.download_url : ''" v-if="orDetails.download_url">点击下载</a>
  224. <i v-else>--</i>
  225. </i>
  226. <i v-else>--</i>
  227. </span>
  228. </div>
  229. </div>
  230. <Divider />
  231. </div>
  232. <!-- 超级订阅(VIP订阅) -->
  233. <div class="infor-card" v-if="orderType == 8 || orderType == 16">
  234. <div class="cont">
  235. <div class="tit">产品信息</div>
  236. <div class="classfity">
  237. <span>
  238. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  239. </span>
  240. <span>
  241. <p>购买数量:</p><i>{{ orDetails.buy_count || '1' }}人</i>
  242. </span>
  243. <span v-if="orderType == 8">
  244. <p>购买省份:</p>{{ buyProvince ? buyProvince : '--' }}
  245. </span>
  246. <span v-if="orderType == 16">
  247. <p>购买区域:</p><i v-if="book">{{ orderObjectd(book.area) ? String(Object.keys(book.area)) : '全国' }}</i>
  248. </span>
  249. <!-- <span>
  250. <p>开始日期:</p>
  251. <i class="i-inpt">{{orDetails?vip_starttime:'--'}}</i>
  252. </span> -->
  253. <span>
  254. <p>计费模式:</p>{{ orDetails ? orDetails.billingMode == 0 ? '免费' : '收费' : '--' }}
  255. </span>
  256. <span v-if="orderType == 8">
  257. <p>订购区域:</p><i style="max-width:70%;width:auto;"
  258. v-if="book">{{ book ? book.subscription_area ? book.subscription_area : '--' : '--' }}</i> <span
  259. style="color:#f00;"
  260. v-if="orDetails.vip_type == '2'">(此次增购{{ book.subscription_area_count }}个省)</span>
  261. </span>
  262. <span v-if="orderType == 16">
  263. <p>订购区域:</p><span style="color:#f00;" v-if="orDetails.vip_type == '2'">此次增购{{ book.num -
  264. book.OldNum }}个省</span>
  265. </span>
  266. <span v-if="orderType == 8">
  267. <p>订购行业:</p><i v-if="book">{{ book ? book.industry_str ? book.industry_str : '--' : '--' }}</i>
  268. </span>
  269. <span v-if="orderType == 8">
  270. <p>订阅周期:</p><i v-if="book">
  271. {{ book ? book.cyclecount ? book.cycleunit == 1 ? book.cyclecount + '年' : book.cycleunit == 2 ? book.cyclecount + '个月' : book.cycleunit == 3 ? book.cyclecount + '天' : book.cycleunit == 4 ? book.cyclecount + '个季度' : '--' : '--' : '--' }}
  272. {{ book ? book.cyclecount ? book.give_cycle ? ' + ' : '' : '' : '' }}
  273. <em
  274. class="zeng">{{ book ? book.give_cycle ? book.give_cycle ? '活动赠送' + timeChange(book.give_cycle, book.give_type) : '' : '' : '' }}</em>
  275. <em
  276. class="zeng">{{ book ? book.seller_give_cycle ? book.seller_give_cycle ? '+销售赠送' + timeChange(book.seller_give_cycle, book.seller_give_type) : '' : '' : '' }}</em>
  277. </i>
  278. </span>
  279. <span v-if="orderType == 8">
  280. <p>有效日期:</p><i v-if="book">
  281. {{ book ? book.effective_date ? book.effective_date + '到期' : '--' : '--' }}
  282. </i>
  283. </span>
  284. <span v-if="orderType == 16">
  285. <p>订阅周期:</p><i v-if="book">
  286. {{ book ? unitNum(book.cycleunit) : '--' }}
  287. </i>
  288. </span>
  289. <span v-if="orderType == 16">
  290. <p>有效日期:</p>
  291. <i v-if="book">
  292. {{ orDetails ? vip_starttime : '' }}{{ orDetails ? vip_endtime : '' }}
  293. </i>
  294. </span>
  295. </div>
  296. </div>
  297. <Divider />
  298. </div>
  299. <!-- 剑鱼文库会员 -->
  300. <div class="infor-card" v-if="orderType == 20">
  301. <div class="cont">
  302. <div class="tit">产品信息</div>
  303. <div class="classfity">
  304. <span>
  305. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  306. </span>
  307. <span>
  308. <p>购买周期:</p><i v-if="book">
  309. {{ book ? book.cyclecount ? book.cycleunit == 1 ? book.cyclecount + '年' : book.cycleunit == 2 ? book.cyclecount + '个月' : book.cycleunit == 3 ? book.cyclecount + '天' : book.cycleunit == 4 ? book.cyclecount + '个季度' : '--' : '--' : '--' }}
  310. </i>
  311. </span>
  312. <span>
  313. <p>有效日期:</p>
  314. <i v-if="book">
  315. {{ orDetails ? vip_starttime : '' }}{{ orDetails ? vip_endtime : '' }}
  316. </i>
  317. </span>
  318. </div>
  319. </div>
  320. <Divider />
  321. </div>
  322. <!-- 小程序相关 -->
  323. <div class="infor-card" v-if="orderType == 21">
  324. <div class="cont">
  325. <div class="tit">产品信息</div>
  326. <div class="classfity">
  327. <span>
  328. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  329. </span>
  330. <span>
  331. <p>购买数量:</p><i>{{ orDetails.buy_count || '1' }}人</i>
  332. </span>
  333. <span>
  334. <p>购买省份:</p>{{ buyProvince ? buyProvince : '--' }}
  335. </span>
  336. <span>
  337. <p>计费模式:</p>{{ orDetails ? orDetails.billingMode == 0 ? '免费' : '收费' : '--' }}
  338. </span>
  339. <span>
  340. <p>订购区域:</p><i
  341. style="max-width:70%;width:auto;">{{ orDetails ? orDetails.buyArea ? orDetails.buyArea : '--' : '--' }}</i>
  342. </span>
  343. <span>
  344. <p>订购行业:</p><i>{{ orDetails ? orDetails.buyIndustry ? orDetails.buyIndustry : '--' : '--' }}</i>
  345. </span>
  346. <span>
  347. <p>订阅周期:</p><i v-if="book">
  348. {{ book ? book.cycleCount ? book.cycleUnit == 1 ? book.cycleCount + '年' : book.cycleUnit == 2 ? book.cycleCount + '个月' : book.cycleUnit == 3 ? book.cycleCount + '天' : book.cycleUnit == 4 ? book.cycleCount + '个季度' : '--' : '--' : '--' }}
  349. {{ book ? book.cycleCount ? book.give_cycle ? ' + ' : '' : '' : '' }}
  350. <em
  351. class="zeng">{{ book ? book.give_cycle ? book.give_cycle ? '活动赠送' + timeChange(book.give_cycle, book.give_type) : '' : '' : '' }}</em>
  352. <em
  353. class="zeng">{{ book ? book.seller_give_cycle ? book.seller_give_cycle ? '+销售赠送' + timeChange(book.seller_give_cycle, book.seller_give_type) : '' : '' : '' }}</em>
  354. </i>
  355. </span>
  356. </div>
  357. </div>
  358. <Divider />
  359. </div>
  360. <!-- 企业商机管理 -->
  361. <div class="infor-card" v-if="orderType == 6">
  362. <div class="cont">
  363. <div class="tit">产品信息</div>
  364. <div class="classfity">
  365. <span v-if="book.source != 'qmx'">
  366. <p>企业信息:</p><i v-if="book">{{ book ? book.entname : '' }}</i>
  367. </span>
  368. <span v-if="book.source != 'qmx'">
  369. <p>行业:</p><i v-if="book">{{ book ? book.industry : '' }}</i>
  370. </span>
  371. <!-- <span v-if="book.source == 'qmx'"><p>购买人数:</p><i v-if="book">{{book?book.personnum:''}}人</i></span> -->
  372. <!-- <span v-else><p>团队人数:</p><i v-if="book">{{book?book.personnum:''}}人</i></span> -->
  373. <span v-if="book.source == 'qmx'">
  374. <p>服务起止时间:</p><i v-if="orDetails">{{ orDetails ? vip_starttime : '' }}{{ orDetails ? vip_endtime : '' }}</i>
  375. </span>
  376. <span v-else>
  377. <p>使用周期:</p><i v-if="book">{{ book ? book.cycle + '年' : '--' }}</i>
  378. </span>
  379. <span>
  380. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  381. </span>
  382. <span>
  383. <p>购买数量:</p><i>{{ orDetails.buy_count ? orDetails.buy_count + '人' : '--' }}</i>
  384. </span>
  385. </div>
  386. </div>
  387. <Divider />
  388. </div>
  389. <!-- 大会员、子账号、补充包 -->
  390. <div class="infor-card"
  391. v-if="orderType == 7 || orderType == 9 || orderType == 10 || orDetails.product_type == '大会员-AI中标预测包' || orDetails.product_type == '大会员-招标文件解读'">
  392. <div class="cont">
  393. <div class="tit">产品信息</div>
  394. <div class="classfity">
  395. <span v-if="orderType == 7">
  396. <p>开通权益手机号:</p>
  397. <i class="i-inpt">{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  398. </span>
  399. <span v-else>
  400. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  401. </span>
  402. <span>
  403. <p>购买数量:</p><i>{{ orDetails.buy_count ? orDetails.buy_count + '人' : '--' }}</i>
  404. </span>
  405. <span>
  406. <p>计费模式:</p><i v-if="orDetails">{{ orDetails ? orDetails.billingMode == 0 ? '免费' : '收费' : '--' }}</i>
  407. </span>
  408. <span>
  409. <p>会员套餐:</p><i v-if="book">{{ book ? orderType == 10 ? '自定义' : book.level : '--' }}</i>
  410. </span>
  411. <!-- <span v-if="orderType == 7">
  412. <p>开始时间:</p>
  413. <i class="i-inpt">{{orDetails?vip_starttime:'--'}}</i>
  414. </span> -->
  415. <!-- <span v-if="orderType == 7"><p>订阅周期:</p><i v-if="orDetails">{{orDetails?vip_starttime:''}}{{orDetails?vip_endtime:''}}</i></span>
  416. <span v-if="orderType !== 7"><p>有效日期:</p><i v-if="book">{{book?book.effective_date?book.effective_date:'--':'--'}}</i></span> -->
  417. <span v-if="orderType == 7 && book.cycle">
  418. <p>订阅周期:</p><i>{{ book.cycle }}{{ book.cycleType | cycleTypeF }}</i>
  419. </span>
  420. <span v-if="orderType !== 7">
  421. <p>有效日期:</p><i v-if="orDetails">{{ orDetails ? vip_starttime : '' }}{{ orDetails ? vip_endtime : '' }}</i>
  422. </span>
  423. <span v-if="orderType == 9">
  424. <p>关联订单:</p><i style="cursor:pointer" @click="contactOrderCode_click(book.contactOrderId)"
  425. v-if="book">{{ book.contactOrderCode }}</i>
  426. </span>
  427. <span v-if="showFiled">
  428. <p>付费子账号:</p><i
  429. v-if="book">{{ book.pay_sub_num || book.pay_sub_num == 0 ? book.pay_sub_num + '个' : '--' }}</i>
  430. </span>
  431. <span v-if="showFiled">
  432. <p>免费子账号:</p><i
  433. v-if="book">{{ book.free_sub_num || book.free_sub_num == 0 ? book.free_sub_num + '个' : '--' }}</i>
  434. </span>
  435. <span v-if="orderType == 7 && book.level == '自定义'">
  436. <p>服务列表:</p>
  437. <ul v-if="newSerName && oldSerName">
  438. <li>1.补充服务:{{ newSerName }}</li>
  439. <li>2.原已购服务:{{ oldSerName }}</li>
  440. </ul>
  441. <ul v-if="serverData.length !== 0 && !(newSerName && oldSerName)">
  442. <li v-for="(item, index) in serverData" :key="index">{{ item }}</li>
  443. </ul>
  444. </span>
  445. <span v-if="orderType == 10 && book.level == '自定义'">
  446. <p>服务列表:</p>
  447. <ul v-if="orDetails.product_type == '大会员-补充包'">
  448. <li v-for="(item, index) in supplysData" :key="index">{{ item.name + '(补充包)' }}</li>
  449. </ul>
  450. <ul v-else-if="orDetails.product_type == '大会员-招标文件解读'">
  451. <li>招标文件解读(补充包)</li>
  452. </ul>
  453. <ul v-else-if="orDetails.product_type == '大会员-AI中标预测包'">
  454. <li>中标企业预测(补充包)</li>
  455. </ul>
  456. <i v-else>--</i>
  457. </span>
  458. </div>
  459. </div>
  460. <Divider />
  461. </div>
  462. <!-- 招标文件解读 -->
  463. <div class="infor-card" v-if="orderType == 11">
  464. <div class="cont">
  465. <div class="tit">产品信息</div>
  466. <div class="classfity">
  467. <span>
  468. <p>购买次数:</p><i v-if="book">{{ book ? book.count + '次' : '' }}</i>
  469. </span>
  470. <span>
  471. <p>有效日期:</p><i v-if="orDetails">2021/11/15 到期</i>
  472. </span>
  473. <span>
  474. <p>开通权益手机号:</p>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}
  475. </span>
  476. </div>
  477. </div>
  478. <Divider />
  479. </div>
  480. <!-- 剑鱼币 -->
  481. <div class="infor-card" v-if="orderType == 12">
  482. <div class="cont">
  483. <div class="tit">产品信息</div>
  484. <div class="classfity">
  485. <span>
  486. <p>购买次数:</p><i v-if="book">{{ book ? numed(book.order_score) + '枚' : '--' }}</i>
  487. </span>
  488. <span>
  489. <p>有效日期:</p><i v-if="orDetails">{{ book.isPermanent ? '永久' : '--' }}</i>
  490. </span>
  491. <span>
  492. <p>开通权益手机号:</p>{{ book.phone ? book.phone : '--' }}
  493. </span>
  494. </div>
  495. </div>
  496. <Divider />
  497. </div>
  498. <!-- 结构化数据、广告 -->
  499. <div class="infor-card" v-if="orderType == 13 || orderType == 14">
  500. <div class="cont">
  501. <div class="tit">产品信息</div>
  502. <div class="classfity">
  503. <span>
  504. <p>购买产品:</p><i v-if="book">{{ book.product ? buyStatus(book.product) : '--' }}</i>
  505. </span>
  506. <span>
  507. <p>数据条数:</p><i v-if="orDetails">{{ orDetails.data_count ? orDetails.data_count + '条' : '--' }}</i>
  508. </span>
  509. <span>
  510. <p>字段类型:</p><i v-if="orDetails">{{ orDetails.data_spec ? orDetails.data_spec : '--' }}</i>
  511. </span>
  512. <span>
  513. <p>服务时间:</p><i v-if="orDetails">{{ orDetails ? vip_starttime : '' }}{{ orDetails ? vip_endtime : '' }}</i>
  514. </span>
  515. <span>
  516. <p>应付金额:</p><i v-if="orDetails">{{ orDetails ? localed(orDetails.pay_money / 100) : '--' }}</i>
  517. </span>
  518. </div>
  519. </div>
  520. <Divider />
  521. </div>
  522. <!-- 数据流量包 -->
  523. <div class="infor-card" v-if="orderType == 15">
  524. <div class="cont">
  525. <div class="tit">产品信息</div>
  526. <div class="classfity">
  527. <span>
  528. <p>开通权益手机号:</p><i>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  529. </span>
  530. <span>
  531. <p>充值条数:</p><i v-if="book">{{ book.pNum ? book.pNum + '条' : '--' }}</i>
  532. </span>
  533. <span>
  534. <p>使用有效期:</p><i v-if="book">{{ book.validYear ? book.validYear + '年' : '--' }}</i>
  535. </span>
  536. <span>
  537. <p>数据规格:</p><i v-if="book">{{ book.pType ? book.pType == 1 ? '标准字段包' : '高级字段包' : '--' }}</i>
  538. </span>
  539. </div>
  540. </div>
  541. <Divider />
  542. </div>
  543. <!-- 附件下载包 -->
  544. <div class="infor-card" v-if="orderType == 17">
  545. <div class="cont">
  546. <div class="tit">产品信息</div>
  547. <div class="classfity">
  548. <span>
  549. <p>开通权益手机号:</p><i>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  550. </span>
  551. <span>
  552. <p>附件个数:</p><i v-if="book">{{ book.num ? book.num + '个' : '--' }}</i>
  553. </span>
  554. <span>
  555. <p>有效期至:</p><i v-if="book">{{ book.validTime ? book.validTime : '--' }}</i>
  556. </span>
  557. </div>
  558. </div>
  559. <Divider />
  560. </div>
  561. <!-- 市场分析定制报告下载包”、“企业中标分析报告下载包”、“业主采购分析报告下载包” -->
  562. <div class="infor-card" v-if="orderType == '22'">
  563. <div class="cont">
  564. <div class="tit">产品信息</div>
  565. <div class="classfity">
  566. <span>
  567. <p>开通权益手机号:</p><i>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  568. </span>
  569. <span>
  570. <p>报告下载份数:</p><i v-if="book">{{ book.pNum ? book.pNum + '份' : '--' }}</i>
  571. </span>
  572. <span>
  573. <p>有效期至:</p><i v-if="book">{{ book.endTime ? book.endTime : '--' }}</i>
  574. </span>
  575. </div>
  576. </div>
  577. <Divider />
  578. </div>
  579. <!-- 采购单位画像包 -->
  580. <div class="infor-card" v-if="orderType == 18">
  581. <div class="cont">
  582. <div class="tit">产品信息</div>
  583. <div class="classfity">
  584. <span>
  585. <p>开通权益手机号:</p><i>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  586. </span>
  587. <span>
  588. <p>采购单位画像个数:</p><i v-if="book">{{ book.num ? book.num + '个' : '--' }}</i>
  589. </span>
  590. <span>
  591. <p>有效期至:</p><i v-if="book">{{ book.validTime ? book.validTime : '--' }}</i>
  592. </span>
  593. </div>
  594. </div>
  595. <Divider />
  596. </div>
  597. <!-- 数据文件 -->
  598. <div class="infor-card" v-if="orderType == 19">
  599. <div class="cont">
  600. <div class="tit">产品信息</div>
  601. <div class="classfity">
  602. <span>
  603. <p>开通权益手机号:</p><i>{{ orDetails.user_phone ? orDetails.user_phone : '--' }}</i>
  604. </span>
  605. <span>
  606. <p>备注:</p><i v-if="book">{{ book.remark ? book.remark : '--' }}</i>
  607. </span>
  608. </div>
  609. </div>
  610. <Divider />
  611. </div>
  612. <!-- 合同信息 -->
  613. <div class="infor-card" v-if="book.source == 'qmx'">
  614. <div class="cont">
  615. <div class="tit">合同信息</div>
  616. <div class="classfity">
  617. <!-- 原订单金额 -->
  618. <span>
  619. <p>标准售价:</p> {{ orDetails.order_money ? localed(orDetails.order_money) : '--' }}
  620. </span>
  621. <!-- 应付金额: -->
  622. <span>
  623. <p>合同金额:</p> {{ orDetails ? localed(orDetails.pay_money / 100) : '--' }}<span style="color: red;"
  624. v-if="orDetails.isUpCash">(红冲过)</span>
  625. </span>
  626. <span>
  627. <p>折扣率:</p> {{ orDetails.discountRate || '--' }}
  628. </span>
  629. <!-- <div v-if="orderType == 7||orderType == 9||orderType == 10">
  630. <span><p>大会员应付金额:</p> {{book.bigPayMoney?localed(book.bigPayMoney/100):'--'}}</span>
  631. <span><p>子账号应付金额:</p> {{book.subPayMoney?localed(book.subPayMoney/100):'--'}}</span>
  632. <span><p>补充包应付金额:</p> {{book.supplyPayMoney?localed(book.supplyPayMoney/100):'--'}}</span>
  633. </div> -->
  634. <span>
  635. <p>佣金金额:</p> {{ orDetails ? localed(orDetails.commission / 100) : '--' }}<span style="color: red;"
  636. v-if="orDetails.isUpCommission">(红冲过)</span>
  637. </span>
  638. <span>
  639. <p>手续费:</p> {{ orDetails ? localed(orDetails.procedures_money / 100) : '--' }}<span style="color: red;"
  640. v-if="orDetails.isUpProceduresMoney">(红冲过)</span>
  641. </span>
  642. <span>
  643. <p>应收金额:</p> {{ trueMoney || '--' }}
  644. </span>
  645. <!-- <span><p>客户名称:</p>{{contractData?contractData.customer_name?contractData.customer_name:'--':'--'}}</span> -->
  646. <span>
  647. <p>协议签订时间:</p>
  648. {{ contractData ? contractData.contract_status == 0 ? '--' : contractData.contract_time == '1970-01-01
  649. 08:00:00'?'--':contractData.contract_time:'--'}}
  650. </span>
  651. <span>
  652. <p>协议编号:</p>
  653. {{ contractData ? contractData.contract_status == 0 ? '--' : contractData.contract_code ? contractData.contract_code : '--' : '--' }}
  654. </span>
  655. <span>
  656. <p>协议状态:</p>
  657. {{ contractData ? contractData.contract_status == 1 ? '签协议' : contractData.contract_status == 0 ? '不签协议' : '--' : '--' }}
  658. </span>
  659. <template v-if="contractData && contractData.contract_status == 1">
  660. <span>
  661. <p>电子协议类型:</p>
  662. {{ contractData ? contractData.seal_type == 1 ? '有电子章' : contractData.seal_type == 2 ? '无电子章' : '--' : '--' }}
  663. </span>
  664. <span>
  665. <p>协议甲方类型:</p>
  666. {{ contractData ? contractData.partyA_type == 1 ? '个人' : contractData.partyA_type == 2 ? '企业' : '--' : '--' }}
  667. </span>
  668. <span>
  669. <p>协议甲方:</p>{{ contractData ? contractData.partyA_name ? contractData.partyA_name : '--' : '--' }}
  670. </span>
  671. <span>
  672. <p>协议甲方联系人:</p>
  673. {{ contractData ? contractData.partyA_person ? contractData.partyA_person : '--' : '--' }}
  674. </span>
  675. <span>
  676. <p>协议甲方联系方式:</p>{{ contractData ? contractData.partyA_tel ? contractData.partyA_tel : '--' : '--' }}
  677. </span>
  678. <span>
  679. <p>协议甲方联系地址:</p>
  680. {{ contractData ? contractData.partyA_address ? contractData.partyA_address : '--' : '--' }}
  681. </span>
  682. <span>
  683. <p>协议乙方联系人:</p>
  684. {{ contractData ? contractData.partyB_person ? contractData.partyB_person : '--' : '--' }}
  685. </span>
  686. <span>
  687. <p>协议备注:</p>{{ contractData ? contractData.remark ? contractData.remark : '--' : '--' }}
  688. </span>
  689. <span>
  690. <p>协议归档状态:</p> {{ contractData.contract_archive_status | contract_archive_status }}
  691. </span>
  692. <span>
  693. <p>归档时间:</p> {{ contractData.contract_archive_time || '--' }}
  694. </span>
  695. <span>
  696. <p>归档份数:</p> {{ contractData.contract_archive_num || '--' }}
  697. </span>
  698. <span
  699. v-if="(book.source == 'qmx' || !returnMyReceivable) && contractDis && (orDetails.order_status !== -2 && orDetails.order_status !== '已取消')">
  700. <p>归档协议:</p>
  701. <a @click="downContract" v-if="contractData.contract_file_name">{{
  702. contractData.contract_file_name || '--' }}</a>
  703. <span v-else>--</span>
  704. </span>
  705. </template>
  706. <template v-else>
  707. <span>
  708. <p>电子协议类型:</p>--
  709. </span>
  710. <span>
  711. <p>协议甲方类型:</p>--
  712. </span>
  713. <span>
  714. <p>协议甲方:</p>--
  715. </span>
  716. <span>
  717. <p>协议甲方联系人:</p>--
  718. </span>
  719. <span>
  720. <p>协议甲方联系方式:</p>--
  721. </span>
  722. <span>
  723. <p>协议甲方联系地址:</p>--
  724. </span>
  725. <span>
  726. <p>协议乙方联系人:</p>--
  727. </span>
  728. <span>
  729. <p>协议备注:</p>--
  730. </span>
  731. <span>
  732. <p>协议归档状态:</p>--
  733. </span>
  734. <span>
  735. <p>归档时间:</p>--
  736. </span>
  737. <span>
  738. <p>归档份数:</p>--
  739. </span>
  740. <span>
  741. <p>归档协议:</p>
  742. <span>--</span>
  743. </span>
  744. </template>
  745. </div>
  746. </div>
  747. <Divider />
  748. </div>
  749. <!-- 订单备注 -->
  750. <div class="infor-card" v-if="book.source == 'qmx'">
  751. <div class="cont">
  752. <div class="tit">订单备注</div>
  753. <div class="classfity">
  754. <span>
  755. <div class="shou" v-if="book.remark">{{ book.remark }}</div>
  756. <i v-else style="color:#888">暂无订单备注</i>
  757. </span>
  758. </div>
  759. </div>
  760. <Divider />
  761. </div>
  762. <!-- 支付信息 -->
  763. <div class="infor-card" v-if="book.source !== 'qmx'">
  764. <div class="cont">
  765. <div class="tit">支付信息</div>
  766. <div class="classfity">
  767. <span>
  768. <p>支付单号:</p><i v-if="orders">{{ orders.transaction_id ? orders.transaction_id : '--' }}</i>
  769. </span>
  770. <span>
  771. <p>支付时间:</p><i v-if="orDetails">{{ orDetails.pay_time ? orDetails.pay_time : '--' }}</i>
  772. </span>
  773. <span>
  774. <p>支付方式:</p><i v-if="orDetails">{{ orDetails.pay_way ? orDetails.pay_way : '--' }}</i>
  775. </span>
  776. <span v-if="orderType == 0 || orderType == 7 || orderType == 9 || orderType == 10">
  777. <p>订单金额:</p>
  778. <i v-if="orDetails">{{ orDetails.order_money ? localed(orDetails.order_money) : localed(0.00) }}</i>
  779. </span>
  780. <span v-if="orderType == 1">
  781. <p>实付数量:</p>
  782. <i v-if="orDetails">{{ orDetails.original_price ? orDetails.original_price : '--' }}</i>
  783. </span><!-- 线下课程 -->
  784. <span>
  785. <p>实付金额:</p>
  786. <i v-if="orDetails">
  787. <em class="yuan"
  788. v-if="book">{{ book.original_price ? book.original_price ? '原价:' + localed(book.original_price / 100) : '' : '' }}</em>
  789. {{ getRealmoney(orDetails,book) ? localed(getRealmoney(orDetails,book)) : localed(0.00) }}
  790. </i>
  791. </span><!-- VIP订阅 -->
  792. <span v-if="orderType == 1">
  793. <p>支付状态:</p>
  794. <i :class="orDetails.order_status | orderColr" v-if="orDetails">{{ orDetails.order_status |
  795. orderPay }}</i>
  796. </span>
  797. <span v-else>
  798. <p>支付状态:</p>
  799. <i :class="orDetails.order_status | orderWord" v-if="orDetails">{{ orDetails.order_status }}</i>
  800. </span>
  801. <span>
  802. <p>支付凭证:</p>
  803. <i v-if="book">
  804. <a href="javascript:;" @click="vouched(book.transferV)"
  805. v-if="book.transferV">{{ book.transferV ? "点击查看" : '--' }}</a>
  806. <i v-else>--</i>
  807. </i>
  808. <i v-else>--</i>
  809. </span>
  810. </div>
  811. </div>
  812. <Divider />
  813. </div>
  814. <!-- 线下课程 -->
  815. <div class="infor-card" v-if="orderType == 1">
  816. <div class="cont">
  817. <div class="tit">优惠信息</div>
  818. <div class="classfity">
  819. <span>
  820. <p>每单立减:</p><i
  821. v-if="strCourse">{{ strCourse.s_discountPlan ? strCourse.s_discountPlan[0].price : 0 }}</i>
  822. </span>
  823. <span>
  824. <p>多人立减:</p><i v-if="strCourse">{{ strCourse.discountMoney ? strCourse.discountMoney : 0 }}</i>
  825. </span>
  826. </div>
  827. </div>
  828. <Divider />
  829. </div>
  830. <!-- 退款信息 -->
  831. <div class="infor-card">
  832. <div class="cont">
  833. <div class="tit">退款信息</div>
  834. <div class="classfity">
  835. <span>
  836. <p>退款状态:</p><i>{{ orDetails ? refundStatus(orDetails.refund_status) : '--' }}</i>
  837. </span>
  838. <span>
  839. <p>退款时间:</p><i>{{ refundDis ? refundRes.refund_time : '--' }}</i>
  840. </span>
  841. <span>
  842. <p>退款金额:</p><i>{{ refundDis ? localed(refundRes.refund_money / 100) : '--' }}</i>
  843. </span>
  844. <span>
  845. <p>退款原因:</p>
  846. <i>{{ refundRes ? refundRes.refund_reason_type ? refundRes.refund_reason_type : '--' : '--' }}</i>
  847. </span>
  848. <span>
  849. <p>退款备注:</p><i>{{ refundRes ? refundRes.refund_reason ? refundRes.refund_reason : '--' : '--' }}</i>
  850. </span>
  851. </div>
  852. </div>
  853. <Divider />
  854. </div>
  855. <!-- 回款信息 -->
  856. <div class="infor-card">
  857. <div class="cont">
  858. <div class="tit">回款计划</div>
  859. <div class="classfity" v-if="book">
  860. <div><span>
  861. <p>回款次数:</p>{{ book.paybackNum || '--' }}
  862. </span></div>
  863. <div class="listbox" style="padding-left:65px" v-if="book.paybackNum > 1">
  864. <Table border :columns="paybackTable" :data="paybackTableData">
  865. <template slot-scope="{ row }" slot="code">
  866. <strong>{{ row.code }}</strong>
  867. </template>
  868. <template slot-scope="{ row }" slot="time">
  869. <strong>{{ row.time || '-' }}</strong>
  870. </template>
  871. <template slot-scope="{ row }" slot="money">
  872. <strong>{{ row.money || '-' }}</strong>
  873. </template>
  874. </Table>
  875. </div>
  876. <span v-else>
  877. <p>回款计划:</p>
  878. <i v-if="book.paybackExpectDate">
  879. <i v-if="contractData && contractData.contract_status == 1">自协议签订之日起</i>
  880. <i v-else>自订单创建之日起</i>
  881. <i>{{ book.paybackWorkDayNum }}个工作日回款,预计回款时间:<i style="color: #36a3f7">{{
  882. book.paybackExpectDate ||
  883. '-' }}</i></i>
  884. </i>
  885. <span v-else>--</span>
  886. </span>
  887. </div>
  888. </div>
  889. <Divider />
  890. </div>
  891. <!-- 回款信息 -->
  892. <div class="infor-card"
  893. v-if="book.source == 'qmx' || orDetails.pay_way == '对公转账' || orDetails.order_channel == 'd03' || orDetails.return_status !== 1">
  894. <div class="cont">
  895. <div class="tit">回款信息</div>
  896. <div class="classfity">
  897. <span>
  898. <p>回款状态:</p><i v-if="orDetails">{{ orDetails ? returnStatus(orDetails.return_status) : '--' }}</i>
  899. </span>
  900. <span>
  901. <p>回款次数:</p><i v-if="returnInfo">{{ returnInfo.count ? returnInfo.count + '次' : '--' }}</i>
  902. </span>
  903. <span>
  904. <p>已回款金额:</p><i v-if="returnInfo">{{ returnInfo.money ? localed(returnInfo.money / 100) : '--' }}</i>
  905. </span>
  906. </div>
  907. </div>
  908. <Divider />
  909. </div>
  910. <!-- 回款交易详情 -->
  911. <div class="infor-card"
  912. v-if="book.source == 'qmx' || orDetails.pay_way == '对公转账' || orDetails.order_channel == 'd03' || orDetails.return_status !== 1">
  913. <div class="cont">
  914. <div class="tit">回款交易详情</div>
  915. <div class="classfity">
  916. <i v-if="returnResed" style="color:#888">暂无回款交易详情</i>
  917. <div v-for="(item, index) in returnRes" :key="item.id" v-else>
  918. <p style="color:#700">回款 {{ index + 1 }}.
  919. <!-- <p v-if="returnMyReceivable" style="font-weight:700">回款 {{index + 1}}. -->
  920. <Button v-if="returnMyReceivable" style="margin-left:10px" type="primary"
  921. @click="deleteBatchReturnMoneyInfo(item.id)">删除</Button>
  922. </p>
  923. <span>
  924. <p>回款时间:</p>{{ item.return_time }}
  925. </span>
  926. <span>
  927. <p>回款金额:</p>{{ item.return_money ? localed(item.return_money / 100) : '--' }}
  928. </span>
  929. <span>
  930. <p>回款银行:</p>{{ item.bank_name ? item.bank_name : '--' }}
  931. </span>
  932. <span>
  933. <p>回款说明:</p>{{ item.return_remark ? item.return_remark : '--' }}
  934. </span>
  935. <span>
  936. <p>支付方式:</p>{{ item.return_type ? backpayType(item.return_type) : '--' }}
  937. </span>
  938. <span>
  939. <p>支付单号:</p>{{ item.return_code ? item.return_code : '--' }}
  940. </span>
  941. <span>
  942. <p>银行流水号:</p>{{ item.bank_flow ? item.bank_flow : '--' }}
  943. </span>
  944. <span>
  945. <p>支付户名:</p>{{ item.pay_account_name ? item.pay_account_name : '--' }}
  946. </span>
  947. <span>
  948. <p>流水金额:</p>{{ item.flow_money ? localed(item.flow_money / 100) : '--' }}
  949. </span>
  950. <span>
  951. <p>支付凭证:</p>
  952. <a :href="item.return_voucher_url ? item.return_voucher_url : '*'" target="_blank"
  953. v-if="item.return_voucher_url">点击查看</a>
  954. <i v-else>--</i>
  955. </span>
  956. <span>
  957. <p>发票状态:</p>{{ item ? backInvoiceStatus(item.return_invoice_status) : '--' }}
  958. </span>
  959. <span>
  960. <p>操作人员:</p>{{ item.operate_person ? item.operate_person : '--' }}
  961. </span>
  962. <span>
  963. <p>操作时间:</p>{{ item.operate_time ? item.operate_time : '--' }}
  964. </span>
  965. </div>
  966. </div>
  967. </div>
  968. <Divider />
  969. </div>
  970. <!-- 发票信息 -->
  971. <div class="infor-card">
  972. <div class="cont">
  973. <div class="tit">发票信息</div>
  974. <div class="classfity" v-if="invoiceed.length > 0">
  975. <ul>
  976. <li class="invoice-list" v-for="(item, index) in invoiceed" :key="index">
  977. <div class="top-words">
  978. <p>创建时间:{{ item.create_time ? item.create_time : '--' }}</p>
  979. <p>创建人:{{ item.operator ? item.operator : '--' }}</p>
  980. </div>
  981. <p>发票编号:
  982. <i v-if="item.invoice_serialnum">{{ item.invoice_serialnum }}</i>
  983. <i v-else>--</i>
  984. </p>
  985. <p>发票ID:
  986. <i class="code-blue" @click="invoiceCode(item)" v-if="item.id">{{ item.id }}</i>
  987. <i v-else>--</i>
  988. </p>
  989. <p>关联订单开票金额:{{ item.invoice_order_money ? localed(item.invoice_order_money / 100) : '--' }}
  990. </p>
  991. <p class="invoice_state">
  992. 发票状态:<i :class="item.invoice_status | applyClor">{{ item.invoice_status ?
  993. item.invoice_status :
  994. '--' }}</i>
  995. <span @click="setInvoiceState(item)" v-if="item.code_url" class="invoice_state_action">
  996. <span style="font-size: 14px;line-height: 22px;">开票二维码</span>
  997. <span
  998. style="font-size: 12px;line-height: 18px; color: #36a3f7;">支持客户扫码换开或查看发票</span>
  999. </span>
  1000. </p>
  1001. </li>
  1002. </ul>
  1003. </div>
  1004. <div v-else style="color:#888;line-height:40px;font-size:16px">暂无发票信息</div>
  1005. </div>
  1006. <Divider />
  1007. </div>
  1008. <!-- 红冲记录 -->
  1009. <div class="infor-card"
  1010. v-if="book.source == 'qmx' || orDetails.pay_way == '对公转账' || orDetails.order_channel == 'd03' || orDetails.return_status !== 1">
  1011. <div class="cont">
  1012. <div class="tit">红冲记录</div>
  1013. <div class="classfity">
  1014. <i v-if="orDetails.moneyCorrectionData && orDetails.moneyCorrectionData.length === 0"
  1015. style="color:#888">暂无红冲记录</i>
  1016. <div v-for="(item, index) in orDetails.moneyCorrectionData" :key="item.id" v-else>
  1017. <p style="color:#700">红冲记录 {{ index + 1 }}.</p>
  1018. <span>
  1019. <p>红冲类型:</p>{{ item.redType }}
  1020. </span>
  1021. <span>
  1022. <p>签约主体:</p>{{ item.signingSubject || '--'}}
  1023. </span>
  1024. <span v-if="item.redType.indexOf('签约主体') > -1 && orDetails.product_type === '大会员'">
  1025. <p>合同金额变动</p>{{ priceProcessing(item.payMoney, item.bigSubMoney, item.supplyMoney) }}
  1026. </span>
  1027. <span v-if="item.redType.indexOf('签约主体') > -1 && orDetails.product_type != '大会员'">
  1028. <p>合同金额变动:</p>{{ item.payMoney ? item.payMoney > 0 ? '+' + item.payMoney / 100 : item.payMoney / 100 : '--' }}
  1029. </span>
  1030. <span v-if="item.redType.indexOf('签约主体') > -1">
  1031. <p>佣金金额变动:</p>
  1032. {{ item.commission ? item.commission > 0 ? '+' + item.commission / 100 : item.commission / 100 : '--' }}
  1033. </span>
  1034. <span v-if="item.redType.indexOf('签约主体') > -1">
  1035. <p>手续费变动:</p>
  1036. {{ item.proceduresMoney ? item.proceduresMoney > 0 ? '+' + item.proceduresMoney / 100 : item.proceduresMoney / 100 : '--' }}
  1037. </span>
  1038. <!-- <span v-if="item.redType.indexOf('金额')>-1 && orDetails.product_type === '大会员'"><p>大会员应付金额变动:</p>{{item.payMoney?item.payMoney>0?'+'+item.payMoney/100:item.payMoney/100:'--'}}</span> -->
  1039. <!-- <span v-if="item.redType.indexOf('金额')>-1 && orDetails.product_type === '大会员'"><p>子账号应付金额变动:</p>{{item.bigSubMoney?item.bigSubMoney>0?'+'+item.bigSubMoney/100:item.bigSubMoney/100:'--'}}</span> -->
  1040. <!-- <span v-if="item.redType.indexOf('金额')>-1 && orDetails.product_type === '大会员'"><p>补充包应付金额变动:</p>{{item.supplyMoney?item.supplyMoney>0?'+'+item.supplyMoney/100:item.supplyMoney/100:'--'}}</span> -->
  1041. <span v-if="item.redType.indexOf('金额') > -1 && orDetails.product_type === '大会员'">
  1042. <p>合同金额变动</p>{{ priceProcessing(item.payMoney, item.bigSubMoney, item.supplyMoney) }}
  1043. </span>
  1044. <span
  1045. v-if="item.redType.indexOf('金额') > -1 && orDetails.isNewOrder != '1' && orDetails.product_type != '大会员'">
  1046. <p>订单金额变动:</p>
  1047. {{ item.orderMoney ? item.orderMoney > 0 ? '+' + item.orderMoney / 100 : item.orderMoney / 100 : '--' }}
  1048. </span>
  1049. <span v-if="item.redType.indexOf('金额') > -1 && orDetails.product_type != '大会员'">
  1050. <p>合同金额变动:</p>{{ item.payMoney ? item.payMoney > 0 ? '+' + item.payMoney / 100 : item.payMoney / 100 : '--' }}
  1051. </span>
  1052. <span v-if="item.redType.indexOf('金额') > -1">
  1053. <p>佣金金额变动:</p>
  1054. {{ item.commission ? item.commission > 0 ? '+' + item.commission / 100 : item.commission / 100 : '--' }}
  1055. </span>
  1056. <span v-if="item.redType.indexOf('金额') > -1">
  1057. <p>手续费变动:</p>
  1058. {{ item.proceduresMoney ? item.proceduresMoney > 0 ? '+' + item.proceduresMoney / 100 : item.proceduresMoney / 100 : '--' }}
  1059. </span>
  1060. <span>
  1061. <p>修正原因:</p>{{ item.correctionReason ? item.correctionReason : '--' }}
  1062. </span>
  1063. <span>
  1064. <p>修正时间:</p>{{ item.createTime ? item.createTime : '--' }}
  1065. </span>
  1066. <span>
  1067. <p>操作人:</p>{{ item.createPerson ? item.createPerson : '--' }}
  1068. </span>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. <Divider />
  1073. </div>
  1074. <!-- 业绩变更记录 -->
  1075. <div class="infor-card">
  1076. <div class="cont">
  1077. <div class="tit">业绩变更记录</div>
  1078. <div class="classfity">
  1079. <i v-if="(saleDataRes.saleRecord && saleDataRes.saleRecord.length === 0 )|| !saleDataRes.saleRecord"
  1080. style="color:#888">暂无业绩变更记录</i>
  1081. <div v-for="(item, index) in saleDataRes.saleRecord" :key="index" v-else>
  1082. <p style="color:#36a3f7">变更记录 {{ index + 1 }}.</p>
  1083. <span>
  1084. <p>销售人员:</p>{{ item.name }}
  1085. </span>
  1086. <span>
  1087. <p>业绩归属部门:</p>{{ item.saler_dept ? item.saler_dept : '--' }}
  1088. </span>
  1089. <span>
  1090. <p>销售业绩变动:</p>
  1091. <span v-if="item.change_value > 0 ">+</span>
  1092. {{ item.change_value ? Number(item.change_value) / 100 : '--' }}
  1093. </span>
  1094. <span>
  1095. <p>业绩统计时间:</p>{{ item.statistics_time ? item.statistics_time : '--' }}
  1096. </span>
  1097. <span>
  1098. <p>操作时间:</p>{{ item.createtime ? item.createtime : '--' }}
  1099. </span>
  1100. <span>
  1101. <p>操作人:</p>{{ item.operator ? item.operator : '--' }}
  1102. </span>
  1103. <span>
  1104. <p>变更原因:</p>{{ item.change_reason ? item.change_reason : '--' }}
  1105. </span>
  1106. </div>
  1107. </div>
  1108. </div>
  1109. <Divider />
  1110. </div>
  1111. <!--盖章记录-->
  1112. <div class="infor-card sale-record">
  1113. <div class="cont">
  1114. <div class="tit">盖章记录</div>
  1115. <div class="classfity">
  1116. <i v-if="!orders.sealArr || (orders.sealArr && orders.sealArr.length === 0)"
  1117. style="color:#888">暂无盖章记录</i>
  1118. <template v-if="orders.sealArr && orders.sealArr.length > 0">
  1119. <div class="seal-item" v-for="item in orders.sealArr" :key="item.id">
  1120. <span class="s-row">
  1121. <p class="s-label">盖章时间:</p>{{ item.stamp_time ? item.stamp_time.split(' ')[0] : '-' }}
  1122. <span v-if="showSealBtn" class="color4 delete-text"
  1123. @click="deleteSealItem(item)">删除</span>
  1124. </span>
  1125. <span class="s-row">
  1126. <p class="s-label">申请人:</p>{{ item.applicant_name ? item.applicant_name : '--' }}
  1127. </span>
  1128. <span class="s-row">
  1129. <p class="s-label">操作人:</p>{{ item.salesperson_name ? item.salesperson_name : '--' }}
  1130. </span>
  1131. <span class="s-row">
  1132. <p class="s-label">操作时间:</p>{{ item.create_time ? item.create_time : '--' }}
  1133. </span>
  1134. </div>
  1135. </template>
  1136. </div>
  1137. </div>
  1138. </div>
  1139. <div class="bot-btn">
  1140. <!-- 代用户下单和线上下单不支持编辑 -->
  1141. <Button class="piao-btn" style="margin-right:20px" type="success" size="large" @click="editOrder"
  1142. v-if="book.source == 'qmx' && !isHelpOrderDetail && (returnMyeditor === 1 || ((orDetails.order_status !== -2 && orDetails.order_status !== '已取消') && (orDetails.audit_status === 3) && returnMyeditor === 3) || orDetails.audit_status === -4)">编辑订单</Button>
  1143. <Button class="piao-btn" style="margin-right:20px" type="success" size="large" disabled v-else>编辑订单</Button>
  1144. <Button class="piao-btn" type="success" size="large" disabled
  1145. v-if="returnMyReceivable && (returnCashStatus || (orDetails.order_status == -2 || orDetails.order_status == '已取消')) || orDetails.audit_status != 3">新增回款信息</Button>
  1146. <Button v-else-if="returnMyReceivable && orDetails.audit_status == 3" class="piao-btn" type="success"
  1147. size="large" @click="relation">新增回款信息</Button>
  1148. <Button class="ping-btn" type="success" size="large" disabled
  1149. v-if="returnMyReceivable && (orDetails.applybill_status == '已开具' || (book.source == 'qmx' && orDetails.orderStatus == -2) || (!book.source && orDetails.orderStatus == 0) || orDetails.audit_status !== 3)">线下开发票</Button>
  1150. <Button v-else-if="returnMyReceivable" class="ping-btn" type="success" size="large"
  1151. @click="pushInvo">线下开发票</Button>
  1152. <Button v-if="isShowCustom" class="ping-btn" type="success" size="large"
  1153. @click="scanCodeVote">客户自助扫码开票</Button>
  1154. <Button v-else disabled class="ping-btn" type="success" size="large">客户自助扫码开票</Button>
  1155. <Button class="ping-btn" type="primary" size="large" :disabled="cannotDownloadEContract"
  1156. :loading="loading.eContract" @click="downloadEContract">下载电子协议</Button>
  1157. <Button class="ping-btn" type="success" size="large" @click="uploadP"
  1158. v-if="returnMyReceivable && (book.source == 'qmx' && (orDetails.order_status !== -2 && orDetails.order_status !== '已取消')) && orDetails.audit_status === 3">上传归档协议</Button>
  1159. <Button v-else-if="returnMyReceivable" class="ping-btn" type="success" size="large" disabled>上传归档协议</Button>
  1160. <!-- <Button
  1161. class="ping-btn"
  1162. type="success"
  1163. size="large"
  1164. @click="downContract"
  1165. v-if="(book.source == 'qmx'|| !returnMyReceivable)&&contractDis && (orDetails.order_status !== -2 && orDetails.order_status !== '已取消')"
  1166. >下载归档协议</Button>
  1167. <Button class="ping-btn" type="success" size="large" disabled v-else>下载归档协议</Button> -->
  1168. <Button v-if="showPermissionActivation" class="piao-btn" style="margin-left:20px" type="success"
  1169. size="large" @click="permissionActivation">权限开通</Button>
  1170. <Button size="small" type="error" style="margin-left:20px" @click="performanceChange"
  1171. v-if="PermissionFunction(saleDataRes.saleEdit) && saleDataRes.saleRecord && saleDataRes.saleRecord.length > 0">业绩变更</Button>
  1172. <Button class="shen-btn" type="primary" size="large" @click="audited"
  1173. v-if="returnMyReceivable && courseDis">审核</Button>
  1174. <Button class="shen-btn" type="primary" size="large" disabled v-else-if="returnMyReceivable">审核</Button>
  1175. <Button class="tui-btn" size="small" type="error" @click="refund"
  1176. v-if="returnMyReceivable && orderComp">退款</Button>
  1177. <Button class="tui-btn" size="small" type="error" disabled v-else-if="returnMyReceivable">退款</Button>
  1178. <Button class="shen-btn" size="small" type="error" :disabled="!returnMyReceivable" @click="correction"
  1179. v-if="returnMyReceivable && orDetails.billingMode === 1 && this.book.source === 'qmx'">红冲</Button>
  1180. <Button class="seal-btn" size="small" type="primary" @click="sealBtnHandle" v-if="showSealBtn">盖章</Button>
  1181. </div>
  1182. <!-- 线下开发票、新增回款信息、审核、退款弹框 -->
  1183. <d-model ref="backRef" :data="orders" :orderDetail="orDetails" :contractData="contractData"
  1184. :returnRes="returnRes" :returnInfo="returnInfo" :isStatus="book.source" :payMoney="orDetails.pay_money"
  1185. :filterData="book"></d-model>
  1186. <!-- 客户扫码自助开票 -->
  1187. <set-order-info :show-content="2" :show-dialog="showDialog" :order-info="orDetails" title="客户自助扫码开票"
  1188. @close="closeComDialog">
  1189. </set-order-info>
  1190. <!-- 开票二维码 -->
  1191. <set-order-info ref="invoiceRef" :show-content="4" :show-dialog="showInvoiceDialog" :order-info="orDetails"
  1192. title="开票二维码" @close="closeComDialog">
  1193. <div style="display:flex;flex-direction:column;" slot="content">
  1194. <span>订单编号:{{selectInvoice.invoice_order_code}}</span>
  1195. <span>开票金额合计:{{selectInvoice.invoice_money / 100}}元</span>
  1196. </div>
  1197. </set-order-info>
  1198. <!-- 不支持线上开票弹窗 -->
  1199. <common-dialog class="no-online-dialog" title="不支持线上开票" :visible="showOnlineDialog" :show-close="false">
  1200. <div class="dialog-content">订单签约主体是“北京拓普丰联信息科技股份有限公司”,请联系财务线下开票。</div>
  1201. <div slot="footer" class="dialog-footer-content">
  1202. <button class="btn-confirm" @click="showOnlineDialog = false">我知道了</button>
  1203. </div>
  1204. </common-dialog>
  1205. <!-- 发票编号弹框 -->
  1206. <code-model ref="codeRef" :codeDetail="codeDetail"></code-model>
  1207. <!-- 批量回款弹框 -->
  1208. <b-collect ref="batchModel" :selectData="[orDetails]" :bookLevel="book.level" @onChange="onChange"></b-collect>
  1209. <online-order-edit ref="onlineOrderEdit" returnMyReceivable />
  1210. <otherOrderEdit ref="otherOrderEdit" returnMyReceivable />
  1211. <bigOrderEdit ref="bigOrderEdit" returnMyReceivable />
  1212. <!-- 盖章记录弹窗-->
  1213. <sealDialog ref="sealDialogRef" />
  1214. </div>
  1215. </template>
  1216. <script>
  1217. import setOrderInfo from './setOrderInfo.vue'
  1218. import dModel from './detailModel'
  1219. import bCollect from './batchOrder.vue'
  1220. import codeModel from './codeModel.vue'
  1221. // import dateSigle from '@/components/dateSigle'
  1222. import onlineOrderEdit from "./onlineOrderEdit.vue"
  1223. import otherOrderEdit from "./otherOrderEdit.vue"
  1224. import bigOrderEdit from "./bigOrderEdit.vue"
  1225. import reviewRecord from './reviewRecord.vue'
  1226. import sealDialog from './sealDialog'
  1227. import commonDialog from '@/components/Dialog.vue';
  1228. import { dateFormatter, addDate } from '@/assets/js/date.js'
  1229. import { Input, Button } from 'element-ui'
  1230. export default {
  1231. props: {
  1232. orderType: String
  1233. },
  1234. components: {
  1235. [Input.name]: Input,
  1236. [Button.name]: Button,
  1237. dModel,
  1238. // dateSigle,
  1239. setOrderInfo,
  1240. commonDialog,
  1241. bCollect,
  1242. codeModel,
  1243. onlineOrderEdit,
  1244. otherOrderEdit,
  1245. bigOrderEdit,
  1246. reviewRecord,
  1247. sealDialog
  1248. },
  1249. data() {
  1250. return {
  1251. saleTable: [
  1252. {
  1253. title: '销售人员',
  1254. slot: 'name',
  1255. width: 200
  1256. },
  1257. {
  1258. title: '业绩归属部门',
  1259. slot: 'saler_dept',
  1260. width: 200,
  1261. },
  1262. {
  1263. title: '销售业绩(元)',
  1264. slot: 'money',
  1265. width: 200,
  1266. }
  1267. ],
  1268. paybackTable: [
  1269. {
  1270. title: '序号',
  1271. slot: 'code'
  1272. },
  1273. {
  1274. title: '预计回款时间',
  1275. slot: 'time'
  1276. },
  1277. {
  1278. title: '预计回款金额(元)',
  1279. slot: 'money'
  1280. }
  1281. ],
  1282. paybackTableData: [],
  1283. saleTableData: [],
  1284. saleReadon: true,
  1285. phoneReadon: true,
  1286. isSales: false,
  1287. addDate8: false,
  1288. buyProvince: '',
  1289. bigPhone: '',
  1290. trueMoney: '',
  1291. contractData: [],
  1292. returnInfo: [],
  1293. returnRes: [],
  1294. refundRes: [],
  1295. orders: {},
  1296. codeDetail: [],
  1297. beginTime: '',
  1298. saleTime: '',
  1299. orDetails: {},
  1300. book: [],
  1301. strCourse: [],
  1302. l_starttime: '',
  1303. l_endtime: '',
  1304. vip_starttime: '',
  1305. vip_endtime: '',
  1306. serverData: [],
  1307. supplysData: [],
  1308. isDisable: false,
  1309. invoiceed: [],
  1310. uploadData: {
  1311. type: 'transferAccounts'
  1312. },
  1313. loading: {
  1314. eContract: false,
  1315. },
  1316. previousPage: '',
  1317. showDialog: false,
  1318. showInvoiceDialog: false,
  1319. showOnlineDialog: false,
  1320. isShowCustom: false,
  1321. newSerName: '',
  1322. oldSerName: '',
  1323. // 有盖章操作权限的用户
  1324. stampedInterest: [],
  1325. selectInvoice: {},// 点击开票二维码选中的发票信息
  1326. saleDataRes: {} // 业绩相关集合
  1327. }
  1328. },
  1329. computed: {
  1330. showPermissionActivation() {// 权限开通
  1331. let newVip = (this.orderType == 8 || this.orderType == 16) && !this.orDetails.vip_type //超级订阅新购
  1332. let newMember = (this.orderType == 7) && this.book.createType == 1 //大会员新购
  1333. console.log(this.orDetails.vip_starttime)
  1334. return this.orDetails.return_status == '1' && this.orDetails.isServiceOpen === 0 && (newVip || newMember) && new Date(this.orDetails.vip_starttime).getTime() > new Date().getTime()
  1335. },
  1336. // 是否显示付费子账号,免费子账号字段
  1337. showFiled() {
  1338. if (this.orDetails.isNewOrder != '1') {
  1339. return true
  1340. } else if ((this.orderType == 7 || this.orderType == 9) && !this.orDetails.buy_count) {
  1341. return true
  1342. } else {
  1343. return false
  1344. }
  1345. },
  1346. // 禁止下载电子协议
  1347. cannotDownloadEContract() {
  1348. if (!this.orDetails || !this.contractData) {
  1349. return true
  1350. }
  1351. const { filterData, res } = this.orders || {}
  1352. if (!filterData || !res) {
  1353. return true
  1354. }
  1355. // 1. 订单审核状态是“已通过”
  1356. const orderPass = this.orDetails.audit_status == 3
  1357. // 2. 签约主体为“北京剑鱼信息技术有限公司”
  1358. const partyBPass = this.orDetails.return_commpany == '北京剑鱼信息技术有限公司' || this.orDetails.signing_subject === 'h01' // 签约主体为:北京剑鱼信息技术有限公司/h01'
  1359. // 3. 协议状态为“签协议”
  1360. const contrastStatus = this.contractData.contract_status == 1
  1361. // 4. 产品类型是“超级订阅”(且付费类型为“购买”、“续费”),或产品类型是“大会员”且会员套餐为“商机版2.0”、“专家版2.0”(且服务类型为“新购服务”、“延长服务”)
  1362. // 购买时,vip_type为空null
  1363. const vipBuyOrRenew = res.productType == 'VIP订阅' && (res.vip_type === null || res.vip_type === undefined || res.vip_type == '1')
  1364. const bigBuyOrRenew = res.productType == '大会员' && (filterData.comboId == 6 || filterData.comboId == 7) && (filterData.createType == '1' || filterData.createType == '3')
  1365. const productionTypePass = vipBuyOrRenew || bigBuyOrRenew
  1366. // 可下载
  1367. const canDownload = orderPass && partyBPass && contrastStatus && productionTypePass
  1368. return !canDownload
  1369. },
  1370. courseDis() {
  1371. if (this.orDetails.course_status == 2) {
  1372. if (this.orDetails.order_status == '未支付') {
  1373. return true
  1374. } else if (this.orDetails.order_status == 0) {
  1375. return true
  1376. } else {
  1377. return false
  1378. }
  1379. } else {
  1380. return false
  1381. }
  1382. },
  1383. orderComp() {
  1384. if (this.orDetails.order_status == '1' || this.orDetails.order_status == '已支付') {
  1385. if (this.book.source !== 'qmx' && this.orDetails.refund_status == null) {
  1386. return true
  1387. } else if (this.orDetails.refund_status == '0') {// 未退款
  1388. if ($.isEmptyObject(this.returnRes) == true) {
  1389. return false
  1390. } else {
  1391. return true
  1392. }
  1393. } else {
  1394. return false
  1395. }
  1396. } else {
  1397. return false
  1398. }
  1399. },
  1400. returnResed: function () {
  1401. if ($.isEmptyObject(this.returnRes) == true) {
  1402. return true
  1403. } else {
  1404. return false
  1405. }
  1406. },
  1407. returnMyReceivable: function () {
  1408. let rout = this.$route.query
  1409. if (rout.path && rout.path == 'my') {// 我的订单
  1410. return false
  1411. } else {
  1412. return true
  1413. }
  1414. },
  1415. returnMyeditor: function () {
  1416. let rout = this.$route.query
  1417. if (rout.path && rout.path == 'my') {
  1418. if (this.orDetails.audit_status == '0' || this.orDetails.audit_status == '-2' || this.orDetails.audit_status == '-3') {
  1419. return 1
  1420. } else {
  1421. return 2
  1422. }
  1423. }
  1424. return 3
  1425. },
  1426. contractDis: function () {
  1427. if ($.isEmptyObject(this.contractData) == true) {
  1428. return false
  1429. } else {
  1430. return true
  1431. }
  1432. },
  1433. refundDis: function () {
  1434. if ($.isEmptyObject(this.refundRes) == true) {
  1435. return false
  1436. } else {
  1437. return true
  1438. }
  1439. },
  1440. returnCashStatus: function () {
  1441. if (this.book.source && this.book.source == 'qmx') {// 线下
  1442. if (this.orDetails.return_status == 1) {
  1443. return true
  1444. } else {
  1445. return false
  1446. }
  1447. } else {// 线上
  1448. if (this.orDetails.return_status == 1) {
  1449. return true
  1450. } else {
  1451. if ((this.orDetails.pay_way == 'transferAccounts' || this.orDetails.pay_way == '对公转账') && this.orDetails.course_status == 4) {
  1452. return false
  1453. } else {
  1454. return true
  1455. }
  1456. }
  1457. }
  1458. },
  1459. username() {
  1460. return this.$store.getters.getAdminUser?.username
  1461. },
  1462. // 是否展示盖章按钮
  1463. showSealBtn() {
  1464. // 全部部订单-订单详情页,仅当“订单审核状态”为“通过”且订单状态不是“已取消”,才展示“盖章”按钮(行政有权限,冯慧洋),否则不展示
  1465. return this.stampedInterest.indexOf(this.username) > -1 && this.returnMyReceivable && this.orDetails.audit_status === 3 && Number(this.orDetails.orderStatus) !== -2
  1466. },
  1467. isHelpOrderDetail() {
  1468. return this.$route.path.includes('oderHelpDetail')
  1469. }
  1470. },
  1471. created() {
  1472. this.ordered()
  1473. },
  1474. methods: {
  1475. PermissionFunction(userlist) {
  1476. if (!userlist) {
  1477. return false
  1478. }
  1479. return userlist.includes(this.username)
  1480. },
  1481. contactOrderCode_click(code) {
  1482. const news = this.$router.resolve({
  1483. path: '/order/orderList/orderDetail',
  1484. query: { id: code, proType: '大会员' }
  1485. })
  1486. window.open(news.href, '_blank')
  1487. },
  1488. permissionActivation() {
  1489. this.$refs.backRef.permissionActivationShow = true
  1490. },
  1491. // 文件下载,跨域无效
  1492. downloadFile(url, filename) {
  1493. const link = document.createElement('a')
  1494. link.download = filename
  1495. link.href = url
  1496. link.click()
  1497. },
  1498. // 下载电子协议
  1499. downloadEContract() {
  1500. this.loading.eContract = true
  1501. this.$request('/order/GetContractPdf').data({ orderCode: this.orDetails.order_code }).success((res) => {
  1502. this.loading.eContract = false
  1503. if (res.status === 'success') {
  1504. const fileUrl = res.data
  1505. const filename = this.getEContractFilename(fileUrl)
  1506. this.downloadFile(fileUrl, filename)
  1507. }
  1508. }).error(() => {
  1509. this.loading.eContract = false
  1510. console.log('下载电子协议失败')
  1511. }).post()
  1512. },
  1513. // 获取url中文件后缀doc/docx/pdf等
  1514. getFileExtension(url) {
  1515. const filename = url.substring(url.lastIndexOf('/') + 1);
  1516. const extension = filename.split('.').pop();
  1517. return extension;
  1518. },
  1519. // 计算电子协议文件名
  1520. getEContractFilename(url) {
  1521. // 超级订阅:剑鱼标讯超级订阅产品服务协议书(XX),XX为甲方名称
  1522. // 大会员:剑鱼标讯大会员产品服务协议书(XX),XX为甲方名称
  1523. const { res } = this.orders || {}
  1524. if (!res || !this.contractData) {
  1525. return true
  1526. }
  1527. let productTypeName = res.productType
  1528. if (productTypeName == 'VIP订阅') {
  1529. productTypeName = '超级订阅'
  1530. }
  1531. // 甲方名称
  1532. const partyAName = this.contractData.partyA_name
  1533. const suffix = this.getFileExtension(url)
  1534. const nameList = [`剑鱼标讯${productTypeName}产品服务协议书`]
  1535. if (partyAName) {
  1536. nameList.push(`(${partyAName})`)
  1537. }
  1538. nameList.push(`.${suffix}`)
  1539. return nameList.join('')
  1540. },
  1541. isCanInvoice() {
  1542. this.$request('/order/orderInfo').data({ orderCode: this.orDetails.order_code, origin: 'detail' }).success((res) => {
  1543. if (res.status === 'success') {
  1544. this.isShowCustom = true
  1545. }
  1546. }).error(() => {
  1547. this.isShowCustom = false
  1548. }).post()
  1549. },
  1550. // 关闭弹框
  1551. closeComDialog() {
  1552. this.showDialog = false
  1553. this.showInvoiceDialog = false
  1554. },
  1555. localed(val) {
  1556. return val.toLocaleString('zh', { style: 'currency', currency: 'CNY' })
  1557. },
  1558. getRealmoney(r,f){
  1559. if (f.source == 'qmx' || this.orderType == '0' || r.is_backstage_order == '1') {
  1560. return r.pay_money / 100
  1561. } else {
  1562. return r.order_money
  1563. }
  1564. },
  1565. unitNum(val) {
  1566. if (val == 1) {
  1567. return '1月'
  1568. } else if (val == 2) {
  1569. return '1季'
  1570. } else if (val == 3) {
  1571. return '1年'
  1572. }
  1573. },
  1574. returnStatus(val) {
  1575. if (val == 0) {
  1576. return '未回款'
  1577. } else if (val == 1) {
  1578. return '全额回款'
  1579. } else if (val == 2) {
  1580. return '部分回款'
  1581. }
  1582. },
  1583. refundStatus(val) {
  1584. if (val == 0) {
  1585. return '未退款'
  1586. } else if (val == 1) {
  1587. return '全额退款'
  1588. } else if (val == 2) {
  1589. return '部分退款'
  1590. } else {
  1591. return '未退款'
  1592. }
  1593. },
  1594. buyStatus(val) {
  1595. if (val == '1') {
  1596. return '增量数据'
  1597. } else if (val == '2') {
  1598. return '历史数据'
  1599. } else if (val == '3') {
  1600. return '增量+历史数据'
  1601. }
  1602. },
  1603. numed(value) {
  1604. if (!value) return '0'
  1605. const intPart = Math.trunc(value)
  1606. const intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')
  1607. return intPartFormat
  1608. },
  1609. backpayType(val) {
  1610. if (val == 1) {
  1611. return '微信'
  1612. } else if (val == 2) {
  1613. return '支付宝'
  1614. } else if (val == 3) {
  1615. return '对公转账'
  1616. }
  1617. },
  1618. backInvoiceStatus(val) {
  1619. if (val == 0) {
  1620. return '未申请'
  1621. } else if (val == 1) {
  1622. return '已申请'
  1623. } else if (val == 2) {
  1624. return '已开具'
  1625. } else {
  1626. return '--'
  1627. }
  1628. },
  1629. timeChange(val, type) {
  1630. if (val == 12) {
  1631. return '1年'
  1632. } else {
  1633. if (type == 1) {
  1634. return val + '天'
  1635. } else if (type == 2) {
  1636. return val + '个月'
  1637. }
  1638. }
  1639. },
  1640. orderObjectd(val) {
  1641. if (JSON.stringify(val) == "{}") {
  1642. return false
  1643. }
  1644. if (val) {
  1645. if (val == null) {
  1646. return false
  1647. }
  1648. if (val.length == 0) {
  1649. return false
  1650. }
  1651. return true
  1652. } else {
  1653. return false
  1654. }
  1655. },
  1656. vouched(val) {
  1657. if (val) {
  1658. const urls = this.$router.resolve(val)
  1659. window.open(urls.href, '_blank')
  1660. }
  1661. },
  1662. ordered() {
  1663. let rout = this.$route.query
  1664. if (rout.previousPage) {
  1665. this.previousPage = rout.previousPage
  1666. }
  1667. var orderDetailsUrl = '/order/orderList/orderDetails'
  1668. if (rout.path && rout.path == 'my') {
  1669. orderDetailsUrl = '/order/myOrderDetail'
  1670. }
  1671. this.$request(orderDetailsUrl).data({
  1672. id: rout.id,
  1673. type: rout.proType
  1674. }).success((r) => {
  1675. let akp1 = new Date(), akp2 = new Date(addDate(r.data.res.create_time, 8))
  1676. this.addDate8 = akp1 < akp2
  1677. this.orders = r.data
  1678. if (r.data.res.invoice && r.data.res.invoice.length > 0) {
  1679. r.data.res.invoice.forEach(v => {
  1680. v.create_time = dateFormatter(v.create_time * 1000)
  1681. })
  1682. this.invoiceed = r.data.res.invoice
  1683. }
  1684. this.orDetails = r.data.res
  1685. this.bigPhone = r.data.res.user_phone ? r.data.res.user_phone : '--'
  1686. this.contractData = r.data.contractRes ? r.data.contractRes : {}
  1687. this.refundRes = r.data.refundRes ? r.data.refundRes[0] : []
  1688. this.returnRes = r.data.returnRes
  1689. this.returnInfo = r.data.returnInfo ? r.data.returnInfo[0] : []
  1690. this.book = r.data.filterData
  1691. this.saleDataRes = r.data.saleDataRes || {}
  1692. // 回款计划列表
  1693. this.paybackTableData = this.book.paybackList ? JSON.parse(this.book.paybackList) : []
  1694. // 有盖章按钮操作权限用户
  1695. this.stampedInterest = r.data.stampedInterest || []
  1696. if (this.book && this.orDetails.product_type == '大会员' && this.book.createType == '2' && this.book.oldSerName && this.book.serversName) {
  1697. let allServeName = this.book.serversName.split(",")
  1698. let oldSerName = this.book.oldSerName.split("、")
  1699. let newSerName = allServeName.filter(item => !oldSerName.includes(item))
  1700. this.newSerName = newSerName.join("、")
  1701. this.oldSerName = oldSerName.join("、")
  1702. }
  1703. this.$refs.othersReviewRecord.recordList = r.data.audit
  1704. // if (r && r.data && r.data.res && r.data.res.salesperson && r.data.res.saleMoney) {
  1705. // this.saleTableData = JSON.parse(r.data.res.saleMoney).data
  1706. // }
  1707. if (this.saleDataRes.saleFinal && this.saleDataRes.saleFinal.list) { // 业绩归属
  1708. let salelist = JSON.parse(JSON.stringify(this.saleDataRes.saleFinal.list))
  1709. let newsalelist = []
  1710. let allmoney = 0
  1711. salelist.forEach(ele => {
  1712. ele.money = ele.money / 100
  1713. allmoney += Number(ele.money)
  1714. newsalelist.push(ele)
  1715. })
  1716. newsalelist.push({name: '合计',saler_dept:'-', money: allmoney})
  1717. this.saleTableData = newsalelist
  1718. }
  1719. if (r.data.filterData.area) {
  1720. let arr = Object.keys(r.data.filterData.area).length
  1721. if (this.orDetails.vip_type == 1) {
  1722. this.buyProvince = ''
  1723. } else {
  1724. if (arr == 0) {
  1725. this.buyProvince = '全国'
  1726. } else {
  1727. this.buyProvince = Object.keys(r.data.filterData.area).join(',')
  1728. }
  1729. }
  1730. }
  1731. this.strCourse = r.data.resCourse ? r.data.resCourse : [];
  1732. this.serverData = r.data.filterData.serversName ? r.data.filterData.serversName.split(',') : []
  1733. this.supplysData = r.data.filterData.supplys ? r.data.filterData.supplys : []
  1734. if (this.strCourse) {
  1735. this.l_starttime = dateFormatter(this.strCourse.l_starttime * 1000, 'yyyy年MM月dd日')
  1736. this.l_endtime = dateFormatter(this.strCourse.l_endtime * 1000, 'yyyy年MM月dd日')
  1737. }
  1738. if (this.orDetails) {
  1739. this.vip_starttime = this.orderObjectd(this.orDetails.vip_starttime) ? dateFormatter(this.orDetails.vip_starttime, 'yyyy.MM.dd') : '-'
  1740. this.vip_endtime = this.orderObjectd(this.orDetails.vip_endtime) ? ' - ' + dateFormatter(this.orDetails.vip_endtime, 'yyyy.MM.dd') : '-'
  1741. this.trueMoney = this.localed((this.orDetails.pay_money - (this.orDetails.commission + this.orDetails.procedures_money)) / 100)
  1742. }
  1743. this.$nextTick(() => {
  1744. this.isCanInvoice()
  1745. })
  1746. }).get()
  1747. },
  1748. invoiceCode(item) {
  1749. this.codeDetail = item
  1750. this.$refs.codeRef.codeShow = true
  1751. },
  1752. setInvoiceState(item) {
  1753. this.selectInvoice = item
  1754. this.$refs.invoiceRef.QrCodeImage = item.code_url
  1755. this.showInvoiceDialog = true
  1756. },
  1757. inptBtn() {
  1758. this.isSales = true
  1759. setTimeout(() => {
  1760. document.getElementById("inptId").focus()
  1761. this.saleReadon = false
  1762. }, 100)
  1763. },
  1764. pushInvo() {
  1765. this.$refs.backRef.iShow = true
  1766. },
  1767. // 客户扫码自助开票
  1768. scanCodeVote() {
  1769. console.log(this.orDetails, 'orDetails')
  1770. // 1.点击“客户自助扫码开票”,如签约主体是“北京拓普丰联信息科技股份有限公司”,点击则弹窗提示:
  1771. if (this.orDetails.return_commpany === '北京拓普丰联信息科技股份有限公司') {
  1772. this.showOnlineDialog = true
  1773. } else {
  1774. this.showDialog = true
  1775. }
  1776. // this.comDialogParams.price = this.orDetails.pay_money / 100
  1777. },
  1778. backHandler() {
  1779. this.$refs.backRef.backShow = true
  1780. },
  1781. refund() {
  1782. this.$refs.backRef.tShow = true
  1783. },
  1784. audited() {
  1785. this.$refs.backRef.sShow = true
  1786. },
  1787. uploadP() {
  1788. this.$refs.backRef.pShow = true
  1789. },
  1790. performanceChange() {
  1791. this.$refs.backRef.performanceShow = true
  1792. },
  1793. relation() {
  1794. this.$refs.batchModel.asdShow = true
  1795. },
  1796. correction() {
  1797. this.$refs.backRef.correctionShow = true
  1798. if (this.orDetails.product_type === '大会员') {
  1799. this.$refs.backRef.bigCorrection = true
  1800. }
  1801. },
  1802. onChange() {
  1803. this.ordered()
  1804. },
  1805. downContract() {
  1806. this.$Modal.confirm({
  1807. title: "确定下载该归档协议吗?",
  1808. onOk: () => {// 文件下载
  1809. const a1 = document.createElement('a')
  1810. a1.download = this.contractData.contract_file_name
  1811. a1.href = this.contractData.contract_file_url
  1812. a1.click()
  1813. }
  1814. })
  1815. },
  1816. editOrder() {
  1817. const source = this.book.source
  1818. const product_type = this.orDetails.product_type
  1819. if (this.orders.res.payType) {
  1820. if (this.orders.res.payType === '微信') {
  1821. this.orders.res.payTypes = 'wx'
  1822. } else if (this.orders.res.payType === '支付宝') {
  1823. this.orders.res.payTypes = 'ali'
  1824. } else {
  1825. this.orders.res.payTypes = 'transferAccounts'
  1826. }
  1827. } else {
  1828. this.orders.res.payTypes = 'transferAccounts'
  1829. }
  1830. if (source == 'qmx') { //线下
  1831. if (product_type && product_type.indexOf('大会员') != -1) {
  1832. this.$refs.bigOrderEdit.show(this.orders)
  1833. } else {
  1834. this.$refs.otherOrderEdit.show(this.orders)
  1835. }
  1836. } else { //线上
  1837. this.$refs.onlineOrderEdit.show(this.orders)
  1838. }
  1839. },
  1840. deleteBatchReturnMoneyInfo(id) {
  1841. this.$Modal.confirm({
  1842. title: '删除回款交易详情',
  1843. content: '确定删除该回款交易详情吗?',
  1844. onOk: () => {
  1845. this.$request('/order/deleteBatchReturnMoneyInfo').data({ id: id }).success(() => {
  1846. this.$Message.success('删除成功')
  1847. this.ordered()
  1848. }).post()
  1849. }
  1850. });
  1851. },
  1852. prosType(val) {
  1853. return val && val.indexOf('VIP订阅') > -1 ? val.replace('VIP订阅', '超级订阅') : val
  1854. },
  1855. priceProcessing(a, b, c) {
  1856. let one = a ? a / 100 : 0
  1857. let two = b ? b / 100 : 0
  1858. let three = c ? c / 100 : 0
  1859. if (one + two + three != 0 && one + two + three > 0) {
  1860. return '+' + (one + two + three)
  1861. } else if (one + two + three != 0 && one + two + three < 0) {
  1862. return (one + two + three)
  1863. } else {
  1864. return '--'
  1865. }
  1866. },
  1867. // 盖章
  1868. sealBtnHandle() {
  1869. this.$refs.sealDialogRef.show(this.orders)
  1870. },
  1871. // 删除盖章记录
  1872. deleteSealItem(item) {
  1873. this.$Modal.confirm({
  1874. title: '确认要删除这条盖章记录吗?',
  1875. onOk: () => {
  1876. this.$request('/order/orderSeal').data({ id: item.id, regType: 'delete' }).success((res) => {
  1877. if (res.data?.code === 0) {
  1878. this.$Message.success({ content: '删除记录成功' })
  1879. this.ordered()
  1880. }
  1881. }).error(() => {
  1882. }).post()
  1883. }
  1884. })
  1885. }
  1886. },
  1887. filters: {
  1888. cycleTypeF(val) {
  1889. if (val === 0) { // 没有返单位是前台下的单子 大会员默认为年
  1890. return '个月'
  1891. } else if (!val) {
  1892. return '年'
  1893. } else {
  1894. return '天'
  1895. }
  1896. },
  1897. vip_typeF(val) {
  1898. if (val == 0) {
  1899. return '购买'
  1900. } else if (val == 1) {
  1901. return '续费'
  1902. } else if (val == 2) {
  1903. return '升级'
  1904. } else if (val == 3) {
  1905. return '试用'
  1906. }
  1907. },
  1908. contract_archive_status(val) {
  1909. if (val == 0) {
  1910. return '未归档'
  1911. } else if (val == 1) {
  1912. return '已归档'
  1913. } else {
  1914. return '--'
  1915. }
  1916. },
  1917. orderStatus(val) {
  1918. if (val == 0) {
  1919. return '未完成'
  1920. } else if (val == 1) {
  1921. return '已完成'
  1922. } else if (val == -1) {
  1923. return '逻辑删除'
  1924. } else if (val == -2) {
  1925. return '已取消'
  1926. } else if (val == -3) {
  1927. return '已退款'
  1928. } else if (val == -3) {
  1929. return '已退款'
  1930. }
  1931. },
  1932. coursed(val) {
  1933. if (val == 2) {
  1934. return '未审核'
  1935. } else if (val == 3) {
  1936. return '未通过'
  1937. } else if (val == 4) {
  1938. return '已通过'
  1939. } else if (val < 2) {
  1940. return '无需审核'
  1941. }
  1942. },
  1943. orderCoursed(val) {
  1944. if (val == 0) {
  1945. return '待提交'
  1946. } else if (val == 1) {
  1947. return '待一审'
  1948. } else if (val == 2) {
  1949. return '待二审'
  1950. } else if (val == 4) {
  1951. return '待三审'
  1952. } else if (val == 3) {
  1953. return '已通过'
  1954. } else if (val == -2 || val == -3 || val == -4) {
  1955. return '已退回'
  1956. }
  1957. },
  1958. // 合同性质
  1959. natureContract(val) {
  1960. if (val == '1') {
  1961. return '新签合同'
  1962. } else if (val == '2') {
  1963. return '续签合同'
  1964. } else {
  1965. return '--'
  1966. }
  1967. },
  1968. courseColr(val) {
  1969. if (val == 2) {
  1970. return 'color2'
  1971. } else if (val == 3) {
  1972. return 'color1'
  1973. } else if (val == 4) {
  1974. return 'color3'
  1975. } else if (val < 2) {
  1976. return 'color4'
  1977. }
  1978. },
  1979. auditColr(val) {
  1980. if (val == 0) {
  1981. return 'color2'
  1982. } else if (val == 1) {
  1983. return 'color1'
  1984. } else if (val == 2) {
  1985. return 'color3'
  1986. } else if (val == 3) {
  1987. return 'color4'
  1988. } else if (val == -2 || val == -3) {
  1989. return 'color5'
  1990. }
  1991. },
  1992. invoiceStas(val) {
  1993. if (val == -2) {
  1994. return '已冲红'
  1995. } else if (val == 0) {
  1996. return '未申请'
  1997. } else if (val == 1) {
  1998. return '已申请'
  1999. }
  2000. },
  2001. invoiceColor(val) {
  2002. if (val == -2) {
  2003. return 'color1'
  2004. } else if (val == 0) {
  2005. return 'color2'
  2006. } else if (val == 1) {
  2007. return 'color3'
  2008. }
  2009. },
  2010. applyClor(val) {
  2011. if (val == '已冲红') {
  2012. return 'color1'
  2013. } else if (val == '未申请') {
  2014. return 'color2'
  2015. } else if (val == '已申请' || val == '已开具') {
  2016. return 'color3'
  2017. }
  2018. },
  2019. orderPay(val) {
  2020. if (val == -3) {
  2021. return '已退款'
  2022. } else if (val == -2) {
  2023. return '已取消'
  2024. } else if (val == -1) {
  2025. return '逻辑删除'
  2026. } else if (val == 0) {
  2027. return '未支付'
  2028. } else if (val == 1) {
  2029. return '已支付'
  2030. }
  2031. },
  2032. orderColr(val) {
  2033. if (val == -3) {
  2034. return 'color1'
  2035. } else if (val == -2) {
  2036. return 'color1'
  2037. } else if (val == -1) {
  2038. return 'color1'
  2039. } else if (val == 0) {
  2040. return 'color2'
  2041. } else if (val == 1) {
  2042. return 'color3'
  2043. } else if (val == 2) {
  2044. return 'color3'
  2045. }
  2046. },
  2047. orderWord(val) {
  2048. if (val == '已退款') {
  2049. return 'color1'
  2050. } else if (val == '已取消') {
  2051. return 'color2'
  2052. } else if (val == '逻辑删除') {
  2053. return 'color1'
  2054. } else if (val == '未支付') {
  2055. return 'color1'
  2056. } else if (val == '待付款') {
  2057. return 'color1'
  2058. } else if (val == '待付完') {
  2059. return 'color3'
  2060. } else if (val == '已支付') {
  2061. return 'color3'
  2062. }
  2063. }
  2064. }
  2065. }
  2066. </script>
  2067. <style lang="scss" scoped>
  2068. .no-online-dialog {
  2069. ::v-deep {
  2070. .el-dialog {
  2071. width: 520px !important;
  2072. .dialog-content {
  2073. text-align: left;
  2074. font-size: 15px;
  2075. }
  2076. .dialog-footer {
  2077. justify-content: center;
  2078. }
  2079. .dialog-footer-content {
  2080. .btn-confirm {
  2081. width: 150px;
  2082. height: 40px;
  2083. background: #36a3f7;
  2084. color: #fff;
  2085. border-radius: 8px;
  2086. border: none;
  2087. cursor: pointer;
  2088. }
  2089. }
  2090. }
  2091. }
  2092. }
  2093. .m-details {
  2094. margin: 50px auto;
  2095. width: 800px;
  2096. .infor-card {
  2097. .cont {
  2098. display: flex;
  2099. flex-direction: initial;
  2100. .tit {
  2101. width: 96px;
  2102. font-size: 16px;
  2103. font-weight: 700;
  2104. line-height: 40px;
  2105. margin-right: 50px;
  2106. color: #1e1e1e;
  2107. text-align: right;
  2108. }
  2109. .classfity {
  2110. width: 600px;
  2111. display: flex;
  2112. flex-direction: column;
  2113. justify-content: center;
  2114. font-size: 16px;
  2115. color: #333;
  2116. line-height: 40px;
  2117. .tips {
  2118. display: flex;
  2119. flex-direction: initial;
  2120. }
  2121. span {
  2122. display: flex;
  2123. align-items: center;
  2124. p:first-child {
  2125. min-width: 148px;
  2126. text-align: right;
  2127. margin-right: 30px;
  2128. align-self: flex-start;
  2129. }
  2130. i {
  2131. width: 70%;
  2132. }
  2133. .no-line {
  2134. color: #999;
  2135. }
  2136. .i-inpt {
  2137. width: 180px;
  2138. }
  2139. .i-btn {
  2140. margin-left: 10px;
  2141. }
  2142. }
  2143. .color1 {
  2144. color: #f4516c;
  2145. }
  2146. .color2 {
  2147. color: #ffb822;
  2148. }
  2149. .color3 {
  2150. color: #34bfa3;
  2151. }
  2152. .color4 {
  2153. color: #36a3f7;
  2154. }
  2155. .color5 {
  2156. color: #882bc9;
  2157. }
  2158. .color6 {
  2159. color: #b21f09;
  2160. }
  2161. .zeng {
  2162. color: #34bfa3;
  2163. }
  2164. .yuan {
  2165. font-size: 12px;
  2166. color: #999;
  2167. text-decoration: line-through;
  2168. }
  2169. .par-word {
  2170. padding-top: 20px;
  2171. padding-bottom: 10px;
  2172. }
  2173. .words {
  2174. float: left;
  2175. border: 1px solid #ccc;
  2176. padding: 6px 10px;
  2177. border-radius: 4px;
  2178. margin: 0 10px 10px 0;
  2179. p {
  2180. display: flex;
  2181. font-size: 14px;
  2182. line-height: 24px;
  2183. em {
  2184. min-width: max-content;
  2185. }
  2186. }
  2187. }
  2188. .shou {
  2189. li {
  2190. width: 100% !important;
  2191. }
  2192. }
  2193. .invoice-list {
  2194. background: #f5f5f5;
  2195. padding-left: 10px;
  2196. .top-words {
  2197. display: flex;
  2198. p {
  2199. width: 80%;
  2200. }
  2201. }
  2202. .code-blue {
  2203. color: #36a3f7;
  2204. cursor: pointer;
  2205. }
  2206. .invoice_state {
  2207. display: flex;
  2208. align-items: center;
  2209. .invoice_state_action {
  2210. margin-left: 10px;
  2211. padding: 2px 8px;
  2212. border-radius: 8px;
  2213. flex-direction: column;
  2214. border: 1px solid #e2e2e2;
  2215. background-color: rgba(255, 255, 255, 0.8);
  2216. cursor: pointer;
  2217. }
  2218. }
  2219. }
  2220. .invoice-list:not(:first-child) {
  2221. margin-top: 20px;
  2222. }
  2223. }
  2224. }
  2225. }
  2226. .bot-btn {
  2227. display: flex;
  2228. flex-direction: initial;
  2229. justify-content: center;
  2230. margin-top: 80px;
  2231. button {
  2232. // width: 110px;
  2233. height: 40px;
  2234. }
  2235. .ping-btn {
  2236. margin-left: 20px;
  2237. }
  2238. .shen-btn {
  2239. margin: 0 20px;
  2240. }
  2241. }
  2242. .sale-record {
  2243. .seal-item {
  2244. background: #f2f2f2;
  2245. font-size: 14px;
  2246. padding: 5px;
  2247. .s-label {
  2248. min-width: 86px !important;
  2249. }
  2250. .s-row {
  2251. line-height: 24px;
  2252. .delete-text {
  2253. width: 60px;
  2254. margin-left: 15px;
  2255. cursor: pointer;
  2256. }
  2257. }
  2258. }
  2259. .seal-item:not(:first-child) {
  2260. margin-top: 10px;
  2261. }
  2262. }
  2263. }
  2264. </style>