From 52569c7d6304ef4cd93542a08a6edbe02a3e1bcb Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周四, 25 4月 2024 10:46:19 +0800
Subject: [PATCH] 客户档案 调整
---
iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue | 114 +++++++++++++++++++++++++++-----------------------------
1 files changed, 55 insertions(+), 59 deletions(-)
diff --git a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
index 1d87a39..b751075 100644
--- a/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
+++ b/iWare_RawMaterialWarehouse_Web/src/views/main/WmsBase/WmsMaterial/tabItem/WmsSubstituteGood/addFormWmsSubstituteGood.vue
@@ -1,5 +1,5 @@
锘�<template>
- <!-- 鏇夸唬鍝佺鐞� -->
+ <!-- 鏇夸唬鍝佺鐞� -琛ㄦ牸鍐呭 -->
<div style="background-color: white">
<!-- <a-spin :spinning="loading"> -->
<div class="wms-task-management-detail-div">
@@ -7,9 +7,8 @@
<!-- <span style="font-weight:bold;cursor:default;">
<a style="cursor:default;">{{ row.no }}</a>鍗曟嵁璇︽儏
</span> -->
- 鐗╂枡缂栧彿: {{ materialCode }}
-
- 鐗╂枡鍚嶇О: {{ materialName }}
+ <!-- 鐗╂枡缂栧彿: {{ materialCode }}
+ 鐗╂枡鍚嶇О: {{ materialName }} -->
<div style="margin-top: 10px;">
<a-table :columns="columns" :data-source="list" row-key="id" :pagination="false" :scroll="{ x: true }">
<template slot="index" slot-scope="text, record, index">{{ index + 1 }}</template>
@@ -27,11 +26,8 @@
</a-table>
</div>
</div>
-
<p @click="$refs.showList.add()">鏂板琛�</p>
-
<show-list ref="showList" @ok="handleSubmit" />
-
</div>
</div>
</template>
@@ -72,26 +68,26 @@
scopedSlots: { customRender: 'index' },
align: 'center'
},
- {
- title: '鏇夸唬缂栧彿',
- align: 'center',
- customHeaderCell: () => {
- return {
- style: {
- 'min-width': '120px'//鏈�灏忓垪瀹借缃�
- }
- }
- },
- customCell: () => {
- return {
- style: {
- 'min-width': '120px'//鏈�灏忓垪瀹借缃�
- }
- }
- },
- sorter: true,
- dataIndex: 'substituteCode'
- },
+ // {
+ // title: '鏇夸唬缂栧彿',
+ // align: 'center',
+ // customHeaderCell: () => {
+ // return {
+ // style: {
+ // 'min-width': '120px'//鏈�灏忓垪瀹借缃�
+ // }
+ // }
+ // },
+ // customCell: () => {
+ // return {
+ // style: {
+ // 'min-width': '120px'//鏈�灏忓垪瀹借缃�
+ // }
+ // }
+ // },
+ // sorter: true,
+ // dataIndex: 'substituteCode'
+ // },
// {
// title: '鐗╂枡缂栧彿',
// align: 'center',
@@ -152,26 +148,26 @@
sorter: true,
dataIndex: 'substituteMaterialCode'
},
- {
- title: '鏇夸唬鍝佺墿鏂欏悕绉�',
- align: 'center',
- customHeaderCell: () => {
- return {
- style: {
- 'min-width': '140px'//鏈�灏忓垪瀹借缃�
- }
- }
- },
- customCell: () => {
- return {
- style: {
- 'min-width': '140px'//鏈�灏忓垪瀹借缃�
- }
- }
- },
- sorter: true,
- dataIndex: 'substituteMaterialName'
- },
+ // {
+ // title: '鏇夸唬鍝佺墿鏂欏悕绉�',
+ // align: 'center',
+ // customHeaderCell: () => {
+ // return {
+ // style: {
+ // 'min-width': '140px'//鏈�灏忓垪瀹借缃�
+ // }
+ // }
+ // },
+ // customCell: () => {
+ // return {
+ // style: {
+ // 'min-width': '140px'//鏈�灏忓垪瀹借缃�
+ // }
+ // }
+ // },
+ // sorter: true,
+ // dataIndex: 'substituteMaterialName'
+ // },
{
title: '鏇夸唬娆″簭',
align: 'center',
@@ -235,13 +231,13 @@
}
},
- initShow(materialCode,materialName) {
- this.materialCode = materialCode
- this.materialName = materialName
- this.loading = true
- this.getList(() => {
- this.loading = false
- })
+ initShowSubstituteGood() {
+ // this.materialCode = materialCode
+ // this.materialName = materialName
+ // this.loading = true
+ // this.getList(() => {
+ // this.loading = false
+ // })
},
getList(row) {
let params = { id: row.id }
@@ -264,6 +260,11 @@
},
handleSubmit(item) {
+ var arr1 = this.list.filter(key => key.substituteMaterialCode === item.substituteMaterialCode)
+ if(arr1.length>0){
+ this.$message.warning("宸插瓨鍦ㄧ浉鍚岀墿鏂�")
+ return
+ }
this.list.push(item)
this.visible = false
},
@@ -272,11 +273,6 @@
},
itemDelete(record, index) {
this.list.splice(index, 1)
- },
- addLine(){
- this.list.push({
-
- })
}
}
}
--
Gitblit v1.9.3