| | |
| | | <template> |
| | | <TableLayout :permissions="['business:goodsorder:query']"> |
| | | <!-- 搜索表单 --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" > |
| | | <!-- 0待支付 1待发货 2待收货 3交易完成 4已关闭 5部分发货 --> |
| | | <el-tabs v-model="status" @tab-click="handleClick"> |
| | | <el-tab-pane |
| | |
| | | <el-option :key="1" :value="1" label="自提"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="商品名称" prop="shopName"> |
| | | <el-input v-model="searchForm.goodsName" placeholder="请输入商品名称" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="归属经销商" prop="shopName"> |
| | | <el-input v-model="searchForm.shopName" placeholder="请输入经销商名称" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="date-style" style="display: inline"> |
| | | <el-form-item label="订单时间" prop="starttime" > |
| | | <el-date-picker |
| | | style="width: 160px" |
| | | style="width: 180px" |
| | | clearable |
| | | @change="search" |
| | | v-model="searchForm.starttime" |
| | |
| | | </el-form-item> |
| | | <el-form-item label="-" label-width="10px" prop="endtime" > |
| | | <el-date-picker |
| | | style="width: 160px" |
| | | style="width: 180px" |
| | | clearable |
| | | v-model="searchForm.endtime" |
| | | type="datetime" |
| | |
| | | </div> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" v-permissions="['business:goodsorder:exportExcel']" @click="exportExcel">导出</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" v-permissions="['business:goodsorder:exportExcel']" @click="exportExcel">导出</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | |
| | | status: '', |
| | | nickName: '', |
| | | starttime: null, |
| | | enttime: null |
| | | endtime: null |
| | | } |
| | | } |
| | | }, |
| | |
| | | reset () { |
| | | this.createDate = [] |
| | | this.searchForm.starttime = '' |
| | | this.searchForm.enttime = '' |
| | | this.searchForm.endtime = '' |
| | | this.$refs.searchForm.resetFields() |
| | | this.search() |
| | | }, |