|
|
|
|
@ -303,10 +303,10 @@
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div class="slot-btns">
|
|
|
|
|
<template v-if="scope.row.status === 2 && scope.row.is_end === 0">
|
|
|
|
|
<template v-if="scope.row.is_assurance == 1">
|
|
|
|
|
<template v-if="(scope.row.status === 2 && scope.row.is_end === 0) || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
|
|
|
|
|
<template v-if="scope.row.is_assurance == 1 || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
|
|
|
|
|
<!-- 如果是 履约文件-->
|
|
|
|
|
<template v-if="scope.row.assurance_status == 1">
|
|
|
|
|
<template v-if="scope.row.assurance_status == 1 || (!scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城' && scope.row.purchase_status === 3)">
|
|
|
|
|
<!-- 那么必须财务审核通过-->
|
|
|
|
|
<Button
|
|
|
|
|
class="slot-btns-item"
|
|
|
|
|
@ -344,7 +344,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template
|
|
|
|
|
v-if="(scope.row.status === 1 && scope.row.join_status === 3 && !/contractLedger/g.test($route.path)) || !(!scope.row.is_framework && scope.row.purchase_way && scope.row.purchase_way.value === '网上商城')"
|
|
|
|
|
v-if="(scope.row.status === 1 && scope.row.join_status === 3 && !/contractLedger/g.test($route.path)) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')"
|
|
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
class="slot-btns-item"
|
|
|
|
|
@ -361,12 +361,12 @@
|
|
|
|
|
<!-- 采购完成 -->
|
|
|
|
|
<template
|
|
|
|
|
v-if="
|
|
|
|
|
scope.row.invite_status === 1 &&
|
|
|
|
|
(scope.row.invite_status === 1 &&
|
|
|
|
|
scope.row.purchase_status === 3 &&
|
|
|
|
|
(scope.row.purchase_way
|
|
|
|
|
? scope.row.purchase_way.remark === 'true'
|
|
|
|
|
: false) &&
|
|
|
|
|
!scope.row.is_substitute
|
|
|
|
|
!scope.row.is_substitute) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
@ -405,13 +405,13 @@
|
|
|
|
|
<!--不需要走采购流程那么直接就是会签,如果采购方式不需要招标的也是直接会签-->
|
|
|
|
|
<template
|
|
|
|
|
v-if="
|
|
|
|
|
(scope.row.join_status === 1 &&
|
|
|
|
|
((scope.row.join_status === 1 &&
|
|
|
|
|
(scope.row.invite_status === 3 ||
|
|
|
|
|
((scope.row.purchase_way
|
|
|
|
|
? scope.row.purchase_way.remark === 'false'
|
|
|
|
|
: false) &&
|
|
|
|
|
scope.row.purchase_status === 3))) ||
|
|
|
|
|
(scope.row.is_substitute && scope.row.join_status === 1)
|
|
|
|
|
(scope.row.is_substitute && scope.row.join_status === 1)) && (scope.row.is_contract && scope.row.purchase_way && scope.row.purchase_way.value !== '网上商城')
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<Button
|
|
|
|
|
@ -569,7 +569,7 @@
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red; font-weight: 600; padding-right: 4px"
|
|
|
|
|
>*</span
|
|
|
|
|
>是否为合同
|
|
|
|
|
>是否需要签订合同
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<div style="display: flex; width: 300px; align-items: center">
|
|
|
|
|
@ -682,9 +682,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select
|
|
|
|
|
ref="methodInput"
|
|
|
|
|
v-model="form.methods"
|
|
|
|
|
placeholder="请选择采购形式"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
@change="showIsFramework"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in purchaseType"
|
|
|
|
|
@ -786,7 +788,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:is_framework>
|
|
|
|
|
<template v-slot:is_framework v-if="isShowIsFramework">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="width: 200px">
|
|
|
|
|
<span style="color: red; font-weight: 600; padding-right: 4px"
|
|
|
|
|
@ -818,6 +820,7 @@
|
|
|
|
|
inactive-text="否"
|
|
|
|
|
:active-value="1"
|
|
|
|
|
:inactive-value="0"
|
|
|
|
|
@change="showIsFramework"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -854,16 +857,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template #content>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="width: 200px">
|
|
|
|
|
合同主要内容
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input v-model="form.content" style="width: 300px" type="textarea" :autosize="{ minRows: 2 }" placeholder="请输入合同主要内容"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:plan>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
@ -1004,7 +997,7 @@
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column
|
|
|
|
|
header-align="center"
|
|
|
|
|
label="使用金额"
|
|
|
|
|
label="使用金额(元)"
|
|
|
|
|
fixed="right"
|
|
|
|
|
width="140"
|
|
|
|
|
>
|
|
|
|
|
@ -1225,6 +1218,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
isShowIsFramework: true,
|
|
|
|
|
userList: ["ma_sm", "admin", "yu_l","wang_yx","li_f","chen_y"],
|
|
|
|
|
nowContract: {},
|
|
|
|
|
window: {
|
|
|
|
|
@ -1591,7 +1585,7 @@ export default {
|
|
|
|
|
width: 158,
|
|
|
|
|
prop: "purchase_status",
|
|
|
|
|
customFn:row => {
|
|
|
|
|
if (row.is_substitute || row.is_simple || !row.is_contract) {
|
|
|
|
|
if (row.is_substitute || row.is_simple || (!row.is_contract && row.purchase_way?.value !== '网上商城')) {
|
|
|
|
|
return (<span>无</span>);
|
|
|
|
|
}
|
|
|
|
|
const getDate = (value) => {
|
|
|
|
|
@ -2127,6 +2121,16 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
showIsFramework () {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
if (this.$refs['methodInput'].selected.label === '直接发包' && this.form.use_framework_buy) {
|
|
|
|
|
this.isShowIsFramework = false;
|
|
|
|
|
this.form.is_framework = true
|
|
|
|
|
} else {
|
|
|
|
|
this.isShowIsFramework = true;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
async toOaDetail (tbname,row) {
|
|
|
|
|
let res;
|
|
|
|
|
switch (tbname) {
|
|
|
|
|
@ -2460,6 +2464,7 @@ export default {
|
|
|
|
|
total: row?.money || row?.plan_price,
|
|
|
|
|
out_contract_id: row.id,
|
|
|
|
|
contract_content: row.content,
|
|
|
|
|
yifang: row.supply
|
|
|
|
|
//"承包商\\供应商":row.supply
|
|
|
|
|
};
|
|
|
|
|
// let res = await getOatoken()
|
|
|
|
|
@ -2771,6 +2776,7 @@ export default {
|
|
|
|
|
type: this.form.type,
|
|
|
|
|
is_plan: this.form.isBudget ? 1 : 0,
|
|
|
|
|
purchase_type_id: this.form.methods,
|
|
|
|
|
is_contract: this.form.is_contract,
|
|
|
|
|
purchase_way_id: this.form.modality,
|
|
|
|
|
money_way_id: `${this.form.fundingChannels.toString()}`,
|
|
|
|
|
plan_price: this.form.price,
|
|
|
|
|
|