|
|
|
@ -321,6 +321,64 @@
|
|
|
|
@delete="(row) => deleteContract(row.id)"
|
|
|
|
@delete="(row) => deleteContract(row.id)"
|
|
|
|
@editor=""
|
|
|
|
@editor=""
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<template v-slot:apply_user_name>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
header-align="center"
|
|
|
|
|
|
|
|
label="申购人"
|
|
|
|
|
|
|
|
width="240"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
|
|
|
<el-popover title="选择申购人" placement="bottom-start" width="250">
|
|
|
|
|
|
|
|
<el-select style="width:100%" v-model="scope.row.apply_user_id" placeholder="请选择">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in commonPurchasePeople"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
:label="item.name">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
<div style="text-align: right;margin-top:5px">
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="changeEdit(scope.row)">确认</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div slot="reference">
|
|
|
|
|
|
|
|
<span>{{scope.row.apply_user?scope.row.apply_user.name:''}}</span>
|
|
|
|
|
|
|
|
<i class="el-icon-edit"></i>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:undertake_user_name>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
header-align="center"
|
|
|
|
|
|
|
|
label="承办人"
|
|
|
|
|
|
|
|
width="240"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
|
|
|
<el-popover title="选择承办人" placement="bottom-start" width="250">
|
|
|
|
|
|
|
|
<el-select style="width:100%" v-model="scope.row.undertake_user_id" placeholder="请选择">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in commonPurchasePeople"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
:label="item.name">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
<div style="text-align: right;margin-top:5px">
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="changeEdit(scope.row)">确认</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div slot="reference">
|
|
|
|
|
|
|
|
<span>{{scope.row.undertake_user?scope.row.undertake_user.name:''}}</span>
|
|
|
|
|
|
|
|
<i class="el-icon-edit"></i>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
<template v-slot:contract_flow_links>
|
|
|
|
<template v-slot:contract_flow_links>
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
header-align="center"
|
|
|
|
header-align="center"
|
|
|
|
@ -1088,12 +1146,12 @@ export default {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "申购人",
|
|
|
|
label: "申购人",
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
prop: "apply_user.name",
|
|
|
|
prop: "apply_user_name",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "承办人",
|
|
|
|
label: "承办人",
|
|
|
|
width: 120,
|
|
|
|
width: 120,
|
|
|
|
prop: "undertake_user.name",
|
|
|
|
prop: "undertake_user_name",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: "摘要",
|
|
|
|
label: "摘要",
|
|
|
|
@ -1534,6 +1592,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
// 一般采购 申购人
|
|
|
|
// 一般采购 申购人
|
|
|
|
|
|
|
|
changeEdit(e){
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
editorContract({
|
|
|
|
|
|
|
|
...e
|
|
|
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
this.getContracts()
|
|
|
|
|
|
|
|
}).catch()
|
|
|
|
|
|
|
|
},
|
|
|
|
async getCommonPurchasePeople() {
|
|
|
|
async getCommonPurchasePeople() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
this.commonPurchasePeople = (await listCommonuser({
|
|
|
|
this.commonPurchasePeople = (await listCommonuser({
|
|
|
|
|