Commit b3dacf6f by lichengming

修改了委托单管理的附件

parent d6f63f7e
......@@ -117,7 +117,7 @@ export default {
this.urlData = {
msg: 'FoodSubContractAttachment',
pageUrl: '/meter/v1/contract_attachment/page',
deleteUrl: 'FoodSubContractAttachment/deleteByIds',
deleteUrl: '/meter/v1/contract_attachment/?ids=',
uploadFileUrl: '/meter/v1/contract_attachment/upload/',
downloadFileUrl: '/meter/v1/contract_attachment/download/',
downloadBatch: '/food/v1/subcontractor_attachment/download_batch',
......
......@@ -164,7 +164,10 @@ export default {
{ title: '上传时间', key: 'ctime', width: 140, dateTime: true }
// {title: '上传人', key: 'cname', width: 120},
],
formObj: {},
formObj: {
contractId: '',
entrustId: ''
},
viewVal: 1,
viewStyle: 1,
menusList: [
......@@ -204,13 +207,15 @@ export default {
this.imgViewIndex = null
this.isLoad = false
this.id = data.id
this.formObj.contractId = data.id
this.formObj.entrustId = data.id
// 各个ids
this.idsObj = idsObj
this.urlData = data
this.action = global.baseURL + data.uploadFileUrl + data.id
// this.$nextTick(() => {
// this._page()
// })
this.$nextTick(() => {
this._page()
})
},
_page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams())
......
......@@ -260,7 +260,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.FileManage._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'contractId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
......
......@@ -253,7 +253,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.FileManage._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'contractId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
......
......@@ -249,7 +249,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.FileManage._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'contractId')
},
_getById: async function(id) {
const result = await meterEntrust.getVOById(id)
......
......@@ -323,7 +323,7 @@ export default {
_upload(id) {
// 上传文件
this.$refs.FileManage._open(id, 'subcontractorId')
this.$refs.FileManage._open(id, 'contractId')
},
_getById: async function(id) {
const result = await meterSubcontractor.getById(id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment