手动修改批次号不生效问题

fengcang
anthonyywj2 3 years ago
parent 8565e20c0c
commit e3bf58b980

@ -685,7 +685,7 @@ export default {
return; return;
} }
if(this.curAction.corpType ==1){ if (this.curAction.corpType == 1) {
if (this.$isBlank(this.formData.fromSubInvCode)) { if (this.$isBlank(this.formData.fromSubInvCode)) {
this.$message.error('当前往来分库不能为空'); this.$message.error('当前往来分库不能为空');
return; return;
@ -709,8 +709,8 @@ export default {
this.$refs.inputRef.select(); this.$refs.inputRef.select();
}, },
repeatAddCode() { repeatAddCode(editData) {
let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); let tQuery = editData;
tQuery.orderId = this.idQuery.id; tQuery.orderId = this.idQuery.id;
tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}'); tQuery.actDate = parseTime(this.formData.actDate, '{y}-{m}-{d} {h}:{i}:{s}');
tQuery.action = this.formData.action; tQuery.action = this.formData.action;

@ -134,7 +134,7 @@ export default {
methods: { methods: {
saveCode() { saveCode() {
if (this.editTye == 1) { if (this.editTye == 1) {
this.repeatAddCode(); this.repeatAddCode(this.editData);
} else { } else {
saveCode(this.editData) saveCode(this.editData)
.then((response) => { .then((response) => {

Loading…
Cancel
Save