| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536 |
- @extends('layouts.base')
- @section('title', "订单列表")
- @section('content')
- <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}"/>
- <style>
- .edit-i {
- display: none;
- }
- .el-table_1_column_2:hover .edit-i {
- font-weight: 900;
- padding: 0;
- margin: 0;
- display: inline-block;
- }
- .el-tabs__item, .is-top {
- font-size: 16px
- }
- .el-tabs__active-bar {
- height: 3px;
- }
- .list-title {
- display: flex;
- width: 100%;
- background: #f9f9f9;
- padding: 15px 10px;
- font-weight: 900;
- border: 1px solid #e9e9e9;
- }
- .list-title .list-title-1 {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .list-info {
- display: flex;
- padding: 10px;
- justify-content: left;
- background: #f9f9f9;
- }
- .list-con {
- display: flex;
- width: 100%;
- font-size: 12px;
- font-weight: 500;
- align-items: stretch;
- border-bottom: 1px solid rgb(233, 233, 233);
- }
- .list-con-goods {
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- padding-left: 10px;
- border-top: 1px solid #e9e9e9;
- min-height: 90px
- }
- .list-con-goods-text {
- min-height: 70px;
- overflow: hidden;
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .list-con-goods-price {
- border-right: 1px solid #e9e9e9;
- border-left: 1px solid #e9e9e9;
- min-width: 150px;
- min-height: 90px;
- text-align: left;
- padding: 20px;
- display: flex;
- flex-direction: column;
- }
- .list-con-goods-title {
- font-size: 14px;
- line-height: 20px;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .list-con-goods-option {
- font-size: 12px;
- color: #999
- }
- .list-con-member-info {
- display: flex;
- padding: 0 2px;
- flex-direction: column;
- flex: 1;
- min-width: 120px;
- line-height: 28px;
- justify-content: center;
- text-align: left;
- font-size: 14px;
- border-top: 1px solid #e9e9e9;
- border-right: 1px solid #e9e9e9;
- }
- .list-member {
- padding: 10px;
- font-size: 12px;
- font-weight: 500;
- }
- .list-num {
- flex: 3;
- display: flex;
- align-items: center;
- border-right: 1px solid #e9e9e9;
- justify-content: center;
- }
- .list-gen {
- display: flex;
- align-items: center;
- justify-content: center;
- line-height: 28px;
- }
- .list-gen-txt {
- flex: 1;
- border-right: 1px solid #e9e9e9;
- border-bottom: 1px solid #e9e9e9;
- align-items: center;
- justify-content: center;
- display: flex;
- }
- .list-opt {
- flex: 1;
- display: flex;
- align-items: center;
- border-left: 1px solid #e9e9e9;
- justify-content: center;
- }
- /* 导航 */
- .el-radio-button .el-radio-button__inner, .el-radio-button:first-child .el-radio-button__inner {
- border-radius: 4px 4px 4px 4px;
- border-left: 0px;
- }
- .el-radio-button__inner {
- border: 0;
- }
- .el-radio-button:last-child .el-radio-button__inner {
- border-radius: 4px 4px 4px 4px;
- }
- .panel .active a {
- background-color: #29ba9c !important;
- border-radius: 18px !important;
- color: #fff;
- }
- .add-shopnav li a {
- display: inline-block;
- padding: 0 12px;
- line-height: 32px;
- color: #333;
- border: 1px solid #e5e5e5;
- background: #f8f8f8;
- min-width: 80px;
- text-align: center;
- }
- .panel a {
- border: none !important;
- background-color: #fff !important;
- }
- </style>
- <div class="all">
- <div id="app" v-cloak>
- <div class="vue-head">
- <div class="panel panel-info">
- <ul class="add-shopnav">
- <li @if(!\YunShop::request()->type || \YunShop::request()->type == 1) class="active" @endif >
- <a
- href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>1])}}">走货奖励</a></li>
- <li @if(\YunShop::request()->type == 2) class="active" @endif >
- <a
- href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>2])}}">直推代理商奖</a></li>
- <li @if(\YunShop::request()->type == 3) class="active" @endif>
- <a
- href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>3])}}">直推奖</a></li>
- <li @if(\YunShop::request()->type == 4) class="active" @endif>
- <a
- href="{{ yzWebUrl('plugin.agency.admin.award.index', ['type'=>4])}}">平级奖</a></li>
- </ul>
- </div>
- </div>
- <div class="vue-head">
- <div class="vue-main-title" style="margin-bottom:20px">
- <div class="vue-main-title-button">
- </div>
- </div>
- <div class="vue-search">
- <el-form :inline="true" :model="search_form" class="demo-form-inline">
- <el-form-item label="">
- <el-input v-model="search_form.member_info1" placeholder="会员ID/昵称/姓名/手机号"></el-input>
- </el-form-item>
- <el-form-item label="">
- <el-input v-model="search_form.order_sn" placeholder="订单编号"></el-input>
- </el-form-item>
- <el-form-item label="">
- <el-input v-model="search_form.member_info2" placeholder="下级会员ID/昵称/姓名/手机号"></el-input>
- </el-form-item>
- <el-form-item label="">
- <el-select v-model="search_form.level2" clearable placeholder="下级代理商等级" style="width:150px">
- @foreach($level as $pay_type)
- <el-option label="{{$pay_type['title']}}" value="{{$pay_type['id']}}"></el-option>
- @endforeach
- </el-select>
- </el-form-item>
- <el-form-item label="">
- <el-select v-model="search_form.award_status" clearable placeholder="状态"
- style="width:150px">
- <el-option label="状态" value="0"></el-option>
- <el-option label="未结算" value="1"></el-option>
- <el-option label="已结算" value="2"></el-option>
- <el-option label="失效" value="3"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="">
- <el-select v-model="search_form.search_time" clearable placeholder="时间不限"
- style="width:150px">
- <el-option label="时间不限" value="0"></el-option>
- <el-option label="搜索时间" value="1"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="">
- <el-date-picker
- v-model="times"
- type="datetimerange"
- value-format="yyyy-MM-dd HH:mm:ss"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- style="margin-left:5px;"
- align="right">
- </el-date-picker>
- </el-form-item>
- <el-form-item label="">
- <el-button type="primary" @click="search(1)">搜索</el-button>
- </el-form-item>
- </el-form>
- </div>
- </div>
- <div class="vue-main">
- <div class="vue-main-form">
- <div class="vue-main-title" style="margin-bottom:20px">
- <div class="vue-main-title-left"></div>
- <div class="vue-main-title-content" style="flex:0 0 140px">平级奖列表</div>
- </div>
- <template style="margin-top:-10px;">
- <el-table
- :data="list"
- style="padding:0 10px"
- >
- <el-table-column
- prop="id"
- align="center"
- label="ID"
- >
- </el-table-column>
- <el-table-column
- prop="uid"
- align="center"
- label="时间"
- >
- <template slot-scope="scope">
- [[scope.row.created_at]]
- </template>
- </el-table-column>
- <el-table-column
- prop="order_sn"
- align="center"
- label="订单编号"
- >
- </el-table-column>
- <el-table-column
- align="center"
- label="代理商"
- >
- <template slot-scope="scope">
- <div>
- <div class="vue-ellipsis">
- <el-image :src="scope.row.avatar1"
- style='width:30px;height:30px;padding:1px;border:1px solid #ccc'></el-image>
- </div>
- <div class="vue-ellipsis">[[scope.row.nickname1]]</div>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- align="center"
- label="下级代理商"
- >
- <template slot-scope="scope">
- <div>
- <div v-if="scope.row.nickname2" class="vue-ellipsis">
- <el-image :src="scope.row.avatar2"
- style='width:30px;height:30px;padding:1px;border:1px solid #ccc'></el-image>
- </div>
- <div class="vue-ellipsis">[[scope.row.nickname2]]</div>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- prop="level_name2"
- align="center"
- label="下级代理商等级"
- >
- </el-table-column>
- <el-table-column
- prop="price"
- align="center"
- label="订单金额"
- >
- </el-table-column>
- <el-table-column
- prop="award_amount"
- align="center"
- label="平级奖金额"
- >
- </el-table-column>
- <el-table-column
- prop="status_name"
- align="center"
- label="状态"
- >
- </el-table-column>
- </el-table>
- </template>
- </div>
- </div>
- <div class="vue-page" v-if="total>0">
- <el-row>
- <el-col align="right">
- <el-pagination layout="prev, pager, next,jumper" @current-change="search" :total="total"
- :page-size="per_page" :current-page="current_page" background
- ></el-pagination>
- </el-col>
- </el-row>
- </div>
- </div>
- </div>
- <script>
- var app = new Vue({
- el: "#app",
- delimiters: ['[[', ']]'],
- name: 'test',
- data() {
- return {
- listUrl: '{!! yzWebUrl('plugin.agency.admin.award.get-list', ['type'=>4]) !!}',//获取订单数据链接
- list: [],
- has_many_level: [],
- change_sort: '',
- times: [],
- data: "",
- expressCompanies: [],//快递公司
- extra_param: {},
- code: 'all',
- search_form: {
- member_id: "",
- },
- order_type: '',
- close_order_show: false,//关闭订单弹窗
- close_order_con: "",//关闭订单原因
- close_order_id: "",
- close_order1_show: false,//手动关闭订单弹窗
- close_order1_con: "",//手动关闭订单原因
- close_order1_id: "",
- cancel_send_show: false,// 取消发货弹窗
- cancel_send_con: "",//取消发货原因
- cancel_send_id: '',
- confirm_send_show: false,// 确认发货弹窗
- confirm_send_id: "",
- change_price_show: false,//修改价格弹窗
- change_price_id: "",
- change_all_money: 0.00,//价格修改
- all_money: 0.00,//买家实付
- order_model: {},
- dispatch_price: 0,//运费
- order_goods_model: [],
- address_info: {},
- send: {
- dispatch_type_id: 1,
- express_code: "",
- express_sn: "",
- },
- send_rules: {},
- more_send_show: false,
- order_goods_send_list: [],
- send_order_goods_ids: [],
- street: 0,
- province_list: [],
- city_list: [],
- district_list: [],
- street_list: [],
- areaLoading: false,
- rules: {},
- current_page: 1,
- total: 1,
- per_page: 1,
- readonly: false,
- }
- },
- created() {
- let result = this.viewReturn();
- this.__initial(result);
- this.search_form.member_id = this.getParam('member_id') ? this.getParam('member_id') : '';
- },
- mounted() {
- this.getData(1);
- },
- methods: {
- viewReturn() {
- return {!! $data?:'{}' !!};
- },
- __initial(data) {
- if (data.code) {
- this.code = data.code;
- }
- if (data.listUrl) {
- this.listUrl = data.listUrl;
- }
- if (data.extraParam) {
- this.extra_param = data.extraParam;
- }
- this.expressCompanies = data.expressCompanies;
- console.log(data);
- },
- getData(page) {
- let requestData = {
- page: page,
- code: this.code,
- search: JSON.parse(JSON.stringify(this.search_form)),
- };
- if (this.times && this.times.length > 0) {
- requestData.search.start_time = this.times[0];
- requestData.search.end_time = this.times[1];
- }
- console.log(requestData);
- let loading = this.$loading({
- target: document.querySelector(".content"),
- background: 'rgba(0, 0, 0, 0)'
- });
- this.$http.post(this.listUrl, requestData).then(function (response) {
- if (response.data.result) {
- this.list = response.data.data.data;
- this.current_page = response.data.data.current_page;
- this.total = response.data.data.total;
- this.per_page = response.data.data.per_page;
- loading.close();
- } else {
- this.$message({
- message: response.data.msg,
- type: 'error'
- });
- }
- loading.close();
- }, function (response) {
- this.$message({
- message: response.data.msg,
- type: 'error'
- });
- loading.close();
- });
- },
- search(val) {
- this.getData(val);
- },
- escapeHTML(a) {
- a = "" + a;
- return a.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'");
- },
- getParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
- var r = window.location.search.substr(1).match(reg);
- if (r != null) return unescape(r[2]);
- return null;
- },
- currentChange(val) {
- this.loading = true;
- this.$http.post('{!! yzWebFullUrl('plugin.agency.admin.award.get-list', ['type'=>4]) !!}', {
- page: val,
- search: this.real_search_form
- }).then(function (response) {
- if (response.data.result) {
- this.list = response.data.data.data;
- this.current_page = response.data.data.current_page;
- this.total = response.data.data.total;
- this.per_page = response.data.data.per_page;
- loading.close();
- } else {
- this.$message({
- message: response.data.msg,
- type: 'error'
- });
- }
- loading.close();
- }, function (response) {
- console.log(response);
- this.loading = false;
- }
- );
- },
- },
- })
- </script>
- @endsection
|