|
@@ -1652,30 +1652,29 @@ export default {
|
|
this.$set(this.optionContactsBack, 'disabled', true)
|
|
this.$set(this.optionContactsBack, 'disabled', true)
|
|
this.$refs["form"].validate((valid, done) => {
|
|
this.$refs["form"].validate((valid, done) => {
|
|
done();
|
|
done();
|
|
- console.log(valid);
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
submit({
|
|
submit({
|
|
bsType: "XS",
|
|
bsType: "XS",
|
|
...this.form
|
|
...this.form
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- console.log(1);
|
|
|
|
this.refresh(res.data.data.id)
|
|
this.refresh(res.data.data.id)
|
|
this.isDisabledTask = false
|
|
this.isDisabledTask = false
|
|
generateShipTask(this.form).then(res => {
|
|
generateShipTask(this.form).then(res => {
|
|
console.log(res.data);
|
|
console.log(res.data);
|
|
|
|
+ this.$message.success("生成出库任务成功");
|
|
// 将按钮文本更改为"撤销任务"
|
|
// 将按钮文本更改为"撤销任务"
|
|
this.buttonText = '撤销任务';
|
|
this.buttonText = '撤销任务';
|
|
// 将按钮颜色更改为对应的颜色
|
|
// 将按钮颜色更改为对应的颜色
|
|
this.buttonColor = 'warning'; // 比如改为warning
|
|
this.buttonColor = 'warning'; // 比如改为warning
|
|
this.refreshs(res.data.data.id, true)
|
|
this.refreshs(res.data.data.id, true)
|
|
this.isContacts = true
|
|
this.isContacts = true
|
|
- this.$message.success("生成出库任务成功");
|
|
|
|
this.isApplySettlement = false
|
|
this.isApplySettlement = false
|
|
this.isAdd = true
|
|
this.isAdd = true
|
|
this.isDisabled = true
|
|
this.isDisabled = true
|
|
this.isAddBtn = true
|
|
this.isAddBtn = true
|
|
this.editButton = true // 把编辑按钮显示出来
|
|
this.editButton = true // 把编辑按钮显示出来
|
|
- }).finally(() => {
|
|
|
|
|
|
+ loading.close();
|
|
|
|
+ }).catch(() => {
|
|
loading.close();
|
|
loading.close();
|
|
});
|
|
});
|
|
}).catch(() => {
|
|
}).catch(() => {
|