|
@@ -276,7 +276,7 @@
|
|
columns: [
|
|
columns: [
|
|
{
|
|
{
|
|
// width: '150px',
|
|
// width: '150px',
|
|
- title: '标题',
|
|
|
|
|
|
+ title: '标题(必填项)',
|
|
field: 'skuTitle',
|
|
field: 'skuTitle',
|
|
component: 'by-input',
|
|
component: 'by-input',
|
|
compConfig: {
|
|
compConfig: {
|
|
@@ -300,7 +300,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
// width: '150px',
|
|
// width: '150px',
|
|
- title: '物料编码',
|
|
|
|
|
|
+ title: '物料编码(必填项)',
|
|
field: 'skuCode',
|
|
field: 'skuCode',
|
|
component: 'by-input',
|
|
component: 'by-input',
|
|
compConfig: {
|
|
compConfig: {
|
|
@@ -471,7 +471,7 @@
|
|
columns: [
|
|
columns: [
|
|
{
|
|
{
|
|
width: '160px',
|
|
width: '160px',
|
|
- title: '标题',
|
|
|
|
|
|
+ title: '标题(必填项)',
|
|
field: 'skuTitle',
|
|
field: 'skuTitle',
|
|
component: 'by-input',
|
|
component: 'by-input',
|
|
compConfig: {
|
|
compConfig: {
|
|
@@ -495,7 +495,7 @@
|
|
},
|
|
},
|
|
{
|
|
{
|
|
width: '140px',
|
|
width: '140px',
|
|
- title: '物料编码',
|
|
|
|
|
|
+ title: '物料编码(必填项)',
|
|
field: 'skuCode',
|
|
field: 'skuCode',
|
|
component: 'by-input',
|
|
component: 'by-input',
|
|
compConfig: {
|
|
compConfig: {
|
|
@@ -1107,7 +1107,7 @@
|
|
this.tableSearchForm.stime = '2020-01-01';
|
|
this.tableSearchForm.stime = '2020-01-01';
|
|
this.tableSearchForm.etime = y+'-'+m+'-'+d;
|
|
this.tableSearchForm.etime = y+'-'+m+'-'+d;
|
|
this.etime = y+'-'+m+'-'+d;
|
|
this.etime = y+'-'+m+'-'+d;
|
|
- // this.getFinancialCode()
|
|
|
|
|
|
+ this.getFinancialCode()
|
|
this.getTreeList();
|
|
this.getTreeList();
|
|
}
|
|
}
|
|
getTreeList(){
|
|
getTreeList(){
|
|
@@ -1216,6 +1216,8 @@
|
|
// if (parseInt(v.width) <= 0) return this.$message.warning('物料属性宽度不能小于1');
|
|
// if (parseInt(v.width) <= 0) return this.$message.warning('物料属性宽度不能小于1');
|
|
// if (!v.height) return this.$message.warning('物料属性高度必填');
|
|
// if (!v.height) return this.$message.warning('物料属性高度必填');
|
|
// if (parseInt(v.height) <= 0) return this.$message.warning('物料属性高度不能小于1');
|
|
// if (parseInt(v.height) <= 0) return this.$message.warning('物料属性高度不能小于1');
|
|
|
|
+ if (!v.skuTitle) return this.$message.warning('物料标题必填');
|
|
|
|
+ if (!v.skuCode) return this.$message.warning('物料编码必填');
|
|
if(v.weight&&v.weight!=0){
|
|
if(v.weight&&v.weight!=0){
|
|
v.weight = v.weight/1000
|
|
v.weight = v.weight/1000
|
|
}
|
|
}
|
|
@@ -1260,6 +1262,8 @@
|
|
// if (parseInt(v.width) <= 0) return this.$message.warning('物料宽不能小于1');
|
|
// if (parseInt(v.width) <= 0) return this.$message.warning('物料宽不能小于1');
|
|
// if (!v.height) return this.$message.warning('物料高必填');
|
|
// if (!v.height) return this.$message.warning('物料高必填');
|
|
// if (parseInt(v.height) <= 0) return this.$message.warning('物料高不能小于1');
|
|
// if (parseInt(v.height) <= 0) return this.$message.warning('物料高不能小于1');
|
|
|
|
+ if (!v.skuTitle) return this.$message.warning('物料标题必填');
|
|
|
|
+ if (!v.skuCode) return this.$message.warning('物料编码必填');
|
|
|
|
|
|
if(v.weight&&v.weight!=0){
|
|
if(v.weight&&v.weight!=0){
|
|
v.weight = v.weight/1000
|
|
v.weight = v.weight/1000
|
|
@@ -1655,7 +1659,7 @@
|
|
// 获取关联金蝶财务系统物料列表
|
|
// 获取关联金蝶财务系统物料列表
|
|
getFinancialCode(){
|
|
getFinancialCode(){
|
|
this.tableloading = true;
|
|
this.tableloading = true;
|
|
- api.syncMaterialByKingdeeToOms(this.tableSearchForm).then((res : any) => {
|
|
|
|
|
|
+ api.getFinancialCode(this.tableSearchForm).then((res : any) => {
|
|
if(res.code==200){
|
|
if(res.code==200){
|
|
this.tableloading = false;
|
|
this.tableloading = false;
|
|
this.tableData = res.data
|
|
this.tableData = res.data
|