|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
selectJobType: "inventory",
|
|
|
checkStock: false,
|
|
|
isAddInputFocus: false,
|
|
|
- isSmallCount:false,//是否是小单位(支)
|
|
|
+ isSmallCount:false,
|
|
|
tabIndex: 0,
|
|
|
customData: {
|
|
|
bigCount: 0,
|
|
|
@@ -152,7 +152,12 @@ export default {
|
|
|
},
|
|
|
onLoad() {
|
|
|
let pdType = this.option.pdType ? this.option.pdType: ''
|
|
|
- this.initData({ type:'',pdType:pdType,status:0,version:1});
|
|
|
+ this.initData({ type:'',pdType:pdType,status:0,version:1})
|
|
|
+
|
|
|
+ if(this.option.shopId){
|
|
|
+ this.selectJobId = this.option.shopId
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
changeClass(index){
|
|
|
@@ -171,7 +176,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
let pdType = this.option.pdType ? this.option.pdType: ''
|
|
|
- this.$util.pageTo({url: "/pagesStorehouse/inventory/update?pdType="+pdType,type:2})
|
|
|
+ this.$util.pageTo({url: "/pagesStorehouse/inventory/update?pdType="+pdType+"&shopId="+this.option.shopId,type:2})
|
|
|
},
|
|
|
submitEvent(val) {
|
|
|
if (val.index === 0) {
|