From bd9f756e20b8d49851b9d598240d06b4d38aecac Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 22 三月 2024 11:25:13 +0800
Subject: [PATCH] 调拨产品新增增加"调出位置", "调入位置",
---
src/views/operate/scrap/AddScrapDialog.vue | 41 ++++++++++++++++++++++++++++-------------
1 files changed, 28 insertions(+), 13 deletions(-)
diff --git a/src/views/operate/scrap/AddScrapDialog.vue b/src/views/operate/scrap/AddScrapDialog.vue
index 3bc1094..626fb4a 100644
--- a/src/views/operate/scrap/AddScrapDialog.vue
+++ b/src/views/operate/scrap/AddScrapDialog.vue
@@ -113,7 +113,7 @@
style="width: 90%"
:disabled="!showFooter"
>
- <el-option v-for="item in toLocationOptions" :key="item.id" :label="item.name" :value="item.id">
+ <el-option v-for="item in toLocationOptions1" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
</el-form-item>
@@ -180,6 +180,7 @@
memberOptions: [],
productOptions: [],
toLocationOptions: [],
+ toLocationOptions1: [],
list: [
{ label: "鑽夌", status: "todo", value: 1 },
{ label: "灏辩华", status: "todo", value: 3 },
@@ -196,7 +197,16 @@
created() {
this.setBottonView()
this.getProductList()
- this.getLocationList()
+ this.getLocationList({
+ isScrapLocation: true,
+ page: 0,
+ pageSize: 0
+ })
+ this.getLocationList({
+ // isScrapLocation: true,
+ page: 0,
+ pageSize: 0
+ })
this.unit = this.editConfig.infomation.unit || ""
this.formInfo()
},
@@ -224,17 +234,22 @@
})
},
// 鑾峰彇浠撳簱浣嶇疆鍒楄〃
- async getLocationList() {
- await getLocationList({
- isScrapLocation: true,
- page: 0,
- pageSize: 0
- }).then((res) => {
- console.log(res)
- if (res.code === 200) {
- this.toLocationOptions = res.data
- }
- })
+ async getLocationList(params) {
+ if(params.isScrapLocation){
+ await getLocationList(params).then((res) => {
+ console.log(res)
+ if (res.code === 200) {
+ this.toLocationOptions1 = res.data
+ }
+ })
+ }else{
+ await getLocationList(params).then((res) => {
+ console.log(res)
+ if (res.code === 200) {
+ this.toLocationOptions = res.data
+ }
+ })
+ }
},
// 璁剧疆鍒犻櫎/鎵撳嵃/缂栬緫鏄惁鏄剧ず
setBottonView() {
--
Gitblit v1.8.0