From 0256141ad70be0d254fd9958e8d28867db1d7531 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期三, 06 九月 2023 13:47:07 +0800
Subject: [PATCH] 小程序
---
minipro_standard/pages_adjust/pages/newOutbound/newOutbound.vue | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/minipro_standard/pages_adjust/pages/newOutbound/newOutbound.vue b/minipro_standard/pages_adjust/pages/newOutbound/newOutbound.vue
index 265dce2..7985b17 100644
--- a/minipro_standard/pages_adjust/pages/newOutbound/newOutbound.vue
+++ b/minipro_standard/pages_adjust/pages/newOutbound/newOutbound.vue
@@ -20,13 +20,8 @@
<view class="rework_qd_title">
<view class="rework_qd_title_left">
<view class="x"></view>
- <!-- ${list.length} -->
<text>{{`鍑哄簱鐗╂枡娓呭崟`}}</text>
</view>
- <!-- <view class="rework_qd_title_right" @click="openMs">
- <image src="@/static/gongdan_ic_shoudong@2x.png" mode="widthFix" />
- <text>澧炲姞鍑哄簱</text>
- </view> -->
</view>
<van-swipe-cell v-for="(item, index) in list" :key="index">
<view class="rework_qd_item">
@@ -60,7 +55,12 @@
<!-- 閫夋嫨浠撳簱 -->
<Warehouse :show="warehouseShow" @close="close" @value="getValue" />
<!-- 閫夋嫨鐗╂枡 -->
- <SelectMultipleMaterial ref="SelectMultipleMaterial" />
+ <SelectMultipleMaterial
+ ref="SelectMultipleMaterial"
+ :selected="list.map(item => item.id) || []"
+ :warehouseId="form.warehouseId.toString()"
+ :warehouseQualityType="form.warehouseQualityType"
+ @value="getValue1" />
<!-- 鍗曟嵁绫诲瀷 -->
<u-picker :show="typeShow" :columns="columns" @cancel="typeShow = false" @confirm="onConfirm1" keyName="name"></u-picker>
</view>
@@ -68,7 +68,8 @@
<script>
import Warehouse from '../../components/Warehouse.vue'
- import SelectMultipleMaterial from '@/components/SelectMultipleMaterial.vue'
+ import SelectMultipleMaterial from '../../components/multipleMaterial.vue'
+ import { createForStandard } from '@/util/api/WorkOrderAPI'
export default {
components: { Warehouse, SelectMultipleMaterial },
data() {
@@ -76,6 +77,7 @@
form: {
warehouseName: '',
warehouseId: '',
+ warehouseQualityType: '',
type: '',
typeName: ''
},
@@ -92,6 +94,13 @@
};
},
methods: {
+ // 閫夋嫨鐗╂枡
+ getValue1(item) {
+ item.forEach((row) => {
+ row.total = JSON.parse(JSON.stringify(row.num))
+ })
+ this.list = [...item, ...this.list]
+ },
changeNum(obj) {
if (obj.num < 0) {
obj.num = ''
@@ -105,7 +114,8 @@
// 閫夋嫨浠撳簱鍥炶皟
getValue(item) {
this.form.warehouseName = item.name
- this.form.warehouseId = item.id || 1
+ this.form.warehouseId = item.id
+ this.form.warehouseQualityType = item.tmodel.label
this.list = []
this.warehouseShow = false
},
@@ -162,7 +172,7 @@
woutBoundDetailBeans: this.list
}).then(res => {
if (res.code === 200) {
- uni.showToast({ title: '鍑哄簱鎴愬姛', icon: 'none', duration: 2000 });
+ uni.showToast({ title: '鍑哄簱鎴愬姛', icon: 'success', duration: 2000 });
setTimeout(() => {
uni.navigateBack({ delta: 1 });
}, 2000)
--
Gitblit v1.9.3