添加报废

This commit is contained in:
郭飞 2025-05-13 13:07:54 +08:00
parent cc3e1a5b64
commit 0baba902aa
2 changed files with 19 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<view style="margin: 10rpx;"> <view style="margin: 10rpx;">
<u-navbar back-text="返回" title="无单据出库" :background="background"></u-navbar> <u-navbar back-text="返回" title="报废出库" :background="background"></u-navbar>
<u-form ref="testForm"> <u-form ref="testForm">
<u-form-item :border-bottom="false"> <u-form-item :border-bottom="false">
<p>扫描条码:</p> <p>扫描条码:</p>
@ -45,7 +45,7 @@
<uni-td align="center">{{ item.LOCATIONNAME }}</uni-td> <uni-td align="center">{{ item.LOCATIONNAME }}</uni-td>
</uni-tr> </uni-tr>
</uni-table> </uni-table>
<view class="tabbar_bottom"> <view class="tabbar_bottom bottom-margin">
<u-input v-if="false" v-model="opCode" /> <u-input v-if="false" v-model="opCode" />
<uni-datetime-picker style="align-items: center;" type="date" :clear-icon="false" v-model="commitDate" <uni-datetime-picker style="align-items: center;" type="date" :clear-icon="false" v-model="commitDate"
@maskClick="maskClick" /> @maskClick="maskClick" />
@ -93,7 +93,7 @@
DURABLENAMECode: "", // DURABLENAMECode: "", //
focusBarCode: false, // focusBarCode: false, //
focusShipRequest: true, // focusShipRequest: true, //
siteName: "", siteName: "SDK",
userId: "", userId: "",
commitDate: '', commitDate: '',
opCode: '', opCode: '',
@ -157,7 +157,7 @@
return false return false
} }
} }
this.$MyRequest('/NoInvoice/getQTCList', { this.$MyRequest('/api/NoInvoice/getQTCList', {
MATERIALPACKINGNAME: this.MATERIALPACKINGNAME MATERIALPACKINGNAME: this.MATERIALPACKINGNAME
}).then(res => { }).then(res => {
if (res.data.success) { if (res.data.success) {
@ -215,7 +215,8 @@
opcode: this.opCode, opcode: this.opCode,
user: this.userId user: this.userId
}).then((res) => { }).then((res) => {
this.$MyRequest('/NoInvoice/QTCCommit', { this.opCode = res.resultObj
this.$MyRequest('/api/NoInvoice/QTCCommit', {
boxList: this.BoxListInfo, boxList: this.BoxListInfo,
user: this.userId, user: this.userId,
siteName: this.siteName, siteName: this.siteName,
@ -227,6 +228,7 @@
this.bqts = 0 this.bqts = 0
this.bqkcs = 0 this.bqkcs = 0
this.resetValue(); this.resetValue();
this.opCode = "";
} else { } else {
this.loading = false; this.loading = false;
} }
@ -267,6 +269,9 @@
} }
</style> </style>
<style lang="scss"> <style lang="scss">
.bottom-margin {
margin-bottom: 80rpx;
}
switch { switch {
color: #FFCC33; color: #FFCC33;
} }

View File

@ -36,15 +36,6 @@
}, },
// //
elements: [ elements: [
{
title: '无单据出库',
name: 'OtherStockOutNoInvoice/OtherStockOutNoInvoice',
en_name:'OtherStockOutNoInvoice',
color: 'cyan',
cuIcon: '',
label: '无单据出库',
id:'200001'
},
{ {
title: '备货出库', title: '备货出库',
name: 'ShipRequestReservation/index', name: 'ShipRequestReservation/index',
@ -93,6 +84,15 @@
cuIcon: '', cuIcon: '',
label: '销售出货', label: '销售出货',
id:'200007' id:'200007'
},
{
title: '报废出库',
name: 'OtherStockOutNoInvoice/OtherStockOutNoInvoice',
en_name:'OtherStockOutNoInvoice',
color: 'cyan',
cuIcon: '',
label: '报废出库',
id:'200001'
} }
// { // {
// title: '', // title: '',