|
@@ -200,7 +200,6 @@
|
|
methods: {
|
|
methods: {
|
|
init (id) {
|
|
init (id) {
|
|
if (id) {
|
|
if (id) {
|
|
- console.log('进来了')
|
|
|
|
this.loading = true
|
|
this.loading = true
|
|
this.inputForm.id = id
|
|
this.inputForm.id = id
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -208,11 +207,13 @@
|
|
this.cwWorkContractBorrowService.findById(this.inputForm.id).then((data) => {
|
|
this.cwWorkContractBorrowService.findById(this.inputForm.id).then((data) => {
|
|
this.$refs.archiveFile.clearUpload()
|
|
this.$refs.archiveFile.clearUpload()
|
|
this.$refs.uploadFile.clearUpload()
|
|
this.$refs.uploadFile.clearUpload()
|
|
- console.log('data1', data)
|
|
|
|
if (this.commonJS.isEmpty(data.id)) {
|
|
if (this.commonJS.isEmpty(data.id)) {
|
|
contractInfoService.findById(this.inputForm.id).then((data) => {
|
|
contractInfoService.findById(this.inputForm.id).then((data) => {
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
- this.inputForm.borrowName = this.userName
|
|
|
|
|
|
+ // this.inputForm.borrowName = this.userName
|
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.borrowName)){
|
|
|
|
+ this.inputForm.borrowName = this.userName
|
|
|
|
+ }
|
|
this.inputForm.borrowData = this.moment(new Date()).format('YYYY-MM-DD')
|
|
this.inputForm.borrowData = this.moment(new Date()).format('YYYY-MM-DD')
|
|
this.$refs.uploadFile.newUpload('view', data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
this.$refs.uploadFile.newUpload('view', data.contractProperList, 'cwWorkContract', null, null, null, null, false)
|
|
this.$refs.archiveFile.newUpload('view', data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
this.$refs.archiveFile.newUpload('view', data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
@@ -227,7 +228,10 @@
|
|
this.$refs.archiveFile.newUpload('view', data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
this.$refs.archiveFile.newUpload('view', data.contractInfoList, 'cwWorkContract', null, null, null, null, false)
|
|
})
|
|
})
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
- this.inputForm.borrowName = this.userName
|
|
|
|
|
|
+ // this.inputForm.borrowName = this.userName
|
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.borrowName)){
|
|
|
|
+ this.inputForm.borrowName = this.userName
|
|
|
|
+ }
|
|
// this.inputForm.borrowData = new Date()
|
|
// this.inputForm.borrowData = new Date()
|
|
this.inputForm.borrowData = this.moment(new Date()).format('YYYY-MM-DD')
|
|
this.inputForm.borrowData = this.moment(new Date()).format('YYYY-MM-DD')
|
|
this.loading = false
|
|
this.loading = false
|