单据出库修改
This commit is contained in:
@@ -77,7 +77,7 @@ uni-button:after {
|
||||
.filter_input {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
line-height: 30rpx;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
font-size: 28rpx;
|
||||
|
||||
@@ -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>
|
||||
@@ -159,7 +159,7 @@ export const outStorageOrderList = (page, size, type) => request({
|
||||
// "code": "22984980",
|
||||
// "form_type": "单据类型",
|
||||
// "remark": "备注",
|
||||
// "create_time": "创建时间",
|
||||
// "create_time": "2024-10-20 21:41:50",
|
||||
// "create_name": "创建人",
|
||||
// "material_code": "物料编码",
|
||||
// "qty": 0.0,
|
||||
@@ -169,34 +169,30 @@ export const outStorageOrderList = (page, size, type) => request({
|
||||
// "pcsn": "批次",
|
||||
// "children": [
|
||||
// {
|
||||
// "id": "",
|
||||
// "code": "bbb",
|
||||
// "proc_inst_id": "",
|
||||
// "source_form_id": "",
|
||||
// "source_form_type": "",
|
||||
// "source_form_date": "",
|
||||
// "form_type": "",
|
||||
// "status": "",
|
||||
// "remark": "",
|
||||
// "create_time": "",
|
||||
// "create_name": "",
|
||||
// "material_id": "",
|
||||
// "material_name": "物料名称",
|
||||
// "material_code": "物料编码",
|
||||
// "material_spec": "物料类型",
|
||||
// "single_weight": "",
|
||||
// "stor_code": "FStockPallet",
|
||||
// "product_area": "A4",
|
||||
// "qty": 10.0,
|
||||
// "plan_qty": 0.0,
|
||||
// "assign_qty": 0.0,
|
||||
// "unit_id": "单位",
|
||||
// "pcsn": "批次",
|
||||
// "vehicle_code": "",
|
||||
// "vehicle_id": "",
|
||||
// "form_data": {
|
||||
// "": {}
|
||||
// },
|
||||
// "parent_id": "",
|
||||
// "HasChildren": "public static final Boolean FALSE = new Boolean(false);"
|
||||
// "pcsn": "批次"
|
||||
// },
|
||||
// {
|
||||
// "code": "CCC",
|
||||
// "material_name": "物料名称",
|
||||
// "material_code": "物料编码",
|
||||
// "material_spec": "物料类型",
|
||||
// "stor_code": "FStockPallet",
|
||||
// "product_area": "A4",
|
||||
// "qty": 10.0,
|
||||
// "plan_qty": 0.0,
|
||||
// "assign_qty": 0.0,
|
||||
// "unit_id": "单位",
|
||||
// "pcsn": "批次"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
@@ -210,4 +206,11 @@ export const outStorageOrderList = (page, size, type) => request({
|
||||
export const outStorageConfirm = (obj) => request({
|
||||
url:'api/pda/outStorage/confirm',
|
||||
data: obj
|
||||
})
|
||||
})
|
||||
// export const outStorageConfirm = (obj) => {
|
||||
// let res = {
|
||||
// code: '200',
|
||||
// msg: 'ok'
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
Reference in New Issue
Block a user