|
@@ -113,7 +113,7 @@
|
|
|
<!-- 选择物料 -->
|
|
|
<productModal ref="product" :mulit="true" @confirm="confirmProduct" />
|
|
|
|
|
|
- <vxe-modal v-model="vxeValue" width="48%" height="88%" show-zoom resize transfer show-footer :loading="tableloading">
|
|
|
+ <vxe-modal v-model="vxeValue" width="48%" height="88%" show-zoom resize transfer show-footer>
|
|
|
<template #title>
|
|
|
<span>关联金蝶财务系统物料</span>
|
|
|
</template>
|
|
@@ -139,6 +139,7 @@
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="newtableData"
|
|
|
+ v-loading="tableloading"
|
|
|
stripe
|
|
|
border
|
|
|
style="width: 100%"
|
|
@@ -722,9 +723,6 @@
|
|
|
name: [{
|
|
|
required: true, message: '请输入名称', trigger: 'blur'
|
|
|
}],
|
|
|
- // materialCode: [{
|
|
|
- // required: true, message: '请输入物料编码', trigger: 'blur'
|
|
|
- // }],
|
|
|
basePrice: [{
|
|
|
required: true, message: '请输入基本售价', trigger: 'blur'
|
|
|
}],
|
|
@@ -1088,7 +1086,7 @@
|
|
|
},
|
|
|
}
|
|
|
|
|
|
- tableloading = true
|
|
|
+ tableloading = false
|
|
|
tableRadio: any = {}
|
|
|
tableData: any = []
|
|
|
newtableData: any = []
|
|
@@ -1113,7 +1111,7 @@
|
|
|
this.tableSearchForm.stime = '2020-01-01';
|
|
|
this.tableSearchForm.etime = y+'-'+m+'-'+d;
|
|
|
this.etime = y+'-'+m+'-'+d;
|
|
|
- // this.getFinancialCode()
|
|
|
+ this.getFinancialCode()
|
|
|
this.getTreeList();
|
|
|
}
|
|
|
getTreeList(){
|
|
@@ -1224,9 +1222,9 @@
|
|
|
// 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){
|
|
|
- // v.weight = v.weight/1000
|
|
|
- // }
|
|
|
+ if(v.weight&&v.weight!=0){
|
|
|
+ v.weight = v.weight/1000
|
|
|
+ }
|
|
|
};
|
|
|
data = { maindataMaterialReceiveParam: query, maindataMaterialSkus: this.tableList }
|
|
|
let newArray : any = []
|
|
@@ -1268,12 +1266,12 @@
|
|
|
// if (parseInt(v.width) <= 0) return this.$message.warning('物料宽不能小于1');
|
|
|
// if (!v.height) return this.$message.warning('物料高必填');
|
|
|
// 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.skuTitle) return this.$message.warning('物料标题必填');
|
|
|
+ if (!v.skuCode) return this.$message.warning('物料编码必填');
|
|
|
|
|
|
- // if(v.weight&&v.weight!=0){
|
|
|
- // v.weight = v.weight/1000
|
|
|
- // }
|
|
|
+ if(v.weight&&v.weight!=0){
|
|
|
+ v.weight = v.weight/1000
|
|
|
+ }
|
|
|
};
|
|
|
data.maindataMaterialSkus[0].isDeleted = 0;
|
|
|
data.maindataMaterialReceiveParam.attributeList = ""
|
|
@@ -1400,13 +1398,10 @@
|
|
|
this.towTable = '' // 表格数据
|
|
|
this.attributeList = []; // 属性规格
|
|
|
this.$nextTick(() => {
|
|
|
- // console.log(info.data);
|
|
|
+ console.log(info.data);
|
|
|
info.data.map((v : any, i : any) => {
|
|
|
- // if(v.volume&&v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
- // v.weight = parseFloat(v.weight)*1000
|
|
|
- // }
|
|
|
- if(v.volume&&v.volume!='0.00'&&v.volume!=0&&v.volume!='0'){
|
|
|
- v.volume = parseFloat(v.volume).toFixed(2)
|
|
|
+ if(v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
+ v.weight = parseFloat(v.weight)*1000
|
|
|
}
|
|
|
});
|
|
|
(this as any).$refs.singeTable.setValue(info.data);
|
|
@@ -1419,11 +1414,8 @@
|
|
|
info.data.map((v : any, i : any) => {
|
|
|
v = Object.assign(v, skuRuleList[i])
|
|
|
v.dataIndex = i
|
|
|
- // if(v.volume&&v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
- // v.weight = parseFloat(v.weight)*1000
|
|
|
- // }
|
|
|
- if(v.volume&&v.volume!='0.00'&&v.volume!=0&&v.volume!='0'){
|
|
|
- v.volume = parseFloat(v.volume).toFixed(2)
|
|
|
+ if(v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
+ v.weight = parseFloat(v.weight)*1000
|
|
|
}
|
|
|
});
|
|
|
newColumns.map((v : any) => {
|
|
@@ -1667,11 +1659,6 @@
|
|
|
// 打开关联金蝶财务系统物料选择
|
|
|
openVxeData(){
|
|
|
this.vxeValue = true;
|
|
|
- if(this.tableData.length==0){
|
|
|
- setTimeout(()=>{
|
|
|
- this.getFinancialCode();
|
|
|
- },0)
|
|
|
- }
|
|
|
}
|
|
|
// 获取关联金蝶财务系统物料列表
|
|
|
getFinancialCode(){
|
|
@@ -1735,6 +1722,7 @@
|
|
|
val[0].unit = this.tableRadio.fbaseUnitName;
|
|
|
val[0].unitCode = this.tableRadio.fbaseUnitCode;
|
|
|
}
|
|
|
+ console.log(222,val);
|
|
|
(this as any).$refs.singeTable.setValue(val);
|
|
|
(this as any).$refs.form.setValue(val2);
|
|
|
this.vxeValue = false;
|