123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!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>
- <style type="text/css">
- .c-panel .el-form .c-label{width: 7em !important;}
- .c-panel .el-form .el-input, .c-panel .el-form .el-textarea__inner{width: 250px;}
- </style>
- </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" width="30px"></sa-td>
- <sa-td name="车牌号" prop="veNo" ></sa-td>
- <sa-td name="订单号" prop="tradeNo" width="180px"></sa-td>
- <sa-td name="边民" prop="buyUserName" ></sa-td>
- <sa-td name="商家名称" prop="enterpriseName" width="280px"></sa-td>
- <sa-td name="商品名称" prop="goodsNames" width="200px"></sa-td>
- <sa-td name="净重(kg)" prop="netWt"></sa-td>
- <sa-td name="总金额" prop="totalPrice" ></sa-td>
- <sa-td name="上架金额" prop="upPrice" >
- </sa-td>
- <sa-td name="订单状态" prop="upPrice" >
- <template slot-scope="s">
- <div v-if="s.row.upStatus==2">已上架</div>
- <div v-else>未上架</div>
- </template>
- </sa-td>
- <el-table-column label="操作" fixed="right" width="100px">
- <template slot-scope="s">
- <el-button class="c-btn" type="success" icon="el-icon-view" @click="getBank(s.row)">银行回执</el-button>
- </template>
- </el-table-column>
- </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: {
- model: {
- title: '修改价格',
- visible: false,
- form: {
- id:'',
- upPrice:'',
- selPrice:0
- }
- },
- p: { // 查询参数
- tradeNo: '', // 订单号
- buyUserName: '', // 买家
- enterpriseName: '', // 商家名称
- saleMainId: sa.p('mainId', 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));
- },
- // 查看银行回执
- getBank: function(data) {
- sa.showIframe('银行回执', 'tb-order-bank-list.html?tradeNo=' + data.tradeNo, '1300px', '90%');
- }
- },
- created: function() {
- this.f5();
- sa.onInputEnter();
- }
- })
- </script>
- </body>
- </html>
|