1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>边民订单表-列表</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <!-- 所有的 css & js 资源 -->
- <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
- <link rel="stylesheet" href="../../static/sa.css">
- <script src="../../static/kj/vue.min.js"></script>
- <script src="../../static/kj/element-ui/index.js"></script>
- <script src="../../static/kj/httpVueLoader.js"></script>
- <script src="../../static/kj/jquery.min.js"></script>
- <script src="../../static/kj/layer/layer.js"></script>
- <script src="../../static/sa.js"></script>
- </head>
- <body>
- <div class="vue-box" style="display: none;" :style="'display: block;'">
- <div class="c-panel">
- <!-- ------------- 检索参数 ------------- -->
- <!-- <div class="c-title">检索参数</div> -->
- <el-form ref="form" :model='p' @submit.native.prevent>
- <sa-item type="text" name="订单号" v-model="p.tradeNo" width="5em"></sa-item>
- <sa-item type="text" name="买家" v-model="p.buyUserName"></sa-item>
- <sa-item type="text" name="商家名称" v-model="p.enterpriseName" width="6em"></sa-item>
- <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
- <el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
- </el-form>
- <!-- ------------- 数据列表 ------------- -->
- <el-table class="data-table" ref="data-table" :data="dataList" >
- <sa-td type="index" name="序号"></sa-td>
- <sa-td name="订单号" prop="tradeNo" width="180"></sa-td>
- <sa-td name="买家" prop="buyUserName" ></sa-td>
- <sa-td name="商家名称" prop="enterpriseName" ></sa-td>
- <sa-td name="商品名称" prop="goodsNames" width="280"></sa-td>
- <sa-td name="总重量" prop="totalWeight" ></sa-td>
- <sa-td name="总金额" prop="totalPrice" ></sa-td>
- <sa-td name="车牌号" prop="veNo" ></sa-td>
- <sa-td name="预申报编号" prop="platSeqNo" width="180"></sa-td>
- <sa-td name="结算单号" prop="settleBillNo" width="180"></sa-td>
- <sa-td name="进出口预申报单号" prop="preIeportNo" width="180"></sa-td>
- <sa-td name="单证代码" prop="preNo" width="180"></sa-td>
- </el-table>
- <!-- ------------- 分页 ------------- -->
- <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()"></sa-item>
- </div>
- </div>
- <script>
- var app = new Vue({
- components: {
- "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
- "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
- },
- el: '.vue-box',
- data: {
-
- p: { // 查询参数
- tradeNo: '', // 订单号
- buyUserName: '', // 买家
- enterpriseName: '', // 商家名称
- platSeqNo: sa.p('platSeqNo', 0),
- pageNo: 1, // 当前页
- pageSize: 20, // 页大小
- sortType: 0 // 排序方式
- },
- dataCount: 0,
- dataList: [], // 数据集合
- },
- methods: {
- // 刷新
- f5: function() {
- sa.ajax('/level-one-server/TbOrder/getList', sa.removeNull(this.p), function(res) {
- this.dataList = res.data; // 数据
- this.dataCount = res.dataCount; // 数据总数
- sa.f5TableHeight(); // 刷新表格高度
- }.bind(this));
- }
- },
- created: function() {
- this.f5();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|