标段合同

master
xy 1 year ago
parent 7375a9da3d
commit 7652854213

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

@ -362,19 +362,19 @@
class="slot-btns-item" class="slot-btns-item"
size="small" size="small"
type="primary" type="primary"
@click="signProcess(scope.row)" @click="signPre(scope.row)"
>合同审批 >合同审批
</Button> </Button>
</template> </template>
<template v-if="scope.row.FLOWSTATUS['shenpi'].isEnabled()&&!scope.row.pid&&scope.row.is_contract"> <!-- <template v-if="scope.row.FLOWSTATUS['shenpi'].isEnabled()&&!scope.row.pid&&scope.row.is_contract">-->
<Button <!-- <Button-->
class="slot-btns-item" <!-- class="slot-btns-item"-->
size="small" <!-- size="small"-->
type="primary" <!-- type="primary"-->
@click="$refs['splitContract'].setId(scope.row.id),$refs['splitContract'].show()" <!-- @click="$refs['splitContract'].setId(scope.row.id),$refs['splitContract'].show()"-->
>合同拆分 <!-- >合同拆分-->
</Button> <!-- </Button>-->
</template> <!-- </template>-->
<template v-if="scope.row.FLOWSTATUS['caigou'].isEnabled()"> <template v-if="scope.row.FLOWSTATUS['caigou'].isEnabled()">
<Button <Button
class="slot-btns-item" 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) { async signProcess(row) {
this.setNowContract(row, "hetong"); this.setNowContract(row, "hetong");
let baseInfo = { let baseInfo = {
@ -2866,6 +2878,7 @@ export default {
if (/contractLedger/g.test(this.$route.path)) { if (/contractLedger/g.test(this.$route.path)) {
this.select.is_contract = 1; this.select.is_contract = 1;
this.select.purchase_status = 3; this.select.purchase_status = 3;
this.select.join_status = '2,3'
//this.select.invite_status = 3; //this.select.invite_status = 3;
this.select.is_simple = ""; this.select.is_simple = "";
} }

Loading…
Cancel
Save