|
|
|
@ -545,7 +545,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
submitOrderWeb(tQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
this.closeDialog();
|
|
|
|
@ -600,7 +599,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
enterKey(event) {
|
|
|
|
|
console.log("开始回车");
|
|
|
|
|
this.checkSuccess = true;
|
|
|
|
|
let tQuery = {
|
|
|
|
|
originCode: this.originCode,
|
|
|
|
@ -687,7 +685,6 @@ export default {
|
|
|
|
|
this.formData.corpOrderId = parseTime(date, '{y}{m}{d}{h}{i}{s}') + Math.ceil(Math.random() * 89 + 10);
|
|
|
|
|
}
|
|
|
|
|
this.formData.code = this.formData.code.trim();
|
|
|
|
|
console.log(this.formData.code);
|
|
|
|
|
if (this.$isBlank(this.formData.code)) return;
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
|
|
|
@ -785,7 +782,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
unitChange(row) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
this.formData.fromCorpId = row.erpId;
|
|
|
|
|
this.formData.fromCorp = row.name;
|
|
|
|
|
this.curRow = row;
|
|
|
|
@ -797,7 +793,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteCode(index, row) {
|
|
|
|
|
console.log(row.id)
|
|
|
|
|
this.$confirm("是否确定移除一个条码?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
@ -891,7 +886,6 @@ export default {
|
|
|
|
|
this.findSubInvByInv(this.formData.locStorageCode);
|
|
|
|
|
},
|
|
|
|
|
findMethod(query) {
|
|
|
|
|
console.log(query);
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
key: query,
|
|
|
|
@ -991,9 +985,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getActionItem(action) {
|
|
|
|
|
console.log("-----")
|
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
|
console.log(this.busTypes[i].action + "--" + action)
|
|
|
|
|
if (this.busTypes[i].action == action) {
|
|
|
|
|
return this.busTypes[i];
|
|
|
|
|
}
|
|
|
|
@ -1017,12 +1009,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
//绑定数据
|
|
|
|
|
bindRl(val) {
|
|
|
|
|
console.log("curRow.erpId = " + val.id);
|
|
|
|
|
this.curRow = val;
|
|
|
|
|
this.selectRlVisible = true;
|
|
|
|
|
},
|
|
|
|
|
handleUnitClick(row) {
|
|
|
|
|
console.log("curRow.erpId = " + row.id);
|
|
|
|
|
this.curRow = row;
|
|
|
|
|
this.dialogTableVisible = true;
|
|
|
|
|
},
|
|
|
|
@ -1031,7 +1021,6 @@ export default {
|
|
|
|
|
id: this.curRow.id,
|
|
|
|
|
supId: row.erpId,
|
|
|
|
|
};
|
|
|
|
|
console.log("row.erpId = " + row.erpId);
|
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
@ -1052,7 +1041,6 @@ export default {
|
|
|
|
|
relId: row.id,
|
|
|
|
|
mySupId: row.unitFk,
|
|
|
|
|
};
|
|
|
|
|
console.log("row.relId = " + row.id);
|
|
|
|
|
updateCodeBindSup(query).then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("绑定成功");
|
|
|
|
@ -1073,7 +1061,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
closeBindDialog(val) {
|
|
|
|
|
console.log("closeBindDialog" + val);
|
|
|
|
|
this.selectRlVisible = false;
|
|
|
|
|
this.dialogTableVisible = false;
|
|
|
|
|
},
|
|
|
|
@ -1115,7 +1102,6 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
that.formData.code = text;
|
|
|
|
|
console.log(" that.formData.code = " + that.formData.code);
|
|
|
|
|
// setTimeout(function(){ that.formData.code = text; }, 3000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|