|
|
@@ -71,20 +71,15 @@
|
|
|
</t-table>
|
|
|
</block>
|
|
|
<view class="btn-bar">
|
|
|
- <button class="admin-button-com big blue" @click="gotoSelectPage">
|
|
|
- 选择花材
|
|
|
- </button>
|
|
|
+ <button class="admin-button-com big blue" @click="gotoSelectPage">选择花材</button>
|
|
|
+ <button v-if="!$util.isEmpty(selectList)" class="admin-button-com big blue" @click="removeSelectProduct" style="margin-left:10rpx;">删除已选</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bar-view" v-if="!$util.isEmpty(selectList)">
|
|
|
<view class="btn-view">
|
|
|
- <button class="admin-button-com middle" @click="confirmStockOutOrder">
|
|
|
- 保存草稿
|
|
|
- </button>
|
|
|
- <button class="admin-button-com middle" @click="createStockOutOrder">
|
|
|
- 直接出库
|
|
|
- </button>
|
|
|
+ <!-- <button class="admin-button-com middle" @click="confirmStockOutOrder">保存</button> -->
|
|
|
+ <button class="admin-button-com middle" @click="createStockOutOrder">出库</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -165,17 +160,19 @@ export default {
|
|
|
complete: () => {}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ removeSelectProduct(){
|
|
|
+ this.removeMemory()
|
|
|
+ },
|
|
|
selectSussess(val) {
|
|
|
- if(this.getLoginInfo.shopId == val.selectItem.id) {
|
|
|
- this.$msg('本店不可选')
|
|
|
- this.isShowTit = false
|
|
|
- this.shopPlaceholder = '请选择门店'
|
|
|
- this.form.inShopId = ''
|
|
|
- return
|
|
|
- }
|
|
|
- this.isShowTit = true
|
|
|
- this.shopPlaceholder = ''
|
|
|
+ if(this.getLoginInfo.shopId == val.selectItem.id) {
|
|
|
+ this.$msg('本店不可选')
|
|
|
+ this.isShowTit = false
|
|
|
+ this.shopPlaceholder = '请选择门店'
|
|
|
+ this.form.inShopId = ''
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.isShowTit = true
|
|
|
+ this.shopPlaceholder = ''
|
|
|
this.form.inShopId = val.selectItem.id;
|
|
|
},
|
|
|
createStockOutOrder() {
|
|
|
@@ -212,13 +209,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- // await createStockOutOrderApi(formData);
|
|
|
- // self.$msg("出库成功");
|
|
|
- // self.clearSelectList();
|
|
|
- // uni.navigateBack({
|
|
|
- // delta: 1
|
|
|
- // });
|
|
|
-
|
|
|
} else {
|
|
|
this.$msg(checkRes);
|
|
|
}
|
|
|
@@ -249,7 +239,7 @@ export default {
|
|
|
// 验证通过!
|
|
|
if (!checkRes) {
|
|
|
let self = this;
|
|
|
- self.confirmStockOut(formData)
|
|
|
+ self.confirmStockOut(formData)
|
|
|
} else {
|
|
|
this.$msg(checkRes);
|
|
|
}
|
|
|
@@ -258,9 +248,8 @@ export default {
|
|
|
async confirmStockOut(formData){
|
|
|
let { data } = await createStockOutOrderApi(formData);
|
|
|
this.$msg("确认成功");
|
|
|
- this.clearSelectList();
|
|
|
+ this.removeMemory()
|
|
|
this.pageTo({url:'/pagesStorehouse/allot/exDetails?orderSn=' + data.orderSn, type: 2});
|
|
|
- // uni.navigateBack({delta: 1});
|
|
|
},
|
|
|
}
|
|
|
};
|