Commit 00540e2a authored by 周远喜's avatar 周远喜

JSON.stringify( 传参bug处理

parent 76833b00
......@@ -781,13 +781,12 @@ export default {
var url = `${systemUrl}/MyUserRole/CreateOrUpdate`
service
.post(
`${url}`,
JSON.stringify({
`${url}`, {
myUserRole: {
userId: this.selectedRow.id,
RoleIds: this.allChecked.join(',')
}
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -383,10 +383,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingQcCard: this.cardModeldata
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -404,7 +404,7 @@ export default {
"equip_type_name": this.formItem.equip_type_name,
"notes": this.formItem.notes,
};
service.post(`${url}`, JSON.stringify({equipType: paramsdata})).then(res=>{
service.post(`${url}`, {equipType: paramsdata}).then(res=>{
if(res.success) {
this.laodaction();
this.$Message.success('编辑成功')
......@@ -427,7 +427,7 @@ export default {
"equip_type_name": this.formItem.equip_type_name,
"notes": this.formItem.notes,
};
service.post(`${url}`, JSON.stringify({equipType: paramsdata})).then(res=>{
service.post(`${url}`, {equipType: paramsdata}).then(res=>{
if(res.success) {
this.laodaction();
this.$Message.success('新增成功')
......
......@@ -131,13 +131,13 @@ export default {
// service
// .post(
// `${url}`,
// JSON.stringify({
// {
// idList: [this.data3[0].id],
// schemaId: '2c921502-41a2-4fa5-b659-71d0e1e19ffc',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// })
// }
// )
// .then((response) => {
// if (response.success) {
......
......@@ -131,14 +131,13 @@ export default {
// service
// .post(
// `${url}`,
// JSON.stringify({
// {
// idList: [this.data3[0].id],
// schemaId: 'd0cdafe3-2341-4499-a4f5-278ef0f30740',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// })
// )
// .then((response) => {
// if (response.success) {
// this.$Message.success('送审成功')
......
......@@ -102,10 +102,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingFile: dataValidate
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -678,15 +678,12 @@ export default {
}
if (a.formValidate.code != null) {
var url = `${designUrl}/routingheader/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingHeaderEntity: a.formValidate,
FileList: filelist
})
)
.then((response) => {
if (response.success) {
if (!next) {
......
......@@ -419,10 +419,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingDetail: this.formprocessValidate
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -335,11 +335,10 @@ this.isadd03=false;
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderBill: this.formValidate,
orderBillLlist: orderBillLlist
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -351,10 +351,10 @@ this.formValidate.product_handover_date =new Date();
service
.post(
`${url}`,
JSON.stringify({
{
orderBill: this.formValidate,
orderBillLlist: orderBillLlist
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -372,7 +372,7 @@ export default {
// "handling_opinions_id": 0,
};
console.log(paramsdata);
service.post(`${url}`, JSON.stringify({routingHeaderChangeorder: paramsdata})).then(res=>{
service.post(`${url}`, {routingHeaderChangeorder: paramsdata}).then(res=>{
if(res.success) {
this.$Message.success('新增成功')
this.modelChange = false;
......@@ -417,7 +417,7 @@ export default {
// "handling_opinions_id": 0,
};
console.log(paramsdata);
service.post(`${url}`, JSON.stringify({routingHeaderChangeorder: paramsdata})).then(res=>{
service.post(`${url}`, {routingHeaderChangeorder: paramsdata}).then(res=>{
if(res.success) {
this.$Message.success('编辑成功')
this.modelChange = false;
......@@ -444,13 +444,13 @@ export default {
// service
// .post(
// `${url}`,
// JSON.stringify({
// {
// idList: [this.data3[0].id],
// schemaId: 'd0cdafe3-2341-4499-a4f5-278ef0f30740',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// })
// }
// )
// .then((response) => {
// if (response.success) {
......@@ -478,13 +478,13 @@ export default {
// service
// .post(
// `${url}`,
// JSON.stringify({
// {
// idList: [this.data3[0].id],
// schemaId: 'd0cdafe3-2341-4499-a4f5-278ef0f30740',
// operatorIdList: this.userlist,
// data: {},
// userId: 0
// })
// }
// )
// .then((response) => {
// if (response.success) {
......
......@@ -163,10 +163,9 @@ let isvalidate = false;
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingStep: this.newModeldata
})
}
)
.then((response) => {
if (response.success) {
......@@ -218,10 +217,9 @@ this.newModeldata.name="";
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingStep: this.data01[index]
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -348,9 +348,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
{
routingQcCard: this.cardModeldata
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -226,10 +226,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderDataReview: this.formValidate
})
}
)
.then((response) => {
console.log(response)
......
......@@ -648,11 +648,10 @@ this.formValidate.productingPreparationPeople=this.productingPreparationPeople;
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderMaterial: this.formValidate,
orderMaterialList: this.formValidate1
})
}
)
.then((response) => {
let itemId = response.result.orderMaterial.id
......
......@@ -1303,14 +1303,13 @@ export default {
if (a.formValidate.code != null) {
let orders = a.dataTop
var url = `${designUrl}/routingheader/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
JSON.stringify({
{
routingHeaderEntity: a.formValidate,
FileList: filelist
})
}
)
.then((response) => {
if (response.success) {
......@@ -1427,13 +1426,11 @@ export default {
}
var url = `${designUrl}/orderrouting/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderRouting: orderRoutingobj
})
}
)
.then((response) => {
if (response.success) {
......@@ -1502,7 +1499,6 @@ export default {
},
saveOK() {
var url = `${PlanUrl}/OrderMaterial/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(`${url}`,{ orderMaterial: this.formValidate })
.then((response) => {
......
......@@ -668,7 +668,6 @@ export default {
}
if (a.formValidate.code != null) {
var url = `${designUrl}/routingheader/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
......
......@@ -225,10 +225,9 @@ this.newModeldata.name="";
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
routingStep: this.data01[index]
})
}
)
.then((response) => {
if (response.success) {
......
......@@ -226,10 +226,9 @@ export default {
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderDataReview: this.formValidate
})
}
)
.then((response) => {
console.log(response)
......
......@@ -648,11 +648,10 @@ this.formValidate.productingPreparationPeople=this.productingPreparationPeople;
service
.post(
`${url}`,
JSON.stringify({
`${url}`,{
orderMaterial: this.formValidate,
orderMaterialList: this.formValidate1
})
}
)
.then((response) => {
let itemId = response.result.orderMaterial.id
......
......@@ -1084,7 +1084,6 @@ export default {
if (a.formValidate.code != null) {
let orders = a.dataTop
var url = `${designUrl}/routingheader/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
......@@ -1206,7 +1205,6 @@ export default {
}
var url = `${designUrl}/orderrouting/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(
`${url}`,
......@@ -1278,7 +1276,6 @@ export default {
saveOK() {
var url = `${PlanUrl}/OrderMaterial/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(`${url}`, { orderMaterial: this.formValidate })
.then((response) => {
......
......@@ -311,7 +311,6 @@ export default {
]
}
let url02 = `${resourceUrl}/materialpowder/itempaged`
// ,JSON.stringify({Dictionary:this.formValidate1})JSON.stringify(parme)
service.post(`${url02}`, parme).then((res) => {
if (res.success && res.result.totalCount != 0) {
this.Powder = res.result.items[0]
......
......@@ -197,7 +197,7 @@ export default {
"eqstyle": str,
};
// console.log(paramsdata);
service.post(`${url}`, JSON.stringify({equipInfo: paramsdata})).then(res=>{
service.post(`${url}`, {equipInfo: paramsdata}).then(res=>{
if(res.success) {
this.$emit('getMessage');
this.modalShow=false;
......@@ -229,7 +229,7 @@ export default {
"eqstyle": str,
};
//console.log(this.formItem.equip_type);
service.post(`${url}`, JSON.stringify({equipInfo: paramsdata})).then(res=>{
service.post(`${url}`, {equipInfo: paramsdata}).then(res=>{
if(res.success) {
this.$emit('getMessage');
this.modalShow=false;
......
......@@ -224,7 +224,7 @@ export default {
"capability_value":this.formItem.capability_value,
};
// console.log(paramsdata);
service.post(`${url}`, JSON.stringify({equipInfo: paramsdata})).then(res=>{
service.post(`${url}`, {equipInfo: paramsdata}).then(res=>{
if(res.success) {
this.$emit('getMessage');
this.modalShow=false;
......@@ -260,7 +260,7 @@ export default {
};
//console.log(this.formItem.equip_type);
service.post(`${url}`, JSON.stringify({equipInfo: paramsdata})).then(res=>{
service.post(`${url}`, {equipInfo: paramsdata}).then(res=>{
if(res.success) {
this.$emit('getMessage');
this.modalShow=false;
......
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