This commit is contained in:
tczjx58520 2020-04-22 10:37:15 +08:00
commit 319f68acc1
2 changed files with 13 additions and 2 deletions

View file

@ -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',

View file

@ -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'),