|
|
@@ -100,13 +100,33 @@
|
|
|
<span v-else>{{ row[item.prop] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" fixed="right" label="操作" width="150px">
|
|
|
+ <el-table-column align="center" fixed="right" label="操作" width="180px">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="bidEdit(scope.row)">编辑</el-button>
|
|
|
- <el-button type="text" @click="bidDel(scope.row)">删除</el-button>
|
|
|
- <el-button v-permissions="['proj:business:add']" type="text" @click="addProjBusiness(scope.row)">
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status == '10' || scope.row.status == '40'"
|
|
|
+ type="text"
|
|
|
+ @click="bidEdit(scope.row)">
|
|
|
+ 编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status == '10' || scope.row.status == '40'"
|
|
|
+ type="text"
|
|
|
+ @click="bidDel(scope.row)">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status == '10' || scope.row.status == '40'"
|
|
|
+ v-permissions="['proj:business:add']"
|
|
|
+ type="text"
|
|
|
+ @click="addProjBusiness(scope.row)">
|
|
|
新增项目
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status == '10' || scope.row.status == '40'"
|
|
|
+ type="text"
|
|
|
+ @click="closeLoop(scope.row)">
|
|
|
+ 闭环
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<template #empty>
|
|
|
@@ -223,6 +243,12 @@
|
|
|
prop: 'biddingTime',
|
|
|
sortable: false,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '闭环信息描述',
|
|
|
+ width: 'auto',
|
|
|
+ prop: 'closeLoopMsg',
|
|
|
+ sortable: false,
|
|
|
+ },
|
|
|
{
|
|
|
label: '备注',
|
|
|
width: 'auto',
|
|
|
@@ -260,6 +286,27 @@
|
|
|
this.getUserSalesProvince()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 闭环
|
|
|
+ closeLoop(row) {
|
|
|
+ this.$prompt('确定闭环该招标信息吗', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ })
|
|
|
+ .then(async ({ value }) => {
|
|
|
+ // 当用户点击确定按钮时,执行的逻辑
|
|
|
+ console.log('输入的值为:', value)
|
|
|
+ const [err, res] = await to(bidApi.closeLoop({ id: row.id, closeLoopMsg: value }))
|
|
|
+ if (err) return
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$baseMessage(res.msg, 'success', 'vab-hey-message-success')
|
|
|
+ this.fetchData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ // 当用户点击取消按钮时,执行的逻辑
|
|
|
+ // console.log('取消输入')
|
|
|
+ })
|
|
|
+ },
|
|
|
// 新建经销商
|
|
|
addDistributor() {
|
|
|
this.$refs['addDistributor'].showEdit()
|