单据出库修改
This commit is contained in:
@@ -16,27 +16,27 @@
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">单据编码</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.code}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.code}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_label">单据类型</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.form_type}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.form_type}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">备注</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.remark}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.remark}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_label">创建时间</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.create_time}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.create_time}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">创建人</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.create_name}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.create_name}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_label">物料编码</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.material_code}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.material_code}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">申请数量</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.qty}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.qty}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_label">计划数量</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.plan_qty}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_input">{{currentData.plan_qty}}</span></view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">已分配数量</span></view>
|
||||
@@ -46,17 +46,15 @@
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-6"><span class="filter_label">批次号</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.pcsn}}</span></view>
|
||||
<view class="zd-col-6"><span class="filter_label">创建时间</span></view>
|
||||
<view class="zd-col-7"><span class="filter_input">{{currentData.create_time}}</span></view>
|
||||
<view class="zd-col-18"><span class="filter_input">{{currentData.pcsn}}</span></view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="zd_wrapper grid-wraper">
|
||||
<view v-if="JSON.stringify(currentData) !== '{}'" class="grid-wraper">
|
||||
<view class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>单据编码</th>
|
||||
<th>单据id</th>
|
||||
<th>物料名称</th>
|
||||
<th>物料编码</th>
|
||||
<th>物料类型</th>
|
||||
@@ -65,6 +63,8 @@
|
||||
<th>已分配数量</th>
|
||||
<th>单位</th>
|
||||
<th>批次号</th>
|
||||
<th>仓库</th>
|
||||
<th>车间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -75,9 +75,15 @@
|
||||
<td>{{e.material_spec}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
<td>{{e.plan_qty}}</td>
|
||||
<td><input type="number" class="sin_input" v-model="e.assign_qty" @blur="handleBlur(e)"></td>
|
||||
<td><input type="number" class="sin_input" v-model="e.now_assign_qty" @blur="handleBlur(e)"></td>
|
||||
<td>{{e.unit_id}}</td>
|
||||
<td>{{e.pcsn}}</td>
|
||||
<td>
|
||||
<uni-data-select v-model="e.stor_code" :localdata="options1"></uni-data-select>
|
||||
</td>
|
||||
<td>
|
||||
<uni-data-select v-model="e.product_area" :localdata="options2"></uni-data-select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -86,7 +92,7 @@
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-primary" @tap="toEmpty">清空</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageConfirm">强制完成</button>
|
||||
<button class="zd-col-16 button-primary" :class="{'button-info': JSON.stringify(currentData) === '{}'}" :disabled="disabled" @tap="_outStorageConfirm">出库确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -106,7 +112,9 @@
|
||||
options: [],
|
||||
index: '',
|
||||
currentData: {},
|
||||
disabled: false
|
||||
disabled: false,
|
||||
options1: [{value: 'FStockPallet', text: '托盘库'}, {value: 'FStockId', text: '料箱库'}],
|
||||
options2: [{value: 'A1', text: 'A1车间'}, {value: 'A2', text: 'A2车间'}, {value: 'A3', text: 'A3车间'}],
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -119,7 +127,7 @@
|
||||
if (this.$store.getters.publicObj !== '') {
|
||||
this.currentData = this.$store.getters.publicObj
|
||||
this.currentData.children.map(el => {
|
||||
this.$set(el, 'assign_qty', el.qty)
|
||||
this.$set(el, 'now_assign_qty', el.qty)
|
||||
})
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
}
|
||||
@@ -139,8 +147,8 @@
|
||||
}
|
||||
},
|
||||
handleBlur (e) {
|
||||
if (e.assign_qty < 0 || e.assign_qty > e.qty) {
|
||||
e.assign_qty = e.qty
|
||||
if (e.now_assign_qty < 0 || e.now_assign_qty > e.qty) {
|
||||
e.now_assign_qty = e.qty
|
||||
}
|
||||
},
|
||||
toEmpty () {
|
||||
@@ -155,6 +163,9 @@
|
||||
}
|
||||
try {
|
||||
let res = await outStorageConfirm(this.currentData)
|
||||
if (res.code === '200') {
|
||||
this.toEmpty()
|
||||
}
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -171,4 +182,8 @@
|
||||
<style lang="stylus" scoped>
|
||||
.filter_label
|
||||
font-size: 26rpx;
|
||||
.slide_new
|
||||
padding-bottom 110px
|
||||
.slide_new table td
|
||||
overflow visible
|
||||
</style>
|
||||
Reference in New Issue
Block a user