Commit ea69a043 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'master' of http://git.mes123.com/zhouyx/mes-ui

parents 311f0bba 37d8ce74
......@@ -101,7 +101,7 @@ export default {
methods: {
initial() {
this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName')
this.bugForm.createor = this.$store.state.userInfo.userName
},
//初始化编辑信息
editeInfo(value) {
......@@ -150,7 +150,7 @@ export default {
pagePath: window.location.href,
content: '',
imgPaths: [],
createor: localStorage.getItem('userName'),
createor: this.$store.state.userInfo.userName,
level: 1,
name: ''
}
......
......@@ -330,9 +330,7 @@ export default {
//选项卡切换
tab(data) {
if (data == '0') {
this.easySearch.creatorUserId.value = JSON.parse(
sessionStorage.getItem('userInfo')
).userId
this.easySearch.creatorUserId.value = this.$store.state.userInfo.userId
} else {
this.easySearch.creatorUserId.value = null
}
......@@ -349,7 +347,7 @@ export default {
//修改事件
addSave() {
let param = this.$refs.edit.addBugInfo()
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
if (param.id != null) {
//增加确定
this.$http.bug.createorupdate(param).then((res) => {
......@@ -373,7 +371,7 @@ export default {
//确定/关闭操作
detailSave() {
let param = this.$refs.detail.addBugInfo()
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id]
if (param.id != null) {
//增加确定
......@@ -398,7 +396,7 @@ export default {
} else {
param = this.$refs.detail.addBugInfo()
}
param.auditUser = localStorage.getItem('userName')
param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id]
param.statusNew = 5
if (param.id != null) {
......@@ -440,7 +438,7 @@ export default {
//this.showBt = false
this.selectBatch = 100
}
this.listBatch.auditUser = localStorage.getItem('userName')
this.listBatch.auditUser = this.$store.state.userInfo.userName
},
//批量操作
statuChange(value) {
......
......@@ -85,7 +85,7 @@ export default {
methods: {
initial() {
this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName')
this.bugForm.createor = this.$store.state.userInfo.userName
},
//初始化编辑信息
editeInfo(value) {
......
......@@ -345,7 +345,7 @@ export default {
//this.showBt = false
this.selectBatch = 100
}
this.listBatch.auditUser = localStorage.getItem('userName')
this.listBatch.auditUser = this.$store.state.userInfo.userName
},
canselFooter() {
this.footerBar = false
......
......@@ -472,7 +472,7 @@ export default {
this.formdata.change_process_file = "";
this.formdata.compilation_temporary_process = "";
this.formdata.inspection_date = "";
this.formdata.inspection_person_name = localStorage.getItem("userName");
this.formdata.inspection_person_name = this.$store.state.userInfo.userName;
this.formdata.status = 1;
this.formdata.note = "";
......@@ -489,10 +489,7 @@ export default {
var url = `${designUrl}/technicalcoordination/createorupdate`;
service
.post(
`${url}`,
JSON.stringify({ technicalCoordination: this.formdata })
)
.post( `${url}`,{ technicalCoordination: this.formdata } )
.then(res => {
if (res.success) {
this.loadchangelist();
......
......@@ -485,7 +485,7 @@ export default {
saveOk() {
var url = `${designUrl}/unqualifiedorder/createorupdate`;
service
.post(`${url}`, JSON.stringify({ unqualifiedOrder: this.formdata }))
.post(`${url}`, { unqualifiedOrder: this.formdata })
.then(res => {
console.log(res);
if (res.success) {
......
......@@ -336,7 +336,7 @@ export default {
file: this.formItem.file
}
service
.post(`${url}`, JSON.stringify({ processRecord: paramsdata }))
.post(`${url}`, { processRecord: paramsdata })
.then((res) => {
if (res.success) {
this.laodaction()
......
......@@ -34,7 +34,7 @@ export default {
name: 'add',
data() {
return {
formValidate: { name: '',upid:'', upname: '',disabled:false },
formValidate: { name: '',upid:'', upname: '',disabled:false ,isProduct:0},
ruleValidate: {
name: [{ required: true }]
},
......
......@@ -90,7 +90,7 @@
</template>
<script>
import treeGrid from "@/components/treeGrid";
import tb from "../../basicData/roleManagent/components/tb";
import tb from "@/components/tb";
import add from "./addclass";
import addProduct from "./addproduct";
import myconfirm from "./components/myconfirm";
......@@ -454,7 +454,7 @@ export default {
}
var url = `${designUrl}/productinfo/createorupdate`;
service
.post(`${url}`, JSON.stringify({ ProductInfo: this.formValidate0 }))
.post(`${url}`, { ProductInfo: this.formValidate0 })
.then(response => {
if (response.success) {
this.$Message.success("保存成功");
......@@ -642,8 +642,7 @@ export default {
this.formValidate1 = this.$refs.addclass.formValidate;
service
.post(
`${url}`,
JSON.stringify({ ProductLevel: this.formValidate1 })
`${url}`,{ ProductLevel: this.formValidate1 }
)
.then(response => {
if (response.result.status) {
......
......@@ -1504,7 +1504,7 @@ export default {
var url = `${PlanUrl}/OrderMaterial/createorupdate`
// JSON.stringify({Process:this.formValidate})
service
.post(`${url}`, JSON.stringify({ orderMaterial: this.formValidate }))
.post(`${url}`,{ orderMaterial: this.formValidate })
.then((response) => {
if (response.success) {
this.$Message.success('保存成功')
......
......@@ -113,7 +113,7 @@ export default {
this.mod.routingHeaderId = entryModel.routingHeaderId
this.mod.routingDetailId = entryModel.routingDetailId
this.mod.checkName = localStorage.getItem('userName')
this.mod.checkName = this.$store.state.userInfo.userName
this.mod.check_Status = 3
this.product_code = ''
this.board_code = ''
......
......@@ -86,7 +86,6 @@ export default {
user_ids: this.entity.user_ids.join(',') //库管员id
}
console.log(paramsdata)
// JSON.stringify({ storeroomLocation: paramsdata })
Api.create({ storeroomLocation: paramsdata }).then(
(r) => {
this.disabled = false
......
......@@ -107,7 +107,7 @@ export default {
},
resource: [],
selectList: [],
libraryTube: localStorage.getItem('userName') //库管员
libraryTube: this.$store.state.userInfo.userName //库管员
}
},
props: {},
......
......@@ -149,7 +149,7 @@ export default {
console.log(this.formItem1)
console.log(this.formItem2)
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) => {
if (res.success) {
......
......@@ -812,7 +812,7 @@ export default {
};
console.log(paramsdata);
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => {
if (res.success) {
this.changestatus(this.eid);
......@@ -854,7 +854,7 @@ export default {
};
console.log(paramsdata);
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => {
if (res.success) {
this.changestatus(this.eid);
......@@ -1000,7 +1000,7 @@ export default {
};
console.log(paramsdata);
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`,{equipMaintainPlan: paramsdata })
.then(res => {
if (res.success) {
this.changestatus(this.eid);
......
......@@ -350,7 +350,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata }))
.post(`${url}`, { storeroomLocation: paramsdata })
.then((res) => {
if (res.success) {
this.laodaction()
......@@ -391,7 +391,7 @@ export default {
}
// this.limtList =
service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata }))
.post(`${url}`,{ storeroomLocation: paramsdata })
.then((res) => {
if (res.success) {
this.laodaction()
......@@ -414,7 +414,7 @@ export default {
user_ids: this.formItem02.Storekeeper.join(',') //库管员
}
service
.post(`${url}`, JSON.stringify({ storeroomLocation: paramsdata }))
.post(`${url}`, { storeroomLocation: paramsdata })
.then((res) => {
if (res.success) {
this.laodaction()
......
......@@ -869,7 +869,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......@@ -911,7 +911,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......@@ -1055,7 +1055,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......
......@@ -898,7 +898,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......@@ -940,7 +940,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......@@ -1088,7 +1088,7 @@ export default {
}
console.log(paramsdata)
service
.post(`${url}`, JSON.stringify({ equipMaintainPlan: paramsdata }))
.post(`${url}`, { equipMaintainPlan: paramsdata })
.then((res) => {
if (res.success) {
this.changestatus(this.eid)
......
......@@ -239,7 +239,7 @@ export default {
notes: this.formItem.notes
};
service
.post(`${url}`, JSON.stringify({ equipType: paramsdata }))
.post(`${url}`,{ equipType: paramsdata })
.then(res => {
if (res.success) {
this.laodaction();
......@@ -264,7 +264,7 @@ export default {
notes: this.formItem.notes
};
service
.post(`${url}`, JSON.stringify({ equipType: paramsdata }))
.post(`${url}`,{equipType: paramsdata })
.then(res => {
if (res.success) {
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