|
|
@ -545,7 +545,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
submitOrderWeb(tQuery)
|
|
|
|
submitOrderWeb(tQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
this.closeDialog();
|
|
|
|
this.closeDialog();
|
|
|
@ -698,7 +697,6 @@ export default {
|
|
|
|
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
|
|
|
|
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.formData.code = this.formData.code.trim();
|
|
|
|
this.formData.code = this.formData.code.trim();
|
|
|
|
console.log(this.formData.code);
|
|
|
|
|
|
|
|
if (this.$isBlank(this.formData.code)) return;
|
|
|
|
if (this.$isBlank(this.formData.code)) return;
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
|
|
@ -796,7 +794,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
unitChange(row) {
|
|
|
|
unitChange(row) {
|
|
|
|
console.log(row);
|
|
|
|
|
|
|
|
this.formData.fromCorpId = row.erpId;
|
|
|
|
this.formData.fromCorpId = row.erpId;
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
this.curRow = row;
|
|
|
|
this.curRow = row;
|
|
|
@ -809,7 +806,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteCode(index, row) {
|
|
|
|
deleteCode(index, row) {
|
|
|
|
console.log(row.id)
|
|
|
|
|
|
|
|
this.$confirm("是否确定移除一个条码?", "提示", {
|
|
|
|
this.$confirm("是否确定移除一个条码?", "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: "取消",
|
|
|
@ -915,7 +911,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
findMethod(query) {
|
|
|
|
findMethod(query) {
|
|
|
|
console.log(query);
|
|
|
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
this.fromOptions = [];
|
|
|
|
let cQuery = {
|
|
|
|
let cQuery = {
|
|
|
|
key: query,
|
|
|
|
key: query,
|
|
|
@ -1022,9 +1017,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
getActionItem(action) {
|
|
|
|
getActionItem(action) {
|
|
|
|
console.log("-----")
|
|
|
|
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
console.log(this.busTypes[i].action + "--" + action)
|
|
|
|
|
|
|
|
if (this.busTypes[i].action == action) {
|
|
|
|
if (this.busTypes[i].action == action) {
|
|
|
|
return this.busTypes[i];
|
|
|
|
return this.busTypes[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1045,13 +1038,11 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
//绑定数据
|
|
|
|
//绑定数据
|
|
|
|
bindRl(val) {
|
|
|
|
bindRl(val) {
|
|
|
|
console.log("curRow.erpId = " + val.id);
|
|
|
|
|
|
|
|
this.curRow = val;
|
|
|
|
this.curRow = val;
|
|
|
|
this.selectRlVisible = true;
|
|
|
|
this.selectRlVisible = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
handleUnitClick(row) {
|
|
|
|
handleUnitClick(row) {
|
|
|
|
console.log("curRow.erpId = " + row.id);
|
|
|
|
|
|
|
|
this.curRow = row;
|
|
|
|
this.curRow = row;
|
|
|
|
this.dialogTableVisible = true;
|
|
|
|
this.dialogTableVisible = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1061,7 +1052,6 @@ export default {
|
|
|
|
id: this.curRow.id,
|
|
|
|
id: this.curRow.id,
|
|
|
|
supId: row.erpId,
|
|
|
|
supId: row.erpId,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log("row.erpId = " + row.erpId);
|
|
|
|
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
this.$message.success("绑定成功");
|
|
|
@ -1083,7 +1073,6 @@ export default {
|
|
|
|
relId: row.id,
|
|
|
|
relId: row.id,
|
|
|
|
mySupId: row.unitFk,
|
|
|
|
mySupId: row.unitFk,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log("row.relId = " + row.id);
|
|
|
|
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
this.$message.success("绑定成功");
|
|
|
@ -1105,7 +1094,6 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
closeBindDialog(val) {
|
|
|
|
closeBindDialog(val) {
|
|
|
|
console.log("closeBindDialog" + val);
|
|
|
|
|
|
|
|
this.selectRlVisible = false;
|
|
|
|
this.selectRlVisible = false;
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1150,7 +1138,6 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
that.formData.code = text;
|
|
|
|
that.formData.code = text;
|
|
|
|
console.log(" that.formData.code = " + that.formData.code);
|
|
|
|
|
|
|
|
// setTimeout(function(){ that.formData.code = text; }, 3000);
|
|
|
|
// setTimeout(function(){ that.formData.code = text; }, 3000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|