单据出库修改
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-6"><span class="filter_label">仓库</span></view>
|
||||
<view class="zd-col-6 filter_select">
|
||||
<uni-data-select v-model="currentData.stor_code" :localdata="options1"></uni-data-select>
|
||||
<uni-data-select v-model="currentData.stor_code" :localdata="options1" @change="selectChange1"></uni-data-select>
|
||||
</view>
|
||||
<view class="zd-col-6"><span class="filter_label">车间</span></view>
|
||||
<view class="zd-col-6 filter_select">
|
||||
@@ -90,7 +90,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {outStorageOrder, outStorageOrderList, outStorageConfirm} from '@/utils/getData2.js'
|
||||
import {outStorageOrder, outStorageOrderList, outStorageConfirm, outStorageOrderConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -140,6 +140,29 @@
|
||||
})
|
||||
}
|
||||
},
|
||||
selectChange1 (e) {
|
||||
this.currentData.stor_code = e
|
||||
if (e) {
|
||||
this._outStorageOrderConfirm(e)
|
||||
}
|
||||
},
|
||||
async _outStorageOrderConfirm (e) {
|
||||
try {
|
||||
let res = await outStorageOrderConfirm(this.currentData.code, e)
|
||||
if (res.code === '200') {
|
||||
if (res.content.length > 0) {
|
||||
this.currentData = res.content[0]
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
handleBlur (e) {
|
||||
if (e.now_assign_qty < 0 || e.now_assign_qty > e.qty) {
|
||||
e.now_assign_qty = e.qty
|
||||
|
||||
Reference in New Issue
Block a user