|
|
|
|
@ -173,19 +173,19 @@
|
|
|
|
|
</Button>
|
|
|
|
|
</template>
|
|
|
|
|
<template
|
|
|
|
|
v-if="scope.row.invite_status === 1 && scope.row.purchase_status === 3 && scope.row.purchase_way.remark === 'true'">
|
|
|
|
|
v-if="scope.row.invite_status === 1 && scope.row.purchase_status === 3 && scope.row.purchase_way.remark === 'true' && !scope.row.is_substitute">
|
|
|
|
|
<Button class="slot-btns-item" size="small" type="primary" @click="bidding(scope.row)">招标审查</Button>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <Button class="slot-btns-item" type="primary" size="small">附件管理</Button>-->
|
|
|
|
|
<template v-if="scope.row.req_status === 1 && scope.row.is_plan === 0">
|
|
|
|
|
<template v-if="scope.row.req_status === 1 && scope.row.is_plan === 0 && !scope.row.is_substitute">
|
|
|
|
|
<Button class="slot-btns-item" size="small" type="primary" @click="askProcess(scope.row)">请示流程</Button>
|
|
|
|
|
</template>
|
|
|
|
|
<template
|
|
|
|
|
v-if="(scope.row.join_status === 1 && ((scope.row.invite_status === 3)||(scope.row.purchase_way.remark === 'false' && scope.row.purchase_status === 3))) ">
|
|
|
|
|
v-if="(scope.row.join_status === 1 && ((scope.row.invite_status === 3)||(scope.row.purchase_way.remark === 'false' && scope.row.purchase_status === 3)) || ( scope.row.is_substitute && scope.row.join_status === 1) ) ">
|
|
|
|
|
<Button class="slot-btns-item" size="small" type="primary" @click="signProcess(scope.row)">合同会签</Button>
|
|
|
|
|
</template>
|
|
|
|
|
<template
|
|
|
|
|
v-if="scope.row.purchase_status === 1 && ((scope.row.req_status === 3 && scope.row.is_plan === 0)||scope.row.is_plan === 1)">
|
|
|
|
|
v-if="scope.row.purchase_status === 1 && ((scope.row.req_status === 3 && scope.row.is_plan === 0)||scope.row.is_plan === 1)&& !scope.row.is_substitute ">
|
|
|
|
|
<Button class="slot-btns-item" size="small" type="primary" @click="buyProcess(scope.row)">采购流程</Button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -308,6 +308,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_substitute>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="width: 200px;">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>是否为代建项目
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-switch v-model="form.is_substitute" active-text="是" inactive-text="否" :active-value="1" :inactive-value="0"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:plan>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
@ -565,6 +575,9 @@
|
|
|
|
|
width: 140,
|
|
|
|
|
prop: 'req_status',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
if(cell.is_substitute){
|
|
|
|
|
return '无'
|
|
|
|
|
}
|
|
|
|
|
if (cell.is_plan === 1) {
|
|
|
|
|
return '无'
|
|
|
|
|
}
|
|
|
|
|
@ -589,6 +602,9 @@
|
|
|
|
|
width: 158,
|
|
|
|
|
prop: 'purchase_status',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
if(cell.is_substitute){
|
|
|
|
|
return '无'
|
|
|
|
|
}
|
|
|
|
|
switch (value) {
|
|
|
|
|
case 1:
|
|
|
|
|
return "待申请"
|
|
|
|
|
@ -610,6 +626,9 @@
|
|
|
|
|
width: 145,
|
|
|
|
|
prop: 'invite_status',
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
if(cell.is_substitute){
|
|
|
|
|
return '无'
|
|
|
|
|
}
|
|
|
|
|
if (cell.purchase_way.remark === 'false') {
|
|
|
|
|
return '无'
|
|
|
|
|
}
|
|
|
|
|
@ -908,7 +927,8 @@
|
|
|
|
|
price: "",
|
|
|
|
|
fundingChannels: [],
|
|
|
|
|
isBudget: true,
|
|
|
|
|
plan: []
|
|
|
|
|
plan: [],
|
|
|
|
|
is_substitute:0,
|
|
|
|
|
},
|
|
|
|
|
plan: [],
|
|
|
|
|
rules: {
|
|
|
|
|
@ -983,6 +1003,8 @@
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let money = Number(row.update_money) == 0 ? Number(row.money) : Number(row.update_money);
|
|
|
|
|
console.log(e,money,row.use_money_total)
|
|
|
|
|
console.log(e <= (money - Number(row.use_money_total)))
|
|
|
|
|
if (e <= (money - Number(row.use_money_total))) {
|
|
|
|
|
row.useMoney = e
|
|
|
|
|
this.plan.forEach(item => {
|
|
|
|
|
@ -1044,7 +1066,7 @@
|
|
|
|
|
columnIndex
|
|
|
|
|
}) {
|
|
|
|
|
if (column.property === 'req_status') {
|
|
|
|
|
if (row.is_plan === 1) {
|
|
|
|
|
if (row.is_plan === 1 || row.is_substitute) {
|
|
|
|
|
return {
|
|
|
|
|
'color': 'rgb(140,140,140)'
|
|
|
|
|
}
|
|
|
|
|
@ -1072,6 +1094,11 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'purchase_status') {
|
|
|
|
|
if(row.is_substitute){
|
|
|
|
|
return {
|
|
|
|
|
'color': 'rgb(140,140,140)'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
switch (row.purchase_status) {
|
|
|
|
|
case 1:
|
|
|
|
|
return {
|
|
|
|
|
@ -1095,7 +1122,7 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (column.property === 'invite_status') {
|
|
|
|
|
if (row.purchase_way.remark === 'false') {
|
|
|
|
|
if (row.purchase_way.remark === 'false' || row.is_substitute) {
|
|
|
|
|
return {
|
|
|
|
|
'color': 'rgb(140,140,140)'
|
|
|
|
|
}
|
|
|
|
|
@ -1453,7 +1480,8 @@
|
|
|
|
|
name: this.form.name,
|
|
|
|
|
contract_plan_links: this.form.plan.map(item => {
|
|
|
|
|
return item.value
|
|
|
|
|
})
|
|
|
|
|
}),
|
|
|
|
|
is_substitute:this.form.is_substitute
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.isShowAdd = false
|
|
|
|
|
Message({
|
|
|
|
|
|