|
|
|
@ -272,14 +272,15 @@ export default { |
|
|
|
methods: { |
|
|
|
async init (scheduleData) { |
|
|
|
this.pageData = { |
|
|
|
site: scheduleData.site || '', |
|
|
|
site: scheduleData.site || (this.$store.state.user && this.$store.state.user.site) || '', |
|
|
|
orderNo: scheduleData.orderNo || '', |
|
|
|
itemNo: scheduleData.itemNo || '', |
|
|
|
seqNo: scheduleData.seqNo || '', |
|
|
|
resourceId: scheduleData.resourceId || '', |
|
|
|
resourceDesc: scheduleData.resourceDesc || '', |
|
|
|
shiftNo: scheduleData.shiftNo || '', |
|
|
|
scheduledDate: scheduleData.scheduledDate || '' |
|
|
|
scheduledDate: scheduleData.scheduledDate || '', |
|
|
|
buNo: scheduleData.buNo || '' |
|
|
|
} |
|
|
|
|
|
|
|
this.uploadForm.machineNo = scheduleData.resourceId || scheduleData.resourceDesc || '' |
|
|
|
@ -512,6 +513,9 @@ export default { |
|
|
|
const shiftValue = this.getShiftValueForApi() |
|
|
|
this.uploadForm.date = currentDate |
|
|
|
const params = { |
|
|
|
site: this.pageData.site, |
|
|
|
buNo: this.pageData.buNo, |
|
|
|
seqNo: this.pageData.seqNo, |
|
|
|
machineNo: this.uploadForm.machineNo, |
|
|
|
date: currentDate, |
|
|
|
shift: shiftValue, |
|
|
|
@ -787,6 +791,9 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
const formData = new FormData() |
|
|
|
formData.append('site', this.pageData.site || (this.$store.state.user && this.$store.state.user.site) || '') |
|
|
|
formData.append('buNo', this.pageData.buNo || '') |
|
|
|
formData.append('seqNo', this.pageData.seqNo || '') |
|
|
|
formData.append('process', commonPayload.process) |
|
|
|
formData.append('machineNo', commonPayload.machineNo) |
|
|
|
formData.append('date', commonPayload.currentDate) |
|
|
|
|