|
@@ -572,6 +572,11 @@
|
|
|
info: {
|
|
info: {
|
|
|
type: Object,
|
|
type: Object,
|
|
|
required: true
|
|
required: true
|
|
|
|
|
+ },
|
|
|
|
|
+ // 工单信息
|
|
|
|
|
+ workOrderInfo: {
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ default: () => {}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
@@ -909,10 +914,10 @@
|
|
|
// 关闭时清理表单
|
|
// 关闭时清理表单
|
|
|
handleClose() {
|
|
handleClose() {
|
|
|
this.addForm = JSON.parse(JSON.stringify(this.formBaseData));
|
|
this.addForm = JSON.parse(JSON.stringify(this.formBaseData));
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.formRef.clearValidate();
|
|
|
|
|
- this.visible = false;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // this.$nextTick(() => {
|
|
|
|
|
+ // this.$refs.formRef.clearValidate();
|
|
|
|
|
+ // this.visible = false;
|
|
|
|
|
+ // });
|
|
|
},
|
|
},
|
|
|
// 构建数据
|
|
// 构建数据
|
|
|
formMateBody() {
|
|
formMateBody() {
|
|
@@ -939,17 +944,18 @@
|
|
|
const body = this.formMateBody();
|
|
const body = this.formMateBody();
|
|
|
|
|
|
|
|
console.log('body', body);
|
|
console.log('body', body);
|
|
|
- const workOrderId = ''
|
|
|
|
|
|
|
+ let workOrderId = ''
|
|
|
if (this.type == 'dispatch') {
|
|
if (this.type == 'dispatch') {
|
|
|
const res = await recordrulesplanManualDispatchOrder(body);
|
|
const res = await recordrulesplanManualDispatchOrder(body);
|
|
|
- workOrderId = res.data || '';
|
|
|
|
|
|
|
+ console.log('res~~~~~~~~~~~~~~~~', res);
|
|
|
|
|
+ workOrderId = res || '';
|
|
|
this.$message.success('派单成功');
|
|
this.$message.success('派单成功');
|
|
|
} else {
|
|
} else {
|
|
|
await recordrulesplanSaveOrUpdate(body);
|
|
await recordrulesplanSaveOrUpdate(body);
|
|
|
this.$message.success('保存成功');
|
|
this.$message.success('保存成功');
|
|
|
}
|
|
}
|
|
|
this.butLoading = false;
|
|
this.butLoading = false;
|
|
|
-
|
|
|
|
|
|
|
+ console.log('workOrderId~~~~~~', workOrderId);
|
|
|
this.$emit('done', workOrderId);
|
|
this.$emit('done', workOrderId);
|
|
|
|
|
|
|
|
this.handleClose();
|
|
this.handleClose();
|