mirror of
https://github.com/shawncai/ERP.git
synced 2024-09-20 15:06:11 +08:00
Merge branch 'master' of https://github.com/shawncai/ERP
This commit is contained in:
commit
319f68acc1
|
@ -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',
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue