Commit ed8c64c9 authored by 332784038@qq.com's avatar 332784038@qq.com

商品列表包装要求与商品材质回显bug修复

parent 5a478551
...@@ -236,15 +236,15 @@ ...@@ -236,15 +236,15 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('商品材质')" align="center" prop="materialType"> <el-table-column :label="$t('商品材质')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getMaterialTypeName(scope.row.materialType) }}</span> <dict-tag :type="DICT_TYPE.ECW_PRODUCT_MATERIAL" :value="scope.row.materialType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('包装要求')" align="center" prop="packaging"> <el-table-column :label="$t('包装要求')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getPackagingName(scope.row.packaging) }}</span> <dict-tag :type="DICT_TYPE.ECW_PACKAGING_TYPE" :value="scope.row.packaging" />
</template> </template>
</el-table-column> </el-table-column>
...@@ -638,10 +638,12 @@ import { uploadFile } from "@/api/infra/file"; ...@@ -638,10 +638,12 @@ import { uploadFile } from "@/api/infra/file";
import ImageUpload from "@/components/ImageUpload"; import ImageUpload from "@/components/ImageUpload";
import PackagingType from "@/views/ecw/channel/componrnts/packaging-type.vue"; import PackagingType from "@/views/ecw/channel/componrnts/packaging-type.vue";
import ProductDialog from "@/views/ecw/product/product-dialog.vue"; import ProductDialog from "@/views/ecw/product/product-dialog.vue";
import Template from "@/views/cms/template/index.vue";
export default { export default {
name: "EcwProductIndex", name: "EcwProductIndex",
components: { components: {
Template,
ProductDialog, ProductDialog,
PackagingType, PackagingType,
ImageUpload, ImageUpload,
...@@ -659,12 +661,7 @@ export default { ...@@ -659,12 +661,7 @@ export default {
attrList: [], attrList: [],
//类型列表 //类型列表
typeList: [], typeList: [],
//材质列表
materialList: [],
//包装列表
packagingList: [],
//货柜位置
locationList: [],
// 遮罩层 // 遮罩层
loading: true, loading: true,
...@@ -741,10 +738,12 @@ export default { ...@@ -741,10 +738,12 @@ export default {
CommonStatusEnum: CommonStatusEnum, CommonStatusEnum: CommonStatusEnum,
AuditStatusEnum: AuditStatusEnum, AuditStatusEnum: AuditStatusEnum,
statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS), statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS),
statusDictDatas: getDictDatas(DICT_TYPE.COMMON_STATUS),
auditStatusDictDatas: getDictDatas(DICT_TYPE.AUDIT_STATUS), auditStatusDictDatas: getDictDatas(DICT_TYPE.AUDIT_STATUS),
// 材质列表
materialList: getDictDatas(DICT_TYPE.ECW_PRODUCT_MATERIAL), materialList: getDictDatas(DICT_TYPE.ECW_PRODUCT_MATERIAL),
packagingList: getDictDatas(DICT_TYPE.ECW_PACKAAGING_TYPE), //包装列表
packagingList: getDictDatas(DICT_TYPE.ECW_PACKAGING_TYPE),
//货柜位置
locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION), locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION),
preferentialList: [], preferentialList: [],
exceptionProductId: 0, //新增商品异常传的id exceptionProductId: 0, //新增商品异常传的id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment