|
@@ -667,15 +667,22 @@ export default {
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
// this.selectedOptions.push()
|
|
// this.selectedOptions.push()
|
|
- this.deptBudgetList.addressUrlArray = response.addressUrl.split(',')
|
|
|
|
- this.addressUrls.travel = this.deptBudgetList.addressUrlArray[0]
|
|
|
|
- this.addressUrls.drive = this.deptBudgetList.addressUrlArray[1]
|
|
|
|
- this.addressUrls.way = this.deptBudgetList.addressUrlArray[2]
|
|
|
|
- this.addressUrls.qualification =
|
|
|
|
- this.deptBudgetList.addressUrlArray[3]
|
|
|
|
- this.addressUrls.identityjust = this.deptBudgetList.addressUrlArray[4]
|
|
|
|
- this.addressUrls.identityagainst =
|
|
|
|
- this.deptBudgetList.addressUrlArray[5]
|
|
|
|
|
|
+ this.deptBudgetList.addressUrlArray = response.cardAddressUrl.split(',')
|
|
|
|
+ this.deptBudgetList.addressUrlArray1 = response.addressUrl.split(',')
|
|
|
|
+ this.$set(this.addressUrls, 'travel', this.deptBudgetList.addressUrlArray1[0])
|
|
|
|
+ this.$set(this.addressUrls, 'drive', this.deptBudgetList.addressUrlArray1[1])
|
|
|
|
+ if(this.deptBudgetList.addressUrlArray1[2]!='$'){
|
|
|
|
+ this.$set(this.addressUrls, 'way', this.deptBudgetList.addressUrlArray1[2])
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this.addressUrls, 'way', '')
|
|
|
|
+ }
|
|
|
|
+ if(this.deptBudgetList.addressUrlArray1[3]!='$'){
|
|
|
|
+ this.$set(this.addressUrls, 'qualification', this.deptBudgetList.addressUrlArray1[3])
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this.addressUrls, 'qualification', '')
|
|
|
|
+ }
|
|
|
|
+ this.$set(this.addressUrls, 'identityjust', this.deptBudgetList.addressUrlArray[0])
|
|
|
|
+ this.$set(this.addressUrls, 'identityagainst', this.deptBudgetList.addressUrlArray[1])
|
|
|
|
|
|
for (var i = 0; i < response.driverPayeeInfoList.length; i++) {
|
|
for (var i = 0; i < response.driverPayeeInfoList.length; i++) {
|
|
if (response.driverPayeeInfoList[i].cardAddressUrl != null) {
|
|
if (response.driverPayeeInfoList[i].cardAddressUrl != null) {
|
|
@@ -758,6 +765,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
uploadSuccessHandletravel(e) {
|
|
uploadSuccessHandletravel(e) {
|
|
|
|
+ console.log(e.url)
|
|
this.$set(this.addressUrls, 'travel', e.url)
|
|
this.$set(this.addressUrls, 'travel', e.url)
|
|
},
|
|
},
|
|
uploadSuccessHandledrive(e) {
|
|
uploadSuccessHandledrive(e) {
|
|
@@ -865,8 +873,25 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
submit() {
|
|
submit() {
|
|
|
|
+ if (!this.addressUrls.way) {
|
|
|
|
+ this.addressUrls.way='$'
|
|
|
|
+ }
|
|
|
|
+ if (!this.addressUrls.qualification) {
|
|
|
|
+ this.addressUrls.qualification='$'
|
|
|
|
+ }
|
|
|
|
+ var arr = []
|
|
|
|
+ var arr1=[]
|
|
|
|
+ for (let key in this.addressUrls) {
|
|
|
|
+ if(key=='identityjust'||key=='identityagainst'){
|
|
|
|
+ arr.push(this.addressUrls[key])
|
|
|
|
+ }else{
|
|
|
|
+ arr1.push(this.addressUrls[key])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ this.deptBudgetList.addressUrl = arr1.toString()
|
|
|
|
+ this.deptBudgetList.cardAddressUrl = arr.toString()
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.compId = sessionStorage.getItem('ws-pf_compId')
|
|
this.deptBudgetList.residentCityProvincial =
|
|
this.deptBudgetList.residentCityProvincial =
|
|
CodeToText[this.selectedOptions[0]]
|
|
CodeToText[this.selectedOptions[0]]
|