|
@@ -1226,7 +1226,7 @@
|
|
|
doFormData() {
|
|
|
(this as any).$refs.form.validate().then(() => {
|
|
|
let query = (this as any).$refs.form.getValue();
|
|
|
- console.log('物料信息 ==> ', query);
|
|
|
+ // console.log('物料信息 ==> ', query);
|
|
|
query.materialSpec = this.materialSpec; // 商品规格
|
|
|
query.attributeList = JSON.stringify(this.attributeList) // 物料属性
|
|
|
query.attributeId = this.attributeId // 物料属性ID
|
|
@@ -1240,7 +1240,7 @@
|
|
|
if (query.materialSpec === 1) {
|
|
|
if (this.tableList.length <= 0 || this.attributeList.length <= 0) return (this as any).$message.warning('多规格商品,物料属性不能为空!');
|
|
|
|
|
|
- console.log('多规格表格数据 ==> ', this.tableList);
|
|
|
+ // console.log('多规格表格数据 ==> ', this.tableList);
|
|
|
for (let v of this.tableList) {
|
|
|
// if (!v.price) return this.$message.warning('物料属性价格必填');
|
|
|
// if (parseInt(v.price) <= 0) return this.$message.warning('物料属性价格不能小于1');
|
|
@@ -1328,7 +1328,7 @@
|
|
|
data.maindataMaterialReceiveParam.attributeList = ""
|
|
|
}
|
|
|
if (this.ismakeup === 0) {
|
|
|
- console.log('this.makeupList ==> ', this.makeupList);
|
|
|
+ // console.log('this.makeupList ==> ', this.makeupList);
|
|
|
if (this.makeupList.length <= 0) return this.$message.warning('请选择组合商品');
|
|
|
data.maindataMaterialLinks = this.makeupList;
|
|
|
// 表格删除
|
|
@@ -1338,7 +1338,7 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- console.log('data ==> ', data);
|
|
|
+ // console.log('data ==> ', data);
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
|
if (this.isEdit) { // 编辑
|
|
|
api.updateList(data, 'maindataMaterial').then((res : any) => {
|
|
@@ -1438,7 +1438,7 @@
|
|
|
other.selectByMaterialId({ id: data.id }, 'maindataMaterialSku').then((info : any) => {
|
|
|
if (info.code === 200) {
|
|
|
this.status = data.status
|
|
|
- console.log(data.ismakeup);
|
|
|
+ // console.log(data.ismakeup);
|
|
|
this.ismakeup = data.ismakeup
|
|
|
if (data.ismakeup === 0 && data.maindataMaterialLinks.length > 0) {
|
|
|
(this as any).makeupList = data.maindataMaterialLinks;
|
|
@@ -1487,8 +1487,8 @@
|
|
|
});
|
|
|
this.tableList = (this as any).$lodash.cloneDeep(info.data);
|
|
|
// console.log('表格配置 ==> ', tableConfig);
|
|
|
- console.log('skuRuleList ==> ', skuRuleList);
|
|
|
- console.log('表格数据 ==> ', this.tableList);
|
|
|
+ // console.log('skuRuleList ==> ', skuRuleList);
|
|
|
+ // console.log('表格数据 ==> ', this.tableList);
|
|
|
this.setTableConfig = tableConfig;
|
|
|
this.$nextTick(() => {
|
|
|
(this as any).$refs.table.setConfig(tableConfig); // 设置表格配置
|
|
@@ -1506,7 +1506,7 @@
|
|
|
other.selectByMaterialId({ id: data.id }, 'maindataMaterialSku').then((info : any) => {
|
|
|
if (info.code === 200) {
|
|
|
this.status = data.status
|
|
|
- console.log(data.ismakeup);
|
|
|
+ // console.log(data.ismakeup);
|
|
|
this.ismakeup = data.ismakeup
|
|
|
if (data.ismakeup === 0 && data.maindataMaterialLinks.length > 0) {
|
|
|
(this as any).makeupList = data.maindataMaterialLinks;
|
|
@@ -1540,8 +1540,8 @@
|
|
|
});
|
|
|
this.tableList = (this as any).$lodash.cloneDeep(info.data);
|
|
|
// console.log('表格配置 ==> ', tableConfig);
|
|
|
- console.log('skuRuleList ==> ', skuRuleList);
|
|
|
- console.log('表格数据 ==> ', this.tableList);
|
|
|
+ // console.log('skuRuleList ==> ', skuRuleList);
|
|
|
+ // console.log('表格数据 ==> ', this.tableList);
|
|
|
this.setTableConfig = tableConfig;
|
|
|
this.$nextTick(() => {
|
|
|
(this as any).$refs.table.setConfig(tableConfig); // 设置表格配置
|
|
@@ -1566,7 +1566,7 @@
|
|
|
stime: (this as any).stime,
|
|
|
etime: (this as any).etime
|
|
|
}
|
|
|
- console.log(data)
|
|
|
+ // console.log(data)
|
|
|
api.syncMaterialByKingdeeToOms(data).then((res : any) => {
|
|
|
if(res.code === 200){
|
|
|
(this as any).dateDialogVisible = false;
|
|
@@ -1629,8 +1629,8 @@
|
|
|
field: v.field,
|
|
|
})
|
|
|
});
|
|
|
- console.log('旧表格数据 ==> ', tableList);
|
|
|
- console.log('新表格数据 ==> ', skuRuleList);
|
|
|
+ // console.log('旧表格数据 ==> ', tableList);
|
|
|
+ // console.log('新表格数据 ==> ', skuRuleList);
|
|
|
this.tableList = skuRuleList;
|
|
|
this.setTableConfig = tableConfig;
|
|
|
this.$nextTick(() => {
|
|
@@ -1677,8 +1677,8 @@
|
|
|
field: v.field,
|
|
|
})
|
|
|
});
|
|
|
- console.log('表格配置 ==> ', tableConfig);
|
|
|
- console.log('表格数据 ==> ', skuRuleList);
|
|
|
+ // console.log('表格配置 ==> ', tableConfig);
|
|
|
+ // console.log('表格数据 ==> ', skuRuleList);
|
|
|
this.setTableConfig = tableConfig;
|
|
|
this.tableList = skuRuleList;
|
|
|
this.$nextTick(() => {
|
|
@@ -1691,7 +1691,7 @@
|
|
|
}
|
|
|
// 关联金蝶财务系统物料选择
|
|
|
handleSelectionChange(row: any){
|
|
|
- console.log(row)
|
|
|
+ // console.log(row)
|
|
|
this.tableRadio = row
|
|
|
}
|
|
|
// 关联金蝶财务系统物料列表搜索
|
|
@@ -1819,7 +1819,7 @@
|
|
|
this.$nextTick(() => {
|
|
|
// 设置单表格数据
|
|
|
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([{}]);
|
|
|
});
|
|
@@ -2039,7 +2039,7 @@
|
|
|
clearInterval(this.timer)
|
|
|
let query = (this.$refs.moduleView as any).getQuery();
|
|
|
if (this.categoryIds) query.categoryIds = this.categoryIds;
|
|
|
- console.log('表单字段 ==> ', query);
|
|
|
+ // console.log('表单字段 ==> ', query);
|
|
|
this.getPageList(query)
|
|
|
}
|
|
|
getPageList(query : any) {
|
|
@@ -2076,7 +2076,7 @@
|
|
|
}
|
|
|
// 内页工具栏方法
|
|
|
insideTools(e : any) {
|
|
|
- console.log(e);
|
|
|
+ // console.log(e);
|
|
|
if (e === 'onReturn') this.isShow = 'home';
|
|
|
if (e === 'onSave') this.doFormData();
|
|
|
if (e === 'onDelete') this.pageDelete(this.editInfo);
|
|
@@ -2089,7 +2089,7 @@
|
|
|
type: 'warning',
|
|
|
center: true
|
|
|
}).then((res) => {
|
|
|
- console.log(res)
|
|
|
+ // console.log(res)
|
|
|
let data = (this.$refs.makeupTable as any).getValue();// 获取表格数据
|
|
|
// let i = -1;
|
|
|
// let j = -1;
|
|
@@ -2124,7 +2124,7 @@
|
|
|
// }, 10);
|
|
|
}).catch((err) => {
|
|
|
this.$message.info('已取消删除');
|
|
|
- console.log(err)
|
|
|
+ // console.log(err)
|
|
|
});
|
|
|
}
|
|
|
// 内页删除
|