|
@@ -3,7 +3,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="main animate__animated animate__backInRight">
|
|
|
<el-col :span="24" class="one">
|
|
|
- <data-table @query="search" :fields="fields" :opera="opera" :data="list" :total="total" @view="toView">
|
|
|
+ <data-table @query="search" :fields="fields" :opera="opera" :data="list" :total="total" @view="toView" @check="toCheck">
|
|
|
<template #options="{ item }">
|
|
|
<template v-if="item.prop == 'status_name'">
|
|
|
<el-option v-for="item in statusList" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
|
@@ -15,7 +15,7 @@
|
|
|
</el-row>
|
|
|
<e-dialog :dialog="dialog" @toClose="toClose">
|
|
|
<template slot="info">
|
|
|
- <info-1 :form="form"></info-1>
|
|
|
+ <info-1 v-if="dialog.type == '1'" :form="form"></info-1>
|
|
|
</template>
|
|
|
</e-dialog>
|
|
|
</div>
|
|
@@ -44,7 +44,7 @@ export default {
|
|
|
//操作项
|
|
|
opera: [
|
|
|
{ label: '详情', method: 'view' },
|
|
|
- { label: '订单确认', method: 'confirm', type: 'success', confirm: true, display: (i) => i.status == '3' },
|
|
|
+ { label: '订单确认', method: 'check', type: 'success', confirm: true, display: (i) => i.status == '3' },
|
|
|
],
|
|
|
//表格数据
|
|
|
list: [
|
|
@@ -91,26 +91,22 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//查询数据
|
|
|
- async search() {},
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {},
|
|
|
//详细信息
|
|
|
async toView({ data }) {
|
|
|
this.$set(this, `form`, data);
|
|
|
this.dialog = { title: '详细信息', show: true, type: '1', widths: '40%' };
|
|
|
},
|
|
|
+ // 订单确定
|
|
|
+ toCheck({ data }) {
|
|
|
+ console.log(data);
|
|
|
+ },
|
|
|
//关闭
|
|
|
toClose() {
|
|
|
this.form = { order: [] };
|
|
|
this.dialog = { title: '详细信息', show: false, type: '1' };
|
|
|
this.search();
|
|
|
},
|
|
|
- // 商品信息保存
|
|
|
- orderSave({ data }) {
|
|
|
- this.form.order.push(data);
|
|
|
- },
|
|
|
- // 删除商品信息
|
|
|
- orderDelete({ index }) {
|
|
|
- this.form.order.splice(index, 1);
|
|
|
- },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|