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

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

parents 7ae59940 d8df0f8b
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<state code="plan.order.guestName" :value="info.orderInfo.guestName+''" type="text"></state> <state code="plan.order.guestName" :value="info.orderInfo.guestName+''" type="text"></state>
</Filed> </Filed>
<Filed :span="6" :name="l('functionaryOffice')">>{{info.orderInfo.functionaryOffice}}</Filed> <Filed :span="6" :name="l('functionaryOffice')">{{info.orderInfo.functionaryOffice}}</Filed>
<Filed :span="6" :name="l('taskRequire')">{{info.orderInfo.taskRequire}}</Filed> <Filed :span="6" :name="l('taskRequire')">{{info.orderInfo.taskRequire}}</Filed>
<Filed :span="6" :name="l('taskInputDate')">{{info.orderInfo.taskInputDate}}</Filed> <Filed :span="6" :name="l('taskInputDate')">{{info.orderInfo.taskInputDate}}</Filed>
<Filed :span="6" :name="l('mainDepartmentId')"> <Filed :span="6" :name="l('mainDepartmentId')">
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
watch: { watch: {
row(v) { row(v) {
if (v != {}) { if (v != {}) {
alert(JSON.stringify(v)) //alert(JSON.stringify(v))
this.entity = v this.entity = v
} }
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</Modal> </Modal>
<Modal <Modal
v-model="insertlModal" v-model="insertlModal"
title="插单" :title="insertTItle"
@on-ok="insertOk" @on-ok="insertOk"
@on-cancel="cancel" @on-cancel="cancel"
> >
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
</Modal> </Modal>
<Modal v-model="setParsModal" title="工序参数设置" footer-hide width="1000"> <Modal v-model="setParsModal" title="工序参数设置" footer-hide width="1000">
<Add <Add
:eid="curId"
@on-parameter-ok="addOk" @on-parameter-ok="addOk"
@on-close="cancel" @on-close="cancel"
:opTaskPk="setParams.opTaskPk" :opTaskPk="setParams.opTaskPk"
...@@ -373,8 +372,8 @@ export default { ...@@ -373,8 +372,8 @@ export default {
opTaskPk: 0, //工单ID opTaskPk: 0, //工单ID
partTaskPk: 0, //生产计划ID partTaskPk: 0, //生产计划ID
taskSeq: "", //工序编号 taskSeq: "", //工序编号
count: 0, count: 0,//生产计划数量
}, //生产计划数量 },
//设置参数结束 //设置参数结束
rowData:{},//编辑时传入行数据 rowData:{},//编辑时传入行数据
}; };
......
...@@ -14,4 +14,10 @@ export default { ...@@ -14,4 +14,10 @@ export default {
getdetail(params) { getdetail(params) {
return Api.get(`${apsUrl}/scheduletotal/getdetail`, params); return Api.get(`${apsUrl}/scheduletotal/getdetail`, params);
}, },
processschemedispatch(params) {
return Api.post(`${apsUrl}/apspoolappservices/processschemedispatch`, params);
},
moveintoaps() {//跳转进入排产池前判断
return Api.post(`${PlanUrl}/messchedule/moveintoaps`);
},
} }
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
isactive: 0, isactive: 0,
data: [], data: [],
list: [], list: [],
id: "",
columns: [ columns: [
{ {
type: "expand", type: "expand",
...@@ -99,25 +100,25 @@ export default { ...@@ -99,25 +100,25 @@ export default {
{ {
title: "计划开始时间", title: "计划开始时间",
key: "plan_start", key: "plan_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "计划结束时间", title: "计划结束时间",
key: "plan_start", key: "plan_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "投料时间", title: "投料时间",
key: "demand_start", key: "demand_start",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
title: "节点时间", title: "节点时间",
key: "demand_finish", key: "demand_finish",
width: 220, width: 200,
align: "center" align: "center"
}, },
{ {
...@@ -153,6 +154,7 @@ export default { ...@@ -153,6 +154,7 @@ export default {
}, },
listData(id, index) { listData(id, index) {
this.isactive = index; this.isactive = index;
this.id = id;
Api.paged({ scheduleId: id }) Api.paged({ scheduleId: id })
.then(r => { .then(r => {
if (r.success) { if (r.success) {
...@@ -183,11 +185,33 @@ export default { ...@@ -183,11 +185,33 @@ export default {
} }
}, },
parameter() {}, parameter() {
addOk() {}, Api.processschemedispatch({
cancel() {}, id: this.id
}).then(r => {
if (r.result) {
this.$Message.success(r.result.retmsg);
this.orderlist();
} else {
this.$Message.success("下发失败");
}
});
},
comeBlck() { comeBlck() {
this.$router.push({ path: "/aps/aps" }); this.$router.push({ path: "/aps/aps" });
Api.moveintoaps().then(res => {
if (res.success) {
if (res.result.res) {
this.$router.push({
name: "aps-aps"
});
} else {
this.$router.push({
name: "aps-plan"
});
}
}
});
} }
} }
}; };
......
...@@ -53,7 +53,7 @@ function errorLog (err) { ...@@ -53,7 +53,7 @@ function errorLog (err) {
// 创建一个 axios 实例 // 创建一个 axios 实例
const service = axios.create({ const service = axios.create({
baseURL: Setting.apiBaseURL, baseURL: Setting.apiBaseURL,
timeout: 5000, // 请求超时时间 timeout: 20000, // 请求超时时间
transformRequest:[(data)=>{ transformRequest:[(data)=>{
function dateFormat(date, fmt) { function dateFormat(date, fmt) {
if (null == date || undefined == date) return ''; if (null == date || undefined == date) return '';
......
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