|
@@ -84,7 +84,8 @@ export default {
|
|
|
checkStock:false,
|
|
checkStock:false,
|
|
|
T:null,
|
|
T:null,
|
|
|
inId:0,
|
|
inId:0,
|
|
|
- outId:0
|
|
|
|
|
|
|
+ outId:0,
|
|
|
|
|
+ bookItemCustomId:0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -98,7 +99,7 @@ export default {
|
|
|
prevPage.$vm.addSelectItem = 1
|
|
prevPage.$vm.addSelectItem = 1
|
|
|
|
|
|
|
|
this.inId = this.option.itemId?this.option.itemId:0
|
|
this.inId = this.option.itemId?this.option.itemId:0
|
|
|
-
|
|
|
|
|
|
|
+ this.bookItemCustomId = this.option.bookItemCustomId?this.option.bookItemCustomId:0
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
this.resetList();
|
|
@@ -123,7 +124,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.$util.confirmModal({content:'确认借用?'},() => {
|
|
this.$util.confirmModal({content:'确认借用?'},() => {
|
|
|
uni.showLoading()
|
|
uni.showLoading()
|
|
|
- loanFn({inId:this.inId,outId:item.id,num:item.bigCount}).then(res=>{
|
|
|
|
|
|
|
+ loanFn({inId:this.inId,outId:item.id,num:item.bigCount,bookItemCustomId:this.bookItemCustomId}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
this.$msg('操作成功')
|
|
this.$msg('操作成功')
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|