123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <div id="auditList">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
- <p class="textOver">
- <span @click="$router.push({ path: '/userCenter/matter/detailinfo', query: { id: item.id } })">{{ item.product_name }}</span>
- </p>
- <p>
- <span class="ptwo"><span>营销人名称:</span>{{ item.market_username || '暂无' }}</span>
- <span class="ptwo"><span>购买人名称:</span>{{ item.username || '暂无' }}</span>
- </p>
- <p class="newptwo">
- <span>状态:</span
- >{{
- item.status == '0' ? '正在洽谈' : item.status == '1' ? '达成意向' : item.status == '2' ? '我的交易' : item.status == '4' ? '合同审核中' : '未识别'
- }}
- </p>
- <p class="textOver"><span>说明:</span>{{ item.description || '暂无' }}</p>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- const { mapActions: transaction } = createNamespacedHelpers('transaction');
- export default {
- name: 'auditList',
- props: {},
- components: {},
- data: function() {
- return {
- list: [],
- };
- },
- created() {
- this.searchInfo();
- },
- methods: {
- ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
- async searchInfo({ skip = 0, limit = 1000, ...info } = {}) {
- let userid = this.user.uid;
- let market_userid = this.user.uid;
- const res = await this.transactionList({ skip, limit, userid, ...info });
- const arr = await this.transactionList({ skip, limit, market_userid, ...info });
- var newData = res.data.concat(arr.data);
- if (this.$checkRes(newData)) {
- this.$set(this, `list`, newData);
- }
- },
- submit() {
- console.log('submit');
- },
- },
- computed: {
- ...mapState(['user']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped>
- .info {
- border-top: 1px solid #f5f5f5;
- .list {
- background: #fff;
- padding: 0 10px;
- border-bottom: 1px solid #ccc;
- p {
- font-size: 14px;
- color: #000;
- padding: 5px 0;
- }
- p:first-child {
- font-size: 16px;
- }
- p:nth-child(2) .ptwo {
- display: inline-block;
- width: 50%;
- }
- p:nth-child(2) .ptwo span:first-child {
- color: #ccc;
- }
- p:last-child span {
- color: #ccc;
- }
- }
- }
- .newptwo {
- color: #ccc !important;
- }
- </style>
|