From c57ec7977738765a3a813d73f20e09a89867e39b Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期四, 10 四月 2025 23:08:36 +0800
Subject: [PATCH] 前端页面更新
---
代码管理/淮安PDA/pages/stash/receiveorderoutbound.vue | 54 +++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 39 insertions(+), 15 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
index 8e03ce0..c8b5f39 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/stash/receiveorderoutbound.vue"
@@ -22,10 +22,19 @@
</uni-forms-item>
</uni-forms>
<uni-forms-item>
- <button @click="submit" type="primary" size="default" style="margin-top: 2%;">纭鏀惰揣</button>
+ <view class="uni-flex uni-row" style="justify-content: space-between;margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;">
+ <view>
+ <button @click="resetReceive" type="default" size="default" style="width: 200rpx;border: 1rpx solid #007aff;color: #007aff;">閲嶇疆</button>
+ </view>
+ <view>
+ <button @click="submit" type="primary" size="default" style="width: 220rpx;">纭鏀惰揣</button>
+ </view>
+ </view>
</uni-forms-item>
<uni-forms-item>
- <button @click="submit1" type="primary" size="default" style="margin-top: 2%;">瀹屾垚鏀惰揣</button>
+ <view style="margin-top: 2%;height: 45px;width: 520rpx;margin: 0px auto;">
+ <button @click="submit1" type="primary" size="default" style="margin-top: 2%;backgroundColor:#1AAD19;borderColor:#1AAD19">瀹屾垚鏀惰揣</button>
+ </view>
</uni-forms-item>
</view>
</view>
@@ -260,6 +269,19 @@
search() {
this.getData();
},
+ resetReceive(){
+ this.PurchaseOrderNo="閲囪喘鍗曞彿锛�";
+ this.matCode="鐗╂枡缂栫爜锛�";
+ this.LotNo="鐗╂枡鎵规锛�";
+ this.orderQty="璁㈠崟鏁伴噺锛�";
+ this.ProductionDate="鐢熶骇鏃ユ湡锛�";
+ this.EffectiveDate="鏈夋晥鏃ユ湡锛�";
+ this.Quantity="";
+ setTimeout(() => {
+ this.innerCode="";
+ this.focus=false;
+ }, 10);
+ },
releasebox() {
if (this.releasevalue.length == 0) {
this.$refs.uToast.show({
@@ -375,12 +397,23 @@
this.$u.post('/api/ReceiveOrderDetail/AddReceiveOrderDetail?serNum=' + this.sns + '&orderNo=' + this
.orderNo, {}).then(res => {
if (res.status) {
+ this.PurchaseOrderNo="閲囪喘鍗曞彿锛�";
+ this.matCode="鐗╂枡缂栫爜锛�";
+ this.LotNo="鐗╂枡鎵规锛�";
+ this.orderQty="璁㈠崟鏁伴噺锛�";
+ this.ProductionDate="鐢熶骇鏃ユ湡锛�";
+ this.EffectiveDate="鏈夋晥鏃ユ湡锛�";
+ this.Quantity="";
+ setTimeout(() => {
+ this.innerCode="";
+ this.focus=false;
+ }, 100);
+ this.orderInfo=[];
+ this.sns = "";
this.$refs.uToast.show({
title: "纭鏀惰揣鎴愬姛",
type: "success"
})
- this.orderInfo=[];
- this.sns = "";
} else {
this.$refs.uToast.show({
title: res.message,
@@ -455,6 +488,7 @@
})
},
onClickItem(e) {
+ console.log(1)
this.focus = false;
this.addressFocus = false;
if (this.current !== e.currentIndex) {
@@ -488,7 +522,7 @@
var innerCode = this.innerCode;
setTimeout(() => {
this.innerCode = "";
- this.focus=false;
+ this.focus=true;
}, 1);
this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
@@ -503,16 +537,6 @@
this.ProductionDate = "鐢熶骇鏃ユ湡锛�" + res.data.productionDate;
this.orderQty = "璁㈠崟鏁伴噺锛�" + res.data.quantity;
this.Quantity = res.data.quantity;
- if (!res.status) {
- this.$refs.uToast.show({
- title: res.message,
- type: "error"
- })
- setTimeout(() => {
- this.voiceSpeech('../../static/fail.mp3');
- }, 100);
- return;
- }
setTimeout(() => {
this.voiceSpeech('../../static/success.mp3');
}, 100);
--
Gitblit v1.9.3