|
|
|
@ -32,6 +32,12 @@ |
|
|
|
|
<!-- </a-button>--> |
|
|
|
|
<!-- </a-dropdown>--> |
|
|
|
|
<!-- </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 --> |
|
|
|
|
<div> |
|
|
|
@ -55,32 +61,35 @@ |
|
|
|
|
class="j-table-force-nowrap" |
|
|
|
|
@change="handleTableChange"> |
|
|
|
|
<span slot="stationList" slot-scope="stationList"> |
|
|
|
|
<a-select style="width: 120px" placeholder="请选择"> |
|
|
|
|
<a-select-option v-for="item in stationList" :value="item.id" > |
|
|
|
|
{{item.stationName}} |
|
|
|
|
<a-select @change="getToolAndMachine" style="width: 180px" placeholder="请选择"> |
|
|
|
|
<a-select-option v-for="item in stationList" :value="item.id"> |
|
|
|
|
{{ item.stationName }} |
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</span> |
|
|
|
|
<!-- <span slot="action1" slot-scope="text, record">--> |
|
|
|
|
<!-- <a @click="jumpPage1(record)">班组成员管理</a>--> |
|
|
|
|
<!-- <!– <a-divider type="vertical"/>–>--> |
|
|
|
|
<!-- <!– <a @click="jumpPage2(record)">工位工具管理</a>–>--> |
|
|
|
|
<!-- </span>--> |
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
|
<!-- <a @click="handleEdit(record)">编辑</a>--> |
|
|
|
|
<!-- <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 slot="toolsList" slot-scope="toolsList"> |
|
|
|
|
<a-select style="width: 180px" placeholder="请选择"> |
|
|
|
|
<a-select-option v-for="item in toolsList" :value="item.id"> |
|
|
|
|
{{ item.name }} |
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</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> |
|
|
|
|
</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>--> |
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
@ -115,11 +124,11 @@ export default { |
|
|
|
|
return parseInt(index) + 1; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '计划id', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'planId' |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// title: '计划id', |
|
|
|
|
// align: "center", |
|
|
|
|
// dataIndex: 'planId' |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
title: '工单编号', |
|
|
|
|
align: "center", |
|
|
|
@ -129,36 +138,43 @@ export default { |
|
|
|
|
title: '产品id', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'productId' |
|
|
|
|
}, { |
|
|
|
|
title: '车间', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '产品', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'departId' |
|
|
|
|
dataIndex: 'productName' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工序id', |
|
|
|
|
title: '车间', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'productProcessId' |
|
|
|
|
dataIndex: 'departName' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工位list', |
|
|
|
|
title: '工序', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'stationList', |
|
|
|
|
scopedSlots: {customRender: 'stationList'} |
|
|
|
|
dataIndex: 'processName' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工具id列表', |
|
|
|
|
title: '工位列表', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'toolsIds' |
|
|
|
|
dataIndex: 'stationList', |
|
|
|
|
width: 150, |
|
|
|
|
scopedSlots: {customRender: 'stationList'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工序id列表', |
|
|
|
|
title: '工位工具列表', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'processIds' |
|
|
|
|
dataIndex: 'toolsList', |
|
|
|
|
width: 150, |
|
|
|
|
scopedSlots: {customRender: 'toolsList'} |
|
|
|
|
// scopedSlots: {customRender: this.toolsList} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '成员id列表', |
|
|
|
|
title: '工具设备列表', |
|
|
|
|
align: "center", |
|
|
|
|
dataIndex: 'userIds' |
|
|
|
|
dataIndex: 'machineList', |
|
|
|
|
width: 150, |
|
|
|
|
scopedSlots: {customRender: 'machineList'} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
@ -171,6 +187,8 @@ export default { |
|
|
|
|
], |
|
|
|
|
url: { |
|
|
|
|
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", |
|
|
|
|
stationToolslist: "/stationTool/list", |
|
|
|
|
stationMachinelist: "/stationMachine/list", |
|
|
|
|
// productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list", |
|
|
|
|
delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete", |
|
|
|
|
// deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch", |
|
|
|
@ -181,14 +199,12 @@ export default { |
|
|
|
|
planId: "", |
|
|
|
|
dictOptions: {}, |
|
|
|
|
superFieldList: [], |
|
|
|
|
toolsList: [], |
|
|
|
|
machineList: [], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// mounted() { |
|
|
|
|
// this.loadData() |
|
|
|
|
// }, |
|
|
|
|
created() { |
|
|
|
|
this.getSuperFieldList(); |
|
|
|
|
// this.loadParameter(); |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
importExcelUrl: function () { |
|
|
|
@ -196,9 +212,31 @@ export default { |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// valueChange(value) { |
|
|
|
|
// if (value) this.loadData() |
|
|
|
|
// }, |
|
|
|
|
fanHui() { |
|
|
|
|
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() { |
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|