From b6c44345b43433a9e28aab4fc33dedfb5ab16efe Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 08 五月 2025 12:30:51 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/pda-master into devlop
---
pages/rece/other.vue | 91 +++++++++++++++++++++++++--------------------
1 files changed, 50 insertions(+), 41 deletions(-)
diff --git a/pages/rece/other.vue b/pages/rece/other.vue
index 487b710..8ed67e7 100644
--- a/pages/rece/other.vue
+++ b/pages/rece/other.vue
@@ -3,14 +3,15 @@
<form>
<view class="cu-form-group margin-top" v-show="!isconfirm">
<view class="title">ASN鍗曞彿</view>
- <input placeholder="璇锋壂鎻廇SN鍗曞彿" v-model="asncode" focus></input>
+ <input placeholder="璇锋壂鎻廇SN鍗曞彿" v-model="asncode" @input="search" focus></input>
<text class='cuIcon-close text-gray margin-right-xs' v-show="asncode!==''" @click="clearCode"></text>
- <text class='cuIcon-search text-blue' @click="search"></text>
+ <!-- <text class='cuIcon-search text-blue' @click="search"></text> -->
</view>
<view class="cu-form-group" v-show="!isconfirm">
- <view class="title">鐗╂枡鏍囩</view>
- <input placeholder="璇锋壂鎻忕墿鏂欐爣绛�" v-model="barcode"></input>
- <text class='cuIcon-search text-blue' @click="scrollTo"></text>
+ <view class="title">鐗╂枡缂栫爜</view>
+ <input placeholder="璇锋壂鎻忕墿鏂欑紪鐮�" v-model="barcode"></input>
+ <text class='cuIcon-close text-gray margin-right-xs' v-show="barcode!==''" @click="clearBarcode"></text>
+ <text class='cuIcon-search text-blue' @click="search"></text>
</view>
</form>
@@ -26,7 +27,8 @@
{{index+1}}
</view>
<view class="text-blue">
- {{`${item.maktx}`}}
+ 缂栫爜:
+ {{`${item.matnr}`}}
</view>
</view>
<view class="action" v-if="!isconfirm">
@@ -37,9 +39,16 @@
<view class="cu-item">
<view class="content">
<text class="text-black">ASN:</text>
+ <text class="text-grey ">{{item.asnCode}}</text>
</view>
<view class="action">
- <text class="text-grey ">{{item.asnCode}}</text>
+
+ </view>
+ </view>
+ <view class="cu-item">
+ <view class="content">
+ <text class="text-black">鐗╂枡鍚嶇О:</text>
+ <text class="text-grey ">{{item.maktx}}</text>
</view>
</view>
@@ -52,26 +61,22 @@
</view>
</view> -->
- <view class="cu-item">
+ <!-- <view class="cu-item">
<view class="content">
<text class="text-black">鏈�澶у簱瀛�: <text class="text-grey ">{{item.maxQty}}</text></text>
</view>
<view class="content">
<text class="text-black">瀹炴椂搴撳瓨: <text class="text-grey ">{{item.stockQty}}</text></text>
</view>
- </view>
-
-
-
+ </view> -->
<view class="cu-item">
<view class="content">
- <text class="text-black">骞冲彴琛屽彿: <text class="text-grey ">{{item.platformId}}</text></text>
+ <text class="text-black">琛屽彿: <text class="text-grey ">{{item.platItemId}}</text></text>
</view>
<view class="content">
<text class="text-black">璐ㄦ缁撴灉: <text class="text-grey ">{{item.inspect}}</text></text>
</view>
</view>
-
<view class="cu-item">
<view class="content">
<text class="text-black">閲囪喘鍗曚綅:<text class="text-grey ">{{item.purUnit}}</text></text>
@@ -80,7 +85,6 @@
<text class="text-black">搴撳瓨鍗曚綅: <text class="text-grey ">{{item.stockUnit}}</text></text>
</view>
</view>
-
<view class="cu-item">
<view class="content">
<text class="black">璁″垝鏀惰揣鏁伴噺:<text class="text-grey ">{{item.anfme}}</text></text>
@@ -90,26 +94,24 @@
<text class="black">宸叉敹璐ф暟閲�:<text class="text-grey ">{{item.qty}}</text></text>
</view>
</view>
-
<view class="cu-item">
-
<view class="content" v-if="!isconfirm">
<view class="cu-form-group padding-lr-0">
<view class="title text-blue"><text
class="text-red text-xl vertical-middle">*</text>鏀惰揣鏁伴噺:</view>
- <input type="number" placeholder="璇疯緭鍏ユ暟閲�" v-model="item.receiptQty"></input>
+ <uni-number-box style="width: 70%;" :max="max" v-model="item.receiptQty"
+ :step='1'></uni-number-box>
</view>
</view>
<view class="content" v-else>
<text class="text-black">鏀惰揣鏁伴噺:<text class="text-grey ">{{item.receiptQty}}</text></text>
</view>
</view>
-
<view class="cu-item">
<view class="content" v-if="!isconfirm">
<view class="cu-form-group padding-lr-0">
<view class="title text-blue">渚涘簲鍟嗘壒娆�:</view>
- <input placeholder="璇疯緭鍏ヤ緵搴斿晢鎵规" v-model="item.splrBatch"></input>
+ {{item.splrBatch}}
</view>
</view>
<view class="content" v-else>
@@ -133,7 +135,6 @@
<text class="text-black">鐢熶骇鏃ユ湡:<text class="text-grey ">{{item.prodTime}}</text></text>
</view>
</view>
-
<view class="cu-item grid col-1" v-if="!isconfirm">
<view v-for="el in dynamicFields" :key="el.id">
<view class="cu-form-group padding-lr-0">
@@ -142,16 +143,12 @@
</view>
</view>
</view>
-
<view class="cu-item grid col-2" v-if="isconfirm">
<view class="item" v-for="el in dynamicFields" :key="el.id">
<text class="text-black">{{el.fieldsAlise}}:
<text class="text-grey ">{{item[el.fields]}}</text></text>
</view>
-
</view>
-
-
</view>
</block>
</view>
@@ -162,10 +159,11 @@
<view class="cu-form-group margin-bottom">
<view class="title">鏀惰揣鍖�</view>
- <uni-data-select v-model="whAreaId" :localdata="range" placement="top"
- @change="selChange"></uni-data-select>
+ <view style="width: 80%;">
+ <uni-data-select style="min-width: 90%; max-width: 90%;" v-model="whAreaId" :localdata="range" placement="top"
+ @change="selChange"></uni-data-select>
+ </view>
</view>
-
<view class="cu-bar btn-group foot" v-show="!isconfirm">
<button class="cu-btn text-blue line-blue shadow" @click="clear">娓呯┖</button>
@@ -174,8 +172,7 @@
<view class="cu-bar btn-group foot" v-show="isconfirm">
<button class="cu-btn text-blue line-blue shadow" @click="prev">涓婁竴姝�</button>
- <button class="cu-btn bg-blue shadow-blur" @click="confirm(true)">鏀惰揣骞跺畬鎴�</button>
- <button class="cu-btn bg-blue shadow-blur" @click="confirm(false)">鏀惰揣</button>
+ <button class="cu-btn bg-blue shadow-blur" :disabled="repeatClick" @click="confirm(false)">鏀惰揣</button>
</view>
</view>
@@ -199,18 +196,22 @@
whAreaId: '',
list: [],
range: [],
- isconfirm: false
+ repeatClick: false,
+ isconfirm: false,
+ max: 99999999,
}
},
computed: {
- ...mapState('user', ['dynamicFields']),
+ ...mapState('user', ['dynamicFields']),
+
allCount() {
return this.list.reduce((acc, row) => +row.receiptQty + acc, 0)
}
},
mounted() {
- this.getRece()
+ this.getRece()
+ console.log(dynamicFields)
this.whAreaId = uni.getStorageSync('whAreaId')
},
methods: {
@@ -220,7 +221,8 @@
data,
msg
} = await request('/orders/other', {
- asnCode: this.asncode
+ asnCode: this.asncode,
+ matnrCode: this.barcode
})
if (code === 200) {
this.list = [...data]
@@ -236,12 +238,16 @@
clearCode() {
this.asncode = ''
},
+ clearBarcode() {
+ this.barcode = ''
+ },
scrollTo() {
- const ref = this.$refs[`${this.barcode}ref`][0];
- uni.pageScrollTo({
- scrollTop: ref.$el.offsetTop,
- duration: 300
- })
+
+ // const ref = this.$refs[`${this.barcode}ref`][0];
+ // uni.pageScrollTo({
+ // scrollTop: ref.$el.offsetTop,
+ // duration: 300
+ // })
},
remove(index) {
this.list.splice(index, 1);
@@ -264,9 +270,12 @@
this.isconfirm = false
},
selChange(val) {
+ console.log('-------->')
+ console.log(val)
uni.setStorageSync('whAreaId', val)
},
async complete(id) {
+ this.repeatClick = true
const {
code,
data,
@@ -283,6 +292,7 @@
icon: "none",
})
}
+ this.repeatClick = false
},
async confirm(isCom) {
if (this.whAreaId === '') {
@@ -322,7 +332,6 @@
icon: "none",
})
}
-
}
},
async getRece() {
@@ -334,7 +343,7 @@
if (code === 200) {
this.range = data.map(item => ({
value: item.id,
- text: item.name
+ text: item.warehouseId$ + "-- " + item.name
}));
}
},
--
Gitblit v1.9.1