AlanWong 1 anno fa
parent
commit
218854141a
1 ha cambiato i file con 28 aggiunte e 4 eliminazioni
  1. 28 4
      src/views/audit/store/index.vue

+ 28 - 4
src/views/audit/store/index.vue

@@ -27,6 +27,19 @@
 				},
 				columns: [
 					[
+						{
+							span: 6,
+							label: '标题',
+							prop: 'skuTitle',
+							component: 'by-input',
+							labelWidth: '70px',
+							compConfig: {
+								attr: {
+									placeholder: '请输入标题',
+									clearable: true
+								}
+							}
+						},
 						{
 							span: 6,
 							label: '物料编码',
@@ -168,10 +181,21 @@
 		search() {
 			let searchID : any = (this as any).$refs.moduleView.searchID;
 			let value = (this as any).$refs.moduleView.$refs[searchID].value;
-			if (value.skuCode) {
-				let newData = this.tableInfo.filter((v : any) => v.skuCode == value.skuCode);
-				(this.$refs.moduleView as any).setTableValue(newData);
-			} else this.getDataList();
+			if (value.skuTitle) {
+				if (value.skuCode) {
+					let newData = this.tableInfo.filter((v : any) => v.skuCode == value.skuCode && v.skuTitle == value.skuTitle);
+					(this.$refs.moduleView as any).setTableValue(newData);
+				} else {
+					let newData = this.tableInfo.filter((v : any) => v.skuTitle == value.skuTitle);
+					(this.$refs.moduleView as any).setTableValue(newData);
+				}
+			} else {
+				if (value.skuCode) {
+					let newData = this.tableInfo.filter((v : any) => v.skuCode == value.skuCode);
+					(this.$refs.moduleView as any).setTableValue(newData);
+				} else this.getDataList();
+			}
+
 		}
 		// 短驳
 		shortBarge(e : any) {