|
@@ -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>
|
|
|
+ <vxe-modal v-model="vxeValue" width="48%" height="88%" show-zoom resize transfer show-footer :loading="tableloading">
|
|
|
<template #title>
|
|
|
<span>关联金蝶财务系统物料</span>
|
|
|
</template>
|
|
@@ -139,7 +139,6 @@
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="newtableData"
|
|
|
- v-loading="tableloading"
|
|
|
stripe
|
|
|
border
|
|
|
style="width: 100%"
|
|
@@ -1085,7 +1084,7 @@
|
|
|
},
|
|
|
}
|
|
|
|
|
|
- tableloading = false
|
|
|
+ tableloading = true
|
|
|
tableRadio: any = {}
|
|
|
tableData: any = []
|
|
|
newtableData: any = []
|
|
@@ -1110,7 +1109,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(){
|
|
@@ -1221,9 +1220,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,9 +1267,9 @@
|
|
|
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 = ""
|
|
@@ -1397,10 +1396,13 @@
|
|
|
this.towTable = '' // 表格数据
|
|
|
this.attributeList = []; // 属性规格
|
|
|
this.$nextTick(() => {
|
|
|
- console.log(info.data);
|
|
|
+ // console.log(info.data);
|
|
|
info.data.map((v : any, i : any) => {
|
|
|
- if(v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
- v.weight = parseFloat(v.weight)*1000
|
|
|
+ // 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)
|
|
|
}
|
|
|
});
|
|
|
(this as any).$refs.singeTable.setValue(info.data);
|
|
@@ -1413,8 +1415,11 @@
|
|
|
info.data.map((v : any, i : any) => {
|
|
|
v = Object.assign(v, skuRuleList[i])
|
|
|
v.dataIndex = i
|
|
|
- if(v.weight!='0.00'&&v.weight!=0&&v.weight!='0'){
|
|
|
- v.weight = parseFloat(v.weight)*1000
|
|
|
+ // 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)
|
|
|
}
|
|
|
});
|
|
|
newColumns.map((v : any) => {
|
|
@@ -1658,6 +1663,11 @@
|
|
|
// 打开关联金蝶财务系统物料选择
|
|
|
openVxeData(){
|
|
|
this.vxeValue = true;
|
|
|
+ if(this.tableData.length==0){
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.getFinancialCode();
|
|
|
+ },0)
|
|
|
+ }
|
|
|
}
|
|
|
// 获取关联金蝶财务系统物料列表
|
|
|
getFinancialCode(){
|
|
@@ -1721,7 +1731,6 @@
|
|
|
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;
|