|
|
@ -50,6 +50,13 @@ |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button> |
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button> |
|
|
|
<a-button type="primary" icon="rollback" @click="fanHui()">返回</a-button> |
|
|
|
<a-button type="primary" icon="rollback" @click="fanHui()">返回</a-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-slot:action="props"> |
|
|
|
|
|
|
|
<a @click="jump2MianLiao('mianLiao',props)">面料</a> |
|
|
|
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
|
|
|
|
<a @click="jump2FuLiao('fuLiao',props)">辅料</a> |
|
|
|
|
|
|
|
<a-divider type="vertical"/> |
|
|
|
|
|
|
|
<a @click="detail(props)">详情</a> |
|
|
|
|
|
|
|
</template> |
|
|
|
</j-vxe-table> |
|
|
|
</j-vxe-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-card> |
|
|
|
</a-card> |
|
|
@ -102,10 +109,10 @@ export default { |
|
|
|
type: JVXETypes.hidden |
|
|
|
type: JVXETypes.hidden |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '设备列表', |
|
|
|
title: '设备名称', |
|
|
|
key: 'machineNames', |
|
|
|
key: 'machineNames', |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
width: '200px', |
|
|
|
width: '180px', |
|
|
|
options: [], |
|
|
|
options: [], |
|
|
|
placeholder: '请选择${title}', |
|
|
|
placeholder: '请选择${title}', |
|
|
|
}, |
|
|
|
}, |
|
|
@ -115,10 +122,10 @@ export default { |
|
|
|
type: JVXETypes.hidden, |
|
|
|
type: JVXETypes.hidden, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工具列表', |
|
|
|
title: '工具名称', |
|
|
|
key: 'toolsNames', |
|
|
|
key: 'toolsNames', |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
width: '200px', |
|
|
|
width: '180px', |
|
|
|
options: [], |
|
|
|
options: [], |
|
|
|
placeholder: '请选择${title}', |
|
|
|
placeholder: '请选择${title}', |
|
|
|
}, |
|
|
|
}, |
|
|
@ -143,15 +150,23 @@ export default { |
|
|
|
width: '180px', |
|
|
|
width: '180px', |
|
|
|
popupCode: 'zy_process', |
|
|
|
popupCode: 'zy_process', |
|
|
|
field: 'id,process_code,process_name,process_describe', |
|
|
|
field: 'id,process_code,process_name,process_describe', |
|
|
|
// orgFields: 'id,process_code,process_name,process_describe', |
|
|
|
|
|
|
|
// destFields: 'proProcessName,process_code,process_name,process_describe', |
|
|
|
|
|
|
|
orgFields: 'process_name,id', |
|
|
|
orgFields: 'process_name,id', |
|
|
|
destFields: 'postProcessName,postProcess', |
|
|
|
destFields: 'postProcessName,postProcess', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{key: 'inputProduct', title: '输入产品', width: '150', type: JVXETypes.input}, |
|
|
|
{key: 'inputProduct', title: '输入产品', width: '150', type: JVXETypes.input}, |
|
|
|
{key: 'semiProduct', title: '成品/半成品', width: '150', type: JVXETypes.input}, |
|
|
|
{key: 'semiProduct', title: '成品/半成品', width: '150', type: JVXETypes.input}, |
|
|
|
{key: 'totalMachine', title: '机器时长', width: '150', type: JVXETypes.normal}, |
|
|
|
// {key: 'semiProduct', title: '面料', width: '150', type: JVXETypes.input}, |
|
|
|
{key: 'totalMaunal', title: '人工时长', width: '150', type: JVXETypes.normal}, |
|
|
|
{key: 'totalMachine', title: '机器时长', width: '80', type: JVXETypes.normal}, |
|
|
|
|
|
|
|
{key: 'totalMaunal', title: '人工时长', width: '80', type: JVXETypes.normal}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '管理', |
|
|
|
|
|
|
|
key: 'action', |
|
|
|
|
|
|
|
type: JVXETypes.slot, |
|
|
|
|
|
|
|
fixed: 'right', |
|
|
|
|
|
|
|
minWidth: '150px', |
|
|
|
|
|
|
|
align: 'center', |
|
|
|
|
|
|
|
slotName: 'action', |
|
|
|
|
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", |
|
|
|
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", |
|
|
@ -166,7 +181,6 @@ export default { |
|
|
|
dictOptions: {}, |
|
|
|
dictOptions: {}, |
|
|
|
planInfo: {}, |
|
|
|
planInfo: {}, |
|
|
|
superFieldList: [], |
|
|
|
superFieldList: [], |
|
|
|
// stationId: [], |
|
|
|
|
|
|
|
stationIdList: [], |
|
|
|
stationIdList: [], |
|
|
|
toolsList: [], |
|
|
|
toolsList: [], |
|
|
|
machineList: [], |
|
|
|
machineList: [], |
|
|
@ -178,12 +192,30 @@ export default { |
|
|
|
this.getPlanInfo(this.planId); |
|
|
|
this.getPlanInfo(this.planId); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
jump2MianLiao(key,props){ |
|
|
|
|
|
|
|
console.log("mianLiao() ----key:",key) |
|
|
|
|
|
|
|
console.log("mianLiao() ----props:",props) |
|
|
|
|
|
|
|
this.$router.push({ |
|
|
|
|
|
|
|
path: '/productplan/ZyPlanProcessFabricList', |
|
|
|
|
|
|
|
// query: { // 路由携带参数 |
|
|
|
|
|
|
|
// 'planProcessId': record.id, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jump2FuLiao(key,props){ |
|
|
|
|
|
|
|
console.log("fuLiao() ----key:",key) |
|
|
|
|
|
|
|
console.log("fuLiao() ----props:",props) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
detail(props){ |
|
|
|
|
|
|
|
alert("稍等,正在开发中。。。") |
|
|
|
|
|
|
|
}, |
|
|
|
getPlanInfo(planId) { |
|
|
|
getPlanInfo(planId) { |
|
|
|
// debugger; |
|
|
|
// debugger; |
|
|
|
getAction(this.url.getPlanInfo, {"planId": planId}).then((res) => { |
|
|
|
getAction(this.url.getPlanInfo, {"planId": planId}).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
this.planInfo = res.result.records || res.result; |
|
|
|
this.planInfo = res.result.records || res.result; |
|
|
|
console.log("getPlanInfo------------:" + JSON.stringify(this.planInfo)); |
|
|
|
// console.log("getPlanInfo------------:" + JSON.stringify(this.planInfo)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// this.stationIdCode = "station,station_name,id,depart_id in (select workshop_id from zy_product_plan where id='" + this.planId + "')"; |
|
|
|
// this.stationIdCode = "station,station_name,id,depart_id in (select workshop_id from zy_product_plan where id='" + this.planId + "')"; |
|
|
|
this.$message.warning(res.message) |
|
|
|
this.$message.warning(res.message) |
|
|
|