sideways_award.blade.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. @extends('layouts.base')
  2. @section('title', "订单列表")
  3. @section('content')
  4. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}"/>
  5. <style>
  6. .edit-i {
  7. display: none;
  8. }
  9. .el-table_1_column_2:hover .edit-i {
  10. font-weight: 900;
  11. padding: 0;
  12. margin: 0;
  13. display: inline-block;
  14. }
  15. .el-tabs__item, .is-top {
  16. font-size: 16px
  17. }
  18. .el-tabs__active-bar {
  19. height: 3px;
  20. }
  21. .list-title {
  22. display: flex;
  23. width: 100%;
  24. background: #f9f9f9;
  25. padding: 15px 10px;
  26. font-weight: 900;
  27. border: 1px solid #e9e9e9;
  28. }
  29. .list-title .list-title-1 {
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. }
  34. .list-info {
  35. display: flex;
  36. padding: 10px;
  37. justify-content: left;
  38. background: #f9f9f9;
  39. }
  40. .list-con {
  41. display: flex;
  42. width: 100%;
  43. font-size: 12px;
  44. font-weight: 500;
  45. align-items: stretch;
  46. border-bottom: 1px solid rgb(233, 233, 233);
  47. }
  48. .list-con-goods {
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. box-sizing: border-box;
  53. padding-left: 10px;
  54. border-top: 1px solid #e9e9e9;
  55. min-height: 90px
  56. }
  57. .list-con-goods-text {
  58. min-height: 70px;
  59. overflow: hidden;
  60. flex: 1;
  61. display: flex;
  62. flex-direction: column;
  63. justify-content: space-between;
  64. }
  65. .list-con-goods-price {
  66. border-right: 1px solid #e9e9e9;
  67. border-left: 1px solid #e9e9e9;
  68. min-width: 150px;
  69. min-height: 90px;
  70. text-align: left;
  71. padding: 20px;
  72. display: flex;
  73. flex-direction: column;
  74. }
  75. .list-con-goods-title {
  76. font-size: 14px;
  77. line-height: 20px;
  78. text-overflow: -o-ellipsis-lastline;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. display: -webkit-box;
  82. -webkit-line-clamp: 2;
  83. line-clamp: 2;
  84. -webkit-box-orient: vertical;
  85. }
  86. .list-con-goods-option {
  87. font-size: 12px;
  88. color: #999
  89. }
  90. .list-con-member-info {
  91. display: flex;
  92. padding: 0 2px;
  93. flex-direction: column;
  94. flex: 1;
  95. min-width: 120px;
  96. line-height: 28px;
  97. justify-content: center;
  98. text-align: left;
  99. font-size: 14px;
  100. border-top: 1px solid #e9e9e9;
  101. border-right: 1px solid #e9e9e9;
  102. }
  103. .list-member {
  104. padding: 10px;
  105. font-size: 12px;
  106. font-weight: 500;
  107. }
  108. .list-num {
  109. flex: 3;
  110. display: flex;
  111. align-items: center;
  112. border-right: 1px solid #e9e9e9;
  113. justify-content: center;
  114. }
  115. .list-gen {
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. line-height: 28px;
  120. }
  121. .list-gen-txt {
  122. flex: 1;
  123. border-right: 1px solid #e9e9e9;
  124. border-bottom: 1px solid #e9e9e9;
  125. align-items: center;
  126. justify-content: center;
  127. display: flex;
  128. }
  129. .list-opt {
  130. flex: 1;
  131. display: flex;
  132. align-items: center;
  133. border-left: 1px solid #e9e9e9;
  134. justify-content: center;
  135. }
  136. /* 导航 */
  137. .el-radio-button .el-radio-button__inner, .el-radio-button:first-child .el-radio-button__inner {
  138. border-radius: 4px 4px 4px 4px;
  139. border-left: 0px;
  140. }
  141. .el-radio-button__inner {
  142. border: 0;
  143. }
  144. .el-radio-button:last-child .el-radio-button__inner {
  145. border-radius: 4px 4px 4px 4px;
  146. }
  147. .panel .active a {
  148. background-color: #29ba9c !important;
  149. border-radius: 18px !important;
  150. color: #fff;
  151. }
  152. .add-shopnav li a {
  153. display: inline-block;
  154. padding: 0 12px;
  155. line-height: 32px;
  156. color: #333;
  157. border: 1px solid #e5e5e5;
  158. background: #f8f8f8;
  159. min-width: 80px;
  160. text-align: center;
  161. }
  162. .panel a {
  163. border: none !important;
  164. background-color: #fff !important;
  165. }
  166. </style>
  167. <div class="all">
  168. <div id="app" v-cloak>
  169. <div class="vue-head">
  170. <div class="panel panel-info">
  171. <ul class="add-shopnav">
  172. <li @if(!\YunShop::request()->type || \YunShop::request()->type == 1) class="active" @endif >
  173. <a
  174. href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>1])}}">走货奖励</a></li>
  175. <li @if(\YunShop::request()->type == 2) class="active" @endif >
  176. <a
  177. href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>2])}}">直推代理商奖</a></li>
  178. <li @if(\YunShop::request()->type == 3) class="active" @endif>
  179. <a
  180. href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>3])}}">直推奖</a></li>
  181. <li @if(\YunShop::request()->type == 4) class="active" @endif>
  182. <a
  183. href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>4])}}">平级奖</a></li>
  184. </ul>
  185. </div>
  186. </div>
  187. <div class="vue-head">
  188. <div class="vue-main-title" style="margin-bottom:20px">
  189. <div class="vue-main-title-button">
  190. </div>
  191. </div>
  192. <div class="vue-search">
  193. <el-form :inline="true" :model="search_form" class="demo-form-inline">
  194. <el-form-item label="">
  195. <el-input v-model="search_form.member_info1" placeholder="会员ID/昵称/姓名/手机号"></el-input>
  196. </el-form-item>
  197. <el-form-item label="">
  198. <el-input v-model="search_form.order_sn" placeholder="订单编号"></el-input>
  199. </el-form-item>
  200. <el-form-item label="">
  201. <el-input v-model="search_form.member_info2" placeholder="下级会员ID/昵称/姓名/手机号"></el-input>
  202. </el-form-item>
  203. <el-form-item label="">
  204. <el-select v-model="search_form.level2" clearable placeholder="下级代理商等级" style="width:150px">
  205. @foreach($level as $pay_type)
  206. <el-option label="{{$pay_type['title']}}" value="{{$pay_type['id']}}"></el-option>
  207. @endforeach
  208. </el-select>
  209. </el-form-item>
  210. <el-form-item label="">
  211. <el-select v-model="search_form.award_status" clearable placeholder="状态"
  212. style="width:150px">
  213. <el-option label="状态" value="0"></el-option>
  214. <el-option label="未结算" value="1"></el-option>
  215. <el-option label="已结算" value="2"></el-option>
  216. <el-option label="失效" value="3"></el-option>
  217. </el-select>
  218. </el-form-item>
  219. <el-form-item label="">
  220. <el-select v-model="search_form.search_time" clearable placeholder="时间不限"
  221. style="width:150px">
  222. <el-option label="时间不限" value="0"></el-option>
  223. <el-option label="搜索时间" value="1"></el-option>
  224. </el-select>
  225. </el-form-item>
  226. <el-form-item label="">
  227. <el-date-picker
  228. v-model="times"
  229. type="datetimerange"
  230. value-format="yyyy-MM-dd HH:mm:ss"
  231. range-separator="至"
  232. start-placeholder="开始日期"
  233. end-placeholder="结束日期"
  234. style="margin-left:5px;"
  235. align="right">
  236. </el-date-picker>
  237. </el-form-item>
  238. <el-form-item label="">
  239. <el-button type="primary" @click="search(1)">搜索</el-button>
  240. </el-form-item>
  241. </el-form>
  242. </div>
  243. </div>
  244. <div class="vue-main">
  245. <div class="vue-main-form">
  246. <div class="vue-main-title" style="margin-bottom:20px">
  247. <div class="vue-main-title-left"></div>
  248. <div class="vue-main-title-content" style="flex:0 0 140px">平级奖列表</div>
  249. </div>
  250. <template style="margin-top:-10px;">
  251. <el-table
  252. :data="list"
  253. style="padding:0 10px"
  254. >
  255. <el-table-column
  256. prop="id"
  257. align="center"
  258. label="ID"
  259. >
  260. </el-table-column>
  261. <el-table-column
  262. prop="uid"
  263. align="center"
  264. label="时间"
  265. >
  266. <template slot-scope="scope">
  267. [[scope.row.created_at]]
  268. </template>
  269. </el-table-column>
  270. <el-table-column
  271. prop="order_sn"
  272. align="center"
  273. label="订单编号"
  274. >
  275. </el-table-column>
  276. <el-table-column
  277. align="center"
  278. label="代理商"
  279. >
  280. <template slot-scope="scope">
  281. <div>
  282. <div class="vue-ellipsis">
  283. <el-image :src="scope.row.avatar1"
  284. style='width:30px;height:30px;padding:1px;border:1px solid #ccc'></el-image>
  285. </div>
  286. <div class="vue-ellipsis">[[scope.row.nickname1]]</div>
  287. </div>
  288. </template>
  289. </el-table-column>
  290. <el-table-column
  291. align="center"
  292. label="下级代理商"
  293. >
  294. <template slot-scope="scope">
  295. <div>
  296. <div v-if="scope.row.nickname2" class="vue-ellipsis">
  297. <el-image :src="scope.row.avatar2"
  298. style='width:30px;height:30px;padding:1px;border:1px solid #ccc'></el-image>
  299. </div>
  300. <div class="vue-ellipsis">[[scope.row.nickname2]]</div>
  301. </div>
  302. </template>
  303. </el-table-column>
  304. <el-table-column
  305. prop="level_name2"
  306. align="center"
  307. label="下级代理商等级"
  308. >
  309. </el-table-column>
  310. <el-table-column
  311. prop="price"
  312. align="center"
  313. label="订单金额"
  314. >
  315. </el-table-column>
  316. <el-table-column
  317. prop="award_amount"
  318. align="center"
  319. label="平级奖金额"
  320. >
  321. </el-table-column>
  322. <el-table-column
  323. prop="status_name"
  324. align="center"
  325. label="状态"
  326. >
  327. </el-table-column>
  328. </el-table>
  329. </template>
  330. </div>
  331. </div>
  332. <div class="vue-page" v-if="total>0">
  333. <el-row>
  334. <el-col align="right">
  335. <el-pagination layout="prev, pager, next,jumper" @current-change="search" :total="total"
  336. :page-size="per_page" :current-page="current_page" background
  337. ></el-pagination>
  338. </el-col>
  339. </el-row>
  340. </div>
  341. </div>
  342. </div>
  343. <script>
  344. var app = new Vue({
  345. el: "#app",
  346. delimiters: ['[[', ']]'],
  347. name: 'test',
  348. data() {
  349. return {
  350. listUrl: '{!! yzWebUrl('plugin.agency.admin.award.get-list', ['type'=>4]) !!}',//获取订单数据链接
  351. list: [],
  352. has_many_level: [],
  353. change_sort: '',
  354. times: [],
  355. data: "",
  356. expressCompanies: [],//快递公司
  357. extra_param: {},
  358. code: 'all',
  359. search_form: {
  360. member_id: "",
  361. },
  362. order_type: '',
  363. close_order_show: false,//关闭订单弹窗
  364. close_order_con: "",//关闭订单原因
  365. close_order_id: "",
  366. close_order1_show: false,//手动关闭订单弹窗
  367. close_order1_con: "",//手动关闭订单原因
  368. close_order1_id: "",
  369. cancel_send_show: false,// 取消发货弹窗
  370. cancel_send_con: "",//取消发货原因
  371. cancel_send_id: '',
  372. confirm_send_show: false,// 确认发货弹窗
  373. confirm_send_id: "",
  374. change_price_show: false,//修改价格弹窗
  375. change_price_id: "",
  376. change_all_money: 0.00,//价格修改
  377. all_money: 0.00,//买家实付
  378. order_model: {},
  379. dispatch_price: 0,//运费
  380. order_goods_model: [],
  381. address_info: {},
  382. send: {
  383. dispatch_type_id: 1,
  384. express_code: "",
  385. express_sn: "",
  386. },
  387. send_rules: {},
  388. more_send_show: false,
  389. order_goods_send_list: [],
  390. send_order_goods_ids: [],
  391. street: 0,
  392. province_list: [],
  393. city_list: [],
  394. district_list: [],
  395. street_list: [],
  396. areaLoading: false,
  397. rules: {},
  398. current_page: 1,
  399. total: 1,
  400. per_page: 1,
  401. readonly: false,
  402. }
  403. },
  404. created() {
  405. let result = this.viewReturn();
  406. this.__initial(result);
  407. this.search_form.member_id = this.getParam('member_id') ? this.getParam('member_id') : '';
  408. },
  409. mounted() {
  410. this.getData(1);
  411. },
  412. methods: {
  413. viewReturn() {
  414. return {!! $data?:'{}' !!};
  415. },
  416. __initial(data) {
  417. if (data.code) {
  418. this.code = data.code;
  419. }
  420. if (data.listUrl) {
  421. this.listUrl = data.listUrl;
  422. }
  423. if (data.extraParam) {
  424. this.extra_param = data.extraParam;
  425. }
  426. this.expressCompanies = data.expressCompanies;
  427. console.log(data);
  428. },
  429. getData(page) {
  430. let requestData = {
  431. page: page,
  432. code: this.code,
  433. search: JSON.parse(JSON.stringify(this.search_form)),
  434. };
  435. if (this.times && this.times.length > 0) {
  436. requestData.search.start_time = this.times[0];
  437. requestData.search.end_time = this.times[1];
  438. }
  439. console.log(requestData);
  440. let loading = this.$loading({
  441. target: document.querySelector(".content"),
  442. background: 'rgba(0, 0, 0, 0)'
  443. });
  444. this.$http.post(this.listUrl, requestData).then(function (response) {
  445. if (response.data.result) {
  446. this.list = response.data.data.data;
  447. this.current_page = response.data.data.current_page;
  448. this.total = response.data.data.total;
  449. this.per_page = response.data.data.per_page;
  450. loading.close();
  451. } else {
  452. this.$message({
  453. message: response.data.msg,
  454. type: 'error'
  455. });
  456. }
  457. loading.close();
  458. }, function (response) {
  459. this.$message({
  460. message: response.data.msg,
  461. type: 'error'
  462. });
  463. loading.close();
  464. });
  465. },
  466. search(val) {
  467. this.getData(val);
  468. },
  469. escapeHTML(a) {
  470. a = "" + a;
  471. return a.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, "\"").replace(/&apos;/g, "'");
  472. },
  473. getParam(name) {
  474. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
  475. var r = window.location.search.substr(1).match(reg);
  476. if (r != null) return unescape(r[2]);
  477. return null;
  478. },
  479. currentChange(val) {
  480. this.loading = true;
  481. this.$http.post('{!! yzWebFullUrl('plugin.agency.admin.award.get-list', ['type'=>4]) !!}', {
  482. page: val,
  483. search: this.real_search_form
  484. }).then(function (response) {
  485. if (response.data.result) {
  486. this.list = response.data.data.data;
  487. this.current_page = response.data.data.current_page;
  488. this.total = response.data.data.total;
  489. this.per_page = response.data.data.per_page;
  490. loading.close();
  491. } else {
  492. this.$message({
  493. message: response.data.msg,
  494. type: 'error'
  495. });
  496. }
  497. loading.close();
  498. }, function (response) {
  499. console.log(response);
  500. this.loading = false;
  501. }
  502. );
  503. },
  504. },
  505. })
  506. </script>
  507. @endsection