更改项目评估流程分解单来源

This commit is contained in:
宋伟佳
2022-05-23 13:30:04 +08:00
parent 6d1900ef71
commit 635754c757
@@ -126,6 +126,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select
@focus="typeList(scope.row)"
@change="fileTypeChange" @change="fileTypeChange"
v-model="scope.row.fileType" v-model="scope.row.fileType"
placeholder="请选择" placeholder="请选择"
@@ -133,9 +134,9 @@
> >
<el-option <el-option
v-for="item in decomposeOptions" v-for="item in decomposeOptions"
:value="item.attrField" :value="item.value"
:key="item.id" :key="item.id"
:label="item.attrName" :label="item.label"
> >
</el-option> </el-option>
</el-select> </el-select>
@@ -569,6 +570,22 @@ export default {
}); });
}); });
}, },
typeList(row){
this.decomposeOptions = []
this.$http.get("SarStandItems/sar-stand-items/getFileType", {
standId: row.standId
}, {}, res => {
this.decomposeOptions.push(
{
value: 'BDR',
label: '不带入'
}
)
res.data.forEach(item => {
this.decomposeOptions.push(item)
})
});
},
fileTypeChange(type){ fileTypeChange(type){
this.fileType = type this.fileType = type
let ids = []; let ids = [];
@@ -948,21 +965,21 @@ export default {
}, e => { }, e => {
}); });
//查找分解单来源数据 //查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{ // this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this // _this: this
}, res => { // }, res => {
this.decomposeOptions.push( // this.decomposeOptions.push(
{ // {
attrField: 'BDR', // attrField: 'BDR',
attrName: '不带入' // attrName: '不带入'
} // }
) // )
res.data.forEach(item => { // res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){ // if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item) // this.decomposeOptions.push(item)
} // }
}) // })
}) // })
} }
}; };
</script> </script>