|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<el-card shadow="hover">
|
|
<el-card shadow="hover">
|
|
|
<el-form v-model="params" class="full-width" label-width="120px">
|
|
<el-form v-model="params" class="full-width" label-width="120px">
|
|
|
- <div class="flex">
|
|
|
|
|
|
|
+ <div class="flex flex-center">
|
|
|
<div class="flex flex-center mt-15 mr-10">
|
|
<div class="flex flex-center mt-15 mr-10">
|
|
|
<el-form-item label="关键字" class="full-width">
|
|
<el-form-item label="关键字" class="full-width">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -19,16 +19,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item class="full-width" label="合同类别">
|
|
|
|
|
- <el-select v-model="params.type" clearable>
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in typelist"
|
|
|
|
|
- :key="item.dictKey"
|
|
|
|
|
- :label="item.dictValue"
|
|
|
|
|
- :value="item.dictKey"
|
|
|
|
|
- />
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
<el-form-item class="full-width" label="合同状态">
|
|
<el-form-item class="full-width" label="合同状态">
|
|
|
<el-select v-model="params.status" clearable>
|
|
<el-select v-model="params.status" clearable>
|
|
|
<el-option
|
|
<el-option
|
|
@@ -40,12 +30,12 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="flex flex-justify-end ml-20">
|
|
|
|
|
+ <base-button type="0" title="重置" icon="Refresh" @click="clearUp" />
|
|
|
|
|
+ <base-button class="ml-20" @click="onLoad" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <div class="flex flex-justify-end ml-20">
|
|
|
|
|
- <base-button type="0" title="重置" icon="Refresh" @click="clearUp" />
|
|
|
|
|
- <base-button class="ml-20" @click="onLoad" />
|
|
|
|
|
- </div>
|
|
|
|
|
<avue-crud
|
|
<avue-crud
|
|
|
:option="option"
|
|
:option="option"
|
|
|
:data="data"
|
|
:data="data"
|
|
@@ -62,7 +52,10 @@
|
|
|
<div>{{ row.fileFolder.title }}</div>
|
|
<div>{{ row.fileFolder.title }}</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #menu-left>
|
|
<template #menu-left>
|
|
|
- <div class="main-color ml-10 bold font-15">金额单位:万元</div>
|
|
|
|
|
|
|
+ <div class="flex flex-center">
|
|
|
|
|
+ <div class="main-color ml-10 mr-20 bold font-15">金额单位:万元</div>
|
|
|
|
|
+ <filepicker :project-id="projectId" @submit="selection" />
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
</avue-crud>
|
|
</avue-crud>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -76,9 +69,10 @@ meta: { layout: 'empty','path':'/home/details','title':'资料管理','showMsg'
|
|
|
</route>
|
|
</route>
|
|
|
<script>
|
|
<script>
|
|
|
import BaseButton from '@/components/base-button.vue'
|
|
import BaseButton from '@/components/base-button.vue'
|
|
|
|
|
+import filepicker from '@/components/filepicker/index.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { BaseButton },
|
|
|
|
|
|
|
+ components: { BaseButton, filepicker },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
projectId: '',
|
|
projectId: '',
|
|
@@ -93,7 +87,6 @@ export default {
|
|
|
editBtn: false,
|
|
editBtn: false,
|
|
|
viewBtn: true,
|
|
viewBtn: true,
|
|
|
delBtn: true,
|
|
delBtn: true,
|
|
|
- refreshBtn: false,
|
|
|
|
|
columnBtn: false,
|
|
columnBtn: false,
|
|
|
labelWidth: 140,
|
|
labelWidth: 140,
|
|
|
border: true,
|
|
border: true,
|
|
@@ -243,6 +236,20 @@ export default {
|
|
|
},
|
|
},
|
|
|
refreshChange() {
|
|
refreshChange() {
|
|
|
this.onLoad()
|
|
this.onLoad()
|
|
|
|
|
+ },
|
|
|
|
|
+ selection(list) {
|
|
|
|
|
+ const tmps = list.map(ele => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ fileId: ele.id,
|
|
|
|
|
+ projectId: ele.projectId,
|
|
|
|
|
+ title: ele.title
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ this.$api.contract.linkContract(tmps).then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.refreshChange()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|