Commit 76833b00 authored by 康振飞's avatar 康振飞

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents 4a0711ab 679bd482
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
}, },
selectAll(status) { selectAll(status) {
this.$refs.table.selectAll(status) this.$refs.table.selectAll(status)
} },
}, },
computed: { computed: {
columnsNow() { columnsNow() {
......
...@@ -897,7 +897,7 @@ export default { ...@@ -897,7 +897,7 @@ export default {
part_task_pk: '计划编号', part_task_pk: '计划编号',
priority: '优先级', priority: '优先级',
plan_qty: '排产数量', plan_qty: '排产数量',
spare_qty: '', spare_qty: '备件数量',
plan_start: '计划排产开始', plan_start: '计划排产开始',
plan_finish: '计划排产结束', plan_finish: '计划排产结束',
notes: '备注', notes: '备注',
......
...@@ -422,7 +422,7 @@ export default { ...@@ -422,7 +422,7 @@ export default {
l(key) { l(key) {
let vkey = "mes_op_task_plan_simulate" + "." + key; let vkey = "mes_op_task_plan_simulate" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
} },
} }
}; };
</script> </script>
......
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
title: this.l("plan_start"), title: this.l("plan_start"),
align: "center", align: "center",
high: true, high: true,
hide: true,
resizable: true, resizable: true,
width: 140 width: 140
}, },
...@@ -163,6 +164,7 @@ export default { ...@@ -163,6 +164,7 @@ export default {
title: this.l("plan_finish"), title: this.l("plan_finish"),
align: "center", align: "center",
high: true, high: true,
hide: true,
sortable: true, sortable: true,
resizable: true, resizable: true,
width: 140 width: 140
...@@ -179,9 +181,8 @@ export default { ...@@ -179,9 +181,8 @@ export default {
key: "demand_start", key: "demand_start",
title: this.l("demand_start"), title: this.l("demand_start"),
align: "center", align: "center",
hide: true,
resizable: true, resizable: true,
width: 100 width: 140
}, },
{ {
key: "demand_finish", key: "demand_finish",
...@@ -195,7 +196,8 @@ export default { ...@@ -195,7 +196,8 @@ export default {
key: "badjustflag", key: "badjustflag",
title: this.l("badjustflag"), title: this.l("badjustflag"),
align: "left", align: "left",
high: true high: true,
hide:true,
}, },
{ {
title: "操作", title: "操作",
...@@ -368,19 +370,27 @@ export default { ...@@ -368,19 +370,27 @@ export default {
Api.orderpriority(parmsOrderpriority).then(res => { Api.orderpriority(parmsOrderpriority).then(res => {
if (res.success) { if (res.success) {
if (res.result) { if (res.result) {
this.$Message.success("排序成功"); //this.$Message.success("排序成功");
//apsp排产前检查 //apsp排产前检查
Api.apsdatachecked().then(res1 => { Api.apsdatachecked().then(res1 => {
if (res1.success) { if (res1.success) {
if (res1.result.res) { if (res1.result.res) {
this.$Message.success("数据校验成功"); // this.$Message.success("数据校验成功");
//排产计算 //排产计算
let paramsTime = { let paramsTime = {
setTime: this.entity.setTime setTime: this.entity.setTime
}; };
Api.apsprepareandcalc(paramsTime).then(res2 => { Api.apsprepareandcalc(paramsTime).then(res2 => {
if (res2.success) { if (res2.success) {
if (res2.result.res) {
this.$Message.success("排产计算成功"); this.$Message.success("排产计算成功");
this.$router.push({
name: "aps-results"
// params: { customerId: id }
});
} else {
this.$Message.error(res2.result.msg);
}
} else { } else {
this.$Message.error("操作失败:排产计算"); this.$Message.error("操作失败:排产计算");
} }
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
methods: { methods: {
initial() { initial() {
this.bugForm.pagePath = window.location.href this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName') this.bugForm.createor = this.$store.state.userInfo.userName
}, },
//初始化编辑信息 //初始化编辑信息
editeInfo(value) { editeInfo(value) {
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
pagePath: window.location.href, pagePath: window.location.href,
content: '', content: '',
imgPaths: [], imgPaths: [],
createor: localStorage.getItem('userName'), createor: this.$store.state.userInfo.userName,
level: 1, level: 1,
name: '' name: ''
} }
......
...@@ -330,9 +330,7 @@ export default { ...@@ -330,9 +330,7 @@ export default {
//选项卡切换 //选项卡切换
tab(data) { tab(data) {
if (data == '0') { if (data == '0') {
this.easySearch.creatorUserId.value = JSON.parse( this.easySearch.creatorUserId.value = this.$store.state.userInfo.userId
sessionStorage.getItem('userInfo')
).userId
} else { } else {
this.easySearch.creatorUserId.value = null this.easySearch.creatorUserId.value = null
} }
...@@ -349,7 +347,7 @@ export default { ...@@ -349,7 +347,7 @@ export default {
//修改事件 //修改事件
addSave() { addSave() {
let param = this.$refs.edit.addBugInfo() let param = this.$refs.edit.addBugInfo()
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
if (param.id != null) { if (param.id != null) {
//增加确定 //增加确定
this.$http.bug.createorupdate(param).then((res) => { this.$http.bug.createorupdate(param).then((res) => {
...@@ -373,7 +371,7 @@ export default { ...@@ -373,7 +371,7 @@ export default {
//确定/关闭操作 //确定/关闭操作
detailSave() { detailSave() {
let param = this.$refs.detail.addBugInfo() let param = this.$refs.detail.addBugInfo()
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id] param.ids = [param.id]
if (param.id != null) { if (param.id != null) {
//增加确定 //增加确定
...@@ -398,7 +396,7 @@ export default { ...@@ -398,7 +396,7 @@ export default {
} else { } else {
param = this.$refs.detail.addBugInfo() param = this.$refs.detail.addBugInfo()
} }
param.auditUser = localStorage.getItem('userName') param.auditUser = this.$store.state.userInfo.userName
param.ids = [param.id] param.ids = [param.id]
param.statusNew = 5 param.statusNew = 5
if (param.id != null) { if (param.id != null) {
...@@ -440,7 +438,7 @@ export default { ...@@ -440,7 +438,7 @@ export default {
//this.showBt = false //this.showBt = false
this.selectBatch = 100 this.selectBatch = 100
} }
this.listBatch.auditUser = localStorage.getItem('userName') this.listBatch.auditUser = this.$store.state.userInfo.userName
}, },
//批量操作 //批量操作
statuChange(value) { statuChange(value) {
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
methods: { methods: {
initial() { initial() {
this.bugForm.pagePath = window.location.href this.bugForm.pagePath = window.location.href
this.bugForm.createor = localStorage.getItem('userName') this.bugForm.createor = this.$store.state.userInfo.userName
}, },
//初始化编辑信息 //初始化编辑信息
editeInfo(value) { editeInfo(value) {
......
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
//this.showBt = false //this.showBt = false
this.selectBatch = 100 this.selectBatch = 100
} }
this.listBatch.auditUser = localStorage.getItem('userName') this.listBatch.auditUser = this.$store.state.userInfo.userName
}, },
canselFooter() { canselFooter() {
this.footerBar = false this.footerBar = false
......
...@@ -472,7 +472,7 @@ export default { ...@@ -472,7 +472,7 @@ export default {
this.formdata.change_process_file = ""; this.formdata.change_process_file = "";
this.formdata.compilation_temporary_process = ""; this.formdata.compilation_temporary_process = "";
this.formdata.inspection_date = ""; 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.status = 1;
this.formdata.note = ""; this.formdata.note = "";
...@@ -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('保存成功')
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
this.mod.routingHeaderId = entryModel.routingHeaderId this.mod.routingHeaderId = entryModel.routingHeaderId
this.mod.routingDetailId = entryModel.routingDetailId 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.mod.check_Status = 3
this.product_code = '' this.product_code = ''
this.board_code = '' this.board_code = ''
......
...@@ -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
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
}, },
resource: [], resource: [],
selectList: [], selectList: [],
libraryTube: localStorage.getItem('userName') //库管员 libraryTube: this.$store.state.userInfo.userName //库管员
} }
}, },
props: {}, props: {},
......
...@@ -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