优化代码

This commit is contained in:
java110 2020-08-02 13:32:33 +08:00
parent af40611baa
commit c945ef5835
2 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,8 @@ export function finishRepair(_that){
"photos":[], "photos":[],
"repairObjType":_that.repairObjType, "repairObjType":_that.repairObjType,
"userId":_that.userId, "userId":_that.userId,
"userName":_that.userName "userName":_that.userName,
"storeId":_that.storeId
} }
let _photos = _that.photos; let _photos = _that.photos;
_photos.forEach(function(_item) { _photos.forEach(function(_item) {

View File

@ -103,7 +103,8 @@
} }
], ],
feeIndex: 0, feeIndex: 0,
repairObjType: '' repairObjType: '',
storeId:''
} }
}, },
onLoad(options) { onLoad(options) {
@ -113,6 +114,7 @@
this.repairObjType = options.repairObjType; this.repairObjType = options.repairObjType;
let _userInfo = this.java110Context.getUserInfo(); let _userInfo = this.java110Context.getUserInfo();
this.userId = _userInfo.userId; this.userId = _userInfo.userId;
this.storeId = _userInfo.storeId
this.userName = _userInfo.userName; this.userName = _userInfo.userName;
if (this.action == 'BACK') { if (this.action == 'BACK') {
this.staffId = options.preStaffId this.staffId = options.preStaffId