From 0c3bd32542709a9c61f3d125fdaaa42d267821cb Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 14 一月 2025 17:08:39 +0800
Subject: [PATCH] #添加出库确认功能
---
pages/home/home.vue | 14 +-
pages/pakin/putOn.vue | 8 +
pages.json | 16 +++-
pages/order/orderOutConfirm.vue | 147 ++++++++++++++++++++++++++++++++++++
4 files changed, 171 insertions(+), 14 deletions(-)
diff --git a/pages.json b/pages.json
index a7d2ab0..9e1255b 100644
--- a/pages.json
+++ b/pages.json
@@ -42,7 +42,7 @@
{
"path": "pages/pakin/pakin",
"style": {
- "navigationBarTitleText": "缁� 鎵�"
+ "navigationBarTitleText": "缁勬墭鍏ュ簱"
}
},
{
@@ -150,7 +150,7 @@
{
"path": "pages/pakin/putOn",
"style": {
- "navigationBarTitleText": "缁勬墭涓婃灦"
+ "navigationBarTitleText": "骞冲簱涓婃灦"
}
},
{
@@ -159,7 +159,6 @@
"navigationBarTitleText": "鎹㈡澘缁戝畾"
}
},
-
{
"path": "pages/print/qr",
"style": {
@@ -204,7 +203,7 @@
"path" : "pages/stock/outFlat",
"style" :
{
- "navigationBarTitleText": "",
+ "navigationBarTitleText": "骞冲簱涓嬫灦",
"enablePullDownRefresh": false
}
@@ -218,6 +217,15 @@
}
}
+ ,{
+ "path" : "pages/order/orderOutConfirm",
+ "style" :
+ {
+ "navigationBarTitleText": "璁㈠崟鍑哄簱纭",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 81891f9..625fdb9 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -68,13 +68,13 @@
cuIcon: 'pullup',
url: '/stock/orderBindSeed'
},
- // {
- // title: '璁㈠崟鍏ュ簱',
- // name: 'orderPakin',
- // color: 'red',
- // cuIcon: 'pullup',
- // url: '/order/orderPakin'
- // },
+ {
+ title: '鍑哄簱纭',
+ name: 'orderConfirm',
+ color: 'purple',
+ cuIcon: 'check',
+ url: '/order/orderOutConfirm'
+ },
// {
// title: '鎵撳嵃',
// name: 'print',
diff --git a/pages/order/orderOutConfirm.vue b/pages/order/orderOutConfirm.vue
new file mode 100644
index 0000000..beb6ea0
--- /dev/null
+++ b/pages/order/orderOutConfirm.vue
@@ -0,0 +1,147 @@
+<template>
+ <view>
+ <view class="list-view">
+ <scroll-view style="overflow: hidden;overflow-y: scroll;height: auto;">
+ <view>
+ <uni-row :gutter="10">
+ <uni-col :span="3" style="margin: auto;align-items: center;justify-content: center;">
+ <uni-data-checkbox mode="list" icon="left" v-model="value" :localdata="range" @change="change" :multiple="true" />
+ </uni-col>
+ <uni-col :span="20">
+ <view>1112244</view>
+ </uni-col>
+ </uni-row>
+ </view>
+ </scroll-view>
+ </view>
+ <!-- 搴曢儴鎿嶄綔鎸夐挳 -->
+ <view class="buttom">
+ <button size="middle" type="primary" @click="combConfirm('warn')">纭鍑哄簱</button>
+ </view>
+ <!-- 纭涓婃灦 -->
+ <view>
+ <uni-popup ref="combConfirm" type="dialog">
+ <uni-popup-dialog :type="msgType" cancelText="鍙栨秷" confirmText="纭" :title="title" :content="content"
+ @confirm="comb" @close="combClose"></uni-popup-dialog>
+ </uni-popup>
+ </view>
+ <view>
+ <!-- 鎻愮ず淇℃伅寮圭獥 -->
+ <uni-popup ref="message" type="message">
+ <uni-popup-message :type="msgType1" :message="messageText" :duration="2000"></uni-popup-message>
+ </uni-popup>
+ </view>
+ </view>
+</template>
+
+<script>
+ export default {
+ data() {
+ return {
+ msgType1: 'success',
+ msgType: 'success',
+ messageText: '',
+ title: '',
+ content: '',
+ dataList: [],
+ barcode: '',
+ matFocus: '',
+ value: 0,
+ range: [{"value": 0,"texts": "绡悆" },{"value": 1,"texts": "瓒崇悆"},{"value": 2,"texts": "娓告吵"}]
+ }
+ },
+ methods: {
+ change(data) {
+ console.log(data)
+ }
+ }
+ }
+</script>
+
+<style>
+ @import url('../../static/css/wms.css/wms.css');
+
+
+ .uni-section {
+ margin-top: 0rpx;
+
+ .uni-section__content-title {
+ font-size: 16px !important;
+ }
+ }
+
+ .buttom uni-button {
+ width: 60%;
+ }
+
+ .list-view {
+ width: 100%;
+ position: relative;
+
+ .uni-data-checklist .checklist-group .checklist-box.is--list {
+ padding-left: 30rpx;
+ }
+
+ }
+
+ .list {
+ display: flex;
+ min-height: 80rpx;
+ background-color: #FFF;
+ margin: 20rpx;
+ border-radius: 20rpx;
+ box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2);
+ }
+ .list:first-child {
+ margin-top: 300rpx;
+ }
+ .list:last-child {
+ margin-bottom: 120rpx;
+ }
+ .code {
+ width: 100%;
+ position: fixed;
+ background: white;
+ min-height: 200rpx;
+ background-color: #FFF;
+ z-index: 10;
+ }
+ .item {
+ display: flex;
+ align-items: center;
+ height: 100rpx;
+ margin-left: 20rpx;
+ border-bottom: 1px solid #DCDFE6;
+ }
+
+ .item input {
+ height: 50rpx;
+ line-height: 50rpx;
+ /* font-family: PingFang SC; uniapp 榛樿瀛椾綋涓嶅眳涓� */
+ font-size: 36upx;
+ font-family: PingFang SC;
+ width: 55vw;
+
+ }
+
+ .code-decs {
+ width: 20vw;
+ font-size: 18px;
+ color: #303133;
+ }
+
+ .item-right {
+ margin-left: auto;
+ margin-right: 20rpx;
+ }
+
+ .mat-list-title {
+ height: 80rpx;
+ position: fixed;
+ line-height: 80rpx;
+ font-size: 24px;
+ width: 100%;
+ background: white;
+ font-weight: 500;
+ }
+</style>
diff --git a/pages/pakin/putOn.vue b/pages/pakin/putOn.vue
index 8e889cd..c3fbbb4 100644
--- a/pages/pakin/putOn.vue
+++ b/pages/pakin/putOn.vue
@@ -17,7 +17,9 @@
</view>
<view class="list-view">
<scroll-view style="overflow: hidden;overflow-y: scroll;height: auto;">
- <view class="list" v-for="(item,i) in dataList" :key="i">
+ <uni-data-checkbox mode="list" icon="left" v-model="value" :localdata="range" @change="change"></uni-data-checkbox>
+
+ <!-- <view class="list" v-for="(item,i) in dataList" :key="i">
<view class="list-left">
<view class="list-left-item">
<view class="desc">No锛�</view>
@@ -46,7 +48,7 @@
<view class="left-item">{{item.anfme}}</view>
</view>
</view>
- </view>
+ </view> -->
</scroll-view>
</view>
<!-- 搴曢儴鎿嶄綔鎸夐挳 -->
@@ -150,7 +152,7 @@
comb() {
uni.vibrateShort();
let that = this;
- this.$toast.loading('鍔犺浇涓�...')
+ this.$toast.loading('涓婃灦涓�...')
uni.request({
url: that.baseUrl + '/pda/matnr/in/barcode',
data: JSON.stringify({
--
Gitblit v1.9.1