index.vue 138 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
  4. <el-table :data="tjsjdata" v-if="this.$auth.hasPermi('system:goodsPayment:bt')"
  5. style="width: 100%;margin-bottom: 30px;">
  6. <el-table-column prop="originalprice" label="成本金额" width="180">
  7. <template slot-scope="scope">
  8. <span style="color: red;">{{scope.row.originalprice}}</span>
  9. </template>
  10. </el-table-column>
  11. <el-table-column prop="salesprice" label="销售金额" width="180">
  12. <template slot-scope="scope">
  13. <span style="color: red;">{{scope.row.salesprice}}</span>
  14. </template>
  15. </el-table-column>
  16. <el-table-column prop="paidinprice" label="到手金额">
  17. <template slot-scope="scope">
  18. <span style="color: red;">{{scope.row.paidinprice}}</span>
  19. </template>
  20. </el-table-column>
  21. <el-table-column prop="fxlr" label="分销利润">
  22. <template slot-scope="scope">
  23. <span style="color: red;">{{scope.row.fxlr}}</span>
  24. </template>
  25. </el-table-column>
  26. <el-table-column prop="selfProfit" label="自营利润">
  27. <template slot-scope="scope">
  28. <span style="color: red;">{{scope.row.selfProfit}}</span>
  29. </template>
  30. </el-table-column>
  31. <el-table-column prop="lr" label="利润">
  32. <template slot-scope="scope">
  33. <span style="color: red;">{{scope.row.lr}}</span>
  34. </template>
  35. </el-table-column>
  36. <el-table-column prop="bplr" label="包赔利润">
  37. <template slot-scope="scope">
  38. <span style="color: red;">{{scope.row.bplr}}</span>
  39. </template>
  40. </el-table-column>
  41. <el-table-column prop="bplr1" label="多倍包赔利润">
  42. <template slot-scope="scope">
  43. <span style="color: red;">{{scope.row.bplr1}}</span>
  44. </template>
  45. </el-table-column>
  46. <el-table-column prop="allhandlingfee" label="手续费">
  47. <template slot-scope="scope">
  48. <span style="color: red;">{{scope.row.allhandlingfee}}</span>
  49. </template>
  50. </el-table-column>
  51. <el-table-column prop="totalPrice" label="付款总价">
  52. <template slot-scope="scope">
  53. <span style="color: red;">{{scope.row.totalPrice}}</span>
  54. </template>
  55. </el-table-column>
  56. </el-table>
  57. <el-table :data="tjsjdata1" v-if="isAdmin" style="width: 100%;margin-bottom: 30px;">
  58. <el-table-column prop="count" label="销量" width="200">
  59. <template slot-scope="scope">
  60. <span style="color: red;">{{scope.row.count}}</span>
  61. </template>
  62. </el-table-column>
  63. <el-table-column prop="original_price" label="成本金额" width="200">
  64. <template slot-scope="scope">
  65. <span style="color: red;">{{scope.row.original_price}}</span>
  66. </template>
  67. </el-table-column>
  68. <el-table-column v-if="isLirun" prop="platform_Profit" label="手续费" width="200">
  69. <template slot-scope="scope">
  70. <span style="color: red;">{{scope.row.platform_Profit}}</span>
  71. </template>
  72. </el-table-column>
  73. <el-table-column prop="sales_price" label="销售金额" width="200">
  74. <template slot-scope="scope">
  75. <span style="color: red;">{{scope.row.sales_price}}</span>
  76. </template>
  77. </el-table-column>
  78. <el-table-column v-if="isSelfProfit" prop="self_Profit" label="自营利润" width="200">
  79. <template slot-scope="scope">
  80. <span style="color: red;">{{scope.row.self_Profit}}</span>
  81. </template>
  82. </el-table-column>
  83. <el-table-column prop="lirun" label="利润" width="200">
  84. <template slot-scope="scope">
  85. <span style="color: red;">{{scope.row.lirun}}</span>
  86. </template>
  87. </el-table-column>
  88. </el-table>
  89. <el-form-item label="开始日期" prop="beginTime">
  90. <div class="block">
  91. <el-date-picker v-model="queryParams.beginTime" value-format="yyyy-MM-dd" type="date"
  92. placeholder="选择日期" style="width: 200px;">
  93. </el-date-picker>
  94. </div>
  95. </el-form-item>
  96. <el-form-item label="结束日期" prop="endTime">
  97. <div class="block">
  98. <el-date-picker v-model="queryParams.endTime" type="date" value-format="yyyy-MM-dd"
  99. placeholder="选择日期" style="width: 200px;">
  100. </el-date-picker>
  101. </div>
  102. </el-form-item>
  103. <el-form-item label="商品名称" prop="goodsName">
  104. <el-input v-model="queryParams.goodsName" style="width: 200px;" placeholder="请输入商品名称" clearable
  105. @keyup.enter.native="handleQuery" />
  106. </el-form-item>
  107. <el-form-item label="所属游戏" prop="gameId">
  108. <el-select v-model="queryParams.gameId" clearable placeholder="请选择游戏">
  109. <el-option v-for="(item,index) in gameList" :key="item.id" :label="item.gameName" :value="item.id">
  110. </el-option>
  111. </el-select>
  112. </el-form-item>
  113. <el-form-item label="商品编号" prop="goodsId">
  114. <el-input v-model="queryParams.goodsId" style="width: 200px;" placeholder="请输入商品编号" clearable
  115. @keyup.enter.native="handleQuery" />
  116. </el-form-item>
  117. <el-form-item label="游戏账号" prop="gameAccount">
  118. <el-input v-model="queryParams.gameAccount" style="width: 200px;" placeholder="请输入游戏账号" clearable
  119. @keyup.enter.native="handleQuery" />
  120. </el-form-item>
  121. <el-form-item label="分销编号" prop="channelId" v-if="this.$auth.hasPermi('system:channelId:list')">
  122. <el-input v-model="queryParams.channelId" style="width: 200px;" placeholder="请输入分销编号" clearable
  123. @keyup.enter.native="handleQuery" />
  124. </el-form-item>
  125. <el-form-item label="状态" prop="paymentStatus">
  126. <el-select v-model="queryParams.paymentStatus" style="width: 200px" clearable placeholder="请选择付款状态">
  127. <el-option v-for="(item,index) in options1" :label="item.label" :value="item.value">
  128. </el-option>
  129. </el-select>
  130. </el-form-item>
  131. <el-form-item label="售后状态" prop="aftermarketStatus">
  132. <el-select v-model="queryParams.aftermarketStatus" style="width: 200px" clearable placeholder="请选择售后状态">
  133. <el-option v-for="(item,index) in stoptions" :label="item.label" :value="item.value">
  134. </el-option>
  135. </el-select>
  136. </el-form-item>
  137. <el-form-item v-if="bpLr3" label="付款方式" prop="paymentMethod">
  138. <el-select v-model="queryParams.paymentMethod" style="width: 200px" clearable placeholder="请选择付款状方式">
  139. <el-option v-for="(item,index) in options12" :label="item.label" :value="item.value">
  140. </el-option>
  141. </el-select>
  142. </el-form-item>
  143. <el-form-item v-if="bpLr3" label="销售渠道" prop="distributionChannel">
  144. <el-select v-model="queryParams.distributionChannel" style="width: 200px" clearable
  145. placeholder="请选择销售渠道">
  146. <el-option v-for="(item,index) in dict.type.game_platform_mapping" :label="item.label"
  147. :value="item.value">
  148. </el-option>
  149. </el-select>
  150. </el-form-item>
  151. <el-form-item label="店铺名称" prop="shopName" v-if="this.$auth.hasPermi('system:shopName:list')">
  152. <el-autocomplete class="inline-input" v-model="queryParams.shopName" :fetch-suggestions="querySearch"
  153. placeholder="请输入店铺名称" @select="handleSelect" :trigger-on-focus="false"></el-autocomplete>
  154. </el-form-item>
  155. <el-form-item v-show="bpLr3" label="多倍包赔" prop="isMultiple">
  156. <el-select v-model="queryParams.isMultiple" style="width: 200px" clearable placeholder="请选择多倍包赔">
  157. <el-option v-for="(item,index) in options2" :label="item.label" :value="item.value">
  158. </el-option>
  159. </el-select>
  160. </el-form-item>
  161. <el-form-item v-show="bpLr3" label="普通包赔" prop="isSecurity">
  162. <el-select v-model="queryParams.isSecurity" style="width: 200px" clearable placeholder="请选择普通包赔">
  163. <el-option v-for="(item,index) in options10" :label="item.label" :value="item.value">
  164. </el-option>
  165. </el-select>
  166. </el-form-item>
  167. <el-form-item v-show="bpLr3" label="是否分期" prop="byStages">
  168. <el-select v-model="queryParams.byStages" style="width: 200px" clearable placeholder="请选择是否分期">
  169. <el-option v-for="(item,index) in options10" :label="item.label" :value="item.value">
  170. </el-option>
  171. </el-select>
  172. </el-form-item>
  173. <el-form-item>
  174. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索
  175. </el-button>
  176. <el-button style="margin-left: 20px;" icon="el-icon-refresh" size="mini" @click="resetQuery">重置
  177. </el-button>
  178. <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
  179. v-hasPermi="['system:goodsPayment:export']">导出
  180. </el-button>
  181. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics"
  182. v-hasPermi="['system:goodsPayment:tongji']">渠道统计
  183. </el-button>
  184. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics1"
  185. v-hasPermi="['system:goodsPayment:tongji']">卖号统计
  186. </el-button>
  187. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics2"
  188. v-hasPermi="['system:goodsPayment:tongji']">号商卖号
  189. </el-button>
  190. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics3"
  191. v-hasPermi="['system:goodsPayment:tongji']">游戏统计
  192. </el-button>
  193. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics4"
  194. v-hasPermi="['system:goodsPayment:tongji']">渠道卖号
  195. </el-button>
  196. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics5"
  197. v-hasPermi="['system:goodsPayment:tongji']">利润统计
  198. </el-button>
  199. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics6"
  200. v-hasPermi="['system:goodsPayment:tongji']">提号率
  201. </el-button>
  202. <el-button type="danger" plain icon="el-icon-share" size="mini" @click="handleStatistics7"
  203. v-hasPermi="['system:money:shouhou']">售后订单
  204. </el-button>
  205. </el-form-item>
  206. </el-form>
  207. <el-row :gutter="10" class="mb8">
  208. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  209. </el-row>
  210. <el-table :row-class-name="tableRowClassName" border :data="tableData" style="width: 100%" row-key="goodsId">
  211. <el-table-column prop="id" label="订单编号">
  212. </el-table-column>
  213. <el-table-column prop="createTime" show-overflow-tooltip align="center" width="110px" height="20px"
  214. label="订单时间">
  215. </el-table-column>
  216. <el-table-column prop="deptName" label="部门">
  217. </el-table-column>
  218. <el-table-column prop="shopName" label="店铺">
  219. </el-table-column>
  220. <el-table-column label="游戏名称" align="center" prop="gameName">
  221. </el-table-column>
  222. <el-table-column prop="goodsId" label="商品编号">
  223. </el-table-column>
  224. <el-table-column prop="gameAccount" label="游戏账号">
  225. </el-table-column>
  226. <el-table-column prop="goodsName" label="商品名称" show-overflow-tooltip align="center" width="110px"
  227. height="20px">
  228. </el-table-column>
  229. <el-table-column v-if="bpLr3" prop="distributionChannel" key="distributionChannel" label="销售渠道">
  230. <template slot-scope="scope">
  231. <dict-tag :options="dict.type.game_platform_mapping" :value="scope.row.distributionChannel" />
  232. </template>
  233. </el-table-column>
  234. <el-table-column v-if="bpLr5" prop="distributionChannel" key="distributionChannel" label="销售渠道">
  235. <template slot-scope="scope">
  236. <span v-if="scope.row.distributionChannel=='taohaowan'">淘号玩</span>
  237. <span
  238. v-if="scope.row.distributionChannel!='taohaowan'&&scope.row.distributionChannel!=null&&scope.row.distributionChannel!=''">淘号玩店铺</span>
  239. <span v-if="scope.row.distributionChannel==null||scope.row.distributionChannel==''"></span>
  240. </template>
  241. </el-table-column>
  242. <el-table-column v-if="bpLr3" key="channelId" prop="channelId" label="分销编号">
  243. </el-table-column>
  244. <el-table-column v-if="bpLr1" key="originalPrice" prop="originalPrice" label="成本价">
  245. </el-table-column>
  246. <el-table-column prop="salesPrice" label="销售价">
  247. </el-table-column>
  248. <el-table-column v-if="bpLr3" key="paidinPrice" prop="paidinPrice" label="到手金额">
  249. </el-table-column>
  250. <el-table-column prop="gameName" v-if="columns[3].visible" label="游戏名称">
  251. </el-table-column>
  252. <el-table-column prop="goodsName" v-if="columns[4].visible" show-overflow-tooltip height="20px"
  253. label="商品名称">
  254. </el-table-column>
  255. <el-table-column prop="settlementPrice" label="结算价格">
  256. </el-table-column>
  257. <el-table-column v-if="bpLr3" key="fxProfit" prop="fxProfit" label="分销利润">
  258. </el-table-column>
  259. <el-table-column v-if="this.$auth.hasPermi('system:goodsPayment:zy')" key="selfProfit" prop="selfProfit"
  260. width="110px" label="自营利润">
  261. </el-table-column>
  262. <el-table-column v-if="bpLr3" key="platformProfit" prop="platformProfit" label="手续费">
  263. </el-table-column>
  264. <el-table-column v-if="bpLr3" key="securityPrice" prop="securityPrice" label="普通包赔">
  265. </el-table-column>
  266. <el-table-column v-if="bpLr3" key="multiplePrice" prop="multiplePrice" label="多倍包赔">
  267. </el-table-column>
  268. <el-table-column v-if="bpLr3" key="handlingfee" prop="handlingfee" width="110px" label="手续费(线上)">
  269. </el-table-column>
  270. <el-table-column v-if="bpLr3" key="totalPrice" prop="totalPrice" label="总价">
  271. <template slot-scope="scope">
  272. <el-tooltip class="item" effect="dark" content="总价=到手金额+手续费+包赔价格" placement="top-start">
  273. <span>{{scope.row.totalPrice}}</span>
  274. </el-tooltip>
  275. </template>
  276. </el-table-column>
  277. <el-table-column v-if="bpLr3" key="byStages" prop="byStages" label="分期购买">
  278. <template slot-scope="scope">
  279. <span v-if="scope.row.byStages=='by_stages_0'">分期客服-辉提</span>
  280. <span v-if="scope.row.byStages=='by_stages_1'">分期客服-苗提</span>
  281. <span v-if="scope.row.byStages=='by_stages_2'">没购买分期</span>
  282. </template>
  283. </el-table-column>
  284. <el-table-column v-if="!this.$auth.hasPermi('system:goodsPayment:wbhs')||bpLr6" key="paymentVoucher"
  285. prop="paymentVoucher" label="付款凭证">
  286. <template slot-scope="scope">
  287. <span style="color:blue;cursor: pointer"
  288. v-if="scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentVoucher!=null&&bpLr5"
  289. @click="openFkpz(scope.row)">已上传</span>
  290. <span style="color:blue;cursor: pointer" v-if="scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentVoucher!=null&&bpLr3"
  291. @click="openFkpz(scope.row)">已上传</span>
  292. </template>
  293. </el-table-column>
  294. <el-table-column prop="paymentStatus" label="状态">
  295. <template slot-scope="scope">
  296. <span v-if="scope.row.paymentStatus=='Y'">已付款</span>
  297. <span v-if="scope.row.paymentStatus=='S'">结算已入账</span>
  298. <span v-if="scope.row.paymentStatus=='TS'">已退款</span>
  299. <span v-if="scope.row.paymentStatus=='T'">退款审核中</span>
  300. <span v-if="scope.row.paymentStatus=='SH'">结算审核中</span>
  301. <span style="color: blue;cursor: pointer;" @click="ybh(scope.row)"
  302. v-if="scope.row.paymentStatus=='DH'&&!bpLr3&&scope.row.distributionChannel=='taohaowan'">已驳回</span>
  303. <span
  304. v-if="scope.row.paymentStatus=='DH'&&!bpLr3&&scope.row.distributionChannel!='taohaowan'">已驳回</span>
  305. <span style="color: blue;cursor: pointer;" @click="ybh(scope.row)"
  306. v-if="scope.row.paymentStatus=='DH'&&bpLr3">已驳回</span>
  307. </template>
  308. </el-table-column>
  309. <el-table-column prop="afterorderStatus" label="售后订单状态">
  310. <template slot-scope="scope">
  311. <span v-if="scope.row.afterorderStatus=='0' || scope.row.afterorderStatus == null">处理中</span>
  312. <span v-if="scope.row.afterorderStatus=='1'">售后已退款</span>
  313. <span v-if="scope.row.afterorderStatus=='2'">售后已解决</span>
  314. </template>
  315. </el-table-column>
  316. <!--<el-table-column prop="aftermarketStatus" label="售后状态">-->
  317. <!--<template slot-scope="scope">-->
  318. <!--<span v-if="scope.row.aftermarketStatus=='0'">处理中</span>-->
  319. <!--<span v-if="scope.row.aftermarketStatus=='1'">处理失败</span>-->
  320. <!--<span v-if="scope.row.aftermarketStatus=='2'">处理成功</span>-->
  321. <!--<span v-if="scope.row.aftermarketStatus=='3'">售后已退款</span>-->
  322. <!--<span v-if="scope.row.aftermarketStatus=='4'">售后已还号</span>-->
  323. <!--<span v-if="scope.row.aftermarketStatus==null">正常</span>-->
  324. <!--</template>-->
  325. <!--</el-table-column>-->
  326. <el-table-column v-if="bpLr3" key="paymentMethod" prop="paymentMethod" label="付款方式">
  327. <template slot-scope="scope">
  328. <span v-if="scope.row.paymentMethod=='pay_type_4'">线下支付</span>
  329. <span v-if="scope.row.paymentMethod=='pay_type_0'">微信</span>
  330. <span v-if="scope.row.paymentMethod=='pay_type_1'">支付宝</span>
  331. </template>
  332. </el-table-column>
  333. <el-table-column prop="createBy" v-if="columns[5].visible" label="创建者">
  334. </el-table-column>
  335. <el-table-column prop="remark" v-if="columns[6].visible" label="备注">
  336. </el-table-column>
  337. <el-table-column v-if="!this.$auth.hasPermi('system:goodsPayment:wbhs')||bpLr6" label="上传凭证" align="center"
  338. class-name="small-padding fixed-width">
  339. <template slot-scope="scope">
  340. <el-button style="color: red;" size="mini"
  341. v-if="scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&bpLr3"
  342. type="text" icon="el-icon-upload" @click="handleUpdate3(scope.row)">上传凭证
  343. </el-button>
  344. <el-button style="color: red;" size="mini"
  345. v-if="scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&bpLr5&&scope.row.distributionChannel=='taohaowan'"
  346. type="text" icon="el-icon-upload" @click="handleUpdate3(scope.row)">上传凭证
  347. </el-button>
  348. </template>
  349. </el-table-column>
  350. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:nbhs')&&!bpLr6" width="300px"
  351. align="center" class-name="small-padding fixed-width">
  352. <template slot-scope="scope">
  353. <div>
  354. <el-button size="small" type="primary"
  355. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'||scope.row.distributionChannel==null||scope.row.distributionChannel==''"
  356. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  357. @click="handleUpdate1(scope.row)">编辑
  358. </el-button>
  359. <el-button size="small" type="success"
  360. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  361. @click="handleUpdate2(scope.row)">结算
  362. </el-button>
  363. <el-button size="small" type="danger"
  364. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'"
  365. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  366. @click="handleUpdate4(scope.row)">退款
  367. </el-button>
  368. <el-button size="small" type="warning"
  369. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'"
  370. @click="handleUpdate5(scope.row)"
  371. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  372. </el-button>
  373. </div>
  374. </template>
  375. </el-table-column>
  376. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:zy')&&!bpLr6" width="300px"
  377. align="center" class-name="small-padding fixed-width">
  378. <template slot-scope="scope">
  379. <div>
  380. <el-button size="small" type="primary"
  381. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  382. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  383. @click="handleUpdate1(scope.row)">编辑
  384. </el-button>
  385. <el-button size="small" type="success"
  386. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  387. @click="handleUpdate2(scope.row)">结算
  388. </el-button>
  389. <el-button size="small" type="danger"
  390. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  391. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  392. @click="handleUpdate4(scope.row)">退款
  393. </el-button>
  394. <el-button size="small" type="warning"
  395. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'"
  396. @click="handleUpdate5(scope.row)"
  397. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  398. </el-button>
  399. </div>
  400. </template>
  401. </el-table-column>
  402. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:wbhs')&&!bpLr6" width="300px"
  403. align="center" class-name="small-padding fixed-width">
  404. <template slot-scope="scope">
  405. <div>
  406. <el-button size="small" type="success"
  407. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  408. @click="handleUpdate2(scope.row)">结算
  409. </el-button>
  410. </div>
  411. </template>
  412. </el-table-column>
  413. <el-table-column label="操作" v-if="bpLr6" width="300px" align="center"
  414. class-name="small-padding fixed-width">
  415. <template slot-scope="scope">
  416. <div style="line-height: 10px;">
  417. <el-button size="small" type="primary"
  418. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  419. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  420. @click="handleUpdate1(scope.row)">编辑
  421. </el-button>
  422. <el-button size="small" type="success"
  423. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  424. @click="handleUpdate2(scope.row)">结算
  425. </el-button>
  426. <el-button size="small" type="danger"
  427. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  428. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  429. @click="handleUpdate4(scope.row)">退款
  430. </el-button>
  431. <el-button size="small" type="warning"
  432. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'"
  433. @click="handleUpdate5(scope.row)"
  434. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  435. </el-button>
  436. <el-button size="small" v-if="scope.row.paymentStatus!='TS'&&scope.row.aftermarketStatus==null" style="background-color: #edc57e;color:white;" @click="sqSh(scope.row)"
  437. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">订单售后
  438. </el-button>
  439. <el-button size="small" v-if="scope.row.paymentStatus!='TS'&&scope.row.aftermarketStatus!=null" style="background-color: #A52A2A;color:white;" @click="shXq(scope.row)"
  440. v-hasPermi="['system:money:shouhou']">售后详情
  441. </el-button>
  442. </div>
  443. </template>
  444. </el-table-column>
  445. </el-table>
  446. <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  447. @pagination="getList" />
  448. <!-- 编辑状态信息 -->
  449. <el-dialog v-if="open2" title="上传凭证" :visible.sync="open2" append-to-body width="1000px">
  450. <div style="padding: 10px;overflow: auto">
  451. <el-form ref="form1" :model="form1" :rules="rules" label-width="80px">
  452. <div>
  453. <p style="font-size:20px; color: red;">如果是申请结算请上传商品截图和付款截图,如果是退款请上传退款截图!</p>
  454. </div>
  455. <el-row>
  456. <el-col :span="12">
  457. <el-form-item label="凭证" prop="paymentVoucher">
  458. <div class="img_list">
  459. <div style="position: relative;width: 100px;height: 100px;"
  460. v-for="item in attach_list">
  461. <el-image @click="deletePicture(item.id)" style="width: 100px;height: 100px;"
  462. :src="nginx_pictures_path+item.url"></el-image>
  463. </div>
  464. </div>
  465. <el-upload ref="upload" :action="uploadImgUrl" list-type="picture-card"
  466. :before-upload="beforeAvatarUpload" :on-success="handleAvatarSuccess"
  467. :on-remove="handleRemove" :on-change="changeUpload" :show-file-list="true"
  468. accept="image/png, image/jpeg, application/pdf" :multiple="true" :headers="headers">
  469. </el-upload>
  470. </el-form-item>
  471. </el-col>
  472. </el-row>
  473. <el-row>
  474. <el-col :span="12">
  475. <el-form-item label="付款渠道" prop="paymentChannels">
  476. <el-input v-model="form1.paymentChannels"
  477. placeholder="如:微信(账号+姓名)、支付宝(账号+姓名)、某某银行(账号+姓名)" />
  478. </el-form-item>
  479. </el-col>
  480. </el-row>
  481. </el-form>
  482. </div>
  483. <div slot="footer" class="dialog-footer">
  484. <el-button type="primary" @click="submitForm2">确 定</el-button>
  485. <el-button @click="cancel">取 消</el-button>
  486. </div>
  487. </el-dialog>
  488. <!-- 编辑状态信息 -->
  489. <el-dialog v-if="open1" title="编辑信息" :visible.sync="open1" append-to-body width="1000px">
  490. <div style="padding: 10px;overflow: auto">
  491. <el-form ref="form1" :model="form1" :rules="rules1" label-width="80px">
  492. <el-row>
  493. <el-col :span="12">
  494. <el-form-item label="商品编号" prop="id">
  495. <el-input v-model="form1.id" disabled placeholder="请输入商品编号" />
  496. </el-form-item>
  497. </el-col>
  498. <el-col :span="12">
  499. <el-form-item label="商品名称" prop="goodsName">
  500. <el-input v-model="form1.goodsName" disabled placeholder="请输入商品名称" />
  501. </el-form-item>
  502. </el-col>
  503. <el-col :span="12">
  504. <el-form-item label="游戏账号" prop="gameAccount">
  505. <el-input v-model="form1.gameAccount" placeholder="请输入游戏账号" />
  506. </el-form-item>
  507. </el-col>
  508. <el-col :span="12">
  509. <el-form-item label="所属游戏" prop="gameId">
  510. <el-select v-model="form1.gameId" disabled @change="changeGameArea" style="width: 100%"
  511. filterable placeholder="请选择所属游戏">
  512. <el-option v-for="(item,index) in gameList" :key="item.id" :label="item.gameName"
  513. :value="item.id"></el-option>
  514. </el-select>
  515. </el-form-item>
  516. </el-col>
  517. <el-col :span="12">
  518. <el-form-item label="游戏大区" prop="gameareaValue">
  519. <el-input v-model="form1.gameareaValue" disabled placeholder="请输入游戏大区" />
  520. </el-form-item>
  521. </el-col>
  522. <el-col :span="12">
  523. <el-form-item
  524. v-if="form1.ranking!=''&&form1.ranking!=null&&form1.ranking!=undefined&&form1.ranking!='null'"
  525. label="排位情况" prop="ranking">
  526. <el-input v-if="form1.ranking=='ranking_1'" value="不可排位" disabled
  527. placeholder="请输入游戏大区" />
  528. <el-input v-if="form1.ranking=='ranking_2'" value="可排位" disabled
  529. placeholder="请输入游戏大区" />
  530. </el-form-item>
  531. </el-col>
  532. <el-col :span="12">
  533. <el-form-item label="实名情况" prop="identifiedName">
  534. <el-input v-if="form1.identifiedName=='identified_name_1'" value="可二次" disabled
  535. placeholder="请输入付款状态" />
  536. <el-input v-if="form1.identifiedName=='identified_name_3'" value="包人脸" disabled
  537. placeholder="请输入付款状态" />
  538. </el-form-item>
  539. </el-col>
  540. <el-col :span="12">
  541. <el-form-item label="号商" prop="shopName">
  542. <el-input v-model="form1.shopName" disabled placeholder="请输入号商" />
  543. </el-form-item>
  544. </el-col>
  545. <el-col :span="12">
  546. <el-form-item label="付款方式" prop="paymentMethod">
  547. <el-input v-if="form1.paymentMethod=='pay_type_0'" value="线上(微信)" disabled
  548. placeholder="请输入付款状态" />
  549. <el-input v-if="form1.paymentMethod=='pay_type_1'" value="线上(支付宝)" disabled
  550. placeholder="请输入付款状态" />
  551. <el-input v-if="form1.paymentMethod=='pay_type_4'" value="线下支付" disabled
  552. placeholder="请输入付款状态" />
  553. </el-form-item>
  554. </el-col>
  555. <el-col v-if="form1.paymentMethod!='pay_type_4'" :span="12">
  556. <el-form-item label="手续费" prop="handlingfee">
  557. <el-input v-model="form1.handlingfee" disabled placeholder="线上手续费" />
  558. </el-form-item>
  559. </el-col>
  560. <el-col :span="12">
  561. <el-form-item label="销售价格" prop="price">
  562. <el-input v-model="form1.price" disabled placeholder="请输入销售价格" />
  563. </el-form-item>
  564. </el-col>
  565. <el-col :span="12" v-if="form1.discountedPrice!=0">
  566. <el-form-item label="折扣价格" prop="price">
  567. <el-input v-model="form1.discountedPrice" disabled placeholder="请输入折扣价格" />
  568. </el-form-item>
  569. </el-col>
  570. <el-col :span="12">
  571. <el-form-item v-show="xx" label="到手价格" prop="paidinPrice">
  572. <el-input @input="jg" v-model="form1.paidinPrice" placeholder="请输入到手价格" />
  573. </el-form-item>
  574. </el-col>
  575. <el-col :span="12">
  576. <el-form-item v-show="xs" label="到手价格" prop="paidinPrice">
  577. <el-input @input="jg" v-model="form1.paidinPrice" disabled placeholder="请输入到手价格" />
  578. </el-form-item>
  579. </el-col>
  580. <el-col :span="12">
  581. <el-form-item v-show="cbj" label="成本价" prop="originalPrice">
  582. <!-- <el-input v-if="Number(form1.originalPrice)!=0" v-model="form1.originalPrice" disabled placeholder="请输入成本价" /> -->
  583. <el-input v-model="form1.originalPrice" placeholder="请输入成本价" />
  584. </el-form-item>
  585. </el-col>
  586. <el-col :span="12">
  587. <el-form-item v-show="xx&&!bpLr7" label="销售渠道" prop="distributionChannel">
  588. <el-cascader style="width: 100%" placeholder="请选择销售渠道"
  589. v-model="form1.distributionChannel" :options="xsOptions" @change="handleChange">
  590. </el-cascader>
  591. </el-form-item>
  592. <el-form-item v-show="bpLr7" label="销售渠道" prop="distributionChannel">
  593. <el-cascader style="width: 100%" disabled placeholder="请选择销售渠道"
  594. v-model="form1.distributionChannel" :options="xsOptions" @change="handleChange">
  595. </el-cascader>
  596. </el-form-item>
  597. </el-col>
  598. <el-col :span="12">
  599. <el-form-item v-show="xs&&!bpLr7" label="销售渠道" prop="distributionChannel">
  600. <el-cascader style="width: 100%" placeholder="请选择销售渠道" disabled
  601. v-model="form1.distributionChannel" :options="xsOptions" @change="handleChange">
  602. </el-cascader>
  603. </el-form-item>
  604. </el-col>
  605. <el-col :span="12">
  606. <el-form-item v-show="channelid" label="分销编号" prop="channelId">
  607. <el-input v-model="form1.channelId" placeholder="请输入分销编号" />
  608. </el-form-item>
  609. </el-col>
  610. </el-row>
  611. <el-row>
  612. <el-col :span="12">
  613. <el-form-item v-if="bp" label="普通包赔" prop="isSecurity">
  614. <el-select style="width: 100%;" placeholder="请选择是否购买普通包赔" @change="bpp"
  615. v-model="form1.isSecurity" clearable>
  616. <el-option v-for="(item,index) in options8" :label="item.label" :value="item.value">
  617. </el-option>
  618. </el-select>
  619. </el-form-item>
  620. <el-form-item v-if="xs" label="普通包赔" prop="isSecurity">
  621. <el-select style="width: 100%;" disabled placeholder="请选择是否购买普通包赔" @change="bpp"
  622. v-model="form1.isSecurity" clearable>
  623. <el-option v-for="(item,index) in options8" :label="item.label" :value="item.value">
  624. </el-option>
  625. </el-select>
  626. </el-form-item>
  627. </el-col>
  628. <el-col v-show="bp1" :span="12">
  629. <el-form-item label="包赔费率" prop="securityRate">
  630. <el-input v-model="form1.securityRate" disabled placeholder="请输入包赔费率" />
  631. </el-form-item>
  632. </el-col>
  633. <el-col v-show="bp1" :span="12">
  634. <el-form-item label="包赔费用" prop="securityPrice">
  635. <el-input v-model="form1.securityPrice" disabled placeholder="到手价格乘以包赔费率" />
  636. </el-form-item>
  637. </el-col>
  638. </el-row>
  639. <el-row>
  640. <el-col :span="12">
  641. <el-form-item v-show="dbbp" label="多倍包赔" prop="isMultiple">
  642. <el-select style="width: 100%;" placeholder="请选择是否购买多倍包赔" @change="bpp1"
  643. v-model="form1.isMultiple" clearable>
  644. <el-option v-for="(item,index) in options6" :label="item.label" :value="item.value">
  645. </el-option>
  646. </el-select>
  647. </el-form-item>
  648. </el-col>
  649. <el-col :span="12">
  650. <el-form-item v-show="xs" label="多倍包赔" prop="isMultiple">
  651. <el-select style="width: 100%;" disabled placeholder="请选择是否购买多倍包赔" @change="bpp1"
  652. v-model="form1.isMultiple" clearable>
  653. <el-option v-for="(item,index) in options6" :label="item.label" :value="item.value">
  654. </el-option>
  655. </el-select>
  656. </el-form-item>
  657. </el-col>
  658. <el-col v-show="bp2" :span="12">
  659. <el-form-item label="多倍包赔费率" prop="securityRate1">
  660. <el-input v-model="form1.securityRate1" disabled placeholder="请输入多倍包赔费率" />
  661. </el-form-item>
  662. </el-col>
  663. <el-col v-show="bp2" :span="12">
  664. <el-form-item label="多倍包赔费用" prop="multiplePrice">
  665. <el-input v-model="form1.multiplePrice" disabled placeholder="到手价格乘以包赔费率" />
  666. </el-form-item>
  667. </el-col>
  668. </el-row>
  669. <el-row>
  670. <el-col :span="12">
  671. <!-- v-show="dbbp1" -->
  672. <el-form-item label="分期购买" prop="byStages">
  673. <el-select style="width: 100%;" placeholder="请选择分期购买" v-model="form1.byStages"
  674. clearable>
  675. <el-option v-for="(item,index) in options9" :label="item.label" :value="item.value">
  676. </el-option>
  677. </el-select>
  678. </el-form-item>
  679. </el-col>
  680. </el-row>
  681. </el-form>
  682. </div>
  683. <div slot="footer" class="dialog-footer">
  684. <el-button type="primary" @click="submitForm1">确 定</el-button>
  685. <el-button @click="cancel">取 消</el-button>
  686. </div>
  687. </el-dialog>
  688. <!-- 付款凭证信息 -->
  689. <el-dialog v-if="openFkpz1" title="付款凭证" :visible.sync="openFkpz1" append-to-body width="800px">
  690. <div style="display: flex;flex-wrap: wrap;">
  691. <div style="padding: 10px;overflow: auto;" v-for="(item,index) in carouselImg" :key="item.id">
  692. <el-image style="width: 200px;height: 200px;" :preview-src-list="srcList"
  693. :src="pictureServerPath+item">
  694. </el-image>
  695. </div>
  696. </div>
  697. <div slot="footer" class="dialog-footer">
  698. <el-button type="primary" @click="openFkpz1=false">确 定</el-button>
  699. <el-button @click="openFkpz1=false">取 消</el-button>
  700. </div>
  701. </el-dialog>
  702. <!-- 渠道销售数量统计 -->
  703. <el-dialog v-if="tongji" title="渠道销售数量统计" :visible.sync="tongji" append-to-body :width="tjwidth">
  704. <div>
  705. <el-select style="width: 20%" clearable v-model="queryParamsTj1.type" placeholder="请选择日期类型">
  706. <el-option v-for="item in bboptions" :key="item.value" :label="item.label" :value="item.value">
  707. </el-option>
  708. </el-select>
  709. <el-select style="width: 20%" filterable clearable v-model="queryParamsTj1.gameId" placeholder="请选择游戏">
  710. <el-option v-for="item in gameList" :key="item.id" :label="item.gameName" :value="item.id">
  711. </el-option>
  712. </el-select>
  713. <el-select style="width: 20%" filterable clearable v-model="queryParamsTj1.shopId" placeholder="请选择店铺">
  714. <el-option v-for="item in deptOptions" :key="item.value" :label="item.label" :value="item.value">
  715. </el-option>
  716. </el-select>
  717. <el-button style="margin-left: 5%;" type="primary" icon="el-icon-search" size="mini"
  718. @click="handleStatistics">搜索
  719. </el-button>
  720. <el-table :data="tableData1" show-summary style="width: 100%">
  721. <el-table-column prop="channel" label="渠道" width="100">
  722. <template slot-scope="scope">
  723. <span v-if="scope.row.channel">{{scope.row.channel}}</span>
  724. <span v-else>未选渠道</span>
  725. </template>
  726. </el-table-column>
  727. <el-table-column :prop="item.value" :label="item.label" width="90" v-for="item in timeList">
  728. </el-table-column>
  729. </el-table>
  730. </div>
  731. <div slot="footer" class="dialog-footer">
  732. <el-button @click="tongji=false">关闭</el-button>
  733. </div>
  734. </el-dialog>
  735. <el-dialog v-if="tongji1" title="卖号情况统计" :before-close="canceltj" :visible.sync="tongji1" width="500px">
  736. <div>
  737. <el-form>
  738. <el-form-item label="店铺名称" prop="shopName">
  739. <el-select filterable v-model="queryParamsTj.shopId" style="width: 35%" clearable
  740. placeholder="请选择店铺名称">
  741. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  742. </el-option>
  743. </el-select>
  744. <el-select style="width: 20%" v-model="queryParamsTj.type" @change="selectDateType"
  745. placeholder="请选择日期类型">
  746. <el-option v-for="item in bboptions" :key="item.value" :label="item.label"
  747. :value="item.value">
  748. </el-option>
  749. </el-select>
  750. </el-form-item>
  751. <el-form-item label="日期间隔" prop="shopName">
  752. <el-date-picker v-if="Dtype" v-model="value1" type="daterange" value-format="yyyy-MM-dd"
  753. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  754. </el-date-picker>
  755. <el-date-picker v-if="Mtype" v-model="value2" type="monthrange" value-format="yyyy-MM"
  756. range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份">
  757. </el-date-picker>
  758. </el-form-item>
  759. <el-form-item>
  760. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics1">搜索
  761. </el-button>
  762. </el-form-item>
  763. </el-form>
  764. <el-table :data="tableData2" style="width: 100%">
  765. <el-table-column prop="create_time" label="日期" width="100">
  766. </el-table-column>
  767. <el-table-column prop="count" label="数量" width="100">
  768. </el-table-column>
  769. <el-table-column prop="sales_price" label="金额" width="100">
  770. </el-table-column>
  771. <el-table-column label="操作" width="100">
  772. <template slot-scope="scope">
  773. <span style="color: blue;cursor: pointer;" @click="handleDetails(scope.row)">明细</span>
  774. </template>
  775. </el-table-column>
  776. </el-table>
  777. <pagination v-show="total1>0" layout="prev, pager, next" :total="total1"
  778. :page.sync="queryParamsTj.pageNum" :limit.sync="queryParamsTj.pageSize"
  779. @pagination="handleStatistics1" />
  780. </div>
  781. <div slot="footer" class="dialog-footer">
  782. <el-button @click="canceltj">关闭</el-button>
  783. </div>
  784. </el-dialog>
  785. <el-dialog v-if="tongji2" title="卖号情况明细" :visible.sync="tongji2" append-to-body width="600px">
  786. <div>
  787. <el-table :data="tableData3" show-summary style="width: 100%">
  788. <el-table-column prop="create_time" label="日期" width="100">
  789. </el-table-column>
  790. <el-table-column prop="game_name" label="游戏" width="100">
  791. </el-table-column>
  792. <el-table-column prop="count" label="数量" width="100">
  793. </el-table-column>
  794. <el-table-column prop="sales_price" label="金额" width="100">
  795. </el-table-column>
  796. <el-table-column label="操作" width="100">
  797. <template slot-scope="scope">
  798. <span style="color: blue;cursor: pointer;"
  799. @click="handleDetailsGameName(scope.row)">明细</span>
  800. </template>
  801. </el-table-column>
  802. </el-table>
  803. <pagination v-show="total2>0" layout="prev, pager, next" :total="total2"
  804. :page.sync="queryParamsTj.pageNum" :limit.sync="queryParamsTj.pageSize"
  805. @pagination="handleDetailsFy" />
  806. </div>
  807. <div slot="footer" class="dialog-footer">
  808. <el-button @click="tongji2=false">关闭</el-button>
  809. </div>
  810. </el-dialog>
  811. <el-dialog v-if="tongji3" title="游戏明细" :visible.sync="tongji3" append-to-body width="600px">
  812. <div>
  813. <el-table :data="tableData4" show-summary :summary-method="getSummaries" style="width: 100%">
  814. <el-table-column prop="create_time" label="日期" width="100">
  815. </el-table-column>
  816. <el-table-column prop="shop_name" label="店铺" width="100">
  817. </el-table-column>
  818. <el-table-column prop="game_name" label="游戏" width="100">
  819. </el-table-column>
  820. <el-table-column prop="count" label="数量" width="100">
  821. </el-table-column>
  822. <el-table-column prop="sales_price" label="金额" width="100">
  823. </el-table-column>
  824. </el-table>
  825. <pagination v-show="total3>0" layout="prev, pager, next" :total="total3"
  826. :page.sync="queryParamsTj.pageNum" :limit.sync="queryParamsTj.pageSize"
  827. @pagination="handleDetailsGameNameFy" />
  828. </div>
  829. <div slot="footer" class="dialog-footer">
  830. <el-button @click="tongji3=false">关闭</el-button>
  831. </div>
  832. </el-dialog>
  833. <el-dialog v-if="tongji4" title="号商卖号统计" :before-close="canceltj" :visible.sync="tongji4" append-to-body
  834. width="600px">
  835. <div>
  836. <el-form>
  837. <el-form-item label="游戏" prop="shopName">
  838. <el-select v-model="queryParamsHstj.gameName" clearable style="width: 50%" filterable
  839. placeholder="请选择所属游戏">
  840. <el-option v-for="(item,index) in gameList" :key="item.id" :label="item.gameName"
  841. :value="item.gameName"></el-option>
  842. </el-select>
  843. </el-form-item>
  844. <el-form-item label="店铺名称" prop="shopName">
  845. <el-select filterable v-model="queryParamsHstj.shopId" style="width: 35%" clearable
  846. placeholder="请选择店铺名称">
  847. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  848. </el-option>
  849. </el-select>
  850. <el-select style="width: 20%" v-model="queryParamsHstj.type" @change="selectDateType"
  851. placeholder="请选择日期类型">
  852. <el-option v-for="item in bboptions" :key="item.value" :label="item.label"
  853. :value="item.value">
  854. </el-option>
  855. </el-select>
  856. </el-form-item>
  857. <el-form-item label="日期间隔" prop="shopName">
  858. <el-date-picker v-if="Dtype" v-model="value1" type="daterange" value-format="yyyy-MM-dd"
  859. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  860. </el-date-picker>
  861. <el-date-picker v-if="Mtype" v-model="value2" type="monthrange" value-format="yyyy-MM"
  862. range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份">
  863. </el-date-picker>
  864. </el-form-item>
  865. <el-form-item>
  866. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics2">搜索
  867. </el-button>
  868. </el-form-item>
  869. </el-form>
  870. <el-table :data="tableData5" show-summary :summary-method="getSummaries" style="width: 100%">
  871. <el-table-column prop="create_time" label="日期" width="100">
  872. </el-table-column>
  873. <el-table-column prop="shop_name" label="店铺" width="100">
  874. </el-table-column>
  875. <el-table-column prop="count" label="数量" width="100">
  876. </el-table-column>
  877. <el-table-column prop="sales_price" label="金额" width="100">
  878. </el-table-column>
  879. <el-table-column label="操作" width="100">
  880. <template slot-scope="scope">
  881. <span style="color: blue;cursor: pointer;" @click="handleDetailshstj(scope.row)">明细</span>
  882. </template>
  883. </el-table-column>
  884. </el-table>
  885. <pagination v-show="total4>0" layout="sizes, prev, pager, next" :total="total4"
  886. :page.sync="queryParamsHstj.pageNum" :limit.sync="queryParamsHstj.pageSize"
  887. @pagination="handleDetailsHsFy" />
  888. </div>
  889. <div slot="footer" class="dialog-footer">
  890. <el-button @click="canceltj">关闭</el-button>
  891. </div>
  892. </el-dialog>
  893. <el-dialog v-if="tongji6" :before-close="canceltj" title="游戏卖号统计" :visible.sync="tongji6" append-to-body
  894. width="500px">
  895. <div>
  896. <el-form>
  897. <el-form-item label="店铺名称" prop="shopName">
  898. <el-select filterable v-model="queryParamsYxtj.shopId" style="width: 35%" clearable
  899. placeholder="请选择店铺名称">
  900. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  901. </el-option>
  902. </el-select>
  903. <el-select style="width: 20%" v-model="queryParamsYxtj.type" @change="selectDateType"
  904. placeholder="请选择日期类型">
  905. <el-option v-for="item in bboptions" :key="item.value" :label="item.label"
  906. :value="item.value">
  907. </el-option>
  908. </el-select>
  909. </el-form-item>
  910. <el-form-item label="渠道" prop="shopName">
  911. <el-select v-model="queryParamsYxtj.channel" clearable style="width: 50%" filterable
  912. placeholder="请选择渠道">
  913. <el-option v-for="(item,index) in dict.type.game_platform_mapping" :key="item.value"
  914. :label="item.label" :value="item.label"></el-option>
  915. </el-select>
  916. </el-form-item>
  917. <el-form-item label="日期间隔" prop="shopName">
  918. <el-date-picker v-if="Dtype" v-model="value1" type="daterange" value-format="yyyy-MM-dd"
  919. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  920. </el-date-picker>
  921. <el-date-picker v-if="Mtype" v-model="value2" type="monthrange" value-format="yyyy-MM"
  922. range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份">
  923. </el-date-picker>
  924. </el-form-item>
  925. <el-form-item>
  926. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics3">搜索
  927. </el-button>
  928. </el-form-item>
  929. </el-form>
  930. <el-table :data="tableData7" show-summary :summary-method="getSummaries" style="width: 100%">
  931. <el-table-column prop="game_name" label="游戏" width="100">
  932. </el-table-column>
  933. <el-table-column prop="count" label="数量" width="100">
  934. </el-table-column>
  935. <el-table-column prop="sales_price" label="金额" width="100">
  936. </el-table-column>
  937. <el-table-column label="操作" width="100">
  938. <template slot-scope="scope">
  939. <span style="color: blue;cursor: pointer;" @click="handleDetailsYxtj(scope.row)">明细</span>
  940. </template>
  941. </el-table-column>
  942. </el-table>
  943. <pagination v-show="total5>0" layout="prev, pager, next" :total="total5"
  944. :page.sync="queryParamsYxtj.pageNum" :limit.sync="queryParamsYxtj.pageSize"
  945. @pagination="handleStatistics3" />
  946. </div>
  947. <div slot="footer" class="dialog-footer">
  948. <el-button @click="canceltj">关闭</el-button>
  949. </div>
  950. </el-dialog>
  951. <el-dialog v-if="tongji8" :before-close="canceltj" title="渠道卖号统计" :visible.sync="tongji8" append-to-body
  952. width="500px">
  953. <div>
  954. <el-form>
  955. <el-form-item label="游戏" prop="shopName">
  956. <el-select v-model="queryParamsQdtj.gameName" clearable style="width: 50%" filterable
  957. placeholder="请选择所属游戏">
  958. <el-option v-for="(item,index) in gameList" :key="item.id" :label="item.gameName"
  959. :value="item.gameName"></el-option>
  960. </el-select>
  961. </el-form-item>
  962. <el-form-item label="店铺名称" prop="shopName">
  963. <el-select filterable v-model="queryParamsQdtj.shopId" style="width: 35%" clearable
  964. placeholder="请选择店铺名称">
  965. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  966. </el-option>
  967. </el-select>
  968. <el-select style="width: 20%" v-model="queryParamsQdtj.type" @change="selectDateType"
  969. placeholder="请选择日期类型">
  970. <el-option v-for="item in bboptions" :key="item.value" :label="item.label"
  971. :value="item.value">
  972. </el-option>
  973. </el-select>
  974. </el-form-item>
  975. <el-form-item label="日期间隔" prop="shopName">
  976. <el-date-picker v-if="Dtype" v-model="value1" type="daterange" value-format="yyyy-MM-dd"
  977. range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
  978. </el-date-picker>
  979. <el-date-picker v-if="Mtype" v-model="value2" type="monthrange" value-format="yyyy-MM"
  980. range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份">
  981. </el-date-picker>
  982. </el-form-item>
  983. <el-form-item>
  984. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics4">搜索
  985. </el-button>
  986. </el-form-item>
  987. </el-form>
  988. <el-table :data="tableData9" show-summary :summary-method="getSummaries" style="width: 100%">
  989. <el-table-column prop="distribution_channel" label="渠道" width="100">
  990. </el-table-column>
  991. <el-table-column prop="count" label="数量" width="100">
  992. </el-table-column>
  993. <el-table-column prop="sales_price" label="金额" width="100">
  994. </el-table-column>
  995. <el-table-column label="操作" width="100">
  996. <template slot-scope="scope">
  997. <span style="color: blue;cursor: pointer;" @click="handleDetailsQdtj(scope.row)">明细</span>
  998. </template>
  999. </el-table-column>
  1000. </el-table>
  1001. <pagination v-show="total6>0" layout="sizes, prev, pager, next" :total="total6"
  1002. :page.sync="queryParamsQdtj.pageNum" :limit.sync="queryParamsQdtj.pageSize"
  1003. @pagination="handleStatistics4" />
  1004. </div>
  1005. <div slot="footer" class="dialog-footer">
  1006. <el-button @click="canceltj">关闭</el-button>
  1007. </div>
  1008. </el-dialog>
  1009. <el-dialog v-if="tongji9" title="渠道明细-游戏" :visible.sync="tongji9" append-to-body width="500px">
  1010. <div>
  1011. <el-table :data="tableData10" show-summary :summary-method="getSummaries" style="width: 100%">
  1012. <el-table-column prop="distribution_channel" label="渠道" width="100">
  1013. </el-table-column>
  1014. <el-table-column prop="game_name" label="游戏" width="100">
  1015. </el-table-column>
  1016. <el-table-column prop="count" label="数量" width="100">
  1017. </el-table-column>
  1018. <el-table-column prop="sales_price" label="金额" width="100">
  1019. </el-table-column>
  1020. <el-table-column label="操作" width="100">
  1021. <template slot-scope="scope">
  1022. <span style="color: blue;cursor: pointer;" @click="handleDetailsQdtj1(scope.row)">明细</span>
  1023. </template>
  1024. </el-table-column>
  1025. </el-table>
  1026. </div>
  1027. <div slot="footer" class="dialog-footer">
  1028. <el-button @click="tongji9=false">关闭</el-button>
  1029. </div>
  1030. </el-dialog>
  1031. <el-dialog v-if="tongji10" title="渠道明细-店铺" :visible.sync="tongji10" append-to-body width="500px">
  1032. <div>
  1033. <el-table :data="tableData11" show-summary :summary-method="getSummaries" style="width: 100%">
  1034. <el-table-column prop="distribution_channel" label="渠道" width="100">
  1035. </el-table-column>
  1036. <el-table-column prop="shop_name" label="店铺" width="100">
  1037. </el-table-column>
  1038. <el-table-column prop="game_name" label="游戏" width="100">
  1039. </el-table-column>
  1040. <el-table-column prop="count" label="数量" width="100">
  1041. </el-table-column>
  1042. <el-table-column prop="sales_price" label="金额" width="100">
  1043. </el-table-column>
  1044. </el-table>
  1045. </div>
  1046. <div slot="footer" class="dialog-footer">
  1047. <el-button @click="tongji10=false">关闭</el-button>
  1048. </div>
  1049. </el-dialog>
  1050. <el-dialog v-if="tongji7" title="游戏卖号统计" :visible.sync="tongji7" append-to-body width="500px">
  1051. <div>
  1052. <el-table :data="tableData8" show-summary style="width: 100%">
  1053. <el-table-column prop="create_time" label="日期" width="100">
  1054. </el-table-column>
  1055. <el-table-column prop="game_name" label="游戏" width="100">
  1056. </el-table-column>
  1057. <el-table-column prop="count" label="数量" width="100">
  1058. </el-table-column>
  1059. <el-table-column prop="sales_price" label="金额" width="100">
  1060. </el-table-column>
  1061. </el-table>
  1062. </div>
  1063. <div slot="footer" class="dialog-footer">
  1064. <el-button @click="tongji7=false">关闭</el-button>
  1065. </div>
  1066. </el-dialog>
  1067. <el-dialog v-if="tongji5" title="号商卖号统计(游戏)" :visible.sync="tongji5" append-to-body width="600px">
  1068. <div>
  1069. <el-form>
  1070. <el-row>
  1071. <el-col :span="24">
  1072. <el-form-item label="展示渠道" prop="goodsName">
  1073. <el-radio-group v-model="checkList" @change="handleDetailshstj1()">
  1074. <el-radio label="Y">是</el-radio>
  1075. <el-radio label="N">否</el-radio>
  1076. </el-radio-group>
  1077. </el-form-item>
  1078. </el-col>
  1079. </el-row>
  1080. </el-form>
  1081. <el-table :data="tableData6" show-summary :summary-method="getSummaries" style="width: 100%">
  1082. <el-table-column prop="create_time" label="日期" width="100">
  1083. </el-table-column>
  1084. <el-table-column prop="game_name" label="游戏" width="100">
  1085. </el-table-column>
  1086. <el-table-column prop="count" label="数量" width="100">
  1087. </el-table-column>
  1088. <el-table-column prop="sales_price" label="金额" width="100">
  1089. </el-table-column>
  1090. <el-table-column v-if="channelvisible" prop="distribution_channel" label="渠道" width="100">
  1091. </el-table-column>
  1092. <!-- <el-table-column label="合计" width="100">
  1093. <template slot-scope="scope">
  1094. <span></span>
  1095. </template>
  1096. </el-table-column> -->
  1097. </el-table>
  1098. <el-form v-if="channelvisible">
  1099. <el-row>
  1100. <el-col :span="24">
  1101. <el-form-item label="渠道统计" prop="goodsName">
  1102. <span style="margin-right: 10px;"
  1103. v-for="item in channelList"><span>{{item.label}}:{{item.value}}个</span></span>
  1104. </el-form-item>
  1105. </el-col>
  1106. </el-row>
  1107. </el-form>
  1108. </div>
  1109. <div slot="footer" class="dialog-footer">
  1110. <el-button @click="tongji5=false">关闭</el-button>
  1111. </div>
  1112. </el-dialog>
  1113. <!-- 驳回信息 -->
  1114. <el-dialog v-if="bhxx" title="驳回原因" :visible.sync="bhxx" append-to-body width="800px">
  1115. <div style="display: flex;flex-wrap: wrap;">
  1116. <div style="padding: 10px;overflow: auto;">
  1117. <p>{{bhyy}}</p>
  1118. </div>
  1119. </div>
  1120. </el-dialog>
  1121. <!-- 撤回信息 -->
  1122. <el-dialog v-if="chxx" title="撤回原因" :visible.sync="chxx" append-to-body width="800px">
  1123. <div style="display: flex;flex-wrap: wrap;">
  1124. <div style="padding: 10px;overflow: auto;">
  1125. <p>{{chyy}}</p>
  1126. </div>
  1127. </div>
  1128. </el-dialog>
  1129. <!-- 退款信息 -->
  1130. <el-dialog v-if="tuikuan" title="退款" :visible.sync="tuikuan" append-to-body width="800px">
  1131. <div style="display: flex;flex-wrap: wrap;">
  1132. <el-form ref="form" :model="form" :rules="rules">
  1133. <el-row>
  1134. <el-col :span="12">
  1135. <el-form-item label="退款原因" prop="remark">
  1136. <el-input style="width: 500px;" v-model="queryParams.remark" type="textarea" :rows="2"
  1137. placeholder="请输入退款原因" />
  1138. </el-form-item>
  1139. </el-col>
  1140. </el-row>
  1141. </el-form>
  1142. <el-form>
  1143. </el-form>
  1144. </div>
  1145. <div slot="footer" class="dialog-footer">
  1146. <el-button type="primary" @click="bh">确 定</el-button>
  1147. <el-button @click="tuikuan=false">取 消</el-button>
  1148. </div>
  1149. </el-dialog>
  1150. <el-dialog v-if="tongji11" :before-close="canceltj" title="利润统计" :visible.sync="tongji11" append-to-body
  1151. width="1000px">
  1152. <div>
  1153. <el-form>
  1154. <el-form-item label="店铺名称" prop="shopName">
  1155. <el-select filterable v-model="queryParamsLrtj.shopId" style="width: 35%" clearable
  1156. placeholder="请选择店铺名称">
  1157. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  1158. </el-option>
  1159. </el-select>
  1160. </el-form-item>
  1161. <el-form-item label="销售渠道" prop="distributionChannel">
  1162. <el-select v-model="queryParamsLrtj.distributionChannel" style="width: 200px" clearable
  1163. placeholder="请选择销售渠道">
  1164. <el-option v-for="(item,index) in dict.type.game_platform_mapping" :label="item.label"
  1165. :value="item.value">
  1166. </el-option>
  1167. </el-select>
  1168. </el-form-item>
  1169. <el-form-item label="日期间隔" prop="shopName">
  1170. <el-date-picker v-model="value1" type="daterange" value-format="yyyy-MM-dd" range-separator="至"
  1171. start-placeholder="开始日期" end-placeholder="结束日期">
  1172. </el-date-picker>
  1173. </el-form-item>
  1174. <el-form-item>
  1175. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics5">搜索
  1176. </el-button>
  1177. <span style="color: red;margin: 0 20px;">不包含退款数据</span>
  1178. </el-form-item>
  1179. </el-form>
  1180. <div class="">
  1181. <div class="lirunList">
  1182. <p> <span></span><span>自营成本价:{{lirunList.cbj}}</span> <span></span>
  1183. <span>自营销售额:{{lirunList.xsj}}</span><span>自营手续费:{{lirunList.zysxf}}</span>
  1184. </p>
  1185. <p> <span></span><span></span><span></span><span></span><span>自营差价率:{{lirunList.zycjl}}</span>
  1186. </p>
  1187. <p> <span></span><span>号商成本价:{{lirunList.hscbj}}</span><span></span><span>号商销售额:{{lirunList.hsxse}}</span><span>号商手续费:{{lirunList.hssxf}}</span>
  1188. </p>
  1189. <p> <span></span><span></span><span></span><span>商户销售额:{{lirunList.shxse}}</span><span>商户手续费:{{lirunList.shsxf}}</span>
  1190. </p>
  1191. <p> <span></span><span></span><span></span><span>代售销售额:{{lirunList.dsxse}}</span><span>代售手续费:{{lirunList.dssxf}}</span>
  1192. </p>
  1193. <p> <span></span><span></span><span></span><span></span><span>线上手续费:{{lirunList.xszfsxf}}</span>
  1194. </p>
  1195. <p> <span></span><span></span><span></span><span></span><span>普通包赔:{{lirunList.ptbp}}</span></p>
  1196. <p> <span></span><span></span><span></span><span></span><span>多倍包赔:{{lirunList.dbpp}}</span></p>
  1197. <p> <span></span><span></span><span></span><span></span><span>分销利润:{{lirunList.fxlr}}</span></p>
  1198. <p>
  1199. <span>合计</span>
  1200. <el-tooltip class="item" effect="dark" content="销售金额+分销利润" placement="top-start">
  1201. <span>到手金额:{{lirunList.dsj}}</span>
  1202. </el-tooltip>
  1203. <el-tooltip class="item" effect="dark" content="到手金额+普通包赔+多倍包赔+线上手续费" placement="top-start">
  1204. <span>付款总金额:{{lirunListtotalPrice}}</span>
  1205. </el-tooltip>
  1206. <span>销售金额:{{xsehj}}</span><span>总利润:{{sxfhj}}</span>
  1207. </p>
  1208. </div>
  1209. </div>
  1210. </div>
  1211. <div slot="footer" class="dialog-footer">
  1212. <el-button @click="canceltj">关闭</el-button>
  1213. </div>
  1214. </el-dialog>
  1215. <el-dialog v-if="tongji12" :before-close="canceltj" title="提号率" :visible.sync="tongji12" append-to-body
  1216. width="1000px">
  1217. <div>
  1218. <el-form>
  1219. <el-form-item label="店铺名称" prop="shopName">
  1220. <el-select filterable v-model="queryParamsThl.shopId" style="width: 35%" clearable
  1221. placeholder="请选择店铺名称">
  1222. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.value">
  1223. </el-option>
  1224. </el-select>
  1225. </el-form-item>
  1226. <el-form-item label="日期间隔" prop="shopName">
  1227. <el-date-picker v-model="value1" type="daterange" value-format="yyyy-MM-dd" range-separator="至"
  1228. start-placeholder="开始日期" end-placeholder="结束日期">
  1229. </el-date-picker>
  1230. </el-form-item>
  1231. <el-form-item>
  1232. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics6">搜索
  1233. </el-button>
  1234. </el-form-item>
  1235. </el-form>
  1236. <el-table :data="tableData12" show-summary :summary-method="getSummaries" style="width: 100%">
  1237. <el-table-column prop="failures" label="失败数量" width="100">
  1238. <template slot-scope="scope">
  1239. <span v-if="scope.row.failures==0">{{scope.row.failures}}</span>
  1240. <span v-if="scope.row.failures!=0" style="color: red;cursor: pointer; "
  1241. @click="goTjsb(scope.row)">{{scope.row.failures}}</span>
  1242. </template>
  1243. </el-table-column>
  1244. <el-table-column prop="success" label="成功数量" width="100">
  1245. </el-table-column>
  1246. <el-table-column prop="successlv" label="成功率" width="100">
  1247. <template slot-scope="scope">
  1248. <span v-if="scope.row.success==0&&scope.row.failures==0">0</span>
  1249. <span
  1250. v-else>{{Math.floor((Number(scope.row.success)/(Number(scope.row.success)+Number(scope.row.failures))) *100)+"%"}}</span>
  1251. </template>
  1252. </el-table-column>
  1253. <el-table-column prop="name" label="店铺" width="100">
  1254. </el-table-column>
  1255. </el-table>
  1256. </div>
  1257. <div slot="footer" class="dialog-footer">
  1258. <el-button @click="canceltj">关闭</el-button>
  1259. </div>
  1260. </el-dialog>
  1261. <el-dialog v-if="tongji13" :before-close="canceltj" title="售后订单" :visible.sync="tongji13" append-to-body
  1262. width="90%">
  1263. <div>
  1264. <el-form>
  1265. <el-form-item label="店铺名称" prop="shopName">
  1266. <el-select filterable v-model="queryParamsShdd.shopName" style="width: 35%" clearable
  1267. placeholder="请选择店铺名称">
  1268. <el-option v-for="(item,index) in deptOptions" :label="item.label" :value="item.label">
  1269. </el-option>
  1270. </el-select>
  1271. </el-form-item>
  1272. <el-form-item label="日期间隔" prop="shopName">
  1273. <el-date-picker v-model="value3" type="daterange" value-format="yyyy-MM-dd" range-separator="至"
  1274. start-placeholder="开始日期" end-placeholder="结束日期">
  1275. </el-date-picker>
  1276. </el-form-item>
  1277. <el-form-item label="售后状态" prop="aftermarketStatus">
  1278. <el-select v-model="queryParamsShdd.aftermarketStatus" style="width: 200px" clearable placeholder="请选择售后状态">
  1279. <el-option v-for="(item,index) in stoptions" :label="item.label" :value="item.value">
  1280. </el-option>
  1281. </el-select>
  1282. </el-form-item>
  1283. <el-form-item>
  1284. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleStatistics7">搜索
  1285. </el-button>
  1286. </el-form-item>
  1287. </el-form>
  1288. <el-table :data="tableData13" empty-text="暂无数据" style="width: 100%">
  1289. <el-table-column prop="createTime" show-overflow-tooltip align="center" width="110px" height="20px"
  1290. label="订单时间">
  1291. </el-table-column>
  1292. <el-table-column prop="deptName" label="部门">
  1293. </el-table-column>
  1294. <el-table-column prop="shopName" label="店铺">
  1295. </el-table-column>
  1296. <el-table-column label="游戏名称" align="center" prop="gameName">
  1297. </el-table-column>
  1298. <el-table-column prop="goodsId" label="商品编号">
  1299. </el-table-column>
  1300. <el-table-column prop="gameAccount" label="游戏账号">
  1301. </el-table-column>
  1302. <el-table-column prop="goodsName" label="商品名称" show-overflow-tooltip align="center" width="110px"
  1303. height="20px">
  1304. </el-table-column>
  1305. <el-table-column v-if="bpLr3" prop="distributionChannel" key="distributionChannel" label="销售渠道">
  1306. <template slot-scope="scope">
  1307. <dict-tag :options="dict.type.game_platform_mapping" :value="scope.row.distributionChannel" />
  1308. </template>
  1309. </el-table-column>
  1310. <el-table-column v-if="bpLr5" prop="distributionChannel" key="distributionChannel" label="销售渠道">
  1311. <template slot-scope="scope">
  1312. <span v-if="scope.row.distributionChannel=='taohaowan'">淘号玩</span>
  1313. <span
  1314. v-if="scope.row.distributionChannel!='taohaowan'&&scope.row.distributionChannel!=null&&scope.row.distributionChannel!=''">淘号玩店铺</span>
  1315. <span v-if="scope.row.distributionChannel==null||scope.row.distributionChannel==''"></span>
  1316. </template>
  1317. </el-table-column>
  1318. <el-table-column v-if="bpLr3" key="channelId" prop="channelId" label="分销编号">
  1319. </el-table-column>
  1320. <el-table-column v-if="bpLr1" key="originalPrice" prop="originalPrice" label="成本价">
  1321. </el-table-column>
  1322. <el-table-column prop="salesPrice" label="销售价">
  1323. </el-table-column>
  1324. <el-table-column v-if="bpLr3" key="paidinPrice" prop="paidinPrice" label="到手金额">
  1325. </el-table-column>
  1326. <el-table-column prop="gameName" v-if="columns[3].visible" label="游戏名称">
  1327. </el-table-column>
  1328. <el-table-column prop="goodsName" v-if="columns[4].visible" show-overflow-tooltip height="20px"
  1329. label="商品名称">
  1330. </el-table-column>
  1331. <el-table-column prop="settlementPrice" label="结算价格">
  1332. </el-table-column>
  1333. <el-table-column v-if="bpLr3" key="fxProfit" prop="fxProfit" label="分销利润">
  1334. </el-table-column>
  1335. <el-table-column v-if="this.$auth.hasPermi('system:goodsPayment:zy')" key="selfProfit" prop="selfProfit"
  1336. width="110px" label="自营利润">
  1337. </el-table-column>
  1338. <el-table-column v-if="bpLr3" key="platformProfit" prop="platformProfit" label="手续费">
  1339. </el-table-column>
  1340. <el-table-column v-if="bpLr3" key="securityPrice" prop="securityPrice" label="普通包赔">
  1341. </el-table-column>
  1342. <el-table-column v-if="bpLr3" key="multiplePrice" prop="multiplePrice" label="多倍包赔">
  1343. </el-table-column>
  1344. <el-table-column v-if="bpLr3" key="handlingfee" prop="handlingfee" width="110px" label="手续费(线上)">
  1345. </el-table-column>
  1346. <el-table-column v-if="bpLr3" key="totalPrice" prop="totalPrice" label="总价">
  1347. <template slot-scope="scope">
  1348. <el-tooltip class="item" effect="dark" content="总价=到手金额+手续费+包赔价格" placement="top-start">
  1349. <span>{{scope.row.totalPrice}}</span>
  1350. </el-tooltip>
  1351. </template>
  1352. </el-table-column>
  1353. <el-table-column v-if="bpLr3" key="byStages" prop="byStages" label="分期购买">
  1354. <template slot-scope="scope">
  1355. <span v-if="scope.row.byStages=='by_stages_0'">分期客服-辉提</span>
  1356. <span v-if="scope.row.byStages=='by_stages_1'">分期客服-苗提</span>
  1357. <span v-if="scope.row.byStages=='by_stages_2'">没购买分期</span>
  1358. </template>
  1359. </el-table-column>
  1360. <el-table-column v-if="!this.$auth.hasPermi('system:goodsPayment:wbhs')||bpLr6" key="paymentVoucher"
  1361. prop="paymentVoucher" label="付款凭证">
  1362. <template slot-scope="scope">
  1363. <span style="color:blue;cursor: pointer"
  1364. v-if="scope.row.paymentVoucher!=null&&bpLr5&&scope.row.distributionChannel=='taohaowan'"
  1365. @click="openFkpz(scope.row)">已上传</span>
  1366. <span style="color:blue;cursor: pointer" v-if="scope.row.paymentVoucher!=null&&bpLr3"
  1367. @click="openFkpz(scope.row)">已上传</span>
  1368. </template>
  1369. </el-table-column>
  1370. <el-table-column prop="paymentStatus" label="状态">
  1371. <template slot-scope="scope">
  1372. <span v-if="scope.row.paymentStatus=='Y'">已付款</span>
  1373. <span v-if="scope.row.paymentStatus=='S'">已入账</span>
  1374. <span v-if="scope.row.paymentStatus=='TS'">已退款</span>
  1375. <span v-if="scope.row.paymentStatus=='T'">退款审核中</span>
  1376. <span v-if="scope.row.paymentStatus=='SH'">结算中</span>
  1377. <span style="color: blue;cursor: pointer;" @click="ybh(scope.row)"
  1378. v-if="scope.row.paymentStatus=='DH'&&!bpLr3&&scope.row.distributionChannel=='taohaowan'">已驳回</span>
  1379. <span
  1380. v-if="scope.row.paymentStatus=='DH'&&!bpLr3&&scope.row.distributionChannel!='taohaowan'">已驳回</span>
  1381. <span style="color: blue;cursor: pointer;" @click="ybh(scope.row)"
  1382. v-if="scope.row.paymentStatus=='DH'&&bpLr3">已驳回</span>
  1383. </template>
  1384. </el-table-column>
  1385. <el-table-column prop="aftermarketStatus" label="售后状态">
  1386. <template slot-scope="scope">
  1387. <span v-if="scope.row.aftermarketStatus=='0'">处理中</span>
  1388. <span v-if="scope.row.aftermarketStatus=='1'">处理失败</span>
  1389. <span v-if="scope.row.aftermarketStatus=='2'">处理成功</span>
  1390. </template>
  1391. </el-table-column>
  1392. <el-table-column v-if="bpLr3" key="paymentMethod" prop="paymentMethod" label="付款方式">
  1393. <template slot-scope="scope">
  1394. <span v-if="scope.row.paymentMethod=='pay_type_4'">线下支付</span>
  1395. <span v-if="scope.row.paymentMethod=='pay_type_0'">微信</span>
  1396. <span v-if="scope.row.paymentMethod=='pay_type_1'">支付宝</span>
  1397. </template>
  1398. </el-table-column>
  1399. <el-table-column prop="createBy" v-if="columns[5].visible" label="创建者">
  1400. </el-table-column>
  1401. <el-table-column prop="remark" v-if="columns[6].visible" label="备注">
  1402. </el-table-column>
  1403. <el-table-column v-if="!this.$auth.hasPermi('system:goodsPayment:wbhs')||bpLr6" label="上传凭证" align="center"
  1404. class-name="small-padding fixed-width">
  1405. <template slot-scope="scope">
  1406. <el-button style="color: red;" size="mini"
  1407. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&bpLr3"
  1408. type="text" icon="el-icon-upload" @click="handleUpdate3(scope.row)">上传凭证
  1409. </el-button>
  1410. <el-button style="color: red;" size="mini"
  1411. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&bpLr5&&scope.row.distributionChannel=='taohaowan'"
  1412. type="text" icon="el-icon-upload" @click="handleUpdate3(scope.row)">上传凭证
  1413. </el-button>
  1414. </template>
  1415. </el-table-column>
  1416. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:nbhs')&&!bpLr6" width="300px"
  1417. align="center" class-name="small-padding fixed-width">
  1418. <template slot-scope="scope">
  1419. <div>
  1420. <el-button size="small" type="primary"
  1421. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'||scope.row.distributionChannel==null||scope.row.distributionChannel==''"
  1422. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1423. @click="handleUpdate1(scope.row)">编辑
  1424. </el-button>
  1425. <el-button size="small" type="success"
  1426. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1427. @click="handleUpdate2(scope.row)">结算
  1428. </el-button>
  1429. <el-button size="small" type="danger"
  1430. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'"
  1431. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1432. @click="handleUpdate4(scope.row)">退款
  1433. </el-button>
  1434. <el-button size="small" type="warning"
  1435. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'&&scope.row.distributionChannel=='taohaowan'"
  1436. @click="handleUpdate5(scope.row)"
  1437. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  1438. </el-button>
  1439. </div>
  1440. </template>
  1441. </el-table-column>
  1442. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:zy')&&!bpLr6" width="300px"
  1443. align="center" class-name="small-padding fixed-width">
  1444. <template slot-scope="scope">
  1445. <div>
  1446. <el-button size="small" type="primary"
  1447. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1448. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1449. @click="handleUpdate1(scope.row)">编辑
  1450. </el-button>
  1451. <el-button size="small" type="success"
  1452. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1453. @click="handleUpdate2(scope.row)">结算
  1454. </el-button>
  1455. <el-button size="small" type="danger"
  1456. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1457. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1458. @click="handleUpdate4(scope.row)">退款
  1459. </el-button>
  1460. <el-button size="small" type="warning"
  1461. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'"
  1462. @click="handleUpdate5(scope.row)"
  1463. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  1464. </el-button>
  1465. </div>
  1466. </template>
  1467. </el-table-column>
  1468. <el-table-column label="操作" v-if="this.$auth.hasPermi('system:goodsPayment:wbhs')&&!bpLr6" width="300px"
  1469. align="center" class-name="small-padding fixed-width">
  1470. <template slot-scope="scope">
  1471. <div>
  1472. <el-button size="small" type="success"
  1473. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1474. @click="handleUpdate2(scope.row)">结算
  1475. </el-button>
  1476. </div>
  1477. </template>
  1478. </el-table-column>
  1479. <el-table-column label="操作" v-if="bpLr6" width="300px" align="center"
  1480. class-name="small-padding fixed-width">
  1481. <template slot-scope="scope">
  1482. <div style="line-height: 10px;">
  1483. <el-button size="small" type="primary"
  1484. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1485. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1486. @click="handleUpdate1(scope.row)">编辑
  1487. </el-button>
  1488. <el-button size="small" type="success"
  1489. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1490. @click="handleUpdate2(scope.row)">结算
  1491. </el-button>
  1492. <el-button size="small" type="danger"
  1493. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentStatus!='S'"
  1494. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']"
  1495. @click="handleUpdate4(scope.row)">退款
  1496. </el-button>
  1497. <el-button size="small" type="warning"
  1498. v-if="scope.row.paymentStatus!='T'&&scope.row.paymentStatus!='TS'&&scope.row.paymentStatus!='SH'&&scope.row.paymentMethod=='pay_type_4'&&scope.row.paymentStatus!='S'"
  1499. @click="handleUpdate5(scope.row)"
  1500. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">撤销
  1501. </el-button>
  1502. <!-- <el-button size="small" style="background-color: #c77cc7;color:white;" @click="goQdlb(scope.row)"
  1503. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">渠道详情
  1504. </el-button> -->
  1505. <!-- <el-button size="small" style="background-color: #edc57e;color:white;" @click="sqSh(scope.row)"
  1506. v-hasPermi="['system:goodsPayment:zy','system:goodsPayment:nbhs']">订单售后
  1507. </el-button> -->
  1508. <el-button size="small" style="background-color: #A52A2A;color:white;" @click="shXq(scope.row)"
  1509. v-hasPermi="['system:money:shouhou']">售后详情
  1510. </el-button>
  1511. </div>
  1512. </template>
  1513. </el-table-column>
  1514. </el-table>
  1515. <pagination v-show="total13>0" layout="sizes, prev, pager, next" :total="total13"
  1516. :page.sync="queryParamsShdd.pageNum" :limit.sync="queryParamsShdd.pageSize"
  1517. @pagination="handleStatistics7" />
  1518. </div>
  1519. <div slot="footer" class="dialog-footer">
  1520. <el-button @click="canceltj">关闭</el-button>
  1521. </div>
  1522. </el-dialog>
  1523. <!-- 详情状态信息 -->
  1524. <el-dialog v-if="open" title="商品付款明细信息" :visible.sync="open" append-to-body width="1000px">
  1525. <div style="padding: 10px;overflow: auto">
  1526. <el-form ref="form" :model="form" label-width="80px">
  1527. <el-row>
  1528. <el-col :span="12">
  1529. <el-form-item label="创建时间" prop="gameId">
  1530. <el-input v-model="form.createTime" disabled />
  1531. </el-form-item>
  1532. </el-col>
  1533. <el-col :span="12">
  1534. <el-form-item label="商品编号" prop="idNo">
  1535. <el-input v-model="form.goodsId" disabled />
  1536. </el-form-item>
  1537. </el-col>
  1538. <el-col :span="12">
  1539. <el-form-item label="商品名称" prop="idNo">
  1540. <el-input v-model="form.goodsName" disabled />
  1541. </el-form-item>
  1542. </el-col>
  1543. <el-col :span="12">
  1544. <el-form-item label="游戏名称" prop="accountId">
  1545. <el-input v-model="form.gameName" disabled />
  1546. </el-form-item>
  1547. </el-col>
  1548. <el-col :span="12">
  1549. <el-form-item label="销售价格" prop="idNo">
  1550. <el-input v-model="form.salesPrice" disabled />
  1551. </el-form-item>
  1552. </el-col>
  1553. <el-col :span="12">
  1554. <el-form-item label="实际价格" prop="idNo">
  1555. <el-input v-model="form.paidinPrice" disabled />
  1556. </el-form-item>
  1557. </el-col>
  1558. <el-col :span="12">
  1559. <el-form-item label="费率" prop="partnerHandlingFee">
  1560. <el-input v-model="form.partnerHandlingFee" disabled />
  1561. </el-form-item>
  1562. </el-col>
  1563. <el-col :span="12">
  1564. <el-form-item label="结算价格" prop="settlementPrice">
  1565. <el-input v-model="form.settlementPrice" disabled />
  1566. </el-form-item>
  1567. </el-col>
  1568. <el-col :span="12">
  1569. <el-form-item label="利润" prop="platformProfit">
  1570. <el-input v-model="form.platformProfit" disabled />
  1571. </el-form-item>
  1572. </el-col>
  1573. <el-col :span="12">
  1574. <el-form-item label="号商" prop="wxNo">
  1575. <el-input v-model="form.shopName" disabled />
  1576. </el-form-item>
  1577. </el-col>
  1578. <el-col :span="12">
  1579. <el-form-item label="状态 " prop="remark">
  1580. <el-input value="已售出" disabled />
  1581. </el-form-item>
  1582. </el-col>
  1583. <el-col :span="12">
  1584. <el-form-item v-show="channelid" label="渠道id" prop="channelId">
  1585. <el-input v-model="form.channelId" disabled placeholder="请输入渠道id" />
  1586. </el-form-item>
  1587. </el-col>
  1588. <el-col :span="12" v-show="bp">
  1589. <el-form-item label="是否包赔" prop="isSecurity">
  1590. <el-select style="width: 100%;" v-if="form.isSecurity=='Y'" placeholder="请选择是否包赔"
  1591. disabled v-model="form.isSecurity" clearable>
  1592. <el-option label="是" value="Y"></el-option>
  1593. </el-select>
  1594. <el-select style="width: 100%;" v-if="form.isSecurity=='N'" placeholder="请选择是否包赔"
  1595. disabled v-model="form.isSecurity" clearable>
  1596. <el-option label="否" value="N"></el-option>
  1597. </el-select>
  1598. </el-form-item>
  1599. </el-col>
  1600. </el-row>
  1601. </el-form>
  1602. </div>
  1603. </el-dialog>
  1604. <!-- 添加手机号信息对话框 -->
  1605. <el-dialog v-if="zhsh" :title="shTitle" :visible.sync="zhsh" append-to-body width="1000px">
  1606. <div style="padding: 10px;overflow: auto">
  1607. <el-form ref="zhshform" :model="zhshform" label-width="80px">
  1608. <el-row>
  1609. <el-col :span="12">
  1610. <el-form-item label="店铺名称" prop="shopId">
  1611. <el-select filterable disabled v-model="zhshform.shopId" style="width: 100%" clearable
  1612. placeholder="请选择店铺名称">
  1613. <el-option v-for="(item,index) in deptOptions" :label="item.label"
  1614. :value="item.value">
  1615. </el-option>
  1616. </el-select>
  1617. </el-form-item>
  1618. </el-col>
  1619. <el-col :span="12">
  1620. <el-form-item label="售后类型" prop="aftermarketType">
  1621. <el-select v-model="zhshform.aftermarketType" style="width: 100%" clearable
  1622. placeholder="请选择售后类型">
  1623. <el-option v-for="(item,index) in dict.type.after_sales_type" :label="item.label"
  1624. :value="item.value">
  1625. </el-option>
  1626. </el-select>
  1627. </el-form-item>
  1628. </el-col>
  1629. <el-col :span="12">
  1630. <el-form-item label="找回日期" prop="retrieveDate">
  1631. <el-date-picker style="width: 100%" value-format="yyyy-MM-dd"
  1632. v-model="zhshform.retrieveDate" type="date" placeholder="请选择找回日期">
  1633. </el-date-picker>
  1634. </el-form-item>
  1635. </el-col>
  1636. <el-col :span="12" v-if="shTitle=='售后详情'">
  1637. <el-form-item label="处理日期" prop="transactTime">
  1638. <el-date-picker style="width: 100%" value-format="yyyy-MM-dd"
  1639. v-model="zhshform.transactTime" type="date" placeholder="请选择处理日期">
  1640. </el-date-picker>
  1641. </el-form-item>
  1642. </el-col>
  1643. <el-col :span="12">
  1644. <el-form-item label="买家姓名" prop="name">
  1645. <el-input v-model="zhshform.name" placeholder="请输入买家姓名" />
  1646. </el-form-item>
  1647. </el-col>
  1648. <el-col :span="12">
  1649. <el-form-item label="身份证" prop="idNo">
  1650. <el-input v-model="zhshform.idNo" placeholder="请输入身份证" />
  1651. </el-form-item>
  1652. </el-col>
  1653. <el-col :span="12">
  1654. <el-form-item label="买家联系方式" prop="mobile">
  1655. <el-input v-model="zhshform.mobile" placeholder="请输入买家联系方式" />
  1656. </el-form-item>
  1657. </el-col>
  1658. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')&&zhshform.mainIndustry=='account_source_2'">
  1659. <el-form-item label="买家收款账户" prop="buyersAccounts">
  1660. <el-input v-model="zhshform.buyersAccounts" placeholder="请输入买家收款账户" />
  1661. </el-form-item>
  1662. </el-col>
  1663. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')&&zhshform.mainIndustry=='account_source_2'">
  1664. <el-form-item label="外部回款账户" prop="externalAccounts">
  1665. <el-input v-model="zhshform.externalAccounts" placeholder="请输入外部回款账户" />
  1666. </el-form-item>
  1667. </el-col>
  1668. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')&&zhshform.mainIndustry=='account_source_2'">
  1669. <el-form-item label="外部回款金额" prop="externalAmount">
  1670. <el-input v-model="zhshform.externalAmount" placeholder="请输入外部回款金额" />
  1671. </el-form-item>
  1672. </el-col>
  1673. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')&&zhshform.mainIndustry=='account_source_2'">
  1674. <el-form-item label="退款金额" prop="refundAmount">
  1675. <el-input v-model="zhshform.refundAmount" placeholder="请输入退款金额" />
  1676. </el-form-item>
  1677. </el-col>
  1678. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')&&zhshform.mainIndustry=='account_source_2'">
  1679. <el-form-item label="支出利润" prop="profitExpenses">
  1680. <el-input v-model="zhshform.profitExpenses" placeholder="请输入支出利润" />
  1681. </el-form-item>
  1682. </el-col>
  1683. <el-col :span="12">
  1684. <el-form-item label="销售价格" prop="acquirePrice">
  1685. <el-input disabled v-model="zhshform.acquirePrice" placeholder="请输入销售价格" />
  1686. </el-form-item>
  1687. </el-col>
  1688. <el-col :span="12">
  1689. <el-form-item label="所属游戏" prop="gameId">
  1690. <el-select disabled style="width: 100%" v-model="zhshform.gameId" placeholder="请选择所属游戏">
  1691. <el-option v-for="(item,index) in gameList" :key="item.id" :label="item.gameName"
  1692. :value="item.id"></el-option>
  1693. </el-select>
  1694. </el-form-item>
  1695. </el-col>
  1696. <el-col :span="12">
  1697. <el-form-item label="游戏账号" prop="gameAccount">
  1698. <el-input disabled v-model="zhshform.gameAccount" placeholder="请输入游戏账号" />
  1699. </el-form-item>
  1700. </el-col>
  1701. <el-col :span="12">
  1702. <el-form-item label="包赔服务" prop="service">
  1703. <el-select style="width: 100%" v-model="zhshform.service" placeholder="请选择包赔服务商">
  1704. <el-option v-for="item in bpfwsoptions" :key="item.value" :label="item.label"
  1705. :value="item.value">
  1706. </el-option>
  1707. </el-select>
  1708. </el-form-item>
  1709. </el-col>
  1710. <el-col :span="12" v-if="this.$auth.hasPermi('system:money:shouhou')">
  1711. <el-form-item label="状态" prop="status">
  1712. <el-select style="width: 100%" v-model="zhshform.status" placeholder="请选择状态">
  1713. <el-option v-for="item in stoptions" :key="item.value" :label="item.label"
  1714. :value="item.value">
  1715. </el-option>
  1716. </el-select>
  1717. </el-form-item>
  1718. </el-col>
  1719. <el-col :span="12">
  1720. <el-form-item label="备注" prop="remark">
  1721. <el-input v-model="zhshform.remark" placeholder="请输入备注" />
  1722. </el-form-item>
  1723. </el-col>
  1724. </el-row>
  1725. <el-row>
  1726. <el-col :span="12">
  1727. <el-form-item label="收款凭证" prop="credentials">
  1728. <div class="img_list">
  1729. <div style="position: relative;">
  1730. <span style="color: red;" v-if="zhshform.credentials==null">无凭证</span>
  1731. <image-preview style="margin-right: 10px;" v-else
  1732. :src="'https://static.taohaowan.com/'+zhshform.credentials" :width="100" :height="100" />
  1733. </div>
  1734. </div>
  1735. <el-upload ref="upload" :action="uploadImgUrl" list-type="picture-card"
  1736. :before-upload="beforeAvatarUpload" :on-success="handleAvatarSuccess1"
  1737. :on-remove="handleRemove" :on-change="changeUpload" :show-file-list="true"
  1738. accept="image/png, image/jpeg, application/pdf" :headers="headers">
  1739. </el-upload>
  1740. </el-form-item>
  1741. </el-col>
  1742. <el-col :span="12">
  1743. <el-form-item label="退款凭证" prop="refundEvidence">
  1744. <div class="img_list">
  1745. <div style="position: relative;">
  1746. <span style="color: red;" v-if="zhshform.refundEvidence==null">无凭证</span>
  1747. <image-preview style="margin-right: 10px;" v-else
  1748. :src="'https://static.taohaowan.com/'+zhshform.refundEvidence" :width="100" :height="100" />
  1749. </div>
  1750. </div>
  1751. <el-upload ref="upload" :action="uploadImgUrl" list-type="picture-card"
  1752. :before-upload="beforeAvatarUpload" :on-success="handleAvatarSuccess1"
  1753. :on-remove="handleRemove" :on-change="changeUpload1" :show-file-list="true"
  1754. accept="image/png, image/jpeg, application/pdf" :headers="headers">
  1755. </el-upload>
  1756. </el-form-item>
  1757. </el-col>
  1758. </el-row>
  1759. <el-row>
  1760. <el-col :span="24" v-if="zhshform.aftermarketType=='after_sales_type_0'">
  1761. <el-form-item label="售后信息" prop="retrieveMessage">
  1762. <editor v-model="zhshform.retrieveMessage" :min-height="192" />
  1763. </el-form-item>
  1764. </el-col>
  1765. </el-row>
  1766. </el-form>
  1767. </div>
  1768. <div slot="footer" class="dialog-footer">
  1769. <el-button type="primary" v-if="shTitle=='售后信息'" @click="submitFormzhsh">确 定</el-button>
  1770. <!-- <el-button type="primary" v-if="shTitle=='售后详情'" @click="editFormzhsh">修 改</el-button> -->
  1771. <el-button @click="cancelzhsh">取 消</el-button>
  1772. </div>
  1773. </el-dialog>
  1774. </div>
  1775. </template>
  1776. <script>
  1777. import {
  1778. getSuccessRate,
  1779. getSysDeptInfo,
  1780. edit,
  1781. getDeptInfo,
  1782. getStatistics,
  1783. getquiryStatistics,
  1784. getquiryHandlerStatistics,
  1785. getquiryGameStatistics,
  1786. getquiryChannelStatistics,
  1787. getquiryLirunStatistics,
  1788. goodsPayment,
  1789. updatepartnerlist,
  1790. getInitGoodsManager,
  1791. getPaymentInfo,
  1792. getGoodsInfo,
  1793. updateOriginalPrice,
  1794. updatePic,
  1795. updateProductCode,
  1796. getTBusGoodsPaymentSum,
  1797. applyForSettlement,
  1798. getTBusShopInfo,
  1799. revoke,
  1800. queryTBusShop,
  1801. quiryShopProfitStatistics,
  1802. getpayment,
  1803. getInfo,
  1804. updateStatus
  1805. } from "@/api/data/goodsPayment";
  1806. import {
  1807. add,
  1808. upData
  1809. } from "@/api/data/retrieveDetails";
  1810. import {
  1811. updateTefund,
  1812. } from "@/api/data/settlement";
  1813. import Cookies from 'js-cookie';
  1814. import {
  1815. getToken
  1816. } from "@/utils/auth";
  1817. import {
  1818. getDicts
  1819. } from "../../../api/system/dict/data";
  1820. export default {
  1821. dicts: ['game_platform_mapping', 'after_sales_type'],
  1822. data() {
  1823. return {
  1824. userName:'',
  1825. zhsh: false,
  1826. isAdmin: false,
  1827. isLirun: false,
  1828. isSelfProfit: false,
  1829. xsOptions: [{
  1830. value: 'zichu',
  1831. label: '自出',
  1832. children: [],
  1833. }, {
  1834. value: 'fenxiao',
  1835. label: '分销',
  1836. children: [],
  1837. }],
  1838. uploadImgUrl: process.env.VUE_APP_BASE_API + "/file/upload", // 上传的图片服务器地址
  1839. headers: {
  1840. Authorization: "Bearer " + getToken(),
  1841. },
  1842. // electronicDataList: [],
  1843. // 表单参数
  1844. form: {
  1845. electronicDataList: [],
  1846. // electronicDataList: '',
  1847. gamePicture: [],
  1848. //创建一个游戏属性数值
  1849. arrayLIst: []
  1850. },
  1851. // 统计
  1852. tjsjdata: [{
  1853. originalprice: 0,
  1854. salesprice: 0,
  1855. paidinprice: 0,
  1856. fxlr: 0,
  1857. lr: 0,
  1858. bplr: 0,
  1859. bplr1: 0,
  1860. totalPrice: 0,
  1861. allhandlingfee: 0,
  1862. }],
  1863. tjsjdata1: [],
  1864. allPrice: 0,
  1865. dbbp: false,
  1866. dbbp1: false,
  1867. bp1: false,
  1868. bp2: false,
  1869. //店铺名称
  1870. restaurants: [],
  1871. options11: [],
  1872. deptOptions: [],
  1873. deptOptions1: [],
  1874. // 筛选
  1875. // activeNames: ['1'],
  1876. //驳回
  1877. bhxx: false,
  1878. chxx: false,
  1879. ch: false,
  1880. tuikuan: false,
  1881. bhyy: '',
  1882. chyy: '',
  1883. admin: '',
  1884. options: [],
  1885. //状态
  1886. options1: [{
  1887. value: "'Y'",
  1888. label: '已付款'
  1889. }, {
  1890. value: "'DH'",
  1891. label: '已驳回'
  1892. }, {
  1893. value: "'S'",
  1894. label: '已入账'
  1895. },
  1896. {
  1897. value: "'TS'",
  1898. label: '已退款'
  1899. },
  1900. {
  1901. value: "'T'",
  1902. label: '退款审核中'
  1903. },
  1904. {
  1905. value: "'SH'",
  1906. label: '结算中'
  1907. }
  1908. ],
  1909. //多倍包赔
  1910. options2: [{
  1911. value: "is_multiple_0",
  1912. label: '是'
  1913. }, {
  1914. value: "is_multiple_1",
  1915. label: '否'
  1916. }],
  1917. //付款方式
  1918. options12: [{
  1919. value: "pay_type_0",
  1920. label: '微信'
  1921. }, {
  1922. value: "pay_type_1",
  1923. label: '支付宝'
  1924. },
  1925. {
  1926. value: "pay_type_4",
  1927. label: '线下'
  1928. }
  1929. ],
  1930. //多倍包赔
  1931. options6: [{
  1932. value: "is_multiple_0",
  1933. label: '是'
  1934. }, {
  1935. value: "is_multiple_1",
  1936. label: '否'
  1937. }],
  1938. //包赔
  1939. options8: [{
  1940. value: "Y",
  1941. label: '是'
  1942. }, {
  1943. value: "N",
  1944. label: '否'
  1945. }],
  1946. //包赔
  1947. options10: [{
  1948. value: "Y",
  1949. label: '是'
  1950. }, {
  1951. value: "N",
  1952. label: '否'
  1953. }],
  1954. //日期类型
  1955. bboptions: [{
  1956. value: "Y",
  1957. label: '年'
  1958. }, {
  1959. value: "M",
  1960. label: '月'
  1961. },
  1962. {
  1963. value: "D",
  1964. label: '日'
  1965. }
  1966. ],
  1967. //分期购买
  1968. options7: [{
  1969. value: "by_stages_0",
  1970. label: '分期客服-辉提'
  1971. }, {
  1972. value: "by_stages_1",
  1973. label: '分期客服-苗提'
  1974. },
  1975. {
  1976. value: "by_stages_2",
  1977. label: '没购买分期'
  1978. }
  1979. ],
  1980. lirunList: [
  1981. ],
  1982. xsehj: 0,
  1983. sxfhj: 0,
  1984. lirunListtotalPrice: 0,
  1985. cs: 0,
  1986. cs1: 0,
  1987. cs2: 0,
  1988. cs3: 0,
  1989. input: '',
  1990. yxbh: false,
  1991. yxdq: false,
  1992. sjbh: false,
  1993. disabled: true,
  1994. block: false,
  1995. originalPrice1open: false,
  1996. originalPriceopen: false,
  1997. open1: false,
  1998. open2: false,
  1999. openPicture: false,
  2000. cbj: false,
  2001. cbj1: false,
  2002. cbj2: true,
  2003. fl: false,
  2004. openFkpz1: false,
  2005. bp: false,
  2006. zybd: true,
  2007. sjbd: false,
  2008. bpLr: true,
  2009. bpLr1: true,
  2010. bpLr2: true,
  2011. bpLr3: true,
  2012. bpLr4: true,
  2013. bpLr5: false,
  2014. bpLr6: false,
  2015. bpLr7: false,
  2016. channelid: false,
  2017. // 付款凭证
  2018. attach_list: [],
  2019. carouselImg: [],
  2020. srcList: [],
  2021. // 列信息
  2022. columns: [{
  2023. key: 0,
  2024. label: `手续费`,
  2025. visible: false
  2026. },
  2027. {
  2028. key: 1,
  2029. label: `普通包赔价格`,
  2030. visible: false
  2031. },
  2032. {
  2033. key: 2,
  2034. label: `多倍包赔价格`,
  2035. visible: false
  2036. },
  2037. {
  2038. key: 3,
  2039. label: `游戏名称`,
  2040. visible: false
  2041. },
  2042. {
  2043. key: 4,
  2044. label: `商品名称`,
  2045. visible: false
  2046. },
  2047. {
  2048. key: 5,
  2049. label: `备注`,
  2050. visible: false
  2051. },
  2052. {
  2053. key: 6,
  2054. label: `创建者`,
  2055. visible: false
  2056. },
  2057. ],
  2058. tableData12: [],
  2059. tableData13: [],
  2060. rules1: {
  2061. gameAccount: [{
  2062. required: true,
  2063. message: '请输入游戏账号',
  2064. trigger: 'blur'
  2065. }],
  2066. paidinPrice: [{
  2067. required: true,
  2068. message: '请输入到手价',
  2069. trigger: 'blur'
  2070. }, ],
  2071. // originalPrice: [{
  2072. // type: 'number',
  2073. // message: '成本价必须为数字值'
  2074. // }],
  2075. distributionChannel: [{
  2076. required: true,
  2077. message: '请选择销售渠道',
  2078. trigger: 'blur'
  2079. }],
  2080. paymentVoucher: [{
  2081. required: true,
  2082. message: '请上传付款凭证',
  2083. trigger: 'blur'
  2084. }],
  2085. paymentChannels: [{
  2086. required: true,
  2087. message: '请输入付款渠道',
  2088. trigger: 'blur'
  2089. }]
  2090. },
  2091. checkList: 'N',
  2092. gameList: [],
  2093. tableData: [],
  2094. tongji: false,
  2095. isZy: false,
  2096. tableData2: [],
  2097. tableData3: [],
  2098. tableData4: [],
  2099. tableData5: [],
  2100. tableData6: [],
  2101. tableData7: [],
  2102. tableData8: [],
  2103. tableData9: [],
  2104. tableData10: [],
  2105. tableData11: [],
  2106. tongji1: false,
  2107. tongji2: false,
  2108. tongji3: false,
  2109. tongji4: false,
  2110. tongji5: false,
  2111. tongji6: false,
  2112. tongji7: false,
  2113. tongji8: false,
  2114. tongji9: false,
  2115. tongji10: false,
  2116. tongji11: false,
  2117. tongji12: false,
  2118. tongji13: false,
  2119. tongji14: false,
  2120. formXgtk:{},
  2121. tjwidth: '1100px',
  2122. timeList: [],
  2123. timeList1: [],
  2124. timeList2: [],
  2125. timeList3: [],
  2126. tableData1: [],
  2127. // 遮罩层
  2128. loading: true,
  2129. // open:false
  2130. // 总条数
  2131. total: 0,
  2132. // 弹出层标题
  2133. title: "",
  2134. // 显示搜索条件
  2135. showSearch: true,
  2136. // 是否显示弹出层
  2137. open: false,
  2138. // 查询参数
  2139. queryParams: {
  2140. pageNum: 1,
  2141. pageSize: 10,
  2142. publishStatus: null,
  2143. deleteStatus: null,
  2144. updateStatus: null,
  2145. goodsName: null,
  2146. gameAccount: null,
  2147. goodsId: null,
  2148. gameName: null,
  2149. partnerName: null,
  2150. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2151. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2152. paymentStatus: null,
  2153. type: null,
  2154. originalPrice: null,
  2155. },
  2156. // 查询参数-店铺
  2157. queryParamsdp: {
  2158. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2159. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2160. shopId: '',
  2161. mainIndustry: '',
  2162. },
  2163. total1: 0,
  2164. total2: 0,
  2165. total3: 0,
  2166. total4: 0,
  2167. total8: 0,
  2168. queryParamsTj: {
  2169. pageNum: 1,
  2170. pageSize: 10,
  2171. type: 'D',
  2172. shopId: '',
  2173. details: '0',
  2174. gameName: '',
  2175. beginTime: '',
  2176. endTime: '',
  2177. },
  2178. queryParamsTj1: {
  2179. type: 'M',
  2180. },
  2181. channelvisible: false,
  2182. channelList: [],
  2183. value1: '',
  2184. value2: '',
  2185. value3: '',
  2186. Dtype: true,
  2187. Mtype: false,
  2188. queryParamsHstj: {
  2189. pageNum: 1,
  2190. pageSize: 30,
  2191. shopId: '',
  2192. type: 'D',
  2193. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2194. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2195. details: '0'
  2196. },
  2197. queryParamsYxtj: {
  2198. pageNum: 1,
  2199. pageSize: 10,
  2200. shopId: '',
  2201. type: 'D',
  2202. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2203. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2204. details: '0'
  2205. },
  2206. queryParamsQdtj: {
  2207. pageNum: 1,
  2208. pageSize: 30,
  2209. shopId: '',
  2210. type: 'D',
  2211. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2212. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2213. details: '0',
  2214. gameName: '',
  2215. },
  2216. queryParamsLrtj: {
  2217. type: 'D',
  2218. pageNum: 1,
  2219. pageSize: 30,
  2220. shopId: '',
  2221. mainIndustry: '',
  2222. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2223. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2224. },
  2225. queryParamsThl: {
  2226. type: "D",
  2227. pageNum: 1,
  2228. pageSize: 30,
  2229. shopId: '',
  2230. mainIndustry: '',
  2231. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2232. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2233. },
  2234. queryParamsShdd:{
  2235. pageNum: 1,
  2236. pageSize: 10,
  2237. shopId: '',
  2238. aftermarketStatus:'0',
  2239. beginTime: this.$moment().subtract(3, 'days').format("YYYY-MM-DD"), // 当前时间往前推 3 天
  2240. endTime: this.$moment().format("YYYY-MM-DD"), // 获取当前日期,
  2241. },
  2242. // 表单参数
  2243. form1: {
  2244. id: null,
  2245. goodsId: null,
  2246. goodsName: null,
  2247. gameAccount: null,
  2248. price: null,
  2249. originalPrice: null,
  2250. paymentChannels: null,
  2251. paymentVoucher: null,
  2252. paidinPrice: null,
  2253. distributionChannel: null,
  2254. channelId: null,
  2255. isSecurity: null,
  2256. securityRate: null,
  2257. securityPrice: null,
  2258. isMultiple: null,
  2259. securityRate1: null,
  2260. multiplePrice: null,
  2261. byStages: null,
  2262. gameAccount: null,
  2263. },
  2264. bpfwsoptions: [{
  2265. value: 'taohaowan',
  2266. label: '淘号玩'
  2267. }, {
  2268. value: 'panzhi',
  2269. label: '盼之'
  2270. }, {
  2271. value: 'nanzhi',
  2272. label: '南栀'
  2273. }, {
  2274. value: 'pangxie',
  2275. label: '螃蟹'
  2276. }, {
  2277. value: 'baiqing',
  2278. label: '白情'
  2279. }, {
  2280. value: 'jiaoyiyou',
  2281. label: '交易游'
  2282. }, {
  2283. value: 'kejinshou',
  2284. label: '氪金兽'
  2285. }, ],
  2286. shdjoptions: [{
  2287. value: '1',
  2288. label: '售后一级'
  2289. }, {
  2290. value: '2',
  2291. label: '售后二级'
  2292. }, ],
  2293. stoptions: [{
  2294. value: '0',
  2295. label: '处理中'
  2296. }, {
  2297. value: '1',
  2298. label: '处理失败'
  2299. }, {
  2300. value: '2',
  2301. label: '处理成功'
  2302. }
  2303. ],
  2304. options5: [{
  2305. value: 'Y',
  2306. label: '是'
  2307. }, {
  2308. value: 'N',
  2309. label: '否'
  2310. }],
  2311. options9: [{
  2312. value: 'by_stages_0',
  2313. label: '分期客服-辉提'
  2314. }, {
  2315. value: 'by_stages_1',
  2316. label: '分期客服-苗提'
  2317. },
  2318. {
  2319. value: 'by_stages_2',
  2320. label: '没购买分期'
  2321. }
  2322. ],
  2323. zhshform: {
  2324. retrieveMessage: '<p>一、此账号您在手期间是否出售、以及换绑过、给过他人验证码.密码:</p><p><br></p><p>二、此账号您之前绑定的电话是多少:</p><p><br></p><p>三、此账号您最后一次登陆的时间以及地址:</p><p><br></p><p>四、此账号的防沉迷实名您是否修改成为了您自己的:</p><p><br></p><p>五、此账号您自己是否提交过申诉:</p><p><br></p><p>六、是否给别人开过腾讯会议:</p><p><br></p>',
  2325. },
  2326. shDisable: false,
  2327. shTitle: '',
  2328. queryForm: {
  2329. publishStatus: null,
  2330. deleteStatus: null,
  2331. updateStatus: null,
  2332. goodsName: null,
  2333. gameAccount: null,
  2334. gameName: null,
  2335. partnerName: null,
  2336. },
  2337. };
  2338. },
  2339. created() {
  2340. this.user();
  2341. this.getList();
  2342. this.initGoodsManager();
  2343. this.getxsoptions();
  2344. },
  2345. mounted() {
  2346. this.restaurants = this.loadAll();
  2347. },
  2348. methods: {
  2349. sqSh(item) {
  2350. console.log("####",item)
  2351. const result = this.findObjectById(this.deptOptions1,item.shopId);
  2352. const result1 = this.gameList.find(res=>res.gameName===item.gameName);
  2353. this.zhshform = {};
  2354. this.zhsh = true;
  2355. this.shTitle = '售后信息';
  2356. this.zhshform.gameId=result1.id;
  2357. this.zhshform.mainIndustry=result.mainIndustry;
  2358. this.zhshform.shopId = item.shopId;
  2359. this.zhshform.acquirePrice = item.salesPrice;
  2360. this.zhshform.gameAccount = item.gameAccount;
  2361. this.zhshform.paymentId = item.id;
  2362. this.zhshform.retrieveMessage =
  2363. '<p>一、此账号您在手期间是否出售、以及换绑过、给过他人验证码.密码:</p><p><br></p><p>二、此账号您之前绑定的电话是多少:</p><p><br></p><p>三、此账号您最后一次登陆的时间以及地址:</p><p><br></p><p>四、此账号的防沉迷实名您是否修改成为了您自己的:</p><p><br></p><p>五、此账号您自己是否提交过申诉:</p><p><br></p><p>六、是否给别人开过腾讯会议:</p><p><br></p>';
  2364. },
  2365. shXq(item) {
  2366. const result = this.findObjectById(this.deptOptions1,item.shopId);
  2367. this.shTitle = '售后详情';
  2368. this.shDisable = true;
  2369. getpayment(item.id).then(res => {
  2370. if (res.data) {
  2371. this.zhshform = res.data;
  2372. this.zhshform.mainIndustry=result.mainIndustry;
  2373. this.zhsh = true;
  2374. } else {
  2375. this.$modal.msgError("暂无申报售后!");
  2376. }
  2377. })
  2378. },
  2379. findObjectById(array, targetId) {
  2380. return array.find(item => item.id === targetId);
  2381. },
  2382. editFormzhsh(){
  2383. upData(this.zhshform).then(res => {
  2384. if (res.code == 200) {
  2385. this.zhsh = false;
  2386. this.getList();
  2387. this.$modal.msgSuccess("修改成功");
  2388. } else {
  2389. alert(res.msg)
  2390. }
  2391. })
  2392. },
  2393. submitFormzhsh() {
  2394. this.gameList.forEach(res => {
  2395. if (res.id == this.zhshform.gameId) {
  2396. this.zhshform.gameName = res.gameName
  2397. }
  2398. })
  2399. this.zhshform.createBy=this.userName;
  2400. this.zhshform.logStatus = '分销客服申请';
  2401. this.zhshform.logRemark = this.zhshform.remark;
  2402. add(this.zhshform).then(res => {
  2403. if (res.code == 200) {
  2404. this.getList();
  2405. this.zhsh = false;
  2406. this.$modal.msgSuccess("已申请售后!");
  2407. } else {
  2408. alert(res.msg)
  2409. }
  2410. })
  2411. },
  2412. cancelzhsh() {
  2413. this.zhsh = false;
  2414. },
  2415. getxsoptions() {
  2416. getDicts('game_platform_mapping').then(res => {
  2417. let list = res.data
  2418. list.forEach((item) => {
  2419. if (item.dictValue == 'taohaowan' || item.dictValue == 'daishouwan') {
  2420. this.xsOptions[0].children.push({
  2421. value: item.dictValue,
  2422. label: item.dictLabel
  2423. })
  2424. } else {
  2425. this.xsOptions[1].children.push({
  2426. value: item.dictValue,
  2427. label: item.dictLabel
  2428. })
  2429. }
  2430. });
  2431. })
  2432. },
  2433. objectSpanMethod({
  2434. row,
  2435. column,
  2436. rowIndex,
  2437. columnIndex
  2438. }) {
  2439. if (columnIndex === 0) {
  2440. // 获取当前单元格的值
  2441. const currentValue = row[column.property];
  2442. // 获取上一行相同列的值
  2443. const preRow = this.tableData[rowIndex - 1];
  2444. const preValue = preRow ? preRow[column.property] : null;
  2445. // 如果当前值和上一行的值相同,则将当前单元格隐藏
  2446. if (currentValue === preValue) {
  2447. return {
  2448. rowspan: 0,
  2449. colspan: 0
  2450. };
  2451. } else {
  2452. // 否则计算当前单元格应该跨越多少行
  2453. let rowspan = 1;
  2454. for (let i = rowIndex + 1; i < this.tableData.length; i++) {
  2455. const nextRow = this.tableData[i];
  2456. const nextValue = nextRow[column.property];
  2457. if (nextValue === currentValue) {
  2458. rowspan++;
  2459. } else {
  2460. break;
  2461. }
  2462. }
  2463. return {
  2464. rowspan,
  2465. colspan: 1
  2466. };
  2467. }
  2468. }
  2469. },
  2470. // 合计 指定某一列添加合计
  2471. getSummaries(param) {
  2472. const {
  2473. columns,
  2474. data
  2475. } = param;
  2476. const sums = [];
  2477. columns.forEach((column, index) => {
  2478. if (index === 0) {
  2479. sums[index] = "合计";
  2480. return;
  2481. } else if (column.property == "sales_price" || column.property == 'count') {
  2482. //如果是经费(正常的加减法)
  2483. const values = data.map((item) => Number(item[column.property]));
  2484. if (!values.every((value) => isNaN(value))) {
  2485. sums[index] = values.reduce((prev, curr) => {
  2486. const value = Number(curr);
  2487. var sum = 0;
  2488. if (!isNaN(value)) {
  2489. sum = Number(Number(prev) + Number(curr));
  2490. return sum;
  2491. } else {
  2492. return prev;
  2493. }
  2494. }, 0);
  2495. sums[index] += " ";
  2496. }
  2497. }
  2498. });
  2499. return sums;
  2500. },
  2501. /** 导出按钮操作 */
  2502. handleExport() {
  2503. this.download('system/goodsPayment/export', {
  2504. ...this.queryParams
  2505. }, `订单明细_${this.$moment().format('YYYY-MM-DD')}.xlsx`)
  2506. },
  2507. //店铺名称
  2508. querySearch(queryString, cb) {
  2509. var restaurants = this.restaurants;
  2510. var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
  2511. // 调用 callback 返回建议列表的数据
  2512. cb(results);
  2513. },
  2514. createFilter(queryString) {
  2515. return (restaurant) => {
  2516. return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) !== -1);
  2517. };
  2518. },
  2519. loadAll() {
  2520. queryTBusShop().then(response => {
  2521. response.data.forEach((item) => {
  2522. this.options11.push({
  2523. label: item.id,
  2524. value: item.name,
  2525. });
  2526. });
  2527. response.data.forEach((item) => {
  2528. this.deptOptions.push({
  2529. label: item.name,
  2530. value: item.id,
  2531. });
  2532. });
  2533. this.deptOptions1=response.data;
  2534. });
  2535. return this.options11;
  2536. },
  2537. goTjsb() {
  2538. this.$router.push('/guanli/numberIncreaseFailed');
  2539. },
  2540. handleSelect(item) {
  2541. // console.log(item);
  2542. // this.queryParams.shopId=item.address
  2543. },
  2544. // 普通包赔
  2545. bpp() {
  2546. if (this.form1.isSecurity == 'Y') {
  2547. this.multiplePrice = 0
  2548. this.bp1 = true;
  2549. this.form1.securityRate = 0.08
  2550. if (this.form1.paidinPrice == null) {
  2551. this.form1.multiplePrice = 0
  2552. } else {
  2553. this.form1.securityPrice = (this.form1.paidinPrice * 0.08).toString()
  2554. this.form1.securityPrice = parseFloat(this.form1.securityPrice).toFixed(2)
  2555. }
  2556. } else if (this.form1.isSecurity == 'N') {
  2557. // this.dbbp=true
  2558. this.bp1 = false;
  2559. this.form1.securityPrice = 0
  2560. this.form1.securityRate = 0
  2561. }
  2562. },
  2563. // 多倍包赔
  2564. bpp1() {
  2565. if (this.form1.isMultiple == 'is_multiple_0') {
  2566. this.bp1 = false;
  2567. this.form1.securityPrice = 0
  2568. this.form1.securityRate = 0
  2569. this.bp2 = true;
  2570. this.form1.securityRate1 = 0.20
  2571. if (this.form1.paidinPrice == null) {
  2572. this.form1.multiplePrice == null
  2573. } else {
  2574. this.form1.multiplePrice = (this.form1.paidinPrice * 0.20).toString()
  2575. this.form1.multiplePrice = Math.round(parseFloat(this.form1.multiplePrice))
  2576. }
  2577. } else if (this.form1.isMultiple == 'is_multiple_1') {
  2578. this.bp2 = false;
  2579. this.form1.multiplePrice = 0
  2580. this.form1.securityRate1 = 0
  2581. }
  2582. },
  2583. //价格计算
  2584. jg() {
  2585. if (this.form1.isSecurity == 'Y') {
  2586. this.form1.securityPrice = (this.form1.paidinPrice * 0.08).toString()
  2587. this.form1.securityPrice = parseFloat(this.form1.securityPrice).toFixed(2)
  2588. } else if (this.form1.isSecurity == 'N') {
  2589. this.form1.securityPrice = null
  2590. }
  2591. if (this.form1.isMultiple == 'is_multiple_0') {
  2592. this.form1.multiplePrice = (this.form1.paidinPrice * 0.2).toString()
  2593. this.form1.multiplePrice = Math.round(parseFloat(this.form1.multiplePrice))
  2594. } else if (this.form1.isMultiple == 'is_multiple_1') {
  2595. this.form1.multiplePrice = null
  2596. }
  2597. },
  2598. //游戏大区
  2599. initGoodsManager() {
  2600. getInitGoodsManager().then(res => {
  2601. this.pictureServerPath = res.pictureServerPath
  2602. this.gameList = res.gameList
  2603. })
  2604. },
  2605. changeGameArea(id) {
  2606. this.form.arrayList = []
  2607. let that = this
  2608. let gm = {
  2609. gameId: this.form.gameId || id
  2610. }
  2611. getGameArea(gm).then(res => {
  2612. that.options = res.gameArea
  2613. })
  2614. getGameAttrib(gm.gameId).then(res => {
  2615. if (res.data.gameProperties != null) {
  2616. this.block = true;
  2617. let data = res.data.gameProperties.split(",")
  2618. this.type = data
  2619. } else {
  2620. this.block = false
  2621. }
  2622. })
  2623. },
  2624. // 销售渠道
  2625. handleChange() {
  2626. let getmainIndustry = Cookies.get('mainIndustry')
  2627. const validChannels = ['daishouwan', 'taohaowan'];
  2628. if (validChannels.indexOf(this.form1.distributionChannel[1]) === -1) {
  2629. this.channelid = true;
  2630. } else {
  2631. this.channelid = false;
  2632. this.form1.channelId = null;
  2633. }
  2634. if (validChannels.includes(this.form1.distributionChannel[1])) {
  2635. this.dbbp = true
  2636. this.dbbp1 = true
  2637. } else {
  2638. this.form1.isMultiple = null
  2639. this.form1.isSecurity = null
  2640. this.form1.securityPrice = null
  2641. this.form1.multiplePrice = null
  2642. this.form1.securityRate1 = null
  2643. this.form1.securityRate = null
  2644. this.form1.byStages = null
  2645. this.dbbp = false
  2646. this.dbbp1 = false
  2647. this.bp2 = false
  2648. this.bp1 = false
  2649. }
  2650. if (this.channelid == false) {
  2651. this.form1.channelId = null
  2652. }
  2653. if (this.dbbp1 == false) {
  2654. this.form1.byStages = null
  2655. }
  2656. if ((getmainIndustry == 'account_source_2' || getmainIndustry == 'account_source_3') && this.form1
  2657. .distributionChannel[1] == 'daishouwan') {
  2658. this.bp = true
  2659. } else {
  2660. this.bp = false
  2661. }
  2662. },
  2663. tableRowClassName({
  2664. row,
  2665. rowIndex
  2666. }) {
  2667. if (rowIndex === 1 || Number.isInteger((rowIndex - 1) / 4)) {
  2668. return 'warning-row';
  2669. } else if (rowIndex === 3 || Number.isInteger((rowIndex - 3) / 4)) {
  2670. return 'success-row';
  2671. }
  2672. return '';
  2673. },
  2674. //驳回信息
  2675. ybh(row) {
  2676. this.bhxx = true;
  2677. this.bhyy = row.remark;
  2678. },
  2679. //撤回信息
  2680. ych(row) {
  2681. this.chxx = true;
  2682. this.chyy = row.remark;
  2683. },
  2684. user() {
  2685. getInitGoodsManager().then(res => {
  2686. this.pictureServerPath = res.pictureServerPath
  2687. })
  2688. getTBusShopInfo().then(res => {
  2689. if (res.msg) {
  2690. if (res.data.mainIndustry == 'account_source_1' || res.data.mainIndustry ==
  2691. 'account_source_2' || res.data.mainIndustry == 'account_source_3') { //商家
  2692. this.bpLr3 = false
  2693. this.bpLr5 = true
  2694. }
  2695. if (res.data.mainIndustry == 'account_source_0') { //自营和自营商家
  2696. this.isZy = true
  2697. }
  2698. if (res.data.mainIndustry == 'account_source_1' || res.data.mainIndustry ==
  2699. 'account_source_0') { //自营和自营商家
  2700. this.queryParamsdp.shopId = res.data.id;
  2701. this.getquiryShopProfitStatistics();
  2702. this.isAdmin = true;
  2703. }
  2704. if (res.data.name == '代售玩') {
  2705. this.bpLr6 = true
  2706. this.bpLr3 = true
  2707. }
  2708. } else { //admin/分销/买号
  2709. this.bpLr6 = true
  2710. this.admin = 'admin'
  2711. this.isAdmin = false;
  2712. }
  2713. })
  2714. getDeptInfo().then(res => {
  2715. if (res.data.deptName == '自营商家' || res.data.deptName == '自营本部' || res.data.deptName ==
  2716. '对接平台') {
  2717. this.bpLr = false
  2718. this.bpLr4 = false
  2719. }
  2720. if (res.data.deptName == '对接平台') {
  2721. this.cbj2 = false
  2722. this.bpLr1 = false
  2723. this.bpLr2 = false
  2724. }
  2725. })
  2726. getInfo().then(res=>{
  2727. this.userName=res.user.userName;
  2728. })
  2729. },
  2730. getquiryShopProfitStatistics() {
  2731. this.queryParamsdp.beginTime = this.queryParams.beginTime
  2732. this.queryParamsdp.endTime = this.queryParams.endTime
  2733. if (this.queryParamsdp.beginTime == '' || this.queryParamsdp.beginTime == null) {
  2734. this.$message.error('开始日期不能为空!');
  2735. return;
  2736. }
  2737. if (this.queryParamsdp.endTime == '' || this.queryParamsdp.endTime == null) {
  2738. this.$message.error('结束日期不能为空!');
  2739. return;
  2740. }
  2741. quiryShopProfitStatistics(this.queryParamsdp).then(res => {
  2742. this.tjsjdata1 = res.data.table.rows
  2743. if (this.tjsjdata1[0].main_industry == 'account_source_0') {
  2744. this.isLirun = false;
  2745. this.isSelfProfit = true;
  2746. } else {
  2747. this.isLirun = true;
  2748. this.isSelfProfit = false;
  2749. }
  2750. })
  2751. },
  2752. deletePicture(id) {
  2753. let that = this
  2754. this.$modal.confirm("确定删除此图片吗?").then(function() {
  2755. delAttach(id).then(r => {
  2756. getGoodsPictures({
  2757. goodsId: that.form.id
  2758. }).then(resp => {
  2759. that.nginx_pictures_path = resp.nginx_pictures_path
  2760. that.attach_list = resp.attachlist
  2761. })
  2762. })
  2763. })
  2764. },
  2765. //付款凭证信息
  2766. openFkpz(row) {
  2767. this.carouselImg = row.paymentVoucher.split(",")
  2768. this.carouselImg.forEach((item) => {
  2769. this.srcList.push(this.pictureServerPath + item);
  2770. });
  2771. this.openFkpz1 = true
  2772. },
  2773. // 上传之前
  2774. beforeAvatarUpload(file) {
  2775. const isJPG = file.type === 'image/jpeg'
  2776. const isPng = file.type === 'image/png'
  2777. const isPdf = file.type === 'application/pdf'
  2778. const isLt50M = file.size / 1024 / 1024 < 50
  2779. if (!isLt50M) {
  2780. this.$message.warning('上传文件大小不能超过 50MB!')
  2781. return false
  2782. }
  2783. if (!isJPG && !isPng && !isPdf) {
  2784. this.$message.warning('只能上传 JPG/PNG/PDF/JPEG 格式!')
  2785. return false
  2786. }
  2787. },
  2788. canceltj() {
  2789. this.Dtype = true;
  2790. this.Mtype = false;
  2791. this.queryParamsQdtj.type = 'D';
  2792. this.queryParamsHstj.type = 'D';
  2793. this.queryParamsYxtj.type = 'D';
  2794. this.queryParamsTj.type = 'D';
  2795. this.queryParamsQdtj.gameName = '';
  2796. this.queryParamsQdtj.shopId = '';
  2797. this.queryParamsHstj.gameName = '';
  2798. this.queryParamsHstj.shopId = '';
  2799. this.queryParamsYxtj.channel = '';
  2800. this.queryParamsYxtj.shopId = '';
  2801. this.queryParamsLrtj.shopId = '';
  2802. this.queryParamsThl.shopId = '';
  2803. this.queryParamsShdd.shopName = '';
  2804. this.tongji1 = false;
  2805. this.tongji4 = false;
  2806. this.tongji8 = false;
  2807. this.tongji6 = false;
  2808. this.tongji11 = false;
  2809. this.tongji12 = false;
  2810. this.tongji13 = false;
  2811. this.tongji14 = false;
  2812. },
  2813. // 上传成功
  2814. handleAvatarSuccess(res) {
  2815. this.form.gamePicture = res.data.url
  2816. },
  2817. // 删除
  2818. handleRemove(file, fileList) {
  2819. this.form.electronicDataList = this.form.electronicDataList.filter(item => item !== file.response.data
  2820. .webUrl);
  2821. },
  2822. // 上传成功
  2823. handleAvatarSuccess1(res) {
  2824. // this.zhshform.credentials = res.data.url
  2825. },
  2826. // 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用
  2827. changeUpload(file, fileList) {
  2828. if (file.status === 'success') {
  2829. this.$refs.upload.uploadFiles = this.$refs.upload.uploadFiles.filter((item) => {
  2830. return item.raw.size / 1024 / 1024 < 50
  2831. })
  2832. this.tobase64(file, fileList)
  2833. }
  2834. },
  2835. tobase64(file, fileList) {
  2836. var reader = new FileReader()
  2837. reader.readAsDataURL(file.raw)
  2838. reader.onload = (e) => {
  2839. const tempobj = {
  2840. data: file.response.data.webUrl,
  2841. suffix: '.' + file.raw.type.split('/')[1],
  2842. fileName: file.name
  2843. }
  2844. this.form.electronicDataList.push(tempobj.data)
  2845. this.zhshform.credentials=tempobj.data
  2846. }
  2847. },
  2848. changeUpload1(file, fileList) {
  2849. if (file.status === 'success') {
  2850. this.$refs.upload.uploadFiles = this.$refs.upload.uploadFiles.filter((item) => {
  2851. return item.raw.size / 1024 / 1024 < 50
  2852. })
  2853. this.tobase65(file, fileList)
  2854. }
  2855. },
  2856. tobase65(file, fileList) {
  2857. var reader = new FileReader()
  2858. reader.readAsDataURL(file.raw)
  2859. reader.onload = (e) => {
  2860. const tempobj = {
  2861. data: file.response.data.webUrl,
  2862. suffix: '.' + file.raw.type.split('/')[1],
  2863. fileName: file.name
  2864. }
  2865. this.zhshform.refundEvidence=tempobj.data
  2866. }
  2867. },
  2868. /** 查询付款信息列表 */
  2869. getList() {
  2870. this.loading = true;
  2871. goodsPayment(this.queryParams).then(response => {
  2872. this.tableData = response.data.table.rows;
  2873. this.total = response.data.table.total
  2874. this.tjsjdata[0].originalprice = response.data.sum.originalPrice
  2875. this.tjsjdata[0].salesprice = response.data.sum.salesPrice
  2876. this.tjsjdata[0].paidinprice = response.data.sum.paidinPrice
  2877. this.tjsjdata[0].fxlr = response.data.sum.fxProfit
  2878. this.tjsjdata[0].selfProfit = response.data.sum.selfProfit
  2879. this.tjsjdata[0].lr = response.data.sum.platformProfit
  2880. this.tjsjdata[0].bplr = response.data.sum.securityPrice
  2881. this.tjsjdata[0].bplr1 = response.data.sum.multiplePrice
  2882. this.tjsjdata[0].allhandlingfee = response.data.sum.handlingfee
  2883. this.tjsjdata[0].totalPrice = (Number(this.tjsjdata[0].paidinprice) + Number(this.tjsjdata[0]
  2884. .allhandlingfee) + Number(this.tjsjdata[0].bplr) +
  2885. Number(this.tjsjdata[0].bplr1)).toFixed(2)
  2886. this.loading = false;
  2887. });
  2888. },
  2889. //搜索按钮使用
  2890. getList1() {
  2891. this.loading = true;
  2892. goodsPayment(this.queryParams).then(response => {
  2893. // console.log(response)
  2894. this.disabled = false;
  2895. this.block = true;
  2896. this.tableData = response.rows;
  2897. this.total = response.total
  2898. this.loading = false;
  2899. });
  2900. },
  2901. // 统计按钮操作
  2902. handleStatistics() {
  2903. this.timeList3 = [];
  2904. this.timeList2 = [];
  2905. this.timeList1 = [];
  2906. let timeList1 = [];
  2907. for (let i = 0; i < 3; i++) {
  2908. timeList1.push(this.$moment().subtract(i, 'years').format("YYYY"))
  2909. }
  2910. timeList1.forEach(item => {
  2911. this.timeList1.push({
  2912. label: item,
  2913. value: item,
  2914. });
  2915. })
  2916. let timeList2 = [];
  2917. for (let i = 0; i < 12; i++) {
  2918. timeList2.push(this.$moment().subtract(i, 'months').format("YYYY-MM"))
  2919. }
  2920. timeList2.forEach(item => {
  2921. this.timeList2.push({
  2922. label: item,
  2923. value: item,
  2924. });
  2925. })
  2926. let timeList3 = [];
  2927. for (let i = 0; i < 15; i++) {
  2928. timeList3.push(this.$moment().subtract(i, 'days').format("YYYY-MM-DD"))
  2929. }
  2930. timeList3.forEach(item => {
  2931. this.timeList3.push({
  2932. label: item,
  2933. value: item,
  2934. });
  2935. })
  2936. getStatistics(this.queryParamsTj1).then(res => {
  2937. this.tableData1 = res.data.table0.rows
  2938. if (this.queryParamsTj1.type == 'Y') {
  2939. this.timeList = this.timeList1;
  2940. this.tjwidth = '450px';
  2941. }
  2942. if (this.queryParamsTj1.type == 'M') {
  2943. this.timeList = this.timeList2
  2944. this.tjwidth = '1250px';
  2945. }
  2946. if (this.queryParamsTj1.type == 'D') {
  2947. this.timeList = this.timeList3
  2948. this.tjwidth = '1500px';
  2949. }
  2950. this.tongji = true;
  2951. })
  2952. },
  2953. // 统计按钮操作
  2954. handleStatistics1() {
  2955. this.queryParamsTj.details = '0';
  2956. this.queryParamsTj.createTime = '';
  2957. this.queryParamsTj.gameName = '';
  2958. this.selectDateType();
  2959. getquiryStatistics(this.queryParamsTj).then(res => {
  2960. this.total1 = res.data.table.total
  2961. this.tableData2 = res.data.table.rows
  2962. this.tongji1 = true;
  2963. })
  2964. },
  2965. selectDateType() {
  2966. if (this.queryParamsHstj.type == 'D' || this.queryParamsTj.type == 'D' || this.queryParamsYxtj.type ==
  2967. 'D' || this.queryParamsQdtj.type == 'D' || this.queryParamsLrtj.type == 'D' || this.queryParamsThl
  2968. .type == 'D') {
  2969. this.Dtype = true;
  2970. this.Mtype = false;
  2971. if (this.value1 || this.value2) {
  2972. this.queryParamsHstj.beginTime = this.value1[0];
  2973. this.queryParamsHstj.endTime = this.value1[1];
  2974. this.queryParamsTj.beginTime = this.value1[0];
  2975. this.queryParamsTj.endTime = this.value1[1];
  2976. this.queryParamsYxtj.beginTime = this.value1[0];
  2977. this.queryParamsYxtj.endTime = this.value1[1];
  2978. this.queryParamsQdtj.beginTime = this.value1[0];
  2979. this.queryParamsQdtj.endTime = this.value1[1];
  2980. this.queryParamsLrtj.beginTime = this.value1[0];
  2981. this.queryParamsLrtj.endTime = this.value1[1];
  2982. this.queryParamsThl.beginTime = this.value1[0];
  2983. this.queryParamsThl.endTime = this.value1[1];
  2984. }
  2985. }
  2986. if (this.queryParamsHstj.type == 'M' || this.queryParamsTj.type == 'M' || this.queryParamsYxtj.type ==
  2987. 'M' || this.queryParamsQdtj.type == 'M') {
  2988. this.Dtype = false;
  2989. this.Mtype = true;
  2990. if (this.value1 || this.value2) {
  2991. this.queryParamsHstj.beginTime = this.value2[0];
  2992. this.queryParamsHstj.endTime = this.value2[1];
  2993. this.queryParamsTj.beginTime = this.value2[0];
  2994. this.queryParamsTj.endTime = this.value2[1];
  2995. this.queryParamsYxtj.beginTime = this.value2[0];
  2996. this.queryParamsYxtj.endTime = this.value2[1];
  2997. this.queryParamsQdtj.beginTime = this.value2[0];
  2998. this.queryParamsQdtj.endTime = this.value2[1];
  2999. }
  3000. }
  3001. if (this.queryParamsHstj.type == 'Y' || this.queryParamsTj.type == 'Y' || this.queryParamsYxtj.type ==
  3002. 'Y' || this.queryParamsQdtj.type == 'Y') {
  3003. this.Dtype = false;
  3004. this.Mtype = true;
  3005. if (this.value1 || this.value2) {
  3006. this.queryParamsHstj.beginTime = this.value2[0].slice(0, 4);
  3007. this.queryParamsHstj.endTime = this.value2[1].slice(0, 4);
  3008. this.queryParamsTj.beginTime = this.value2[0].slice(0, 4);
  3009. this.queryParamsTj.endTime = this.value2[1].slice(0, 4);
  3010. this.queryParamsYxtj.beginTime = this.value2[0].slice(0, 4);
  3011. this.queryParamsYxtj.endTime = this.value2[1].slice(0, 4);
  3012. this.queryParamsQdtj.beginTime = this.value2[0].slice(0, 4);
  3013. this.queryParamsQdtj.endTime = this.value2[1].slice(0, 4);
  3014. }
  3015. }
  3016. },
  3017. // 号商统计按钮操作
  3018. handleStatistics2() {
  3019. this.selectDateType();
  3020. this.queryParamsHstj.details = '0';
  3021. this.channel = 'N';
  3022. getquiryHandlerStatistics(this.queryParamsHstj).then(res => {
  3023. this.total4 = res.data.table.total
  3024. this.tableData5 = res.data.table.rows
  3025. let timelist = this.queryParamsHstj.beginTime + ',' + this.queryParamsHstj.endTime
  3026. this.value1 = timelist.split(',')
  3027. this.tongji4 = true;
  3028. })
  3029. },
  3030. // 游戏统计按钮操作
  3031. handleStatistics3() {
  3032. this.selectDateType();
  3033. this.queryParamsYxtj.details = '0';
  3034. this.queryParamsYxtj.gameName = '';
  3035. getquiryGameStatistics(this.queryParamsYxtj).then(res => {
  3036. this.total5 = res.data.table.total
  3037. this.tableData7 = res.data.table.rows
  3038. let timelist = this.queryParamsYxtj.beginTime + ',' + this.queryParamsYxtj.endTime
  3039. this.value1 = timelist.split(',')
  3040. this.tongji6 = true;
  3041. })
  3042. },
  3043. // 渠道统计按钮操作
  3044. handleStatistics4() {
  3045. this.selectDateType();
  3046. this.queryParamsQdtj.details = '0';
  3047. this.queryParamsQdtj.channel = '';
  3048. getquiryChannelStatistics(this.queryParamsQdtj).then(res => {
  3049. this.total6 = res.data.table.total
  3050. this.tableData9 = res.data.table.rows
  3051. let timelist = this.queryParamsQdtj.beginTime + ',' + this.queryParamsQdtj.endTime
  3052. this.value1 = timelist.split(',')
  3053. this.tongji8 = true;
  3054. })
  3055. },
  3056. // 利润统计按钮操作
  3057. handleStatistics5() {
  3058. this.selectDateType();
  3059. this.queryParamsLrtj.mainIndustry = '';
  3060. getquiryLirunStatistics(this.queryParamsLrtj).then(res => {
  3061. this.lirunList = res.data[0]
  3062. //合计
  3063. this.xsehj = (Number(res.data[0].shxse) + Number(res.data[0].xsj) + Number(res
  3064. .data[0].hsxse) + Number(res.data[0].dsxse)).toFixed(2)
  3065. this.sxfhj = (Number(res.data[0].dssxf) + Number(res.data[0].shsxf) + Number(res
  3066. .data[0].hssxf) +
  3067. Number(res.data[0].fxlr) + Number(res.data[0].zysxf) + Number(res.data[0].ptbp) +
  3068. Number(res.data[0].dbpp) + Number(res.data[0].zycjl) + Number(res.data[0].xszfsxf))
  3069. .toFixed(2)
  3070. this.lirunListtotalPrice = (Number(res.data[0].dsj) + Number(res.data[0].dbpp) + Number(res
  3071. .data[0]
  3072. .ptbp) + Number(res.data[0].xszfsxf)).toFixed(2)
  3073. let timelist = this.queryParamsLrtj.beginTime + ',' + this.queryParamsLrtj.endTime
  3074. this.value1 = timelist.split(',')
  3075. this.tongji11 = true;
  3076. })
  3077. },
  3078. // 提号率按钮操作
  3079. handleStatistics6() {
  3080. this.selectDateType();
  3081. getSuccessRate(this.queryParamsThl).then(res => {
  3082. this.tableData12 = res.data.sort((a, b) => {
  3083. return b.success - a.success;
  3084. });
  3085. let timelist = this.queryParamsThl.beginTime + ',' + this.queryParamsThl.endTime
  3086. this.value1 = timelist.split(',')
  3087. this.tongji12 = true;
  3088. })
  3089. },
  3090. // 售后订单按钮操作
  3091. handleStatistics7() {
  3092. this.queryParamsShdd.beginTime=this.value3[0];
  3093. this.queryParamsShdd.endTime=this.value3[1];
  3094. goodsPayment(this.queryParamsShdd).then(res => {
  3095. this.tableData13 = res.data.table.rows;
  3096. let timelist = this.queryParamsShdd.beginTime + ',' + this.queryParamsShdd.endTime
  3097. this.value3 = timelist.split(',')
  3098. this.tongji13 = true;
  3099. this.total13=res.data.table.total;
  3100. })
  3101. },
  3102. // 售后订单按钮操作
  3103. handleStatistics8() {
  3104. this.tongji14 = true;
  3105. },
  3106. submitFormxgTk(){
  3107. updateStatus(this.formXgtk.goodsId).then(res => {
  3108. this.$message({
  3109. type: 'success',
  3110. message: '修改成功!'
  3111. })
  3112. this.tongji14 = false;
  3113. })
  3114. },
  3115. // 明细按钮操作
  3116. handleDetails(row) {
  3117. this.queryParamsTj.createTime = row.create_time;
  3118. this.queryParamsTj.details = '1';
  3119. this.queryParamsTj.pageNum = 1;
  3120. getquiryStatistics(this.queryParamsTj).then(res => {
  3121. this.total2 = res.data.table.total
  3122. this.tableData3 = res.data.table.rows
  3123. this.tongji2 = true;
  3124. })
  3125. },
  3126. // 明细按钮操作
  3127. handleDetailsFy() {
  3128. this.queryParamsTj.details = '1';
  3129. getquiryStatistics(this.queryParamsTj).then(res => {
  3130. this.total2 = res.data.table.total
  3131. this.tableData3 = res.data.table.rows
  3132. this.tongji2 = true;
  3133. })
  3134. },
  3135. // 游戏明细按钮操作
  3136. handleDetailsGameName(row) {
  3137. this.queryParamsTj.createTime = row.create_time;
  3138. this.queryParamsTj.gameName = row.game_name;
  3139. this.queryParamsTj.pageNum = 1;
  3140. this.queryParamsTj.details = '2';
  3141. getquiryStatistics(this.queryParamsTj).then(res => {
  3142. this.total3 = res.data.table.total
  3143. this.tableData4 = res.data.table.rows
  3144. this.tongji3 = true;
  3145. })
  3146. },
  3147. // 游戏明细按钮操作
  3148. handleDetailsGameNameFy(row) {
  3149. this.queryParamsTj.details = '2';
  3150. getquiryStatistics(this.queryParamsTj).then(res => {
  3151. this.tableData4 = res.data.table.rows
  3152. this.tongji3 = true;
  3153. })
  3154. },
  3155. // 号商统计分页按钮操作
  3156. handleDetailsHsFy(row) {
  3157. this.queryParamsHstj.details = '0';
  3158. this.channel = 'N';
  3159. getquiryHandlerStatistics(this.queryParamsHstj).then(res => {
  3160. this.tableData5 = res.data.table.rows
  3161. })
  3162. },
  3163. handleDetailsYxtj(row) {
  3164. this.queryParamsYxtj.gameName = row.game_name;
  3165. this.queryParamsYxtj.details = '1';
  3166. this.selectDateType();
  3167. getquiryGameStatistics(this.queryParamsYxtj).then(res => {
  3168. this.tableData8 = res.data.table.rows
  3169. this.tongji7 = true;
  3170. })
  3171. },
  3172. handleDetailsQdtj(row) {
  3173. this.queryParamsQdtj.channel = row.distribution_channel;
  3174. this.queryParamsQdtj.details = '1';
  3175. this.selectDateType();
  3176. getquiryChannelStatistics(this.queryParamsQdtj).then(res => {
  3177. this.tableData10 = res.data.table.rows
  3178. this.tongji9 = true;
  3179. })
  3180. },
  3181. handleDetailsQdtj1(row) {
  3182. this.queryParamsQdtj.gameName = row.game_name;
  3183. this.queryParamsQdtj.details = '2';
  3184. getquiryChannelStatistics(this.queryParamsQdtj).then(res => {
  3185. this.tableData11 = res.data.table.rows
  3186. this.tongji10 = true;
  3187. })
  3188. },
  3189. // 游戏明细按钮操作(号商)
  3190. handleDetailshstj(row) {
  3191. this.queryParamsHstj.shopId = row.shop_Id;
  3192. this.queryParamsHstj.beginTime = row.create_time;
  3193. this.queryParamsHstj.endTime = row.create_time;
  3194. this.queryParamsHstj.details = '1';
  3195. getquiryHandlerStatistics(this.queryParamsHstj).then(res => {
  3196. this.tableData6 = res.data.table.rows
  3197. this.tongji5 = true;
  3198. })
  3199. },
  3200. // 游戏明细按钮操作(号商)
  3201. handleDetailshstj1() {
  3202. if (this.checkList == 'Y') {
  3203. this.queryParamsHstj.channel = "Y";
  3204. this.channelvisible = true;
  3205. } else {
  3206. this.queryParamsHstj.channel = "";
  3207. this.channelvisible = false;
  3208. }
  3209. getquiryHandlerStatistics(this.queryParamsHstj).then(res => {
  3210. this.channelList = res.data.dataChannel
  3211. let arr = []
  3212. for (let key in this.channelList) {
  3213. arr.push({
  3214. value: this.channelList[key], // label 字段
  3215. label: key // value字段
  3216. })
  3217. }
  3218. this.channelList = arr
  3219. this.tableData6 = res.data.table.rows
  3220. this.tongji5 = true;
  3221. })
  3222. },
  3223. /** 搜索按钮操作 */
  3224. handleQuery() {
  3225. this.disabled = true;
  3226. this.block = false;
  3227. this.queryParams.pageNum = 1;
  3228. this.getList();
  3229. if (this.admin != 'admin') {
  3230. this.getquiryShopProfitStatistics();
  3231. }
  3232. },
  3233. handleQuery1() {
  3234. this.queryParams.pageNum = 1;
  3235. this.getList();
  3236. this.getquiryShopProfitStatistics();
  3237. },
  3238. handleQuery2() {
  3239. this.disabled = true;
  3240. this.block = false;
  3241. this.queryParams.pageNum = 1;
  3242. this.getList1();
  3243. },
  3244. /** 重置按钮操作 */
  3245. resetQuery() {
  3246. this.block = false;
  3247. this.disabled = true;
  3248. this.resetForm("queryForm");
  3249. this.handleQuery1();
  3250. },
  3251. /** 详细按钮操作 */
  3252. handleUpdate(row) {
  3253. this.open = true;
  3254. if (row.isSecurity == null) {
  3255. this.bp = false
  3256. } else {
  3257. this.bp = true
  3258. }
  3259. let query = {
  3260. id: row.id
  3261. }
  3262. getPaymentInfo(query).then(response => {
  3263. this.form = response.data;
  3264. });
  3265. },
  3266. //上传凭证按钮
  3267. handleUpdate3(row) {
  3268. Cookies.set('id', row.id)
  3269. Cookies.set('mainIndustry', row.mainIndustry)
  3270. this.open2 = true;
  3271. },
  3272. // 退款按钮
  3273. handleUpdate4(row) {
  3274. Cookies.set('id', row.id)
  3275. this.tuikuan = true
  3276. },
  3277. // 撤回按钮
  3278. // 撤回按钮
  3279. handleUpdate5(row) {
  3280. this.$prompt('请输入商品编码', '确认撤回', {
  3281. confirmButtonText: '确定',
  3282. cancelButtonText: '取消',
  3283. inputPattern: /^\S+$/, // 可选:正则限制输入(非空等)
  3284. inputErrorMessage: '商品编码不能为空' // 正则不通过时的提示
  3285. }).then(({ value }) => {
  3286. // value 是用户输入的商品编码
  3287. // 这里可校验 value 是否等于 row.goodsId(如果需要匹配)
  3288. if (value !== row.goodsId) {
  3289. this.$message({
  3290. type: 'warning',
  3291. message: '商品编码不匹配,请重新输入'
  3292. });
  3293. return; // 不继续执行撤回逻辑
  3294. }else{
  3295. let query = {
  3296. id: row.id
  3297. }
  3298. console.log(query)
  3299. revoke(query).then(res => {
  3300. this.$message({
  3301. type: 'success',
  3302. message: '撤回成功!'
  3303. })
  3304. this.getList()
  3305. })
  3306. }
  3307. }).then(() => {
  3308. }).catch((error) => {
  3309. // 取消或输入错误时的处理
  3310. if (error === 'cancel') {
  3311. this.$message({
  3312. type: 'info',
  3313. message: '已取消撤回'
  3314. });
  3315. } else {
  3316. // 输入错误(如正则校验失败),可根据需要处理
  3317. }
  3318. });
  3319. },
  3320. // handleUpdate5(row) {
  3321. // this.$confirm('确定撤销商品编号为' + row.goodsId + '的数据吗?', '撤回', {
  3322. // confirmButtonText: '确定',
  3323. // cancelButtonText: '取消',
  3324. // type: 'warning'
  3325. // }).then(() => {
  3326. // let query = {
  3327. // id: row.id
  3328. // }
  3329. // revoke(query).then(res => {
  3330. // this.$message({
  3331. // type: 'success',
  3332. // message: '撤回成功!'
  3333. // })
  3334. // this.getList()
  3335. // })
  3336. // }).catch(() => {
  3337. // this.$message({
  3338. // type: 'info',
  3339. // message: '已取消撤回'
  3340. // });
  3341. // });
  3342. // },
  3343. goQdlb(item) {
  3344. let channel = item.distributionChannel;
  3345. this.$router.push({
  3346. path: "/MoneyGoodsPayment/goodsPaymentqdxq?channel=" + channel
  3347. }).catch(() => {});
  3348. },
  3349. bh() {
  3350. let id = Cookies.get('id')
  3351. let query = {
  3352. id: id,
  3353. remark: this.queryParams.remark
  3354. }
  3355. updateTefund(query).then(res => {
  3356. // console.log(res)
  3357. this.$message({
  3358. type: 'success',
  3359. message: '退款成功!'
  3360. })
  3361. this.tuikuan = false
  3362. this.getList()
  3363. })
  3364. },
  3365. /** 编辑按钮操作 */
  3366. handleUpdate1(row) {
  3367. if (row.paymentMethod == 'pay_type_4' || row.paymentMethod == '' || row.paymentMethod == 'null' || row
  3368. .paymentMethod == null) {
  3369. this.xs = false
  3370. this.xx = true
  3371. this.bp = true
  3372. this.dbbp = true
  3373. } else {
  3374. this.xs = true
  3375. this.xx = false
  3376. this.bp = false
  3377. this.dbbp = false
  3378. }
  3379. if (row.distributionChannel != 'taohaowan' && row.distributionChannel !=
  3380. 'all' && row.distributionChannel != 'null' && row.distributionChannel != null) {
  3381. this.channelid = true
  3382. } else {
  3383. this.channelid = false
  3384. }
  3385. if (row.isSecurity == 'Y') {
  3386. this.bp1 = true
  3387. } else {
  3388. this.bp1 = false
  3389. }
  3390. if (row.isMultiple == 'is_multiple_0') {
  3391. this.bp2 = true
  3392. } else {
  3393. this.bp2 = false
  3394. }
  3395. if (row.byStages != '' && row.byStages != null && row.byStages != 'null') {
  3396. this.dbbp1 = true
  3397. } else {
  3398. this.dbbp1 = false
  3399. }
  3400. if (row.paymentStatus == 'CX' || row.paymentStatus == 'DH') {
  3401. this.ch = true;
  3402. } else {
  3403. this.ch = false;
  3404. }
  3405. let query = {
  3406. goodsId: row.goodsId
  3407. }
  3408. let data = {
  3409. goodsId: row.goodsId
  3410. }
  3411. getGoodsInfo(data).then(response => {
  3412. if (response.data.gameAccount != undefined && response.data.gameAccount != '') {
  3413. this.form1.gameAccount = response.data.gameAccount;
  3414. } else {
  3415. this.form1.gameAccount = null
  3416. }
  3417. this.form1.id = response.data.id;
  3418. this.form1.goodsName = response.data.goodsName;
  3419. this.form1.gameId = response.data.gameId;
  3420. this.form1.gameareaValue = response.data.gameareaValue;
  3421. this.form1.identifiedName = response.data.identifiedName;
  3422. this.form1.ranking = response.data.ranking;
  3423. this.form1.shopName = response.data.shopName;
  3424. this.form1.price = response.data.price;
  3425. this.form1.discountedPrice = response.data.discountedPrice;
  3426. Cookies.set('mainIndustry', response.data.mainIndustry)
  3427. Cookies.set('shopId', response.data.shopId)
  3428. if (response.data.mainIndustry == 'account_source_0' || response.data.mainIndustry ==
  3429. 'account_source_1' || response.data.mainIndustry == 'account_source_3') {
  3430. this.cbj = true;
  3431. } else {
  3432. this.cbj = false;
  3433. }
  3434. });
  3435. let query1 = {
  3436. id: row.id
  3437. }
  3438. getPaymentInfo(query1).then(response => {
  3439. this.form1.paidinPrice = Number(response.data.paidinPrice);
  3440. this.form1.originalPrice = response.data.originalPrice;
  3441. if (this.$auth.hasPermi('system:goodsPayment:nbhs')) {
  3442. if (!this.bpLr6) {
  3443. this.form1.distributionChannel = 'taohaowan';
  3444. this.bpLr7 = true;
  3445. } else {
  3446. this.form1.distributionChannel = response.data.distributionChannel;
  3447. }
  3448. } else {
  3449. this.form1.distributionChannel = response.data.distributionChannel;
  3450. }
  3451. this.form1.paymentMethod = response.data.paymentMethod;
  3452. this.form1.handlingfee = response.data.handlingfee;
  3453. this.form1.paymentChannels = response.data.paymentChannels;
  3454. this.form1.channelId = response.data.channelId;
  3455. this.form1.isSecurity = response.data.isSecurity;
  3456. this.form1.securityRate = response.data.securityRate;
  3457. this.form1.securityPrice = response.data.securityPrice;
  3458. this.form1.isMultiple = response.data.isMultiple;
  3459. this.form1.securityRate1 = response.data.securityRate1;
  3460. this.form1.multiplePrice = response.data.multiplePrice;
  3461. this.form1.byStages = response.data.byStages;
  3462. this.open1 = true
  3463. Cookies.set('distributionChannel', response.data.distributionChannel)
  3464. });
  3465. this.queryParams.originalPrice = row.originalPrice
  3466. Cookies.set('id', row.id)
  3467. Cookies.set('goodsId', row.goodsId)
  3468. Cookies.set('mainIndustry', row.mainIndustry)
  3469. },
  3470. // 申请结算
  3471. handleUpdate2(row) {
  3472. let pastTime = row.createTime
  3473. let now = this.$moment(pastTime).format('YYYY-MM-DD')
  3474. let days = this.$moment().format('YYYY-MM-DD')
  3475. if (now != days) {
  3476. if (row.settlementPrice == null || Number(row.settlementPrice) == 0 || row.settlementPrice == '' || row
  3477. .settlementPrice == 'null') {
  3478. this.$alert('无结算价格,请联系客服', '提示', {
  3479. confirmButtonText: '确定',
  3480. });
  3481. } else if (row.paymentMethod=='pay_type_4'&&(!row.paymentVoucher || row.paymentVoucher === 'null')) {
  3482. this.$alert('无付款凭证,请联系客服', '提示', {
  3483. confirmButtonText: '确定',
  3484. });
  3485. } else {
  3486. this.$confirm('您的结算金额是 ¥' + row.settlementPrice + '', '申请结算', {
  3487. confirmButtonText: '确定',
  3488. cancelButtonText: '取消',
  3489. type: 'warning'
  3490. }).then(() => {
  3491. let query = {
  3492. id: row.id
  3493. }
  3494. applyForSettlement(query).then(res => {
  3495. this.$message({
  3496. type: 'success',
  3497. message: '结算成功!'
  3498. })
  3499. this.getList()
  3500. })
  3501. }).catch(() => {
  3502. this.$message({
  3503. type: 'info',
  3504. message: '已取消结算'
  3505. });
  3506. });
  3507. }
  3508. } else {
  3509. this.$message.error('当天订单不能申请结算!');
  3510. }
  3511. },
  3512. submitForm1() {
  3513. this.$refs["form1"].validate(valid => {
  3514. if (valid) {
  3515. let goodsid = Cookies.get('id')
  3516. let goodsId = Cookies.get('goodsId')
  3517. let shopId = Cookies.get('shopId')
  3518. let getdistributionChannel = Cookies.get('distributionChannel')
  3519. if (typeof(this.form1.distributionChannel) == 'string') {
  3520. if (getdistributionChannel != 'null') {
  3521. this.form1.distributionChannel = getdistributionChannel
  3522. } else {
  3523. this.form1.distributionChannel = this.form1.distributionChannel
  3524. }
  3525. } else {
  3526. this.form1.distributionChannel = this.form1.distributionChannel[1]
  3527. }
  3528. if (this.form1.isMultiple == '') {
  3529. this.form1.isMultiple = null
  3530. }
  3531. if (this.form1.multiplePrice == '0.00') {
  3532. this.form1.multiplePrice = null
  3533. }
  3534. let getmainIndustry = Cookies.get('mainIndustry')
  3535. let query = {
  3536. id: goodsid,
  3537. // goodsId: this.form1.id,
  3538. goodsId: goodsId,
  3539. shopId: shopId,
  3540. gameAccount: this.form1.gameAccount,
  3541. originalPrice: this.form1.originalPrice,
  3542. salesPrice: this.form1.price,
  3543. paymentChannels: this.form1.paymentChannels,
  3544. paidinPrice: this.form1.paidinPrice,
  3545. distributionChannel: this.form1.distributionChannel,
  3546. channelId: this.form1.channelId,
  3547. isSecurity: this.form1.isSecurity,
  3548. securityRate: this.form1.securityRate,
  3549. securityPrice: this.form1.securityPrice,
  3550. isMultiple: this.form1.isMultiple,
  3551. securityRate1: this.form1.securityRate1,
  3552. multiplePrice: this.form1.multiplePrice,
  3553. byStages: this.form1.byStages,
  3554. }
  3555. if (this.form1.gameAccount == null || this.form1.gameAccount == '') {
  3556. this.$message.error('请输入游戏账号!');
  3557. } else {
  3558. edit(query).then(response => {
  3559. this.form1.byStages = null;
  3560. this.form1.distributionChannel = null;
  3561. this.dbbp = false;
  3562. this.dbbp1 = false;
  3563. this.channelid = false
  3564. this.bp = false;
  3565. this.bp2 = false;
  3566. this.bp1 = false;
  3567. this.open1 = false
  3568. this.getList()
  3569. this.$message({
  3570. type: 'success',
  3571. message: '编辑成功'
  3572. })
  3573. });
  3574. }
  3575. }
  3576. })
  3577. },
  3578. submitForm2() {
  3579. // console.log(this.form.electronicDataList.toString())
  3580. let electronicDataList = this.form.electronicDataList.toString();
  3581. let goodsid = Cookies.get('id')
  3582. let getmainIndustry = Cookies.get('mainIndustry')
  3583. let query = {
  3584. mainIndustry: getmainIndustry,
  3585. paymentVoucher: electronicDataList,
  3586. paymentChannels: this.form1.paymentChannels,
  3587. id: goodsid,
  3588. }
  3589. updatePic(query).then(response => {
  3590. this.form.electronicDataList = []
  3591. this.open2 = false
  3592. this.getList()
  3593. });
  3594. },
  3595. cancel() {
  3596. this.dbbp = false;
  3597. this.channelid = false
  3598. this.bp = false;
  3599. this.bp2 = false;
  3600. this.bp1 = false;
  3601. this.open1 = false;
  3602. this.open2 = false;
  3603. this.resetForm("form");
  3604. this.resetForm("form1");
  3605. },
  3606. }
  3607. };
  3608. </script>
  3609. <style>
  3610. .lirunList {
  3611. line-height: 30px;
  3612. }
  3613. .lirunList p {
  3614. display: flex;
  3615. justify-content: space-between;
  3616. }
  3617. .lirunList p span {
  3618. font-weight: 700;
  3619. width: 20%;
  3620. }
  3621. .el-table .warning-row {
  3622. background: oldlace;
  3623. }
  3624. .el-table .success-row {
  3625. background: #f0f9eb;
  3626. }
  3627. .father {
  3628. height: 80px;
  3629. line-height: 80px;
  3630. font-size: 20px;
  3631. display: flex;
  3632. justify-content: space-between;
  3633. }
  3634. .father1 {
  3635. height: 80px;
  3636. line-height: 80px;
  3637. font-size: 20px;
  3638. display: flex;
  3639. justify-content: space-between;
  3640. }
  3641. .el-icon-loading {
  3642. color: green;
  3643. margin-right: 5px;
  3644. }
  3645. .el-icon-message-solid {
  3646. color: green;
  3647. margin-right: 5px;
  3648. }
  3649. .el-icon-check {
  3650. color: green;
  3651. margin-right: 5px;
  3652. }
  3653. .el-icon-coin {
  3654. color: green;
  3655. margin-right: 5px;
  3656. }
  3657. </style>