|
@@ -107,7 +107,7 @@
|
|
|
import ForTab from "@/components/ForTab/index.vue";
|
|
|
import ImportProduct from "./components/importProduct.vue";
|
|
|
import SynchronousOrderModal from "./components/synchronousOrderModal.vue";
|
|
|
- @Component({ components: { ForTab, ImportProduct,SynchronousOrderModal } })
|
|
|
+ @Component({ components: { ForTab, ImportProduct, SynchronousOrderModal } })
|
|
|
export default class productManagement extends Vue {
|
|
|
tagsData : any = [] // 标签值
|
|
|
isShow = 'home'
|
|
@@ -148,6 +148,7 @@
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
+ width: '170px',
|
|
|
title: '标题',
|
|
|
field: 'skuTitle',
|
|
|
component: 'by-input',
|
|
@@ -159,6 +160,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '150px',
|
|
|
title: '副标题',
|
|
|
field: 'skuSubtitle',
|
|
|
component: 'by-input',
|
|
@@ -170,6 +172,19 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '150px',
|
|
|
+ title: '物料编码',
|
|
|
+ field: 'skuCode',
|
|
|
+ component: 'by-input',
|
|
|
+ compConfig: {
|
|
|
+ attr: {
|
|
|
+ size: 'mini',
|
|
|
+ placeholder: ' '
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: '110px',
|
|
|
title: '价格',
|
|
|
field: 'price',
|
|
|
component: 'by-input',
|
|
@@ -183,6 +198,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '单位',
|
|
|
field: 'unit',
|
|
|
component: 'by-input',
|
|
@@ -195,6 +211,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '库存',
|
|
|
field: 'stock',
|
|
|
component: 'by-input',
|
|
@@ -208,6 +225,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '120px',
|
|
|
title: '保质期(天)',
|
|
|
field: 'shelfLife',
|
|
|
component: 'by-input',
|
|
@@ -221,6 +239,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '重量/g',
|
|
|
field: 'weight',
|
|
|
component: 'by-input',
|
|
@@ -234,6 +253,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '长/cm',
|
|
|
field: 'length',
|
|
|
component: 'by-input',
|
|
@@ -247,6 +267,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '宽/cm',
|
|
|
field: 'width',
|
|
|
component: 'by-input',
|
|
@@ -260,6 +281,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '高/cm',
|
|
|
field: 'height',
|
|
|
component: 'by-input',
|
|
@@ -273,6 +295,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ width: '110px',
|
|
|
title: '体积/cm³',
|
|
|
field: 'volume',
|
|
|
},
|
|
@@ -298,7 +321,7 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- width: '150px',
|
|
|
+ width: '120px',
|
|
|
title: '副标题',
|
|
|
field: 'skuSubtitle',
|
|
|
component: 'by-input',
|
|
@@ -310,9 +333,9 @@
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- width: '150px',
|
|
|
+ width: '140px',
|
|
|
title: '物料编码',
|
|
|
- field: 'code',
|
|
|
+ field: 'skuCode',
|
|
|
component: 'by-input',
|
|
|
compConfig: {
|
|
|
attr: {
|
|
@@ -512,7 +535,7 @@
|
|
|
{
|
|
|
span: 6,
|
|
|
label: '物料编码',
|
|
|
- prop: 'code',
|
|
|
+ prop: 'materialCode',
|
|
|
component: 'by-input',
|
|
|
compConfig: {
|
|
|
attr: {
|
|
@@ -788,16 +811,16 @@
|
|
|
refresh: true
|
|
|
},
|
|
|
customTools: [
|
|
|
- {
|
|
|
- name: '商品同步', icon: 'el-icon-setting', event:{
|
|
|
- click:()=>{
|
|
|
+ {
|
|
|
+ name: '商品同步', icon: 'el-icon-setting', event: {
|
|
|
+ click: () => {
|
|
|
(this.$refs.synchronousOrderModal as any).setShow(true);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- name: '关联商品', icon: 'el-icon-setting', event:{
|
|
|
- click:()=>{
|
|
|
+ name: '关联商品', icon: 'el-icon-setting', event: {
|
|
|
+ click: () => {
|
|
|
(this.$refs.importProduct as any).setShow(true);
|
|
|
}
|
|
|
}
|
|
@@ -840,15 +863,6 @@
|
|
|
title: '市场价格', // (市场价格统一售价)
|
|
|
field: 'markPrice'
|
|
|
},
|
|
|
- // {
|
|
|
- // title: '价格', // 价格(成交、成本价)
|
|
|
- // field: 'price'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // width: 80,
|
|
|
- // title: '单位',
|
|
|
- // field: 'unit'
|
|
|
- // },
|
|
|
{
|
|
|
width: 120,
|
|
|
title: '操作',
|
|
@@ -879,7 +893,7 @@
|
|
|
}, 500)
|
|
|
}
|
|
|
//商品同步成功
|
|
|
- handleSuccess(){
|
|
|
+ handleSuccess() {
|
|
|
let page = (this.$refs.moduleView as any).getPage();
|
|
|
page.pageNo = 1;
|
|
|
(this.$refs.moduleView as any).setPage(page);
|
|
@@ -887,12 +901,12 @@
|
|
|
}
|
|
|
// 监听单表格数据
|
|
|
getSingleValue(e : any) {
|
|
|
- console.log('监听单表格 ==> ', e);
|
|
|
+ // console.log('监听单表格 ==> ', e);
|
|
|
e.volume = e.length * e.width * e.height
|
|
|
}
|
|
|
// 监听表格数据
|
|
|
getInputValue(e : any) {
|
|
|
- console.log('监听表格 ==> ', e);
|
|
|
+ // console.log('监听表格 ==> ', e);
|
|
|
e.volume = e.length * e.width * e.height
|
|
|
}
|
|
|
// 保存编辑/新增
|
|
@@ -1181,7 +1195,7 @@
|
|
|
setTimeout(() => {
|
|
|
// 设置单表格数据
|
|
|
if (this.singeTable) {
|
|
|
- console.log('单表格数据 ==> ',this.singeTable);
|
|
|
+ console.log('单表格数据 ==> ', this.singeTable);
|
|
|
(this as any).$refs.singeTable.setValue(this.singeTable);
|
|
|
} else (this as any).$refs.singeTable.setValue([{}]);
|
|
|
}, 0)
|