Commit 13297370 authored by 周远喜's avatar 周远喜

post 传参数修改

parent d8148df2
...@@ -489,10 +489,7 @@ export default { ...@@ -489,10 +489,7 @@ export default {
var url = `${designUrl}/technicalcoordination/createorupdate`; var url = `${designUrl}/technicalcoordination/createorupdate`;
service service
.post( .post( `${url}`,{ technicalCoordination: this.formdata } )
`${url}`,
JSON.stringify({ technicalCoordination: this.formdata })
)
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.loadchangelist(); this.loadchangelist();
......
...@@ -485,7 +485,7 @@ export default { ...@@ -485,7 +485,7 @@ export default {
saveOk() { saveOk() {
var url = `${designUrl}/unqualifiedorder/createorupdate`; var url = `${designUrl}/unqualifiedorder/createorupdate`;
service service
.post(`${url}`, JSON.stringify({ unqualifiedOrder: this.formdata })) .post(`${url}`, { unqualifiedOrder: this.formdata })
.then(res => { .then(res => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
......
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
file: this.formItem.file file: this.formItem.file
} }
service service
.post(`${url}`, JSON.stringify({ processRecord: paramsdata })) .post(`${url}`, { processRecord: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.laodaction() this.laodaction()
......
...@@ -34,7 +34,7 @@ export default { ...@@ -34,7 +34,7 @@ export default {
name: 'add', name: 'add',
data() { data() {
return { return {
formValidate: { name: '',upid:'', upname: '',disabled:false }, formValidate: { name: '',upid:'', upname: '',disabled:false ,isProduct:0},
ruleValidate: { ruleValidate: {
name: [{ required: true }] name: [{ required: true }]
}, },
......
...@@ -454,7 +454,7 @@ export default { ...@@ -454,7 +454,7 @@ export default {
} }
var url = `${designUrl}/productinfo/createorupdate`; var url = `${designUrl}/productinfo/createorupdate`;
service service
.post(`${url}`, JSON.stringify({ ProductInfo: this.formValidate0 })) .post(`${url}`, { ProductInfo: this.formValidate0 })
.then(response => { .then(response => {
if (response.success) { if (response.success) {
this.$Message.success("保存成功"); this.$Message.success("保存成功");
...@@ -642,8 +642,7 @@ export default { ...@@ -642,8 +642,7 @@ export default {
this.formValidate1 = this.$refs.addclass.formValidate; this.formValidate1 = this.$refs.addclass.formValidate;
service service
.post( .post(
`${url}`, `${url}`,{ ProductLevel: this.formValidate1 }
JSON.stringify({ ProductLevel: this.formValidate1 })
) )
.then(response => { .then(response => {
if (response.result.status) { if (response.result.status) {
......
...@@ -1504,7 +1504,7 @@ export default { ...@@ -1504,7 +1504,7 @@ export default {
var url = `${PlanUrl}/OrderMaterial/createorupdate` var url = `${PlanUrl}/OrderMaterial/createorupdate`
// JSON.stringify({Process:this.formValidate}) // JSON.stringify({Process:this.formValidate})
service service
.post(`${url}`, JSON.stringify({ orderMaterial: this.formValidate })) .post(`${url}`,{ orderMaterial: this.formValidate })
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
this.$Message.success('保存成功') this.$Message.success('保存成功')
......
...@@ -86,7 +86,6 @@ export default { ...@@ -86,7 +86,6 @@ export default {
user_ids: this.entity.user_ids.join(',') //库管员id user_ids: this.entity.user_ids.join(',') //库管员id
} }
console.log(paramsdata) console.log(paramsdata)
// JSON.stringify({ storeroomLocation: paramsdata })
Api.create({ storeroomLocation: paramsdata }).then( Api.create({ storeroomLocation: paramsdata }).then(
(r) => { (r) => {
this.disabled = false this.disabled = false
......
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
console.log(this.formItem1) console.log(this.formItem1)
console.log(this.formItem2) console.log(this.formItem2)
console.log(this.editId) console.log(this.editId)
service.post(`${url}`, JSON.stringify({ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 })) service.post(`${url}`,{ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
......
...@@ -812,7 +812,7 @@ export default { ...@@ -812,7 +812,7 @@ export default {
}; };
console.log(paramsdata); console.log(paramsdata);
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.changestatus(this.eid); this.changestatus(this.eid);
...@@ -854,7 +854,7 @@ export default { ...@@ -854,7 +854,7 @@ export default {
}; };
console.log(paramsdata); console.log(paramsdata);
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.changestatus(this.eid); this.changestatus(this.eid);
...@@ -1000,7 +1000,7 @@ export default { ...@@ -1000,7 +1000,7 @@ export default {
}; };
console.log(paramsdata); console.log(paramsdata);
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.changestatus(this.eid); this.changestatus(this.eid);
......
...@@ -350,7 +350,7 @@ export default { ...@@ -350,7 +350,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata })) .post(`${url}`, { storeroomLocation: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.laodaction() this.laodaction()
...@@ -391,7 +391,7 @@ export default { ...@@ -391,7 +391,7 @@ export default {
} }
// this.limtList = // this.limtList =
service service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata })) .post(`${url}`,{ storeroomLocation: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.laodaction() this.laodaction()
...@@ -414,7 +414,7 @@ export default { ...@@ -414,7 +414,7 @@ export default {
user_ids: this.formItem02.Storekeeper.join(',') //库管员 user_ids: this.formItem02.Storekeeper.join(',') //库管员
} }
service service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata })) .post(`${url}`, { storeroomLocation: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.laodaction() this.laodaction()
......
...@@ -869,7 +869,7 @@ export default { ...@@ -869,7 +869,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
...@@ -911,7 +911,7 @@ export default { ...@@ -911,7 +911,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
...@@ -1055,7 +1055,7 @@ export default { ...@@ -1055,7 +1055,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
......
...@@ -898,7 +898,7 @@ export default { ...@@ -898,7 +898,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
...@@ -940,7 +940,7 @@ export default { ...@@ -940,7 +940,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
...@@ -1088,7 +1088,7 @@ export default { ...@@ -1088,7 +1088,7 @@ export default {
} }
console.log(paramsdata) console.log(paramsdata)
service service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata })) .post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => { .then((res) => {
if (res.success) { if (res.success) {
this.changestatus(this.eid) this.changestatus(this.eid)
......
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
notes: this.formItem.notes notes: this.formItem.notes
}; };
service service
.post(`${url}`, JSON.stringify({ equipType: paramsdata })) .post(`${url}`,{ equipType: paramsdata })
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.laodaction(); this.laodaction();
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
notes: this.formItem.notes notes: this.formItem.notes
}; };
service service
.post(`${url}`, JSON.stringify({ equipType: paramsdata })) .post(`${url}`,{equipType: paramsdata })
.then(res => { .then(res => {
if (res.success) { if (res.success) {
this.laodaction(); this.laodaction();
......
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