FlowManage.vue 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654
  1. <template>
  2. <div class="manage-root">
  3. <Header />
  4. <div class="manage-root-contain">
  5. <nav-menu
  6. class="manage-root-contain-left"
  7. :activeMenuIndex="activeMenuIndex"
  8. ></nav-menu>
  9. <div
  10. class="manage-root-contain-right"
  11. :class="[isPhone ? 'manage-root-contain-right-phone' : '']"
  12. >
  13. <breadcrumb
  14. :breadcrumbList="breadcrumbList"
  15. class="breadcrumb-box"
  16. :class="[isPhone ? 'breadcrumb-box-phone' : '']"
  17. ></breadcrumb>
  18. <div class="personal-inner">
  19. <div class="common-title-box">
  20. <h3>交易流水</h3>
  21. <span v-if="isPhone" @click="showSearch = !showSearch">{{
  22. showSearch ? "收起查询条件" : "展开查询条件"
  23. }}</span>
  24. <div class="btn-box" v-if="!isPhone">
  25. <ul class="quick-search">
  26. <li v-for="(itemq, indexq) in quickList" :key="indexq">
  27. <a
  28. @click="qucikSearch(itemq, indexq)"
  29. :class="[quickIndex === indexq ? 'active' : '']"
  30. >{{ itemq.name }}</a
  31. >
  32. <span
  33. class="border"
  34. :class="[
  35. indexq !== quickList.length - 1 &&
  36. quickIndex !== indexq &&
  37. quickIndex - 1 !== indexq
  38. ? ''
  39. : 'border-no',
  40. ]"
  41. ></span>
  42. </li>
  43. </ul>
  44. <el-button
  45. type="primary"
  46. size="small"
  47. @click="handleExport()"
  48. :loading="exportLoading"
  49. v-if="exportFlag"
  50. >导出报表</el-button
  51. >
  52. </div>
  53. </div>
  54. <template v-if="showSearch">
  55. <div class="btn-box" v-if="isPhone">
  56. <ul class="quick-search">
  57. <li v-for="(itemq, indexq) in quickList" :key="indexq">
  58. <a
  59. @click="qucikSearch(itemq, indexq)"
  60. :class="[quickIndex === indexq ? 'active' : '']"
  61. >{{ itemq.name }}</a
  62. >
  63. <span
  64. class="border"
  65. :class="[
  66. indexq !== quickList.length - 1 &&
  67. quickIndex !== indexq &&
  68. quickIndex - 1 !== indexq
  69. ? ''
  70. : 'border-no',
  71. ]"
  72. ></span>
  73. </li>
  74. </ul>
  75. <el-button
  76. type="primary"
  77. size="small"
  78. @click="handleExport()"
  79. :loading="exportLoading"
  80. v-if="exportFlag"
  81. >导出报表</el-button
  82. >
  83. </div>
  84. <div class="proceeds-box">
  85. <div>
  86. <h6>
  87. 收款<span>({{ total_count }}单)</span>
  88. </h6>
  89. <label v-if="proceedsPriceArr.length == 2"
  90. >¥{{ proceedsPriceArr[0] }}.<b>{{ proceedsPriceArr[1] }}</b
  91. ><span>元</span></label
  92. >
  93. </div>
  94. <div>
  95. <h6>退款</h6>
  96. <label v-if="refundPriceArr.length == 2"
  97. >¥{{ refundPriceArr[0] }}.<b>{{ refundPriceArr[1] }}</b
  98. ><span>元</span></label
  99. >
  100. </div>
  101. </div>
  102. <div class="search-box">
  103. <div class="search-item">
  104. <label>搜索</label>
  105. <el-input
  106. placeholder="商品名称/用户名/单号/手机号"
  107. v-model="searchInput"
  108. maxlength="200"
  109. >
  110. <i
  111. slot="suffix"
  112. class="el-input__icon el-icon-search"
  113. @click="getList(1)"
  114. style="cursor: pointer"
  115. ></i>
  116. </el-input>
  117. </div>
  118. <div class="search-item" v-if="isPhone">
  119. <label>交易时间</label>
  120. <el-date-picker
  121. v-model="validityStart"
  122. type="date"
  123. size="small"
  124. placeholder="开始日期"
  125. value-format="yyyy-MM-dd"
  126. @change="
  127. quickIndex = null;
  128. getList(1);
  129. "
  130. >
  131. </el-date-picker>
  132. <el-date-picker
  133. v-model="validityEnd"
  134. type="date"
  135. size="small"
  136. placeholder="结束日期"
  137. value-format="yyyy-MM-dd"
  138. @change="
  139. quickIndex = null;
  140. getList(1);
  141. "
  142. >
  143. </el-date-picker>
  144. </div>
  145. <div class="search-item" v-else>
  146. <label>交易时间</label>
  147. <el-date-picker
  148. v-model="validity"
  149. type="daterange"
  150. size="small"
  151. range-separator="-"
  152. start-placeholder="开始日期"
  153. end-placeholder="结束日期"
  154. value-format="yyyy-MM-dd"
  155. @change="
  156. quickIndex = null;
  157. getList(1);
  158. "
  159. >
  160. </el-date-picker>
  161. </div>
  162. <div class="search-item">
  163. <label>学段</label>
  164. <el-select
  165. v-model="searchStudy"
  166. @change="getList(1)"
  167. placeholder="请选择"
  168. >
  169. <el-option
  170. v-for="item in $studyTypeAll"
  171. :key="item.study_phase"
  172. :label="item.study_phase_name"
  173. :value="item.study_phase"
  174. >
  175. </el-option>
  176. </el-select>
  177. </div>
  178. <div class="search-item">
  179. <label>商品类型</label>
  180. <el-select
  181. v-model="searchGoodsType"
  182. @change="getList(1)"
  183. placeholder="请选择"
  184. >
  185. <el-option
  186. v-for="item in goodsTypeList"
  187. :key="item.value"
  188. :label="item.goods_name"
  189. :value="item.value"
  190. >
  191. </el-option>
  192. </el-select>
  193. </div>
  194. <div class="search-item">
  195. <label>是否使用兑换码</label>
  196. <el-select
  197. v-model="searchIsCDKEY"
  198. @change="getList(1)"
  199. placeholder="请选择"
  200. >
  201. <el-option
  202. v-for="item in isCDKEYList"
  203. :key="item.value"
  204. :label="item.label"
  205. :value="item.value"
  206. >
  207. </el-option>
  208. </el-select>
  209. </div>
  210. <div class="search-item">
  211. <label>交易状态</label>
  212. <el-select
  213. v-model="searchStatus"
  214. @change="getList(1)"
  215. placeholder="请选择"
  216. >
  217. <el-option
  218. v-for="item in transactionList"
  219. :key="item.status"
  220. :label="item.status_name"
  221. :value="item.status"
  222. >
  223. </el-option>
  224. </el-select>
  225. </div>
  226. <div class="search-item">
  227. <label>客户所在机构</label>
  228. <el-select
  229. v-model="searchOrgid"
  230. @change="getList(1)"
  231. placeholder="请选择"
  232. >
  233. <el-option
  234. v-for="item in orgList"
  235. :key="item.id"
  236. :label="item.name"
  237. :value="item.id"
  238. >
  239. </el-option>
  240. </el-select>
  241. </div>
  242. <div class="search-item">
  243. <label>客户所在省市</label>
  244. <el-cascader
  245. size="medium"
  246. :options="$provinceCityListAll"
  247. v-model="searchArea"
  248. :props="props"
  249. collapse-tags
  250. clearable
  251. @change="getList(1)"
  252. >
  253. </el-cascader>
  254. </div>
  255. <div class="search-item">
  256. <label>支付渠道</label>
  257. <el-select
  258. v-model="searchChannel"
  259. @change="getList(1)"
  260. placeholder="请选择"
  261. >
  262. <el-option
  263. v-for="item in channelList"
  264. :key="item.value"
  265. :label="item.label"
  266. :value="item.value"
  267. >
  268. </el-option>
  269. </el-select>
  270. </div>
  271. </div>
  272. </template>
  273. <el-table
  274. class="search-table"
  275. :data="tableData"
  276. style="width: 100%"
  277. @sort-change="handleSort"
  278. :default-sort="dataSort"
  279. v-loading="tableLoading"
  280. :max-height="isPhone ? 'auto' : tableHeight"
  281. >
  282. <el-table-column
  283. type="index"
  284. label="#"
  285. sortable
  286. width="54"
  287. :index="(pageNumber - 1) * pageSize + 1"
  288. >
  289. </el-table-column>
  290. <el-table-column
  291. prop="sn"
  292. label="交易单号"
  293. width="190"
  294. class-name="user-info"
  295. >
  296. </el-table-column>
  297. <el-table-column
  298. prop="pay_time"
  299. label="交易时间"
  300. sortable="custom"
  301. width="165"
  302. >
  303. </el-table-column>
  304. <el-table-column prop="name" label="购买商品" min-width="220">
  305. </el-table-column>
  306. <el-table-column prop="goods_type" label="商品类型" width="128">
  307. <template slot-scope="scope">
  308. <span
  309. class="items-type"
  310. :style="{
  311. background: goodsTypeListCss[scope.row.goods_type]
  312. ? goodsTypeListCss[scope.row.goods_type].bg
  313. : '',
  314. color: goodsTypeListCss[scope.row.goods_type]
  315. ? goodsTypeListCss[scope.row.goods_type].color
  316. : '',
  317. }"
  318. >{{ scope.row.goods_type_name }}</span
  319. >
  320. </template>
  321. </el-table-column>
  322. <el-table-column prop="is_reservation" label="是否预定" width="80">
  323. <template slot-scope="scope">
  324. {{ scope.row.is_reservation === "true" ? "是" : "否" }}
  325. </template>
  326. </el-table-column>
  327. <el-table-column label="自动升学" width="80">
  328. <template slot-scope="scope">
  329. <span>{{
  330. scope.row.is_reservation === "true" &&
  331. scope.row.period_count === -1
  332. ? scope.row.is_auto_adjust_study_phase === "true"
  333. ? "是"
  334. : "否"
  335. : ""
  336. }}</span>
  337. </template>
  338. </el-table-column>
  339. <el-table-column
  340. prop="goods_study_phase_name"
  341. label="学段"
  342. width="64"
  343. >
  344. </el-table-column>
  345. <el-table-column prop="goods_price" label="价格" width="140">
  346. <template slot-scope="scope">
  347. <span class="currectPrice"
  348. >¥{{ scope.row.goods_price_discount | cutMoneyFiter }}</span
  349. >
  350. <span
  351. class="oldPrice"
  352. v-if="
  353. scope.row.goods_price !== scope.row.goods_price_discount
  354. "
  355. >(¥{{ scope.row.goods_price | cutMoneyFiter }})</span
  356. >
  357. </template>
  358. </el-table-column>
  359. <el-table-column prop="discount_code" label="兑换码" width="194">
  360. <template slot-scope="scope">
  361. <template v-if="scope.row.is_use_discount_code == 'false'">
  362. 未使用
  363. </template>
  364. <template v-else>
  365. <template v-if="scope.row.discount_code">
  366. <span
  367. class="code"
  368. :id="'copy-' + scope.row.discount_code"
  369. >{{ scope.row.discount_code }}</span
  370. >
  371. <svg-icon
  372. icon-class="copy"
  373. class="copy"
  374. @click="
  375. CopyToClipboard('copy-' + scope.row.discount_code)
  376. "
  377. ></svg-icon>
  378. </template>
  379. <template v-else> - </template>
  380. </template>
  381. </template>
  382. </el-table-column>
  383. <el-table-column prop="order_amount" label="支付金额" width="104">
  384. <template slot-scope="scope">
  385. <span class="currectPrice"
  386. >¥{{ scope.row.order_amount | cutMoneyFiter }}</span
  387. >
  388. </template>
  389. </el-table-column>
  390. <el-table-column prop="pay_type_name" label="支付渠道" width="104">
  391. </el-table-column>
  392. <el-table-column prop="transaction_sn" label="支付流水" width="260">
  393. </el-table-column>
  394. <el-table-column
  395. prop="person_name"
  396. label="购买者"
  397. sortable="custom"
  398. width="109"
  399. >
  400. </el-table-column>
  401. <el-table-column prop="person_user_name" label="用户名" width="109">
  402. </el-table-column>
  403. <el-table-column prop="person_phone" label="手机号" width="109">
  404. </el-table-column>
  405. <el-table-column
  406. prop="person_city_name"
  407. label="客户所在省市"
  408. width="164"
  409. >
  410. <template slot-scope="scope">
  411. {{
  412. scope.row.person_province_name +
  413. "/" +
  414. scope.row.person_city_name
  415. }}
  416. </template>
  417. </el-table-column>
  418. <el-table-column
  419. prop="person_org_name"
  420. label="客户所在机构"
  421. sortable="custom"
  422. width="200"
  423. >
  424. </el-table-column>
  425. <el-table-column prop="order_status" label="交易状态" width="112">
  426. <template slot-scope="scope">
  427. <div class="status-box">
  428. <span
  429. :style="{
  430. background: transactionListCss[scope.row.order_status]
  431. ? transactionListCss[scope.row.order_status].bg
  432. : '',
  433. }"
  434. ></span>
  435. <b>{{
  436. transactionListCss[scope.row.order_status]
  437. ? transactionListCss[scope.row.order_status].text
  438. : "-"
  439. }}</b>
  440. </div>
  441. </template>
  442. </el-table-column>
  443. <el-table-column
  444. prop="refund_apply_status"
  445. label="退款申请状态"
  446. width="112"
  447. >
  448. <template
  449. slot-scope="scope"
  450. v-if="scope.row.is_has_refund_apply === 'true'"
  451. >
  452. <div class="status-box">
  453. <span
  454. :style="{
  455. background:
  456. refundStatusList[scope.row.refund_apply_status].bg,
  457. }"
  458. ></span>
  459. <b
  460. :style="{
  461. color:
  462. refundStatusList[scope.row.refund_apply_status]
  463. .textColor,
  464. }"
  465. >{{
  466. refundStatusList[scope.row.refund_apply_status].text
  467. }}</b
  468. >
  469. </div>
  470. </template>
  471. </el-table-column>
  472. <el-table-column
  473. prop="refund_apply_submit_time"
  474. label="退款申请提交时间"
  475. width="180"
  476. >
  477. </el-table-column>
  478. <el-table-column prop="refund_amount" label="退款金额" width="144">
  479. <template
  480. slot-scope="scope"
  481. v-if="scope.row.refund_apply_status === 2"
  482. >
  483. <span class="currectPrice"
  484. >¥{{ scope.row.refund_amount | cutMoneyFiter }}</span
  485. >
  486. </template>
  487. </el-table-column>
  488. <el-table-column
  489. prop="refund_transaction_sn"
  490. label="退款交易流水号"
  491. width="260"
  492. >
  493. </el-table-column>
  494. <el-table-column
  495. fixed="right"
  496. label="操作"
  497. :width="isPhone ? '50' : '130'"
  498. >
  499. <template slot-scope="scope">
  500. <template v-if="isPhone">
  501. <el-dropdown
  502. trigger="click"
  503. v-if="scope.row.is_use_discount_code == 'false'"
  504. >
  505. <span class="el-dropdown-link">
  506. <svg-icon
  507. icon-class="operate"
  508. class="el-dropdown-link"
  509. ></svg-icon>
  510. </span>
  511. <el-dropdown-menu slot="dropdown">
  512. <el-dropdown-item
  513. @click.native.prevent="
  514. handleRefund(scope.row, scope.$index)
  515. "
  516. v-if="scope.row.is_use_discount_code == 'false'"
  517. >退款</el-dropdown-item
  518. >
  519. <el-dropdown-item
  520. @click.native.prevent="
  521. handleLookInfo(scope.row, scope.$index)
  522. "
  523. >查看</el-dropdown-item
  524. >
  525. <el-dropdown-item
  526. @click.native.prevent="
  527. handleEditInfo(scope.row, scope.$index)
  528. "
  529. v-if="
  530. scope.row.is_reservation === 'true' &&
  531. scope.row.period_count === -1
  532. "
  533. >修改</el-dropdown-item
  534. >
  535. </el-dropdown-menu>
  536. </el-dropdown>
  537. </template>
  538. <template v-else>
  539. <el-button
  540. type="text"
  541. size="small"
  542. class="red-btn"
  543. @click.native.prevent="
  544. handleRefund(scope.row, scope.$index)
  545. "
  546. v-if="scope.row.is_use_discount_code == 'false'"
  547. >
  548. 退款
  549. </el-button>
  550. <el-button
  551. type="text"
  552. size="small"
  553. class="primary-btn"
  554. @click.native.prevent="
  555. handleLookInfo(scope.row, scope.$index)
  556. "
  557. >
  558. 查看
  559. </el-button>
  560. <el-button
  561. type="text"
  562. size="small"
  563. class="primary-btn"
  564. @click.native.prevent="
  565. handleEditInfo(scope.row, scope.$index)
  566. "
  567. v-if="
  568. scope.row.is_reservation === 'true' &&
  569. scope.row.period_count === -1
  570. "
  571. >
  572. 修改
  573. </el-button>
  574. <!-- <el-button
  575. @click.native.prevent="handleUp(scope.row, scope.$index)"
  576. type="text"
  577. size="small"
  578. class="red-btn"
  579. v-if="scope.row.order_status === 2"
  580. >
  581. 撤回
  582. </el-button> -->
  583. <!-- <el-button
  584. type="text"
  585. size="small"
  586. class="gray-btn"
  587. v-if="scope.row.order_status === 3"
  588. >
  589. 已退款
  590. </el-button>
  591. <el-button
  592. type="text"
  593. size="small"
  594. class="gray-btn"
  595. v-if="scope.row.order_status === 4"
  596. >
  597. 已撤回
  598. </el-button> -->
  599. </template>
  600. </template>
  601. </el-table-column>
  602. </el-table>
  603. <el-pagination
  604. background
  605. @size-change="handleSizeChange"
  606. @current-change="handleCurrentChange"
  607. :current-page="pageNumber"
  608. :page-sizes="[10, 20, 30, 40]"
  609. :page-size="pageSize"
  610. :layout="
  611. isPhone
  612. ? 'total, prev, pager, next'
  613. : 'total, prev, pager, next, sizes, jumper'
  614. "
  615. :total="total_count"
  616. :small="isPhone"
  617. :pager-count="isPhone ? 5 : 7"
  618. >
  619. </el-pagination>
  620. </div>
  621. </div>
  622. </div>
  623. <el-dialog
  624. title="退款信息"
  625. :visible.sync="dialogVisible"
  626. :width="isPhone ? '100%' : '500px'"
  627. >
  628. <template v-if="ktjeInfo">
  629. <span style="margin-right: 5px">退款金额:</span>
  630. <el-input v-model="ktje" style="width: 150px"></el-input>
  631. <p>商品信息</p>
  632. <div class="item-info">
  633. <label>物品类型:</label><span>{{ ktjeInfo.goods_type_name }}</span>
  634. </div>
  635. <div class="item-info">
  636. <label>物品学段:</label
  637. ><span>{{ ktjeInfo.goods_study_phase_name }}</span>
  638. </div>
  639. <div class="item-info">
  640. <label>购买商品:</label><span>{{ ktjeInfo.name }}</span>
  641. </div>
  642. <div class="item-info">
  643. <label>订单金额:</label
  644. ><span>¥{{ ktjeInfo.order_amount | cutMoneyFiter }}</span>
  645. </div>
  646. <!-- 物品实体 -->
  647. <template v-if="ktjeInfo.order_sale_model === 0">
  648. <div
  649. class="item-info"
  650. v-if="ktjeInfo.is_reservation_order === 'true'"
  651. >
  652. <label>订阅期数:</label
  653. ><span>{{
  654. ktjeInfo.period_count === -1 ? "年刊" : ktjeInfo.period_count
  655. }}</span>
  656. </div>
  657. <div class="item-info">
  658. <label>订阅刊数:</label><span>{{ ktjeInfo.ks_reservation }}</span>
  659. </div>
  660. <div
  661. class="item-info"
  662. v-if="
  663. ktjeInfo.is_reservation_order === 'true' &&
  664. ktjeInfo.period_count !== -1
  665. "
  666. >
  667. <label>订阅列表:</label
  668. ><span>{{ ktjeInfo.issue_no_list_reservation.join("、") }}</span>
  669. </div>
  670. <div
  671. class="item-info"
  672. v-if="
  673. ktjeInfo.is_reservation_order === 'true' &&
  674. ktjeInfo.issue_no_list_my_goods.length > 0
  675. "
  676. >
  677. <label>已上架:</label
  678. ><span>{{ ktjeInfo.issue_no_list_my_goods.join("、") }}</span>
  679. </div>
  680. <div class="item-info">
  681. <label>已上架刊数:</label><span>{{ ktjeInfo.ks_my_goods }}</span>
  682. </div>
  683. <div
  684. class="item-info"
  685. v-if="
  686. ktjeInfo.is_reservation_order === 'true' &&
  687. ktjeInfo.period_count === -1
  688. "
  689. >
  690. <label>开始日期:</label
  691. ><span>{{ ktjeInfo.valid_period_begin_date }}</span>
  692. </div>
  693. <div
  694. class="item-info"
  695. v-if="
  696. ktjeInfo.is_reservation_order === 'true' &&
  697. ktjeInfo.period_count === -1
  698. "
  699. >
  700. <label>截止日期:</label
  701. ><span>{{ ktjeInfo.valid_period_end_date }}</span>
  702. </div>
  703. <div
  704. class="item-info"
  705. v-if="
  706. ktjeInfo.is_reservation_order === 'true' &&
  707. ktjeInfo.period_count === -1
  708. "
  709. >
  710. <label>当前日期:</label><span>{{ ktjeInfo.cur_date }}</span>
  711. </div>
  712. </template>
  713. <!-- 使用期限 -->
  714. <template v-if="ktjeInfo.order_sale_model === 1">
  715. <div class="item-info">
  716. <label>订单日期:</label><span>{{ ktjeInfo.order_date }}</span>
  717. </div>
  718. <div class="item-info">
  719. <label>有效期天数:</label
  720. ><span>{{ ktjeInfo.valid_period_day_count }}</span>
  721. </div>
  722. <div class="item-info">
  723. <label>截止日期:</label
  724. ><span>{{ ktjeInfo.valid_period_end_date }}</span>
  725. </div>
  726. <div class="item-info">
  727. <label>当前日期:</label><span>{{ ktjeInfo.cur_date }}</span>
  728. </div>
  729. </template>
  730. </template>
  731. <span slot="footer" class="dialog-footer">
  732. <el-button size="small" @click="dialogVisible = false">取 消</el-button>
  733. <el-button size="small" type="primary" @click="sureRefund"
  734. >确 定</el-button
  735. >
  736. </span>
  737. </el-dialog>
  738. <el-dialog
  739. title="已上架物品列表"
  740. :visible.sync="shelveVisible"
  741. :width="isPhone ? '100%' : '500px'"
  742. v-if="orderInfo"
  743. >
  744. <el-table :data="goodsListShelve" style="width: 100%">
  745. <el-table-column type="index" label="#" width="54"> </el-table-column>
  746. <el-table-column prop="name" label="名称" width="200">
  747. </el-table-column>
  748. <el-table-column prop="issue_no" label="期号" width="60">
  749. </el-table-column>
  750. <el-table-column prop="study_phase_name" label="学段" width="60">
  751. </el-table-column>
  752. <el-table-column prop="type" label="商品类型">
  753. <template slot-scope="scope">
  754. <span
  755. class="items-type"
  756. :style="{
  757. background: goodsTypeListCss[scope.row.type]
  758. ? goodsTypeListCss[scope.row.type].bg
  759. : '',
  760. color: goodsTypeListCss[scope.row.type]
  761. ? goodsTypeListCss[scope.row.type].color
  762. : '',
  763. }"
  764. >{{ goodsTypeListCss[scope.row.type].text }}</span
  765. >
  766. </template>
  767. </el-table-column>
  768. </el-table>
  769. <template
  770. v-if="
  771. orderInfo.sale_model === 0 &&
  772. orderInfo.is_reservation === 'true' &&
  773. orderInfo.period_count === -1
  774. "
  775. >
  776. <h4>
  777. 年订阅【{{
  778. orderInfo.is_auto_adjust_study_phase === "true"
  779. ? "自动升学"
  780. : "不自动升学"
  781. }}】
  782. </h4>
  783. <p>
  784. {{
  785. orderInfo.valid_period_1_study_phase_name +
  786. " &nbsp;&nbsp; " +
  787. orderInfo.valid_period_1_begin_date +
  788. " &nbsp;&nbsp;至&nbsp;&nbsp; " +
  789. orderInfo.valid_period_1_end_date
  790. }}
  791. </p>
  792. <p v-if="orderInfo.valid_period_2_study_phase !== 0">
  793. {{
  794. orderInfo.valid_period_2_study_phase_name +
  795. " &nbsp;&nbsp; " +
  796. orderInfo.valid_period_2_begin_date +
  797. " &nbsp;&nbsp;至&nbsp;&nbsp; " +
  798. orderInfo.valid_period_2_end_date
  799. }}
  800. </p>
  801. </template>
  802. <template v-else>
  803. <h4>有效期</h4>
  804. <p>
  805. {{
  806. orderInfo.valid_period_1_study_phase_name +
  807. " &nbsp;&nbsp; " +
  808. orderInfo.valid_period_1_begin_date +
  809. " &nbsp;&nbsp;至&nbsp;&nbsp; " +
  810. orderInfo.valid_period_1_end_date
  811. }}
  812. </p>
  813. </template>
  814. <span slot="footer" class="dialog-footer">
  815. <el-button size="small" type="primary" @click="shelveVisible = false"
  816. >确 定</el-button
  817. >
  818. </span>
  819. </el-dialog>
  820. <el-dialog
  821. title="修改"
  822. :visible.sync="editInfoFlag"
  823. :width="isPhone ? '100%' : '500px'"
  824. >
  825. <el-form :model="editInfo">
  826. <el-form-item label="自动升学">
  827. <el-radio-group v-model="editInfo.is_auto_adjust_study_phase">
  828. <el-radio label="false">否</el-radio>
  829. <el-radio label="true">是</el-radio>
  830. </el-radio-group>
  831. </el-form-item>
  832. </el-form>
  833. <span slot="footer" class="dialog-footer">
  834. <el-button size="small" @click="editInfoFlag = false">取 消</el-button>
  835. <el-button size="small" type="primary" @click="sureIsAuto"
  836. >确 定</el-button
  837. >
  838. </span>
  839. </el-dialog>
  840. </div>
  841. </template>
  842. <script>
  843. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  844. //例如:import 《组件名称》from ‘《组件路径》';
  845. import Header from "../../components/Header.vue";
  846. import NavMenu from "../../components/NavMenu.vue";
  847. import Breadcrumb from "../../components/Breadcrumb.vue";
  848. import { getLogin } from "@/api/ajax";
  849. import { mapState } from "vuex";
  850. import { cutMoneyFiter } from "@/utils/defined";
  851. import { getToken } from "@/utils/auth";
  852. export default {
  853. //import引入的组件需要注入到对象中才能使用
  854. components: { Header, NavMenu, Breadcrumb },
  855. props: {},
  856. filters: {
  857. cutMoneyFiter,
  858. },
  859. data() {
  860. //这里存放数据
  861. return {
  862. activeMenuIndex: "flow_manage",
  863. breadcrumbList: [
  864. {
  865. icon: "money-cny-box-line",
  866. url: "",
  867. text: "",
  868. },
  869. {
  870. icon: "",
  871. url: "",
  872. notLink: true,
  873. text: "财务中心",
  874. },
  875. {
  876. icon: "",
  877. url: "",
  878. text: "交易管理",
  879. },
  880. ],
  881. quickList: [], // 快速查询
  882. searchInput: "",
  883. searchQuick: null,
  884. quickIndex: null, // 快速搜索的索引
  885. proceedsNumber: "", // 收款单数
  886. proceedsPrice: null, // 收款金额
  887. proceedsPriceArr: [],
  888. refundPriceArr: [],
  889. searchType: -1,
  890. validity: "",
  891. validityStart: "",
  892. validityEnd: "",
  893. searchStudy: -1,
  894. searchStatus: -1,
  895. searchGoodsType: -1,
  896. searchIsCDKEY: -1,
  897. searchOrgid: "",
  898. searchArea: [],
  899. searchChannel: -1,
  900. channelList: [
  901. {
  902. label: "全部",
  903. value: -1,
  904. },
  905. {
  906. label: "支付宝",
  907. value: 4,
  908. },
  909. {
  910. label: "微信支付",
  911. value: 3,
  912. },
  913. ],
  914. orgList: [
  915. {
  916. name: "全部",
  917. id: "",
  918. },
  919. ],
  920. isCDKEYList: [
  921. {
  922. label: "全部",
  923. value: -1,
  924. },
  925. {
  926. label: "已使用",
  927. value: 1,
  928. },
  929. {
  930. label: "未使用",
  931. value: 0,
  932. },
  933. ], // 是否使用兑换码
  934. transactionList: [
  935. {
  936. status_name: "全部",
  937. status: -1,
  938. },
  939. {
  940. status_name: "支付成功",
  941. status: 1,
  942. },
  943. {
  944. status_name: "兑换成功",
  945. status: 2,
  946. },
  947. {
  948. status_name: "已退款",
  949. status: 3,
  950. },
  951. {
  952. status_name: "已撤回",
  953. status: 4,
  954. },
  955. ], //交易状态列表
  956. transactionListCss: {
  957. 0: {
  958. bg: "rgb(245, 63, 63)",
  959. text: "未支付",
  960. },
  961. 1: {
  962. bg: "#00B42A",
  963. text: "支付成功",
  964. },
  965. 2: {
  966. bg: "#165DFF",
  967. text: "兑换成功",
  968. },
  969. 3: {
  970. bg: "#F7BA1E",
  971. text: "已退款",
  972. },
  973. 4: {
  974. bg: "#FF7D00",
  975. text: "已撤回",
  976. },
  977. },
  978. goodsTypeList: [
  979. {
  980. goods_name: "全部",
  981. value: -1,
  982. },
  983. {
  984. goods_name: "报纸",
  985. value: 2,
  986. },
  987. {
  988. goods_name: "精读",
  989. value: 3,
  990. },
  991. {
  992. goods_name: "录播课",
  993. value: 0,
  994. },
  995. {
  996. goods_name: "画刊",
  997. value: 4,
  998. },
  999. ], // 商品类型
  1000. goodsTypeListCss: {
  1001. 2: {
  1002. text: "报纸",
  1003. color: "#165DFF",
  1004. bg: "#E8F7FF",
  1005. },
  1006. 4: {
  1007. text: "画刊",
  1008. color: "#F53F3F",
  1009. bg: "#FFECE8",
  1010. },
  1011. 3: {
  1012. text: "精读",
  1013. color: "#0FC6C2",
  1014. bg: "#E8FFFB",
  1015. },
  1016. 0: {
  1017. text: "课程",
  1018. color: "#722ED1",
  1019. bg: "#F5E8FF",
  1020. },
  1021. 1: {
  1022. text: "课程",
  1023. color: "#722ED1",
  1024. bg: "#F5E8FF",
  1025. },
  1026. 10: {
  1027. text: "课程",
  1028. color: "#722ED1",
  1029. bg: "#F5E8FF",
  1030. },
  1031. // '5':{
  1032. // text:'报纸专辑',
  1033. // color:'#165DFF',
  1034. // bg:'#E8F7FF'
  1035. // },
  1036. // '6':{
  1037. // text:'画刊专辑',
  1038. // color:'#F53F3F',
  1039. // bg:'#FFECE8'
  1040. // }
  1041. },
  1042. typeList: [
  1043. {
  1044. account_type: -1,
  1045. account_type_name: "全部",
  1046. },
  1047. ],
  1048. statusList: {
  1049. 1: {
  1050. text: "正常",
  1051. bg: "#165DFF",
  1052. color: "",
  1053. },
  1054. 0: {
  1055. text: "停用",
  1056. bg: "#F53F3F",
  1057. color: "#F53F3F",
  1058. },
  1059. },
  1060. tableData: [],
  1061. pageSize: window.localStorage.getItem("pageSize")
  1062. ? Number(window.localStorage.getItem("pageSize"))
  1063. : 10,
  1064. pageNumber: window.localStorage.getItem("pageNumber")
  1065. ? Number(window.localStorage.getItem("pageNumber"))
  1066. : 1,
  1067. tableHeight: "", // 表格高度
  1068. total_count: 0,
  1069. dataSort: {},
  1070. props: { multiple: true },
  1071. tableLoading: false,
  1072. exportLoading: false,
  1073. exportFlag:
  1074. getToken() && JSON.parse(getToken())
  1075. ? JSON.parse(getToken()).popedom_code_list.indexOf(40002) > -1
  1076. : false,
  1077. refundStatusList: {
  1078. 2: {
  1079. text: "审核通过",
  1080. bg: "#00B42A",
  1081. textColor: "#1D2129",
  1082. },
  1083. 0: {
  1084. text: "待审核",
  1085. bg: "#165DFF",
  1086. textColor: "#1D2129",
  1087. },
  1088. 1: {
  1089. text: "驳回",
  1090. bg: "#FF7D00",
  1091. textColor: "#1D2129",
  1092. },
  1093. },
  1094. dialogVisible: false,
  1095. ktje: 0,
  1096. refundId: "",
  1097. ktjeInfo: null,
  1098. isPhone: false,
  1099. showSearch: true,
  1100. goodsListShelve: [], // 已上架物品列表
  1101. orderInfo: null, // 订单详情
  1102. shelveVisible: false,
  1103. editInfoFlag: false,
  1104. editInfo: {
  1105. is_auto_adjust_study_phase: "false",
  1106. },
  1107. };
  1108. },
  1109. //计算属性 类似于data概念
  1110. computed: {
  1111. ...mapState(["$studyTypeAll", "$provinceCityListAll"]),
  1112. },
  1113. //监控data中数据变化
  1114. watch: {},
  1115. //方法集合
  1116. methods: {
  1117. qucikSearch(value, index) {
  1118. if (this.isPhone) {
  1119. this.validityStart = value.date_begin;
  1120. this.validityEnd = value.date_end;
  1121. } else {
  1122. this.validity = [value.date_begin, value.date_end];
  1123. }
  1124. this.quickIndex = index;
  1125. this.getList();
  1126. },
  1127. handleSort(value) {
  1128. let dataSort = {
  1129. prop: value.prop,
  1130. order: value.order,
  1131. };
  1132. this.dataSort = dataSort;
  1133. this.getList();
  1134. },
  1135. // 查询列表
  1136. getList(page) {
  1137. this.tableLoading = true;
  1138. if (page) {
  1139. this.pageNumber = page;
  1140. }
  1141. let MethodName = "/ShopServer/Manager/FinanceManager/PageQueryOrderList";
  1142. let order_column_list = [];
  1143. if (this.dataSort != {}) {
  1144. if (this.dataSort.order == "descending") {
  1145. order_column_list = [this.dataSort.prop + ":desc"];
  1146. } else if (this.dataSort.order == "ascending") {
  1147. // 升序不传值
  1148. order_column_list = [this.dataSort.prop];
  1149. } else {
  1150. order_column_list = ["order_time:desc"]; //用pay_time的话有未支付的订单会排在最前面
  1151. }
  1152. } else {
  1153. order_column_list = ["order_time:desc"];
  1154. }
  1155. let province_id_list = null;
  1156. let city_id_list = [];
  1157. if (this.searchArea.length > 0) {
  1158. if (this.searchArea[0][0] && this.searchArea[0][0] === "0") {
  1159. province_id_list = "-1";
  1160. } else {
  1161. province_id_list = [];
  1162. this.searchArea.forEach((item) => {
  1163. if (province_id_list.indexOf(item[0]) === -1) {
  1164. province_id_list.push(item[0]);
  1165. }
  1166. city_id_list.push(item[1] ? item[1] : "");
  1167. });
  1168. }
  1169. }
  1170. let data = {
  1171. content: this.searchInput.trim(),
  1172. page_capacity: this.pageSize,
  1173. cur_page: this.pageNumber,
  1174. order_column_list: order_column_list,
  1175. pay_status: 1,
  1176. order_status: this.searchStatus,
  1177. pay_date_begin: this.isPhone
  1178. ? this.validityStart
  1179. : this.validity
  1180. ? this.validity[0]
  1181. : "",
  1182. pay_date_end: this.isPhone
  1183. ? this.validityEnd
  1184. : this.validity
  1185. ? this.validity[1]
  1186. : "",
  1187. goods_study_phase: this.searchStudy,
  1188. goods_type: this.searchGoodsType,
  1189. discount_code_use_status: this.searchIsCDKEY,
  1190. person_org_id_list: this.searchOrgid ? [this.searchOrgid] : null,
  1191. person_province_city_id_list: city_id_list,
  1192. pay_type: this.searchChannel,
  1193. };
  1194. getLogin(MethodName, data)
  1195. .then((res) => {
  1196. this.tableLoading = false;
  1197. if (res.status === 1) {
  1198. this.tableData = res.order_list;
  1199. this.total_count = res.total_count;
  1200. this.proceedsPriceArr = cutMoneyFiter(
  1201. res.sum_info.order_amount
  1202. ).split(".");
  1203. this.refundPriceArr = cutMoneyFiter(
  1204. res.sum_info.refund_amount
  1205. ).split(".");
  1206. }
  1207. })
  1208. .catch(() => {
  1209. this.tableLoading = false;
  1210. });
  1211. },
  1212. // 导出报表
  1213. handleExport() {
  1214. let _this = this;
  1215. _this.exportLoading = true;
  1216. let MethodName =
  1217. "/ShopServer/Manager/FinanceManager/StartCreateOrderExportFile";
  1218. let order_column_list = [];
  1219. if (this.dataSort != {}) {
  1220. if (this.dataSort.order == "descending") {
  1221. order_column_list = [this.dataSort.prop + ":desc"];
  1222. } else if (this.dataSort.order == "ascending") {
  1223. // 升序不传值
  1224. order_column_list = [this.dataSort.prop];
  1225. } else {
  1226. order_column_list = ["create_time:desc"];
  1227. }
  1228. } else {
  1229. order_column_list = ["create_time:desc"];
  1230. }
  1231. let province_id_list = null;
  1232. let city_id_list = [];
  1233. if (this.searchArea.length > 0) {
  1234. if (this.searchArea[0][0] && this.searchArea[0][0] === "0") {
  1235. province_id_list = "-1";
  1236. } else {
  1237. province_id_list = [];
  1238. this.searchArea.forEach((item) => {
  1239. if (province_id_list.indexOf(item[0]) === -1) {
  1240. province_id_list.push(item[0]);
  1241. }
  1242. city_id_list.push(item[1] ? item[1] : "");
  1243. });
  1244. }
  1245. }
  1246. let data = {
  1247. content: this.searchInput.trim(),
  1248. page_capacity: this.pageSize,
  1249. cur_page: this.pageNumber,
  1250. order_column_list: order_column_list,
  1251. pay_status: 1,
  1252. order_status: this.searchStatus,
  1253. pay_date_begin: this.isPhone
  1254. ? this.validityStart
  1255. : this.validity
  1256. ? this.validity[0]
  1257. : "",
  1258. pay_date_end: this.isPhone
  1259. ? this.validityEnd
  1260. : this.validity
  1261. ? this.validity[1]
  1262. : "",
  1263. goods_study_phase: this.searchStudy,
  1264. goods_type: this.searchGoodsType,
  1265. discount_code_use_status: this.searchIsCDKEY,
  1266. person_org_id_list: this.searchOrgid ? [this.searchOrgid] : null,
  1267. person_province_city_id_list: city_id_list,
  1268. pay_type: this.searchChannel,
  1269. };
  1270. getLogin(MethodName, data)
  1271. .then((res) => {
  1272. let MethodName2 =
  1273. "/ShopServer/Manager/FinanceManager/GetOrderExportFileTaskProgress";
  1274. let timer = setInterval(() => {
  1275. getLogin(MethodName2, {
  1276. order_export_file_task_id: res.id,
  1277. })
  1278. .then((res) => {
  1279. if (res.is_finish === "true") {
  1280. clearInterval(timer);
  1281. timer = null;
  1282. _this.exportLoading = false;
  1283. location.href = res.order_export_file_url;
  1284. }
  1285. })
  1286. .catch((res) => {
  1287. this.loading = false;
  1288. });
  1289. }, 1000);
  1290. })
  1291. .catch((res) => {
  1292. this.loading = false;
  1293. });
  1294. },
  1295. // 停用 启用
  1296. handleUp(row, index) {
  1297. this.$confirm("确定撤回吗?", "提示", {
  1298. confirmButtonText: "确定",
  1299. cancelButtonText: "取消",
  1300. type: "warning",
  1301. }).then(() => {
  1302. let Mname = "/OrgServer/Manager/SysUserManager/EnableSysUser";
  1303. let updataData = JSON.parse(JSON.stringify(row));
  1304. let data = {
  1305. id: row.id,
  1306. };
  1307. if (row.status === 0) {
  1308. // 下架状态
  1309. data.is_enable = "true";
  1310. updataData.status = 1;
  1311. } else if (row.status === 1) {
  1312. data.is_enable = "false";
  1313. updataData.status = 0;
  1314. }
  1315. getLogin(Mname, data).then((res) => {
  1316. this.$message.success("操作成功");
  1317. this.$set(this.tableData, index, updataData);
  1318. });
  1319. });
  1320. },
  1321. handleSizeChange(val) {
  1322. this.pageSize = val;
  1323. this.pageNumber = 1;
  1324. this.getList();
  1325. },
  1326. handleCurrentChange(val) {
  1327. this.pageNumber = val;
  1328. this.getList();
  1329. },
  1330. //计算table高度(动态设置table高度)
  1331. getTableHeight() {
  1332. let tableH = 570; //距离页面下方的高度
  1333. let tableHeightDetil = window.innerHeight - tableH;
  1334. if (tableHeightDetil <= 300) {
  1335. this.tableHeight = 300;
  1336. } else {
  1337. this.tableHeight = window.innerHeight - tableH;
  1338. }
  1339. },
  1340. // 用户类型列表
  1341. getOrgList() {
  1342. let MethodName = "/OrgServer/Client/OrgManager/GetOrgIndexList";
  1343. let data = {
  1344. name: "",
  1345. status: 1,
  1346. sn: "",
  1347. };
  1348. getLogin(MethodName, data)
  1349. .then((res) => {
  1350. if (res.status === 1) {
  1351. this.orgList = [
  1352. {
  1353. name: "全部",
  1354. id: "",
  1355. },
  1356. ];
  1357. this.orgList = this.orgList.concat(res.org_index_list);
  1358. }
  1359. })
  1360. .catch(() => {
  1361. this.loading = false;
  1362. });
  1363. },
  1364. // 快捷时间按钮列表
  1365. getQuickList() {
  1366. this.quickList = [];
  1367. let MethodName =
  1368. "/ShopServer/Manager/FinanceManager/GetQueryCritDateSpaceList";
  1369. let data = {};
  1370. getLogin(MethodName, data).then((res) => {
  1371. if (res.status === 1) {
  1372. this.quickList = res.date_space_list;
  1373. }
  1374. });
  1375. },
  1376. CopyToClipboard(element) {
  1377. var doc = document,
  1378. text = doc.getElementById(element),
  1379. range,
  1380. selection;
  1381. if (doc.body.createTextRange) {
  1382. range = doc.body.createTextRange();
  1383. range.moveToElementText(text);
  1384. range.select();
  1385. } else if (window.getSelection) {
  1386. selection = window.getSelection();
  1387. range = doc.createRange();
  1388. range.selectNodeContents(text);
  1389. selection.removeAllRanges();
  1390. selection.addRange(range);
  1391. }
  1392. document.execCommand("copy");
  1393. this.$message({
  1394. message: "复制成功",
  1395. type: "success",
  1396. });
  1397. window.getSelection().removeAllRanges();
  1398. },
  1399. // 退款
  1400. handleRefund(row, index) {
  1401. this.ktjeInfo = null;
  1402. let Mnames = "/ShopServer/Manager/FinanceManager/GetOrderInfo";
  1403. let datas = {
  1404. id: row.id,
  1405. };
  1406. getLogin(Mnames, datas).then((res) => {
  1407. if (res.status === 1) {
  1408. this.ktje = res.order_info.order_amount;
  1409. this.ktjeInfo = res.order_info;
  1410. this.refundId = row.id;
  1411. this.dialogVisible = true;
  1412. }
  1413. });
  1414. },
  1415. // 确定退款
  1416. sureRefund() {
  1417. this.$confirm("确定要退款吗?", "提示", {
  1418. confirmButtonText: "确定",
  1419. cancelButtonText: "取消",
  1420. type: "warning",
  1421. }).then(() => {
  1422. let Mname = "/ShopServer/Manager/FinanceManager/OrderRefund";
  1423. let data = {
  1424. id: this.refundId,
  1425. refund_amount: this.ktje,
  1426. };
  1427. getLogin(Mname, data).then((res) => {
  1428. this.$message.success("操作成功");
  1429. this.getList();
  1430. this.dialogVisible = false;
  1431. });
  1432. });
  1433. },
  1434. // 查看已上架物品
  1435. handleLookInfo(row, index) {
  1436. this.goodsListShelve = [];
  1437. this.orderInfo = null;
  1438. let Mnames = "/ShopServer/Manager/FinanceManager/GetOrderInfo";
  1439. let datas = {
  1440. id: row.id,
  1441. };
  1442. getLogin(Mnames, datas).then((res) => {
  1443. if (res.status === 1) {
  1444. this.goodsListShelve = res.goods_list_shelve;
  1445. this.orderInfo = res.order_info;
  1446. this.shelveVisible = true;
  1447. }
  1448. });
  1449. },
  1450. // 点击修改按钮
  1451. handleEditInfo(row) {
  1452. this.editInfo = {
  1453. is_auto_adjust_study_phase: row.is_auto_adjust_study_phase,
  1454. id: row.id,
  1455. };
  1456. this.editInfoFlag = true;
  1457. },
  1458. // 确定修改自动升学属性
  1459. sureIsAuto() {
  1460. let Mnames =
  1461. "ShopServer/Manager/FinanceManager/SetIsAutoAdjustStudayPhase_YearReservationOrder";
  1462. getLogin(Mnames, this.editInfo).then((res) => {
  1463. if (res.status === 1) {
  1464. this.$message.success("操作成功");
  1465. this.getList();
  1466. this.editInfoFlag = false;
  1467. }
  1468. });
  1469. },
  1470. },
  1471. //生命周期 - 创建完成(可以访问当前this实例)
  1472. created() {
  1473. const regExp = /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i;
  1474. this.isPhone = regExp.test(navigator.userAgent) && window.innerWidth < 860;
  1475. if (this.isPhone) {
  1476. this.showSearch = false;
  1477. }
  1478. this.getTableHeight();
  1479. this.getQuickList();
  1480. this.getOrgList();
  1481. this.getList();
  1482. },
  1483. //生命周期 - 挂载完成(可以访问DOM元素)
  1484. mounted() {
  1485. let _this = this;
  1486. let input = document.querySelector("input");
  1487. input.addEventListener("keyup", function (event) {
  1488. // 判断是否按下回车键
  1489. if (event.keyCode === 13) {
  1490. // 回车键被按下,执行你想要的操作
  1491. _this.getList(1);
  1492. }
  1493. });
  1494. },
  1495. //生命周期-创建之前
  1496. beforeCreated() {},
  1497. //生命周期-挂载之前
  1498. beforeMount() {},
  1499. //生命周期-更新之前
  1500. beforUpdate() {},
  1501. //生命周期-更新之后
  1502. updated() {},
  1503. //生命周期-销毁之前
  1504. beforeDestory() {},
  1505. //生命周期-销毁完成
  1506. destoryed() {},
  1507. //如果页面有keep-alive缓存功能,这个函数会触发
  1508. activated() {},
  1509. };
  1510. </script>
  1511. <style lang="scss" scoped>
  1512. /* @import url(); 引入css类 */
  1513. .manage-root-contain-right-phone {
  1514. .personal-inner {
  1515. min-height: calc(100vh - 124px);
  1516. height: auto;
  1517. .common-title-box {
  1518. align-items: center;
  1519. span {
  1520. font-size: 14px;
  1521. }
  1522. }
  1523. .btn-box {
  1524. flex-flow: wrap;
  1525. gap: 5px;
  1526. margin-top: 10px;
  1527. }
  1528. .quick-search {
  1529. margin: 0 10px 0 0;
  1530. flex-flow: wrap;
  1531. }
  1532. .proceeds-box {
  1533. gap: 10px;
  1534. margin-top: 10px;
  1535. flex-flow: wrap;
  1536. }
  1537. .search-table {
  1538. margin-top: 10px;
  1539. }
  1540. .el-date-editor--date {
  1541. width: 50%;
  1542. }
  1543. }
  1544. }
  1545. </style>
  1546. <style lang="scss">
  1547. .btn-box {
  1548. display: flex;
  1549. }
  1550. .quick-search {
  1551. display: flex;
  1552. list-style: none;
  1553. padding: 3px;
  1554. margin: 0 24px;
  1555. align-items: center;
  1556. border-radius: 2px;
  1557. background: #f2f3f5;
  1558. li {
  1559. display: flex;
  1560. align-items: center;
  1561. a {
  1562. padding: 2px 12px;
  1563. color: #4e5969;
  1564. font-size: 14px;
  1565. font-weight: 400;
  1566. line-height: 22px;
  1567. border-radius: 2px;
  1568. cursor: pointer;
  1569. &.active {
  1570. background: #fff;
  1571. color: #165dff;
  1572. font-weight: 500;
  1573. }
  1574. }
  1575. span {
  1576. height: 14px;
  1577. width: 1px;
  1578. background: #e5e6eb;
  1579. &.border-no {
  1580. background: #f2f3f5;
  1581. }
  1582. }
  1583. }
  1584. }
  1585. .proceeds-box {
  1586. border-radius: 2px;
  1587. background: #f7f8fa;
  1588. padding: 16px;
  1589. margin-top: 24px;
  1590. display: flex;
  1591. width: 100%;
  1592. gap: 40px;
  1593. h6 {
  1594. color: #1d2129;
  1595. font-size: 16px;
  1596. font-weight: 400;
  1597. line-height: 22px;
  1598. margin: 0 0 8px 0;
  1599. span {
  1600. color: #86909c;
  1601. font-size: 12px;
  1602. font-weight: 400;
  1603. line-height: 20px;
  1604. }
  1605. }
  1606. label {
  1607. color: #1d2129;
  1608. font-size: 22px;
  1609. font-weight: 700;
  1610. line-height: 24px;
  1611. b {
  1612. font-size: 14px;
  1613. font-weight: 700;
  1614. line-height: 24px;
  1615. }
  1616. span {
  1617. color: #4e5969;
  1618. font-size: 12px;
  1619. font-weight: 400;
  1620. line-height: 20px;
  1621. }
  1622. }
  1623. }
  1624. .el-range-editor--small .el-range-input {
  1625. background: #f2f3f5;
  1626. }
  1627. .search-item {
  1628. margin-bottom: 20px;
  1629. }
  1630. .search-table {
  1631. margin-top: 0;
  1632. }
  1633. .items-type {
  1634. padding: 1px 8px;
  1635. font-weight: 500;
  1636. font-size: 14px;
  1637. line-height: 22px;
  1638. border-radius: 2px;
  1639. }
  1640. .code {
  1641. color: #175dff;
  1642. }
  1643. .copy {
  1644. color: #c9cdd4;
  1645. margin-left: 8px;
  1646. cursor: pointer;
  1647. }
  1648. </style>