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

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">
<el-select
@focus="typeList(scope.row)"
@change="fileTypeChange"
v-model="scope.row.fileType"
placeholder="请选择"
@@ -133,9 +134,9 @@
>
<el-option
v-for="item in decomposeOptions"
:value="item.attrField"
:value="item.value"
:key="item.id"
:label="item.attrName"
:label="item.label"
>
</el-option>
</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){
this.fileType = type
let ids = [];
@@ -948,21 +965,21 @@ export default {
}, e => {
});
//查找分解单来源数据
this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
_this: this
}, res => {
this.decomposeOptions.push(
{
attrField: 'BDR',
attrName: '不带入'
}
)
res.data.forEach(item => {
if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
this.decomposeOptions.push(item)
}
})
})
// this.$http.get('lawss/sarStandAttrDetails/getListData',{},{
// _this: this
// }, res => {
// this.decomposeOptions.push(
// {
// attrField: 'BDR',
// attrName: '不带入'
// }
// )
// res.data.forEach(item => {
// if(item.sarType === 'STAND' || item.sarType === 'INLAND_STAND' || item.sarType === 'FOREIGN_STAND'){
// this.decomposeOptions.push(item)
// }
// })
// })
}
};
</script>