|
|
@ -81,6 +81,20 @@ |
|
|
|
placeholder="请输入" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="使用组织" width="180"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-select |
|
|
|
v-model="scope.row['AP_CustDemandVerDetail-FUseOrgNo']" |
|
|
|
:disabled="item.title === '修改' && formData['AP_CustDemandVerHead-Status'] === '1'" |
|
|
|
placeholder="请选择" |
|
|
|
style="width:100%;"> |
|
|
|
<el-option v-for="item in orgListArray" |
|
|
|
:key="item['FNumber']" |
|
|
|
:label="item['FName']" |
|
|
|
:value="item['FNumber']" /> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column v-for="(item1, index) in headers" :key="index" :label="item1" width="130"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-input |
|
|
@ -165,11 +179,13 @@ export default { |
|
|
|
AriId:undefined |
|
|
|
}, |
|
|
|
getCreateModeArray: [], // 获取关联模型数据 |
|
|
|
orgListArray: [], |
|
|
|
CustDemandVerDetail: {}, |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getCreateModeData() |
|
|
|
this.getOrgListData() |
|
|
|
if (this.item.title === '修改') { |
|
|
|
this.handleUpdate(this.item.CustomerId, this.item.VersionId) |
|
|
|
} else if (this.item.title === '复制') { |
|
|
@ -185,7 +201,6 @@ export default { |
|
|
|
Item: JSON.parse(JSON.stringify(this.defaultItem)), |
|
|
|
CustDemandVerDetail: this.CustDemandVerDetail |
|
|
|
}) |
|
|
|
console.log(this.formData['AP_CustDemandVerHead-CustomerItem']) |
|
|
|
}, |
|
|
|
/** 删除属性 */ |
|
|
|
handleDeleteValst(index) { |
|
|
@ -199,6 +214,14 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 获取使用组织数据 |
|
|
|
getOrgListData() { |
|
|
|
get(`/admin/common/org/list`).then(res => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.orgListArray = res.data || [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleAdd(CustomerId) { // 新增按钮操作 |
|
|
|
this.formData['AP_CustDemandVerHead-CustomerId'] = this.item.CustomerId |
|
|
|
this.formData['AP_CustDemandVerHead-CreateMode'] = this.item.CreateModel |
|
|
|