|
|
|
|
@ -15,18 +15,17 @@
|
|
|
|
|
:limit="1"
|
|
|
|
|
>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
|
|
>选取文件</el-button
|
|
|
|
|
>选取文件</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
style="margin-left: 10px"
|
|
|
|
|
size="small"
|
|
|
|
|
type="success"
|
|
|
|
|
@click="$refs['upload'].submit()"
|
|
|
|
|
>开始上传</el-button
|
|
|
|
|
>开始上传</el-button
|
|
|
|
|
>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
|
支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls
|
|
|
|
|
.xlsx
|
|
|
|
|
支持文件格式:.rar .zip .doc .docx .pdf .jpg .png .gif .mp4 .xls .xlsx
|
|
|
|
|
<br />单个文件不能超过50M
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
@ -35,25 +34,25 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { detailContract, editorContract } from '@/api/contract/contract'
|
|
|
|
|
import { detailContract, editorContract } from "@/api/contract/contract";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
id: '',
|
|
|
|
|
id: "",
|
|
|
|
|
isShow: false,
|
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
setId (id) {
|
|
|
|
|
this.id = id
|
|
|
|
|
setId(id) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
},
|
|
|
|
|
show() {
|
|
|
|
|
this.isShow = true
|
|
|
|
|
this.isShow = true;
|
|
|
|
|
},
|
|
|
|
|
hide() {
|
|
|
|
|
this.isShow = false
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
//上传
|
|
|
|
|
successHandle(response, file, fileList) {
|
|
|
|
|
@ -73,31 +72,30 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
async getDetail () {
|
|
|
|
|
async getDetail() {
|
|
|
|
|
const res = await detailContract({
|
|
|
|
|
id: this.id
|
|
|
|
|
})
|
|
|
|
|
this.detail = res
|
|
|
|
|
id: this.id,
|
|
|
|
|
});
|
|
|
|
|
this.detail = res;
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
this.detail.invite_status = 3;
|
|
|
|
|
this.detail.tender_id = this.fileList[0].response?.id;
|
|
|
|
|
editorContract(this.detail).then((res) => {
|
|
|
|
|
this.hide();
|
|
|
|
|
this.$emit("refresh");
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
submit () {
|
|
|
|
|
this.detail.invite_status = 3
|
|
|
|
|
this.detail.tender_id = this.fileList[0].response?.id
|
|
|
|
|
editorContract(this.detail).then(res => {
|
|
|
|
|
this.hide()
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {},
|
|
|
|
|
watch: {
|
|
|
|
|
isShow (newVal) {
|
|
|
|
|
isShow(newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
this.getDetail()
|
|
|
|
|
this.getDetail();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
</style>
|
|
|
|
|
<style scoped lang="scss"></style>
|
|
|
|
|
|