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

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

parent e5e6d35d
...@@ -106,6 +106,12 @@ ...@@ -106,6 +106,12 @@
default: () => { default: () => {
return {} return {}
} }
},
id: {
type: Number,
default: () => {
return {}
}
} }
}, },
watch: { watch: {
...@@ -211,7 +217,7 @@ ...@@ -211,7 +217,7 @@
this.loadingToggle = true; this.loadingToggle = true;
// 获取当前登录人名称 // 获取当前登录人名称
let loginUserName = window.sessionStorage.getItem('Admin-Name'); 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); let response = await this.$service('POST', '/pass/savePassInfo', params);
if (Array.isArray(response)) { if (Array.isArray(response)) {
this.loadingToggle = false; this.loadingToggle = false;
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
ref="DutyStationMakeUpDialog" ref="DutyStationMakeUpDialog"
:vin="vin" :vin="vin"
:stationName="stationName" :stationName="stationName"
:id="id"
@doDutyStationMakeUpConfirmClick="doDutyStationMakeUpConfirmClick"> @doDutyStationMakeUpConfirmClick="doDutyStationMakeUpConfirmClick">
</DutyStationMakeUpDialog> </DutyStationMakeUpDialog>
...@@ -124,7 +125,9 @@ ...@@ -124,7 +125,9 @@
// 工单号 // 工单号
vin: '', vin: '',
// 报工点 // 报工点
stationName: '' stationName: '',
// 记录id
id: null
} }
}, },
methods: { methods: {
...@@ -219,9 +222,11 @@ ...@@ -219,9 +222,11 @@
}, },
// 点击编辑按钮 // 点击编辑按钮
doEditClick (dutyStation) { doEditClick (dutyStation) {
console.log(dutyStation);
this.$refs.DutyStationMakeUpDialog.dialogToggle = true; this.$refs.DutyStationMakeUpDialog.dialogToggle = true;
this.vin = dutyStation.vin; this.vin = dutyStation.vin;
this.stationName = dutyStation.stationName; this.stationName = dutyStation.stationName;
this.id = dutyStation.id;
}, },
// 点击报工点补扫弹窗确认按钮 // 点击报工点补扫弹窗确认按钮
doDutyStationMakeUpConfirmClick () { 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