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

post 传参修改。

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