|
@@ -6,6 +6,49 @@
|
|
|
<el-tab-pane label="我的订购" name="first">
|
|
|
<el-row style="padding: 0 20px;">
|
|
|
<el-tabs v-model="activeNameFirst" @tab-click="handleClickFirst">
|
|
|
+ <el-tab-pane label="发起交易" name="fgffadqdfa">
|
|
|
+ <el-col :span="24" class="info">
|
|
|
+ <el-col :span="24" v-for="(item, index) in faqilist" :key="index">
|
|
|
+ <el-col class="xqborder">
|
|
|
+ <el-col :span="24" class="fbListTop">
|
|
|
+ <el-col :span="21"> </el-col>
|
|
|
+ <el-col :span="3">
|
|
|
+ {{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="fbListCenter">
|
|
|
+ <el-col :span="6" class="fbListCenterC">
|
|
|
+ <p class="textOver">产品:{{ item.product_name }}</p>
|
|
|
+ <p>营销人名称:{{ item.market_username }}</p>
|
|
|
+ <p>购买人名称:{{ item.username }}</p>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" class="fbListCenterTwo">
|
|
|
+ <el-col :span="24">说明:{{ item.description }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" class="fbListCenterR">
|
|
|
+ <el-col :span="24" class="bainji">
|
|
|
+ <el-link :underline="false" @click="jiaoyisuccess(item)">同意交易</el-link>
|
|
|
+ <el-link :underline="false" @click="deteles(item)">删除</el-link>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="page" :span="24">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChangefaqi"
|
|
|
+ :current-page="currentPage"
|
|
|
+ background
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="totalfaqi"
|
|
|
+ :page-size="pageSize"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
<el-tab-pane label="交易中" name="fgrrsss">
|
|
|
<el-col :span="24" class="info">
|
|
|
<el-col :span="24" v-for="(item, index) in dinggou1" :key="index">
|
|
@@ -27,7 +70,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" class="fbListCenterR">
|
|
|
<el-col :span="24" class="bainji">
|
|
|
- <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
|
|
|
+ <el-link :underline="false" @click="deteles(item)">删除</el-link>
|
|
|
+ <el-link :underline="false" @click="success(item)">审核通过</el-link>
|
|
|
+ <el-link :underline="false" @click="shibai(item)">审核失败</el-link>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -69,7 +114,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" class="fbListCenterR">
|
|
|
<el-col :span="24" class="bainji">
|
|
|
- <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
|
|
|
+ <el-link :underline="false" @click="deteles(item)">删除</el-link>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -111,7 +156,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" class="fbListCenterR">
|
|
|
<el-col :span="24" class="bainji">
|
|
|
- <el-link :underline="false" @click="deteles(item)">彻底删除</el-link>
|
|
|
+ <el-link :underline="false" @click="deteles(item)">删除</el-link>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -157,6 +202,8 @@ export default {
|
|
|
total1: null,
|
|
|
total2: null,
|
|
|
total3: null,
|
|
|
+ faqilist: null,
|
|
|
+ totalfaqi: null,
|
|
|
|
|
|
// gonggeiData: null,
|
|
|
},
|
|
@@ -176,6 +223,17 @@ export default {
|
|
|
messFabu() {
|
|
|
this.$router.push({ path: '/enterprise/enterprisexuqiu' });
|
|
|
},
|
|
|
+
|
|
|
+ success(item) {
|
|
|
+ this.$emit('success', { item });
|
|
|
+ },
|
|
|
+
|
|
|
+ shibai(item) {
|
|
|
+ this.$emit('shibai', { item });
|
|
|
+ },
|
|
|
+ jiaoyisuccess(item) {
|
|
|
+ this.$emit('jiaoyisuccess', { item });
|
|
|
+ },
|
|
|
handleClick(tab, event) {
|
|
|
console.log(tab, event);
|
|
|
},
|
|
@@ -197,6 +255,10 @@ export default {
|
|
|
console.log(currentPage);
|
|
|
this.$emit('handleCurrentChange2', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
|
|
|
},
|
|
|
+ handleCurrentChangefaqi(currentPage) {
|
|
|
+ console.log(currentPage);
|
|
|
+ this.$emit('handleCurrentChangefaqi', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|