|
|
@ -32,6 +32,12 @@ |
|
|
|
<!-- </a-button>--> |
|
|
|
<!-- </a-button>--> |
|
|
|
<!-- </a-dropdown>--> |
|
|
|
<!-- </a-dropdown>--> |
|
|
|
<!-- </div>--> |
|
|
|
<!-- </div>--> |
|
|
|
|
|
|
|
<div class="table-operator"> |
|
|
|
|
|
|
|
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>--> |
|
|
|
|
|
|
|
<!-- <a-button @click="zyStyleFabricHandleAdd(stationId)" type="primary" icon="plus">新增</a-button>--> |
|
|
|
|
|
|
|
<a-button type="primary" icon="download" @click="handleExportXls('1')">导出</a-button> |
|
|
|
|
|
|
|
<a-button type="primary" @click="fanHui()">返回</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- table区域-begin --> |
|
|
|
<!-- table区域-begin --> |
|
|
|
<div> |
|
|
|
<div> |
|
|
@ -55,32 +61,35 @@ |
|
|
|
class="j-table-force-nowrap" |
|
|
|
class="j-table-force-nowrap" |
|
|
|
@change="handleTableChange"> |
|
|
|
@change="handleTableChange"> |
|
|
|
<span slot="stationList" slot-scope="stationList"> |
|
|
|
<span slot="stationList" slot-scope="stationList"> |
|
|
|
<a-select style="width: 120px" placeholder="请选择"> |
|
|
|
<a-select @change="getToolAndMachine" style="width: 180px" placeholder="请选择"> |
|
|
|
<a-select-option v-for="item in stationList" :value="item.id"> |
|
|
|
<a-select-option v-for="item in stationList" :value="item.id"> |
|
|
|
{{ item.stationName }} |
|
|
|
{{ item.stationName }} |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- <span slot="action1" slot-scope="text, record">--> |
|
|
|
|
|
|
|
<!-- <a @click="jumpPage1(record)">班组成员管理</a>--> |
|
|
|
<span slot="toolsList" slot-scope="toolsList"> |
|
|
|
<!-- <!– <a-divider type="vertical"/>–>--> |
|
|
|
<a-select style="width: 180px" placeholder="请选择"> |
|
|
|
<!-- <!– <a @click="jumpPage2(record)">工位工具管理</a>–>--> |
|
|
|
<a-select-option v-for="item in toolsList" :value="item.id"> |
|
|
|
<!-- </span>--> |
|
|
|
{{ item.name }} |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
</a-select-option> |
|
|
|
<!-- <a @click="handleEdit(record)">编辑</a>--> |
|
|
|
</a-select> |
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
|
|
|
<!-- <a @click="handleDetail(record)">详情</a>--> |
|
|
|
|
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
|
|
|
|
<a>删除</a> |
|
|
|
|
|
|
|
</a-popconfirm> |
|
|
|
|
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
|
|
|
<!-- <a @click="jumpPage1(record)">制定计划详情</a>--> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="machineList" slot-scope="machineList"> |
|
|
|
|
|
|
|
<a-select style="width: 180px" placeholder="请选择"> |
|
|
|
|
|
|
|
<a-select-option v-for="item in machineList" :value="item.id"> |
|
|
|
|
|
|
|
{{ item.name }} |
|
|
|
|
|
|
|
</a-select-option> |
|
|
|
|
|
|
|
</a-select> |
|
|
|
|
|
|
|
</span> |
|
|
|
</a-table> |
|
|
|
</a-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table-operator" style="text-align: right"> |
|
|
|
|
|
|
|
<a-button type="primary" @click="fanHui()">提交</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <zy-plan-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>--> |
|
|
|
<!-- <zy-plan-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>--> |
|
|
|
</a-card> |
|
|
|
</a-card> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -115,11 +124,11 @@ export default { |
|
|
|
return parseInt(index) + 1; |
|
|
|
return parseInt(index) + 1; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
// { |
|
|
|
title: '计划id', |
|
|
|
// title: '计划id', |
|
|
|
align: "center", |
|
|
|
// align: "center", |
|
|
|
dataIndex: 'planId' |
|
|
|
// dataIndex: 'planId' |
|
|
|
}, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工单编号', |
|
|
|
title: '工单编号', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
@ -129,36 +138,43 @@ export default { |
|
|
|
title: '产品id', |
|
|
|
title: '产品id', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'productId' |
|
|
|
dataIndex: 'productId' |
|
|
|
}, { |
|
|
|
}, |
|
|
|
title: '车间', |
|
|
|
{ |
|
|
|
|
|
|
|
title: '产品', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'departId' |
|
|
|
dataIndex: 'productName' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工序id', |
|
|
|
title: '车间', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'productProcessId' |
|
|
|
dataIndex: 'departName' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工位list', |
|
|
|
title: '工序', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'stationList', |
|
|
|
dataIndex: 'processName' |
|
|
|
scopedSlots: {customRender: 'stationList'} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工具id列表', |
|
|
|
title: '工位列表', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'toolsIds' |
|
|
|
dataIndex: 'stationList', |
|
|
|
|
|
|
|
width: 150, |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'stationList'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工序id列表', |
|
|
|
title: '工位工具列表', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'processIds' |
|
|
|
dataIndex: 'toolsList', |
|
|
|
|
|
|
|
width: 150, |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'toolsList'} |
|
|
|
|
|
|
|
// scopedSlots: {customRender: this.toolsList} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '成员id列表', |
|
|
|
title: '工具设备列表', |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
dataIndex: 'userIds' |
|
|
|
dataIndex: 'machineList', |
|
|
|
|
|
|
|
width: 150, |
|
|
|
|
|
|
|
scopedSlots: {customRender: 'machineList'} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
@ -171,6 +187,8 @@ export default { |
|
|
|
], |
|
|
|
], |
|
|
|
url: { |
|
|
|
url: { |
|
|
|
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", |
|
|
|
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", |
|
|
|
|
|
|
|
stationToolslist: "/stationTool/list", |
|
|
|
|
|
|
|
stationMachinelist: "/stationMachine/list", |
|
|
|
// productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list", |
|
|
|
// productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list", |
|
|
|
delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete", |
|
|
|
delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete", |
|
|
|
// deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch", |
|
|
|
// deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch", |
|
|
@ -181,14 +199,12 @@ export default { |
|
|
|
planId: "", |
|
|
|
planId: "", |
|
|
|
dictOptions: {}, |
|
|
|
dictOptions: {}, |
|
|
|
superFieldList: [], |
|
|
|
superFieldList: [], |
|
|
|
|
|
|
|
toolsList: [], |
|
|
|
|
|
|
|
machineList: [], |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// mounted() { |
|
|
|
|
|
|
|
// this.loadData() |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.getSuperFieldList(); |
|
|
|
this.getSuperFieldList(); |
|
|
|
// this.loadParameter(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
importExcelUrl: function () { |
|
|
|
importExcelUrl: function () { |
|
|
@ -196,9 +212,31 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// valueChange(value) { |
|
|
|
fanHui() { |
|
|
|
// if (value) this.loadData() |
|
|
|
this.$router.push({ |
|
|
|
// }, |
|
|
|
path: '/productplan/ZyPlanProcessList', |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
getToolAndMachine(stationId) { |
|
|
|
|
|
|
|
// alert("stationId=" + stationId); |
|
|
|
|
|
|
|
getAction(this.url.stationToolslist, {"stationId": stationId}).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
this.toolsList = res.result.records || res.result; |
|
|
|
|
|
|
|
console.log("toolsList", JSON.stringify(this.toolsList)) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAction(this.url.stationMachinelist, {"stationId": stationId}).then((res) => { |
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
|
|
this.machineList = res.result.records || res.result; |
|
|
|
|
|
|
|
console.log("machineList", JSON.stringify(this.toolsList)) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//加载传递参数 |
|
|
|
//加载传递参数 |
|
|
|
loadParameter() { |
|
|
|
loadParameter() { |
|
|
|
if (this.loadRouteType === false) { |
|
|
|
if (this.loadRouteType === false) { |
|
|
|