|
@@ -4,21 +4,23 @@
|
|
|
<el-col :span="24" class="info">
|
|
|
<el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
<p class="textOver">
|
|
|
- <span class="titel">{{ item.name }}</span>
|
|
|
- <span style="float:right;margin:0 0 0 5px;"> <van-button type="info" size="mini" @click="sussess(item)">审核通过</van-button></span>
|
|
|
+ <span @click="$router.push({ path: '/userCenter/matter/detailinfo', query: { id: item.id } })">{{ item.product_name }}</span>
|
|
|
+ <span style="float:right"><van-button v-if="item.status == '4'" type="primary" size="small" @click="submit(item)">审核</van-button> </span>
|
|
|
</p>
|
|
|
- <p class="newptwo">
|
|
|
- <span class="ptwo"><span>类型:</span>{{ item.status == '0' ? '技术' : item.status == '1' ? '产品' : '服务' }}</span>
|
|
|
+ <p>
|
|
|
+ <span class="ptwo"><span>购买人名称:</span>{{ item.username || '暂无' }}</span>
|
|
|
</p>
|
|
|
|
|
|
- <p class="newptwo">
|
|
|
- <span class="ptwo"><span>联系人:</span>{{ item.contact_user }}</span>
|
|
|
+ <p>
|
|
|
+ <span class="ptwo"><span>营销人名称:</span>{{ item.market_username || '暂无' }}</span>
|
|
|
+ <span>状态:</span
|
|
|
+ >{{
|
|
|
+ item.status == '0' ? '正在洽谈' : item.status == '1' ? '达成意向' : item.status == '2' ? '我的交易' : item.status == '4' ? '合同审核中' : '未识别'
|
|
|
+ }}
|
|
|
</p>
|
|
|
- <p class="newptwo">
|
|
|
- <span>审核状态:</span>{{ item.status == '0' ? '待审核' : item.status == '1' ? '审核成功' : item.status == '2' ? '审核拒绝' : '草稿' }}
|
|
|
- </p>
|
|
|
- <p class="newptwo"><span>简介:</span>{{ item.introduction }}</p></el-col
|
|
|
- >
|
|
|
+
|
|
|
+ <p class="textOver"><span>说明:</span>{{ item.description || '暂无' }}</p>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -26,7 +28,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: product } = createNamespacedHelpers('transaction');
|
|
|
+const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
|
|
|
|
export default {
|
|
|
name: 'auditList',
|
|
@@ -34,25 +36,32 @@ export default {
|
|
|
components: {},
|
|
|
data: function() {
|
|
|
return {
|
|
|
- list: [{ name: '1' }],
|
|
|
+ list: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...transaction(['query', 'update']),
|
|
|
+ ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
|
|
|
async searchInfo() {
|
|
|
if (this.user.role == '4') {
|
|
|
let userid = this.user.uid;
|
|
|
- let res = await this.query({ userid });
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
+ let res = await this.transactionList({ userid });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ }
|
|
|
} else {
|
|
|
- let res = await this.query();
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
+ let userid = this.user.uid;
|
|
|
+ let res = await this.transactionList();
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- async sussess(item) {},
|
|
|
+ async submit(item) {
|
|
|
+ this.$router.push({ path: './detail', query: { id: item.id } });
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
@@ -67,13 +76,8 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.newuser {
|
|
|
- float: right;
|
|
|
- padding: 10px 0 10px 10px;
|
|
|
-}
|
|
|
.info {
|
|
|
border-top: 1px solid #f5f5f5;
|
|
|
-
|
|
|
.list {
|
|
|
background: #fff;
|
|
|
padding: 0 10px;
|
|
@@ -88,8 +92,18 @@ export default {
|
|
|
}
|
|
|
p:nth-child(2) .ptwo {
|
|
|
display: inline-block;
|
|
|
- width: 50%;
|
|
|
+ width: 75%;
|
|
|
+ }
|
|
|
+
|
|
|
+ p:nth-child(3) .ptwo {
|
|
|
+ display: inline-block;
|
|
|
+ width: 40%;
|
|
|
+ }
|
|
|
+
|
|
|
+ p:nth-child(3) .ptwo span:first-child {
|
|
|
+ color: #ccc;
|
|
|
}
|
|
|
+
|
|
|
p:nth-child(2) .ptwo span:first-child {
|
|
|
color: #ccc;
|
|
|
}
|
|
@@ -106,19 +120,4 @@ export default {
|
|
|
.newptwo {
|
|
|
color: #ccc !important;
|
|
|
}
|
|
|
-/deep/.van-button--small {
|
|
|
- min-width: 60px;
|
|
|
- height: 30px;
|
|
|
- padding: 0 8px;
|
|
|
- font-size: 12px;
|
|
|
- margin: 0 5px 0 0;
|
|
|
-}
|
|
|
-.titel {
|
|
|
- display: inline-block;
|
|
|
- width: 41%;
|
|
|
-
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- whitewhite-space: nowrap;
|
|
|
-}
|
|
|
</style>
|