|
@@ -103,7 +103,8 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
labelWidth:150,
|
|
|
component: 'JSelectInput',
|
|
|
componentProps:{
|
|
|
- options:customerOption
|
|
|
+ options:customerOption,
|
|
|
+ stringToNumber:true
|
|
|
},
|
|
|
|
|
|
|
|
@@ -211,7 +212,9 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'projectId',
|
|
|
component: 'JSelectInput',
|
|
|
componentProps:{
|
|
|
- options:projectOption
|
|
|
+ options:projectOption,
|
|
|
+ onChange: (value) => {
|
|
|
+ },
|
|
|
},
|
|
|
labelWidth:150,
|
|
|
dynamicRules: ({model,schema}) => {
|
|
@@ -375,12 +378,13 @@ export function getCustomerOptions(){
|
|
|
let params = {pageSize:'-1',status:1}
|
|
|
defHttp.get({url:'/cuspCode/cuspCustomerProfile/list',params}, { isTransformResponse: false }).then(res=>{
|
|
|
if(res){
|
|
|
- res.result.records.forEach(item=>{
|
|
|
- customerOption.value.push({
|
|
|
- label: item.name,
|
|
|
- value: item.id
|
|
|
- })
|
|
|
- })
|
|
|
+ customerOption.value.splice(0,customerOption.value.length);
|
|
|
+ res.result.records.forEach(item=>{
|
|
|
+ customerOption.value.push({
|
|
|
+ label: item.name,
|
|
|
+ value: item.id
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -388,10 +392,12 @@ export function getProjectOptions(){
|
|
|
let params = {pageSize:'-1'}
|
|
|
defHttp.get({url:'/baseCode/baseProjectArchive/list',params}, { isTransformResponse: false }).then(res=>{
|
|
|
if(res){
|
|
|
+ projectOption.value.splice(0,projectOption.value.length);
|
|
|
res.result.records.forEach(item=>{
|
|
|
projectOption.value.push({
|
|
|
label: item.name,
|
|
|
- value: item.id
|
|
|
+ value: item.id,
|
|
|
+ customerName:item.customerId
|
|
|
})
|
|
|
})
|
|
|
}
|