|
@@ -15,6 +15,7 @@
|
|
|
@Component({components:{batchbyOneModal}})
|
|
|
export default class Store extends Vue {
|
|
|
timeNum = 0;
|
|
|
+ calculateCount = 0;
|
|
|
skuInfo : any = ''
|
|
|
storeHouseInfo : any = ''
|
|
|
tableInfo : any = ''
|
|
@@ -29,32 +30,57 @@
|
|
|
},
|
|
|
columns: [
|
|
|
[
|
|
|
+ // {
|
|
|
+ // span: 6,
|
|
|
+ // label: '标题',
|
|
|
+ // prop: 'skuTitle',
|
|
|
+ // component: 'by-input',
|
|
|
+ // // labelWidth: '70px',
|
|
|
+ // compConfig: {
|
|
|
+ // attr: {
|
|
|
+ // placeholder: '请输入标题',
|
|
|
+ // clearable: true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: '标题',
|
|
|
- prop: 'skuTitle',
|
|
|
+ label: '物料编码',
|
|
|
+ prop: 'skuCode',
|
|
|
component: 'by-input',
|
|
|
// labelWidth: '70px',
|
|
|
compConfig: {
|
|
|
attr: {
|
|
|
- placeholder: '请输入标题',
|
|
|
+ placeholder: '请输入物料编码',
|
|
|
clearable: true
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: '物料编码',
|
|
|
- prop: 'skuCode',
|
|
|
+ label: '69码-商品条码',
|
|
|
+ prop: 'barCode',
|
|
|
+ labelWidth: '130px',
|
|
|
component: 'by-input',
|
|
|
- // labelWidth: '70px',
|
|
|
compConfig: {
|
|
|
attr: {
|
|
|
- placeholder: '请输入物料编码',
|
|
|
+ placeholder: '69码-商品条码',
|
|
|
clearable: true
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ span: 6,
|
|
|
+ label: '财务编号',
|
|
|
+ prop: 'accountingCode',
|
|
|
+ component: 'by-input',
|
|
|
+ compConfig: {
|
|
|
+ attr: {
|
|
|
+ placeholder: '请输入财务编号',
|
|
|
+ clearable: true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
]
|
|
|
]
|
|
|
},
|
|
@@ -77,6 +103,7 @@
|
|
|
attr: {
|
|
|
size: 'mini',
|
|
|
align: 'left',
|
|
|
+ height: '620',
|
|
|
checkbox: true,
|
|
|
},
|
|
|
columns: [
|
|
@@ -97,6 +124,16 @@
|
|
|
title: '物料编码',
|
|
|
field: 'skuCode',
|
|
|
},
|
|
|
+ {
|
|
|
+ // width: '140px',
|
|
|
+ title: '69码-商品条码',
|
|
|
+ field: 'barCode',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // width: '140px',
|
|
|
+ title: '财务编号',
|
|
|
+ field: 'accountingCode',
|
|
|
+ }
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -104,8 +141,23 @@
|
|
|
mounted() {
|
|
|
this.timer = setInterval(() => {
|
|
|
this.getDataList()
|
|
|
+ this.initTable();
|
|
|
}, 300)
|
|
|
}
|
|
|
+ // 计算高度
|
|
|
+ initTable() {
|
|
|
+ if (!this.$refs.moduleView) {
|
|
|
+ this.calculateCount++;
|
|
|
+ if (this.calculateCount > 5) return;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.initTable()
|
|
|
+ }, 500)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let tableId : any = (this as any).$refs.moduleView.tableID;
|
|
|
+ this.config.table.attr.height = window.innerHeight - 320;
|
|
|
+ (this as any).$refs.moduleView.$refs[tableId].recalculate();
|
|
|
+ }
|
|
|
//短驳处理
|
|
|
shortBargeHandel(){
|
|
|
let data = (this.$refs.moduleView as any).getSelectData();
|