|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="订单编号" prop="orderNo">
|
|
|
+ <el-form-item prop="orderNo">
|
|
|
<el-input v-model="queryParams.orderNo" placeholder="请输入订单编号" clearable @keyup.enter.native="handleQuery" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="订单状态" prop="orderStatus">
|
|
|
+ <el-form-item prop="orderStatus">
|
|
|
<el-select v-model="queryParams.orderStatus" placeholder="请选择支付状态" clearable>
|
|
|
<el-option v-for="dict in dict.type.purchase_order_status" :key="dict.value" :label="dict.label" :value="dict.value" />
|
|
|
</el-select>
|
|
@@ -22,7 +22,7 @@
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="orderLoading" :data="purchaseGoodsList" @selection-change="handleSelectionChange">
|
|
|
+ <Page uri="/mapi/order/purchaseGoods/list" :request-params="queryParams" ref="pagination">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" fixed="left"/>-->
|
|
|
<el-table-column label="订单编号" align="center" prop="orderNo" width="250px" />
|
|
|
<el-table-column label="进货总价(元)" align="center" prop="costTotalPrice" width="200px" />
|
|
@@ -46,9 +46,7 @@
|
|
|
<el-button type="text" icon="el-icon-check" @click="confirmReceive(scope.row)" v-hasPermi="['order:purchaseGoods:edit']" v-if="scope.row.orderStatus == '3' || scope.row.orderStatus == '4'">确认收货</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </Page>
|
|
|
|
|
|
<!--新增-->
|
|
|
<el-dialog :title="title" :visible.sync="open" size="70%" append-to-body>
|
|
@@ -229,10 +227,7 @@ export default {
|
|
|
open: false,
|
|
|
openDetail: false,
|
|
|
// 查询参数
|
|
|
- queryParams: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10
|
|
|
- },
|
|
|
+ queryParams: {},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
@@ -410,11 +405,9 @@ export default {
|
|
|
this.getGoodsList()
|
|
|
},
|
|
|
getList() {
|
|
|
- this.orderLoading = true
|
|
|
- listPurchaseGoods({ ...this.queryParams, ...{ goodsType: this.goodsType } }).then((response) => {
|
|
|
- this.purchaseGoodsList = response.rows
|
|
|
- this.total = response.total
|
|
|
- this.orderLoading = false
|
|
|
+ this.queryParams.goodsType = this.goodsType
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.pagination.handleSearch(true)
|
|
|
})
|
|
|
},
|
|
|
getGoodsList() {
|