|
|
@@ -5,7 +5,7 @@
|
|
|
<form>
|
|
|
<view class="module-com input-line-wrap">
|
|
|
<TuiListCell class="line-cell" :hover="false" :arrow="true">
|
|
|
- <view class="tui-title ">收货门店</view>
|
|
|
+ <view class="tui-title ">收货</view>
|
|
|
<view class="tui-input">
|
|
|
<DorpdownSelect
|
|
|
:menuObj.sync="menuObj"
|
|
|
@@ -13,7 +13,9 @@
|
|
|
:isShowMore="false"
|
|
|
:selectItemId.sync="form.inShopId"
|
|
|
@selectSussess="selectSussess"
|
|
|
- :typeTime="true"
|
|
|
+ :typeTime="typeTimeShow"
|
|
|
+ :placeholder="shopPlaceholder"
|
|
|
+ :isShowTit="isShowTit"
|
|
|
></DorpdownSelect>
|
|
|
</view>
|
|
|
</TuiListCell>
|
|
|
@@ -131,14 +133,17 @@ export default {
|
|
|
width: 120,
|
|
|
align: "center"
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ shopPlaceholder: '请选择门店',
|
|
|
+ typeTimeShow: true,
|
|
|
+ isShowTit: true
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
console.log('拿到选择商品列表', this.selectList);
|
|
|
},
|
|
|
onLoad(){
|
|
|
- this.form.inShopId = this.getLoginInfo.shopId;
|
|
|
+ // this.form.inShopId = this.getLoginInfo.shopId;
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["resetSelectInfoByType"]),
|
|
|
@@ -162,16 +167,20 @@ export default {
|
|
|
},
|
|
|
|
|
|
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 = ''
|
|
|
this.form.inShopId = val.selectItem.id;
|
|
|
},
|
|
|
createStockOutOrder() {
|
|
|
try {
|
|
|
let rules = [
|
|
|
- {
|
|
|
- name: "date",
|
|
|
- rule: ["required"],
|
|
|
- msg: ["请选择日期"]
|
|
|
- },
|
|
|
{
|
|
|
name: "inShopId",
|
|
|
rule: ["required"],
|
|
|
@@ -218,11 +227,6 @@ export default {
|
|
|
confirmStockOutOrder() {
|
|
|
try {
|
|
|
let rules = [
|
|
|
- {
|
|
|
- name: "date",
|
|
|
- rule: ["required"],
|
|
|
- msg: ["请选择日期"]
|
|
|
- },
|
|
|
{
|
|
|
name: "inShopId",
|
|
|
rule: ["required"],
|