标段合同

master
xy 12 months ago
parent 7375a9da3d
commit 7652854213

@ -14,7 +14,7 @@
<el-button size="mini" type="danger" @click.prevent="form.data.splice(index,1)">删除</el-button>
</div>
<el-form-item
label="名称"
label="标段名称"
:prop="'data['+index+'].name'"
:rules="{required: true, message: '名称不能为空', trigger: 'blur'}"
>

@ -362,19 +362,19 @@
class="slot-btns-item"
size="small"
type="primary"
@click="signProcess(scope.row)"
@click="signPre(scope.row)"
>合同审批
</Button>
</template>
<template v-if="scope.row.FLOWSTATUS['shenpi'].isEnabled()&&!scope.row.pid&&scope.row.is_contract">
<Button
class="slot-btns-item"
size="small"
type="primary"
@click="$refs['splitContract'].setId(scope.row.id),$refs['splitContract'].show()"
>合同拆分
</Button>
</template>
<!-- <template v-if="scope.row.FLOWSTATUS['shenpi'].isEnabled()&&!scope.row.pid&&scope.row.is_contract">-->
<!-- <Button-->
<!-- class="slot-btns-item"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- @click="$refs['splitContract'].setId(scope.row.id),$refs['splitContract'].show()"-->
<!-- >合同拆分-->
<!-- </Button>-->
<!-- </template>-->
<template v-if="scope.row.FLOWSTATUS['caigou'].isEnabled()">
<Button
class="slot-btns-item"
@ -2319,6 +2319,18 @@ export default {
);
},
//
signPre (row) {
this.$confirm('是否为多标段合同?','提示',{
confirmButtonText: '合同拆分',
cancelButtonText: '合同审批',
type: 'warning'
}).then(_ => {
this.$refs['splitContract'].setId(row.id)
this.$refs['splitContract'].show()
}).catch(_ => {
this.signProcess(row)
})
},
async signProcess(row) {
this.setNowContract(row, "hetong");
let baseInfo = {
@ -2866,6 +2878,7 @@ export default {
if (/contractLedger/g.test(this.$route.path)) {
this.select.is_contract = 1;
this.select.purchase_status = 3;
this.select.join_status = '2,3'
//this.select.invite_status = 3;
this.select.is_simple = "";
}

Loading…
Cancel
Save