diff --git a/src/api/OutSourcing.js b/src/api/OutSourcing.js index 3502617d..85016ee1 100644 --- a/src/api/OutSourcing.js +++ b/src/api/OutSourcing.js @@ -52,10 +52,11 @@ export function searchoutsourcing(query) { } // 修改外包单 -export function updateoutsourcing(query, query2) { +export function updateoutsourcing(query, query2, query3) { var params = new URLSearchParams() params.append('Json', query) // 你要传给后台的参数值 key/value params.append('detailJson', query2) // 你要传给后台的参数值 key/value + params.append('enterDetailJson', query3) // 你要传给后台的参数值 key/value return request({ url: '/outsourcing/update', method: 'post', diff --git a/src/views/OutSourcing/components/MyDialog.vue b/src/views/OutSourcing/components/MyDialog.vue index aa78b975..7e663e5b 100644 --- a/src/views/OutSourcing/components/MyDialog.vue +++ b/src/views/OutSourcing/components/MyDialog.vue @@ -509,7 +509,17 @@ export default { } return elem }) + const EnterDetail2 = this.$refs.editable2.getRecords() + if (EnterDetail2.length === 0) { + this.$notify.error({ + title: 'wrong', + message: this.$t('prompt.nonedetail'), + offset: 100 + }) + return false + } const parms2 = JSON.stringify(EnterDetail) + const parms3 = JSON.stringify(EnterDetail2) const Data = this.personalForm for (const key in Data) { if (Data[key] === '' || Data[key] === undefined || Data[key] === null) { @@ -523,7 +533,7 @@ export default { } } const parms = JSON.stringify(Data) - updateoutsourcing(parms, parms2).then(res => { + updateoutsourcing(parms, parms3, parms2).then(res => { if (res.data.ret === 200) { this.$notify({ title: this.$t('prompt.czcg'),