Browse Source

物料SKU管理调整:
1、将sku对应的商品名称放出来,便于寻找对应的商品
2、在列表上标识是否已同步wms,同步显示绿色,未同步显示橙色

hcf 1 year ago
parent
commit
33e4f0ebca
2 changed files with 40 additions and 0 deletions
  1. 16 0
      src/views/audit/sku/components/wmsStatus.vue
  2. 24 0
      src/views/audit/sku/index.vue

+ 16 - 0
src/views/audit/sku/components/wmsStatus.vue

@@ -0,0 +1,16 @@
+<template>
+	<div>
+		<el-tag size='mini' :type="propValue===0?'success':'warning'" disable-transitions effect="dark">{{propValue===0?'是':'否'}}</el-tag>
+	</div>
+</template>
+<script lang="ts">
+	import { Component, Prop, Vue, Watch, Mixins } from "vue-property-decorator";
+	@Component
+	export default class yesno extends Vue {
+		@Prop()
+		propValue : any
+	}
+</script>
+
+<style>
+</style>

+ 24 - 0
src/views/audit/sku/index.vue

@@ -18,6 +18,7 @@
 	import { Component, Prop, Vue, Watch } from "vue-property-decorator";
 	import api from "@/api/currency";
 	import ForTab from "@/components/ForTab/index.vue";
+	import wmsStatus from "./components/wmsStatus.vue"
 	@Component({ components: { ForTab } })
 	export default class Sku extends Vue {
 		// 右边
@@ -282,6 +283,18 @@
 								}
 							}
 						},
+						{
+							span: 6,
+							label: '商品名称',
+							prop: 'materialName',
+							component: 'by-input',
+							compConfig: {
+								attr: {
+									placeholder: '请输入商品名称',
+									clearable: true
+								}
+							}
+						}
 					],
 				]
 			},
@@ -336,6 +349,17 @@
 						title: '财务编号',
 						field: 'financialCode',
 					},
+					{
+						width: '200px',
+						title: '商品名称',
+						field: 'extData',
+					},
+					{
+						width: '80px',
+						title: '是否已同步WMS',
+						field: 'isSynchronousWMS',
+						component: wmsStatus,
+					},
 					{
 						width: '80px',
 						title: '价格',