|
@@ -31,7 +31,7 @@
|
|
@cell-click="rowClick"
|
|
@cell-click="rowClick"
|
|
:show-header="false"
|
|
:show-header="false"
|
|
>
|
|
>
|
|
- <vxe-column title="" field="entname" ></vxe-column>
|
|
|
|
|
|
+ <vxe-column title="" field="name" ></vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
<el-button type="info" slot="reference" @click="getPopTable" style="width: 100%" plain>查询</el-button>
|
|
<el-button type="info" slot="reference" @click="getPopTable" style="width: 100%" plain>查询</el-button>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -284,7 +284,8 @@
|
|
describes: '',
|
|
describes: '',
|
|
contractSpecial: '',
|
|
contractSpecial: '',
|
|
remarks: '',
|
|
remarks: '',
|
|
- clientName: ''
|
|
|
|
|
|
+ clientName: '',
|
|
|
|
+ status: ''
|
|
},
|
|
},
|
|
inputForm: {
|
|
inputForm: {
|
|
clientId: '',
|
|
clientId: '',
|
|
@@ -304,7 +305,8 @@
|
|
clientName: '',
|
|
clientName: '',
|
|
permissionFlag: '',
|
|
permissionFlag: '',
|
|
showVi: true,
|
|
showVi: true,
|
|
- workAttachmentList: []
|
|
|
|
|
|
+ workAttachmentList: [],
|
|
|
|
+ status: ''
|
|
},
|
|
},
|
|
filesArra2: [],
|
|
filesArra2: [],
|
|
fileList: [],
|
|
fileList: [],
|
|
@@ -320,6 +322,16 @@
|
|
promi: null
|
|
promi: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ props: {
|
|
|
|
+ businessId: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: ''
|
|
|
|
+ },
|
|
|
|
+ formReadOnly: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
components: {
|
|
components: {
|
|
ElImageViewer
|
|
ElImageViewer
|
|
},
|
|
},
|
|
@@ -334,6 +346,22 @@
|
|
mounted () {
|
|
mounted () {
|
|
window.onPreview = this.onPreview
|
|
window.onPreview = this.onPreview
|
|
},
|
|
},
|
|
|
|
+ watch: {
|
|
|
|
+ 'businessId': {
|
|
|
|
+ handler (newVal) {
|
|
|
|
+ if (this.businessId) {
|
|
|
|
+ this.ossService = new OSSSerive()
|
|
|
|
+ this.init('edit', this.businessId)
|
|
|
|
+ } else {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.inputForm.resetFields()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ immediate: true,
|
|
|
|
+ deep: false
|
|
|
|
+ }
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
uploadVideoProcess (event, file, fileList) {
|
|
uploadVideoProcess (event, file, fileList) {
|
|
this.progressFlag = true // 显示进度条
|
|
this.progressFlag = true // 显示进度条
|
|
@@ -390,9 +418,7 @@
|
|
rowurl: '',
|
|
rowurl: '',
|
|
src: '',
|
|
src: '',
|
|
showVi: true,
|
|
showVi: true,
|
|
- type: '',
|
|
|
|
- permissionFlag: '',
|
|
|
|
- workAttachmentList: []
|
|
|
|
|
|
+ status: ''
|
|
}
|
|
}
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
if (method === 'add') {
|
|
if (method === 'add') {
|
|
@@ -401,7 +427,7 @@
|
|
} else if (method === 'edit') {
|
|
} else if (method === 'edit') {
|
|
this.title = '修改合同登记'
|
|
this.title = '修改合同登记'
|
|
} else if (method === 'view') {
|
|
} else if (method === 'view') {
|
|
- this.showVi = false
|
|
|
|
|
|
+ this.inputForm.showVi = false
|
|
this.title = '查看合同登记'
|
|
this.title = '查看合同登记'
|
|
}
|
|
}
|
|
this.visible = true
|
|
this.visible = true
|
|
@@ -414,13 +440,13 @@
|
|
this.workContractService.findById(this.inputForm.id).then(({data}) => {
|
|
this.workContractService.findById(this.inputForm.id).then(({data}) => {
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm.contractFees = []
|
|
this.inputForm.contractFees = []
|
|
- this.inputForm.permissionFlag = true
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 表单提交
|
|
// 表单提交
|
|
|
|
+ // 暂存
|
|
async saveForm1 () {
|
|
async saveForm1 () {
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -435,6 +461,7 @@
|
|
item.attachmentName = item.name
|
|
item.attachmentName = item.name
|
|
this.inputForm.workAttachmentList.push(item)
|
|
this.inputForm.workAttachmentList.push(item)
|
|
})
|
|
})
|
|
|
|
+ this.inputForm.status = '1'
|
|
let _p = null
|
|
let _p = null
|
|
await this.workContractService.save(this.inputForm).then(({data}) => {
|
|
await this.workContractService.save(this.inputForm).then(({data}) => {
|
|
this.loading = false
|
|
this.loading = false
|
|
@@ -454,6 +481,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 送审
|
|
saveForm (callback) {
|
|
saveForm (callback) {
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
this.$refs['inputForm'].validate(async (valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -468,6 +496,7 @@
|
|
item.attachmentName = item.name
|
|
item.attachmentName = item.name
|
|
this.inputForm.workAttachmentList.push(item)
|
|
this.inputForm.workAttachmentList.push(item)
|
|
})
|
|
})
|
|
|
|
+ this.inputForm.status = '2'
|
|
await this.workContractService.save(this.inputForm).then(({data}) => {
|
|
await this.workContractService.save(this.inputForm).then(({data}) => {
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
callback(data.businessTable, data.businessId, this.inputForm)
|
|
this.$refs.inputForm.resetFields()
|
|
this.$refs.inputForm.resetFields()
|
|
@@ -584,20 +613,21 @@
|
|
return 'cursor:pointer;'
|
|
return 'cursor:pointer;'
|
|
},
|
|
},
|
|
async rowClick (event) {
|
|
async rowClick (event) {
|
|
- let id = this.gridData[event.rowIndex].companyid
|
|
|
|
|
|
+ let id = this.gridData[event.rowIndex].id
|
|
this.inputForm.clientId = id
|
|
this.inputForm.clientId = id
|
|
- await this.workClientService.enterpriseTicketInfo(id).then((data) => {
|
|
|
|
- this.inputForm.clientName = data.data.ENTNAME
|
|
|
|
|
|
+ console.log('id', id)
|
|
|
|
+ await this.workClientService.findById(id).then((data) => {
|
|
|
|
+ console.log('data', data)
|
|
|
|
+ this.inputForm.clientName = data.data.workClientInfo.name
|
|
})
|
|
})
|
|
this.visable = false
|
|
this.visable = false
|
|
},
|
|
},
|
|
async getPopTable () {
|
|
async getPopTable () {
|
|
let name = this.inputForm.clientName
|
|
let name = this.inputForm.clientName
|
|
- if (name !== null && name !== undefined && name !== '') {
|
|
|
|
- await this.workClientService.enterpriseSearchByName(name).then(({data}) => {
|
|
|
|
- this.gridData = data.data.items
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ await this.workClientService.list(name).then(({data}) => {
|
|
|
|
+ console.log('data', data)
|
|
|
|
+ this.gridData = data.records
|
|
|
|
+ })
|
|
this.$refs.pops.updatePopper()
|
|
this.$refs.pops.updatePopper()
|
|
},
|
|
},
|
|
closePop () {
|
|
closePop () {
|