Commit 919d5834 authored by 李志鸣's avatar 李志鸣

feat(报工点补扫): 报工点补扫弹窗逻辑修改

parent e5e6d35d
......@@ -106,6 +106,12 @@
default: () => {
return {}
}
},
id: {
type: Number,
default: () => {
return {}
}
}
},
watch: {
......@@ -211,7 +217,7 @@
this.loadingToggle = true;
// 获取当前登录人名称
let loginUserName = window.sessionStorage.getItem('Admin-Name');
let params = { ...this.formData, createBy: loginUserName };
let params = { ...this.formData, createBy: loginUserName, id: this.id };
let response = await this.$service('POST', '/pass/savePassInfo', params);
if (Array.isArray(response)) {
this.loadingToggle = false;
......
......@@ -72,6 +72,7 @@
ref="DutyStationMakeUpDialog"
:vin="vin"
:stationName="stationName"
:id="id"
@doDutyStationMakeUpConfirmClick="doDutyStationMakeUpConfirmClick">
</DutyStationMakeUpDialog>
......@@ -124,7 +125,9 @@
// 工单号
vin: '',
// 报工点
stationName: ''
stationName: '',
// 记录id
id: null
}
},
methods: {
......@@ -219,9 +222,11 @@
},
// 点击编辑按钮
doEditClick (dutyStation) {
console.log(dutyStation);
this.$refs.DutyStationMakeUpDialog.dialogToggle = true;
this.vin = dutyStation.vin;
this.stationName = dutyStation.stationName;
this.id = dutyStation.id;
},
// 点击报工点补扫弹窗确认按钮
doDutyStationMakeUpConfirmClick () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment