Merge pull request 'fix : 修复费用台账公司搜索,项目管理前置流程逗号分隔' (#627) from dd into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/627
This commit is contained in:
@@ -246,9 +246,9 @@ let preProcess = {
|
|||||||
component: () => (
|
component: () => (
|
||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
props.formData.preProcess ? props.formData.preProcess.map(item => {
|
props.formData.preProcess ? props.formData.preProcess.map((item,index) => {
|
||||||
return <span><a target="_blank" style={{color: '#409EFF', cursor: 'pointer'}}
|
return <span><a target="_blank" style={{color: '#409EFF', cursor: 'pointer'}}
|
||||||
href={props.formData.preProcessBaseUrl + item.requestId}>{item.requestName}</a> </span>
|
href={props.formData.preProcessBaseUrl + item.requestId}>{item.requestName} {index != (props.formData.preProcess.length -1)? <span>,</span>:''}</a></span>
|
||||||
}) : <span>{'--'}</span>
|
}) : <span>{'--'}</span>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,9 +10,10 @@
|
|||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
import {toThousands} from '@/utils/changePrice.js'
|
import {toThousands} from '@/utils/changePrice.js'
|
||||||
|
import { getSubCompOpt } from '@/api/user/user.js';
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const searchConfig = reactive([
|
const searchConfig = ref([
|
||||||
{
|
{
|
||||||
label: '项目名称',
|
label: '项目名称',
|
||||||
prop: 'projectName',
|
prop: 'projectName',
|
||||||
@@ -24,6 +25,18 @@ const searchConfig = reactive([
|
|||||||
checkStrictly: true
|
checkStrictly: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '公司名称',
|
||||||
|
prop: 'affiliatedCompanyIds',
|
||||||
|
component: 'el-tree-select',
|
||||||
|
props: {
|
||||||
|
placeholder: '请输入',
|
||||||
|
clearable: true,
|
||||||
|
data: [],
|
||||||
|
filterable: true,
|
||||||
|
checkStrictly: true
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '时间',
|
label: '时间',
|
||||||
prop: 'time',
|
prop: 'time',
|
||||||
@@ -90,14 +103,20 @@ const tableConfig = reactive({
|
|||||||
prop: 'name',
|
prop: 'name',
|
||||||
type: 'index',
|
type: 'index',
|
||||||
label: '序号',
|
label: '序号',
|
||||||
width:'80',
|
align: 'center',
|
||||||
align: 'center'
|
width:85
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'projectName',
|
prop: 'projectName',
|
||||||
label: '项目名称',
|
label: '项目名称',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},{
|
},
|
||||||
|
{
|
||||||
|
prop: 'affiliatedCompany',
|
||||||
|
label: '公司名称',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
prop: 'time',
|
prop: 'time',
|
||||||
label: '时间',
|
label: '时间',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
@@ -162,6 +181,13 @@ const search = (val) => {
|
|||||||
tableConfig.params = {...val}
|
tableConfig.params = {...val}
|
||||||
tableIns.value.refresh()
|
tableIns.value.refresh()
|
||||||
}
|
}
|
||||||
|
const init = async () => {
|
||||||
|
const res = await getSubCompOpt()
|
||||||
|
searchConfig.value.find(item=>item.prop == 'affiliatedCompanyIds').props.data = res.data
|
||||||
|
}
|
||||||
|
|
||||||
|
init()
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user