change
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
"button.returnaxis": "Withdrawal axis",
|
"button.returnaxis": "Withdrawal axis",
|
||||||
"button.stockup": "Stock up",
|
"button.stockup": "Stock up",
|
||||||
"button.confirmlowershaft": "Confirm axis below",
|
"button.confirmlowershaft": "Confirm axis below",
|
||||||
|
"button.emptydiskrecycle": "Empty disk recycle",
|
||||||
"filter.bill-code": "Bill code",
|
"filter.bill-code": "Bill code",
|
||||||
"filter.warehouse": "Warehouse",
|
"filter.warehouse": "Warehouse",
|
||||||
"filter.woodenbox": "Woodenbox",
|
"filter.woodenbox": "Woodenbox",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
"button.returnaxis": "Pulang",
|
"button.returnaxis": "Pulang",
|
||||||
"button.stockup": "Persediaan",
|
"button.stockup": "Persediaan",
|
||||||
"button.confirmlowershaft": "Konfirmasi sumbu bawah",
|
"button.confirmlowershaft": "Konfirmasi sumbu bawah",
|
||||||
|
"button.emptydiskrecycle": "Daur Ulang Disk Kosong",
|
||||||
"filter.bill-code": "Kode dokumen",
|
"filter.bill-code": "Kode dokumen",
|
||||||
"filter.warehouse": "gudang",
|
"filter.warehouse": "gudang",
|
||||||
"filter.woodenbox": "Kotak kayu",
|
"filter.woodenbox": "Kotak kayu",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
"button.returnaxis": "退轴",
|
"button.returnaxis": "退轴",
|
||||||
"button.stockup": "备货",
|
"button.stockup": "备货",
|
||||||
"button.confirmlowershaft": "确认下轴",
|
"button.confirmlowershaft": "确认下轴",
|
||||||
|
"button.emptydiskrecycle": "空盘回收",
|
||||||
"filter.bill-code": "单据编码",
|
"filter.bill-code": "单据编码",
|
||||||
"filter.warehouse": "仓库",
|
"filter.warehouse": "仓库",
|
||||||
"filter.woodenbox": "木箱",
|
"filter.woodenbox": "木箱",
|
||||||
|
|||||||
@@ -23,10 +23,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submitbar">
|
<view class="zd-row submitbar">
|
||||||
<button class="zd-col-5 btn-submit btn-default" @tap="clearUp">{{$t('button.clear')}}</button>
|
|
||||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_doStockAreaBinding">{{$t('button.bind')}}</button>
|
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_doStockAreaBinding">{{$t('button.bind')}}</button>
|
||||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled" @tap="_doStockAreaUnbinding">{{$t('button.unbind')}}</button>
|
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1}" :disabled="disabled" @tap="_doStockAreaUnbinding">{{$t('button.unbind')}}</button>
|
||||||
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_instorStock">{{$t('button.tubeinstore')}}</button>
|
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_instorStock('1')">{{$t('button.tubeinstore')}}</button>
|
||||||
|
<button class="zd-col-5 btn-submit btn-success" :class="{'btn-info': !val1 || !val2}" :disabled="disabled" @tap="_instorStock('0')">{{$t('button.emptydiskrecycle')}}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -86,14 +86,14 @@
|
|||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _instorStock () {
|
async _instorStock (type) {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.val1 || !this.val2) {
|
if (!this.val1 || !this.val2) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await instorStock(this.val1, this.val2, '1')
|
let res = await instorStock(this.val1, this.val2, type)
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.message,
|
title: res.message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -102,11 +102,6 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
}
|
}
|
||||||
},
|
|
||||||
clearUp () {
|
|
||||||
this.val1 = ''
|
|
||||||
this.val2 = ''
|
|
||||||
this.disabled = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user