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

fencang
anthonywj 3 years ago
parent 7519c665a2
commit 1990577d08

@ -703,8 +703,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;

@ -375,7 +375,7 @@ export default {
produceDate: null, produceDate: null,
expireDate: null, expireDate: null,
serialNo: null, serialNo: null,
count:null, count: null,
}, },
formRules: { formRules: {
temp: [ temp: [
@ -686,8 +686,8 @@ export default {
}); });
}, },
repeatAddCode() { repeatAddCode(editCode) {
let tQuery = Object.assign(JSON.parse(JSON.stringify(this.formData))); let tQuery = editCode;
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;

@ -135,8 +135,9 @@ 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) => {
console.log(response) console.log(response)

Loading…
Cancel
Save