合格证入库
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
<view class="zd-col-8"><span class="filter_label">订单号</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.MONumber}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8"><span class="filter_label">组织</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.StockOrgId}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8"><span class="filter_label">货主</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.OwnerId_Id}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8"><span class="filter_label">物料编码</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.material_code}}</span></view>
|
||||
@@ -50,17 +58,9 @@
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-8"><span class="filter_label">物料数量</span></view>
|
||||
<view class="zd-col-16">
|
||||
<input type="number" class="filter_input" v-model="currentData.qty">
|
||||
<input type="number" class="filter_input" v-model="val3">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8"><span class="filter_label">组织</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.StockOrgId}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom filter_input_disabled">
|
||||
<view class="zd-col-8"><span class="filter_label">货主</span></view>
|
||||
<view class="zd-col-16"><span class="filter_input">{{currentData.OwnerId_Id}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row">
|
||||
<view class="zd-col-8"><span class="filter_label">仓库编码</span></view>
|
||||
<view class="zd-col-16 filter_select">
|
||||
@@ -71,7 +71,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val1 || !val2 || !index}" :disabled="disabled" @tap="_inStorageConfirm">组盘确认</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': !val2 || !val3 || !index}" :disabled="disabled" @tap="_inStorageConfirm">组盘确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -90,6 +90,7 @@
|
||||
title: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
val3: '',
|
||||
currentData: {},
|
||||
options: [],
|
||||
index: '',
|
||||
@@ -116,22 +117,26 @@
|
||||
async _getCertificateInfo (e) {
|
||||
let res = await getCertificateInfo(e)
|
||||
this.currentData = res
|
||||
if (JSON.stringify(this.currentData) !== '{}') {
|
||||
this.val3 = this.currentData.qty
|
||||
}
|
||||
},
|
||||
toEmpty () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this.currentData = {}
|
||||
this.index = ''
|
||||
this.disabled = false
|
||||
},
|
||||
async _inStorageConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.val2 || !this.index) {
|
||||
if (!this.val2 || !this.val3 || !this.index) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let obj = Object.assign(this.currentData, {vehicle_code: this.val2, stor_code: this.index})
|
||||
let obj = Object.assign(this.currentData, {vehicle_code: this.val2, stor_code: this.index, qty: this.val3})
|
||||
let res = await inStorageConfirm(obj)
|
||||
if (res.code === '200') {
|
||||
this.toEmpty()
|
||||
|
||||
Reference in New Issue
Block a user