|
@@ -139,8 +139,10 @@ export default {
|
|
|
//uni.showLoading({mask:true})
|
|
//uni.showLoading({mask:true})
|
|
|
this.$service.purchaseOrder.confirmPutIn({id:that.id}).then(data => {
|
|
this.$service.purchaseOrder.confirmPutIn({id:that.id}).then(data => {
|
|
|
//uni.hideLoading()
|
|
//uni.hideLoading()
|
|
|
|
|
+ // 对齐 App pageSuccess.confirmIn:入库成功后离开改价页
|
|
|
if(data.status == 4){
|
|
if(data.status == 4){
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
|
|
+ that.goAddAfterSuccess()
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -178,7 +180,9 @@ export default {
|
|
|
//uni.showLoading({mask:true})
|
|
//uni.showLoading({mask:true})
|
|
|
this.$service.purchaseOrderItem.saveCgPrice({data:JSON.stringify(newProduct),cgId:targetId}).then(data => {
|
|
this.$service.purchaseOrderItem.saveCgPrice({data:JSON.stringify(newProduct),cgId:targetId}).then(data => {
|
|
|
//uni.hideLoading()
|
|
//uni.hideLoading()
|
|
|
|
|
+ // 对齐 App pageSuccess.savePrice:保存成功后离开改价页
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
|
|
+ that.goAddAfterSuccess()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -230,9 +234,17 @@ export default {
|
|
|
//uni.showLoading({mask:true})
|
|
//uni.showLoading({mask:true})
|
|
|
that.$service.product.batchChangePrice({data:JSON.stringify(newProduct),changeType:'cg',targetId:targetId,appVersion:1}).then(data => {
|
|
that.$service.product.batchChangePrice({data:JSON.stringify(newProduct),changeType:'cg',targetId:targetId,appVersion:1}).then(data => {
|
|
|
//uni.hideLoading()
|
|
//uni.hideLoading()
|
|
|
|
|
+ // 对齐 App pageSuccess.commitModify:改价成功后离开改价页
|
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
that.$notify({ title: '成功', message: '操作成功', type: 'success'})
|
|
|
|
|
+ that.goAddAfterSuccess()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 改价/入库/保存成功后跳转供货商页(对齐 App pageSuccess → result;PC 无 result,直接进 /in/add)
|
|
|
|
|
+ */
|
|
|
|
|
+ goAddAfterSuccess() {
|
|
|
|
|
+ this.$router.push({ path: '/in/add', query: {} })
|
|
|
|
|
+ },
|
|
|
goBackBefore(){
|
|
goBackBefore(){
|
|
|
let query = {};
|
|
let query = {};
|
|
|
let backType = this.$route.query.backType ? this.$route.query.backType : 'add'
|
|
let backType = this.$route.query.backType ? this.$route.query.backType : 'add'
|