-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
-
+
-
+
+ 添加产品参数
+
-
-
保存
@@ -124,32 +113,23 @@
diff --git a/src/api/product/category.js b/src/api/product/category.js
index 19ff711..aea97c7 100644
--- a/src/api/product/category.js
+++ b/src/api/product/category.js
@@ -1,4 +1,3 @@
-import { instance } from '../request/http'
/**
* 品类相关接口
*/
@@ -21,7 +20,7 @@
})
}
-// 品类更新
+// 品类详情
export function detail(data) {
return request({
url: `/categoryInfo/detail`,
diff --git a/src/components/mycomponent/dialog/brandAddDialog.vue b/src/components/mycomponent/dialog/brandAddDialog.vue
index 952978e..b9c132d 100644
--- a/src/components/mycomponent/dialog/brandAddDialog.vue
+++ b/src/components/mycomponent/dialog/brandAddDialog.vue
@@ -29,9 +29,9 @@
>
@@ -113,7 +113,7 @@
watch: {
dataInfo: {
handler(vla) {
- if (vla != '') {
+ if (vla !== '') {
this.addInfo = {
brandCode: vla.brandCode, // 编号
brandName: vla.brandName,
@@ -122,6 +122,7 @@
categoryIds: this.categoryName(vla.categorys),
remark: vla.remark
}
+ debugger
} else {
this.addInfo = {
brandCode: '', // 编号
@@ -155,38 +156,31 @@
save() {
if (this.title == '新增品牌') {
add(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('保存成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('保存成功')
})
} else {
update(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('更新成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('更新成功')
})
}
},
// 数据处理
categoryName(category) {
const ary = []
- if (category.length == 0) return ''
+ if (category.length === 0) return ''
category.forEach(ele => {
ary.push(ele.categoryId)
})
return ary
},
supplierName(supplier) {
- const ary = []
- if (supplier.length == 0) return ''
- supplier.forEach(ele => {
- ary.push(ele.supplierName)
- })
- return ary
+ if (supplier.length === 0) return []
+ const supplierIds = supplier.map(item => item.id)
+ return supplierIds
}
}
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 4e547d4..c47e73c 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -8,19 +8,20 @@
@close="close"
>
-
- 添加产品参数
-
-
-
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
必填
-
-
-
-
- 删除
-
+
+
+
+ 删除
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
-
+
-
+
+ 添加产品参数
+
-
-
保存
@@ -124,32 +113,23 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
-
- 添加产品参数
-
-
-
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
必填
-
-
-
-
- 删除
-
+
+
+
+ 删除
+
+
-
-
@@ -113,7 +113,7 @@
watch: {
dataInfo: {
handler(vla) {
- if (vla != '') {
+ if (vla !== '') {
this.addInfo = {
brandCode: vla.brandCode, // 编号
brandName: vla.brandName,
@@ -122,6 +122,7 @@
categoryIds: this.categoryName(vla.categorys),
remark: vla.remark
}
+ debugger
} else {
this.addInfo = {
brandCode: '', // 编号
@@ -155,38 +156,31 @@
save() {
if (this.title == '新增品牌') {
add(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('保存成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('保存成功')
})
} else {
update(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('更新成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('更新成功')
})
}
},
// 数据处理
categoryName(category) {
const ary = []
- if (category.length == 0) return ''
+ if (category.length === 0) return ''
category.forEach(ele => {
ary.push(ele.categoryId)
})
return ary
},
supplierName(supplier) {
- const ary = []
- if (supplier.length == 0) return ''
- supplier.forEach(ele => {
- ary.push(ele.supplierName)
- })
- return ary
+ if (supplier.length === 0) return []
+ const supplierIds = supplier.map(item => item.id)
+ return supplierIds
}
}
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 4e547d4..c47e73c 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -8,19 +8,20 @@
@close="close"
>
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
diff --git a/src/api/product/category.js b/src/api/product/category.js
index 19ff711..aea97c7 100644
--- a/src/api/product/category.js
+++ b/src/api/product/category.js
@@ -1,4 +1,3 @@
-import { instance } from '../request/http'
/**
* 品类相关接口
*/
@@ -21,7 +20,7 @@
})
}
-// 品类更新
+// 品类详情
export function detail(data) {
return request({
url: `/categoryInfo/detail`,
diff --git a/src/components/mycomponent/dialog/brandAddDialog.vue b/src/components/mycomponent/dialog/brandAddDialog.vue
index 952978e..b9c132d 100644
--- a/src/components/mycomponent/dialog/brandAddDialog.vue
+++ b/src/components/mycomponent/dialog/brandAddDialog.vue
@@ -29,9 +29,9 @@
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
-
+
-
+
+ 添加产品参数
+
-
-
保存
@@ -124,32 +113,23 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
-
- 添加产品参数
-
-
-
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
必填
-
-
-
-
- 删除
-
+
+
+
+ 删除
+
+
-
@@ -113,7 +113,7 @@
watch: {
dataInfo: {
handler(vla) {
- if (vla != '') {
+ if (vla !== '') {
this.addInfo = {
brandCode: vla.brandCode, // 编号
brandName: vla.brandName,
@@ -122,6 +122,7 @@
categoryIds: this.categoryName(vla.categorys),
remark: vla.remark
}
+ debugger
} else {
this.addInfo = {
brandCode: '', // 编号
@@ -155,38 +156,31 @@
save() {
if (this.title == '新增品牌') {
add(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('保存成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('保存成功')
})
} else {
update(this.addInfo).then(res => {
- if (!res.code) {
- this.close()
- this.$emit('refresh')
- Message.success('更新成功')
- }
+ this.close()
+ this.$emit('refresh')
+ Message.success('更新成功')
})
}
},
// 数据处理
categoryName(category) {
const ary = []
- if (category.length == 0) return ''
+ if (category.length === 0) return ''
category.forEach(ele => {
ary.push(ele.categoryId)
})
return ary
},
supplierName(supplier) {
- const ary = []
- if (supplier.length == 0) return ''
- supplier.forEach(ele => {
- ary.push(ele.supplierName)
- })
- return ary
+ if (supplier.length === 0) return []
+ const supplierIds = supplier.map(item => item.id)
+ return supplierIds
}
}
diff --git a/src/components/mycomponent/dialog/categoryAddDialog.vue b/src/components/mycomponent/dialog/categoryAddDialog.vue
index 4e547d4..c47e73c 100644
--- a/src/components/mycomponent/dialog/categoryAddDialog.vue
+++ b/src/components/mycomponent/dialog/categoryAddDialog.vue
@@ -8,19 +8,20 @@
@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/api/product/category.js b/src/api/product/category.js
index 19ff711..aea97c7 100644
--- a/src/api/product/category.js
+++ b/src/api/product/category.js
@@ -1,4 +1,3 @@
-import { instance } from '../request/http'
/**
* 品类相关接口
*/
@@ -21,7 +20,7 @@
})
}
-// 品类更新
+// 品类详情
export function detail(data) {
return request({
url: `/categoryInfo/detail`,
diff --git a/src/components/mycomponent/dialog/brandAddDialog.vue b/src/components/mycomponent/dialog/brandAddDialog.vue
index 952978e..b9c132d 100644
--- a/src/components/mycomponent/dialog/brandAddDialog.vue
+++ b/src/components/mycomponent/dialog/brandAddDialog.vue
@@ -29,9 +29,9 @@
>
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
-
+
-
+
+ 添加产品参数
+
-
-
保存
@@ -124,32 +113,23 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
-
- 添加产品参数
-
-
-
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
必填
-
-
-
-
- 删除
-
+
+
+
+ 删除
+
+
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
-
+
{{ '' }}
@@ -45,13 +45,11 @@
diff --git a/src/components/mycomponent/dialog/productDetailDialog.vue b/src/components/mycomponent/dialog/productDetailDialog.vue
index 7b19a76..bd6ab97 100644
--- a/src/components/mycomponent/dialog/productDetailDialog.vue
+++ b/src/components/mycomponent/dialog/productDetailDialog.vue
@@ -1,133 +1,56 @@
-
-
+
-
@@ -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 @@
-
-
+ {{ param.paramValue }}
+
+
@@ -137,11 +60,23 @@
import { infoDialog } from '../../../utils/myUtils/mixins/infoDialog' // 抽离porp 和 methods
export default {
mixins: [infoDialog],
- mounted() {
- const id = this.dataInfo.id
- productDetail({ id: id }).then(res => {
- console.log(res, '----')
- })
+ data() {
+ return {
+ dialogShow: false,
+ loading: false,
+ form: null,
+ imageUrl: this.baseConfig.baseUrl + '/static/'
+ }
+ },
+ methods: {
+ initDialog(id) {
+ this.dialogShow = true
+ this.loading = true
+ productDetail({ id: id }).then(res => {
+ this.form = res
+ this.loading = false
+ })
+ }
}
}
@@ -149,3 +84,8 @@
+
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"
>
- 产品编号
+
+
-
+
+
+ {{ form ? form.productCode : '' }}
+
+
+ {{ form ? form.productName : '' }}
+
+
+ {{ form ? form.brandName : '' }}
+
+
+ {{ form ? form.categoryStr : '' }}
+
+
+ {{ form ? form.productEdition : '' }}
+
+
+ {{ form ? form.internationalCode : '' }}
+
+
+ {{ form ? form.productPackageSize : '' }}
+
+
+ {{ form ? form.productColor : '' }}
+
+
+ {{ form ? form.productStatus : '' }}
+
+
+ {{ form ? form.productMaterialQuality : '' }}
+
+
+ {{ form ? form.productWeight : '' }}
+
+
+ {{ form&&form.productNetworkMode=='1' ? '是' : '否' }}
+
+
+
-
+
-
+
+
- {{ dataInfo ? dataInfo.productCode : '' }}
-
-
-
-
- 产品名称
-
-
- {{ dataInfo.productName }}
-
-
-
-
-
-
- 品牌Id
-
-
- {{ dataInfo.brandId }}
-
-
-
-
- 品类Id
-
-
- {{ dataInfo.categoryId }}
-
-
-
-
-
-
- 国际69码
-
-
- {{ dataInfo.internationalCode }}
-
-
-
-
- 产品版本
-
-
- {{ dataInfo.productEdition }}
-
-
-
-
-
-
- 产品尺寸
-
-
- {{ dataInfo.productPackageSize }}
-
-
-
-
- 产品状态
-
-
- {{ dataInfo.productStatus }}
-
-
-
-
-
-
- 产品颜色
-
-
- {{ dataInfo.productColor }}
-
-
-
-
- 产品重量
-
-
- {{ dataInfo.productWeight }}
-
-
-
-
-
-
- 产品材质
-
-
- {{ dataInfo.productMaterialQuality }}
-
-
-
-
- 产品图片
-
-
- {{ dataInfo.productPicture }}
-
-
-
+ 无
+
+
-
-
- 配网方式
-
-
- {{ dataInfo.productNetworkMode }}
-
-
-
-
- 产品参数值列表
-
-
- {{ dataInfo.paramValues }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 保存
-
-
- 取消
-
-
+
+
+ 保存
+
+
+ 取消
+
+
-
-
+
@@ -18,15 +17,16 @@
-
+
{{ '' }}
@@ -45,13 +45,11 @@