diff --git a/src/components/mycomponent/dialog/snCodeFieldDialog.vue b/src/components/mycomponent/dialog/snCodeFieldDialog.vue index e5f4ba9..0adc36d 100644 --- a/src/components/mycomponent/dialog/snCodeFieldDialog.vue +++ b/src/components/mycomponent/dialog/snCodeFieldDialog.vue @@ -8,65 +8,40 @@ @close="close" >
-
-
- -
- + + + + - - - -
-
- -
-
- - + /> + + + + + + + + + + + + + + + + + + + + + + + + - -
-
- - -
-
- -
-
- + + + + + + + + + + + + + + + + + + + + + + + - -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- - - - - -
-
- -
-
- -
-
- -
-
-
+ + + + + + + + + + + + + + + + +
-
- - 保存 - - - 取消 - -
+
+ + 保存 + + + 取消 + +
@@ -247,19 +159,35 @@ } }, mounted() { - // snFixedId - S_list({}).then(res => { - this.snCodeList = res - }) - list().then(res => { - this.productList = res - }) + this.fetchSnFixedList() + this.fetchProductList() SelectList().then(res => { // console.log(res,"=============="); this.brandList = res }) }, methods: { + // 获取sn固定标识列表 + fetchSnFixedList() { + const params = { + snCode: '', + snQuantity: '' + } + S_list(params).then(res => { + this.snCodeList = res + }) + }, + // 获取产品列表 + fetchProductList() { + const data = { + productCode: '', + productName: '', + categoryId: '' + } + list(data).then(res => { + this.productList = res + }) + }, save() { const temp = { ...this.addInfo } temp.snSegmentNum = this.snSegmentNum diff --git a/src/components/mycomponent/dialog/snCodeFieldDialog.vue b/src/components/mycomponent/dialog/snCodeFieldDialog.vue index e5f4ba9..0adc36d 100644 --- a/src/components/mycomponent/dialog/snCodeFieldDialog.vue +++ b/src/components/mycomponent/dialog/snCodeFieldDialog.vue @@ -8,65 +8,40 @@ @close="close" >
-
-
- -
- + + + + - - - -
-
- -
-
- - + /> + + + + + + + + + + + + + + + + + + + + + + + + - -
-
- - -
-
- -
-
- + + + + + + + + + + + + + + + + + + + + + + + - -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- - - - - -
-
- -
-
- -
-
- -
-
-
+ + + + + + + + + + + + + + + + +
-
- - 保存 - - - 取消 - -
+
+ + 保存 + + + 取消 + +
@@ -247,19 +159,35 @@ } }, mounted() { - // snFixedId - S_list({}).then(res => { - this.snCodeList = res - }) - list().then(res => { - this.productList = res - }) + this.fetchSnFixedList() + this.fetchProductList() SelectList().then(res => { // console.log(res,"=============="); this.brandList = res }) }, methods: { + // 获取sn固定标识列表 + fetchSnFixedList() { + const params = { + snCode: '', + snQuantity: '' + } + S_list(params).then(res => { + this.snCodeList = res + }) + }, + // 获取产品列表 + fetchProductList() { + const data = { + productCode: '', + productName: '', + categoryId: '' + } + list(data).then(res => { + this.productList = res + }) + }, save() { const temp = { ...this.addInfo } temp.snSegmentNum = this.snSegmentNum diff --git a/src/components/mycomponent/dialog/snCodeRulsDialog.vue b/src/components/mycomponent/dialog/snCodeRulsDialog.vue index ae82b98..dc6cf3f 100644 --- a/src/components/mycomponent/dialog/snCodeRulsDialog.vue +++ b/src/components/mycomponent/dialog/snCodeRulsDialog.vue @@ -1,10 +1,9 @@