|
@@ -25,7 +25,16 @@
|
|
|
<template v-if="toggleSearchStatus">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-item label="报价项目(quotation project)">
|
|
|
- <a-input placeholder="请输入询价项目(inquiry project)" v-model:value="queryParams.projectName" :disabled="fatherProjectName!==''" allow-clear ></a-input>
|
|
|
+ <ApiSelect
|
|
|
+ :api="projectListList"
|
|
|
+ showSearch
|
|
|
+ v-model:value="queryParams.quotationProject"
|
|
|
+ optionFilterProp="label"
|
|
|
+ resultField="records"
|
|
|
+ labelField="name"
|
|
|
+ valueField="id"
|
|
|
+ :disabled="fatherProject!==''"
|
|
|
+ />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8">
|
|
@@ -123,7 +132,7 @@
|
|
|
const emit = defineEmits([ 'selectProduct']); //定义emit
|
|
|
let classOption = ref([])
|
|
|
var visible = ref(false)
|
|
|
- var fatherProjectName = ref('')
|
|
|
+ var fatherProject = ref('')
|
|
|
var fatherSourceCode = ref('')
|
|
|
const columns = [
|
|
|
{
|
|
@@ -265,10 +274,10 @@
|
|
|
let params = Object.assign(queryParams.value);
|
|
|
params.pageNo = pagination.value.current;
|
|
|
params.pageSize = pagination.value.pageSize;
|
|
|
- if(fatherProjectName.value&&fatherProjectName.value!==''){
|
|
|
- queryParams.value.projectName = fatherProjectName.value
|
|
|
+ if(fatherProject.value&&fatherProject.value!==''){
|
|
|
+ queryParams.value.quotationProject = fatherProject.value
|
|
|
}else{
|
|
|
- queryParams.value.projectName = params.projectName
|
|
|
+ queryParams.value.quotationProject = params.quotationProject
|
|
|
}
|
|
|
return filterObj(params);
|
|
|
}
|
|
@@ -359,9 +368,9 @@
|
|
|
function getTable(formData){
|
|
|
visible.value = true
|
|
|
if(formData.quotationProjectName&&formData.quotationProjectName!==''){
|
|
|
- fatherProjectName.value = formData.quotationProjectName
|
|
|
+ fatherProject.value = formData.quotationProject
|
|
|
}else{
|
|
|
- fatherProjectName.value = ''
|
|
|
+ fatherProject.value = ''
|
|
|
}
|
|
|
if(formData.sourceCode&&formData.sourceCode!==''){
|
|
|
fatherSourceCode.value = formData.sourceCode
|
|
@@ -371,6 +380,10 @@
|
|
|
loadData()
|
|
|
getOptiom()
|
|
|
}
|
|
|
+ function projectListList(){
|
|
|
+ let params = {pageSize:-1}
|
|
|
+ return defHttp.get({url:'/baseCode/baseProjectArchive/list',params});
|
|
|
+ }
|
|
|
defineExpose({
|
|
|
getTable
|
|
|
});
|