|
|
|
@ -1,32 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-card :bordered="false"> |
|
|
|
|
<p style="font-size: 30px;color:#333; padding-left: 30% ">{{ this.workshopName + this.code }}吊挂管理</p> |
|
|
|
|
<!-- <template>--> |
|
|
|
|
<!-- <div>--> |
|
|
|
|
<!-- <el-descriptions border :column='4'>--> |
|
|
|
|
<!-- <el-descriptions-item label="工单编号 ">{{ planInfo.productCode }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="生产企业">{{ planInfo.productOrg }}</el-descriptions-item>--> |
|
|
|
|
<!-- <!– <el-descriptions-item label="企业负责人 ">admin</el-descriptions-item>–>--> |
|
|
|
|
<!-- <el-descriptions-item label="车间 ">{{ planInfo.workshop }}</el-descriptions-item>--> |
|
|
|
|
<!-- <!– <el-descriptions-item label="车间负责人 ">admin</el-descriptions-item>–>--> |
|
|
|
|
<!-- <el-descriptions-item label="班组">{{ planInfo.team }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="班组长">{{ planInfo.teamLade }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="产品类型">{{ planInfo.productType }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="产品编号">{{ planInfo.productNo }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="产品名称">{{ planInfo.productName }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="开始时间">{{ planInfo.workTime }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="生产时长">{{ planInfo.duration }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="生产状态">{{ planInfo.status }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="加急">{{ planInfo.speedUp }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="销售企业">{{ planInfo.salesEnterprise }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="订货期">{{ planInfo.orderTime }}</el-descriptions-item>--> |
|
|
|
|
<!-- <!– <el-descriptions-item label="制定人">100</el-descriptions-item>–>--> |
|
|
|
|
<!-- <!– <el-descriptions-item label="制定时间">100</el-descriptions-item>–>--> |
|
|
|
|
<!-- <el-descriptions-item label="审核人">{{ planInfo.auditBy }}</el-descriptions-item>--> |
|
|
|
|
<!-- <el-descriptions-item label="审核时间">{{ planInfo.auditTimr }}</el-descriptions-item>--> |
|
|
|
|
<!-- </el-descriptions>--> |
|
|
|
|
<!-- </div>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
|
|
|
|
<!-- table区域-begin --> |
|
|
|
|
<div> |
|
|
|
@ -46,22 +20,8 @@ |
|
|
|
|
> |
|
|
|
|
<template v-slot:toolbarSuffix> |
|
|
|
|
<a-button type="primary" icon="plus-circle" @click="syncHangRecord()">同步吊挂运行记录</a-button> |
|
|
|
|
<!-- <a-button type="primary" icon="plus-circle" @click="autoFilling()">自动排位</a-button>--> |
|
|
|
|
<!-- <a-button type="primary" icon="plus-circle" @click="createMaterialBill()">生成物料单--> |
|
|
|
|
<!-- </a-button>--> |
|
|
|
|
<!-- <a-button type="primary" icon="unordered-list" @click="viewMaterialBill">查看物料单--> |
|
|
|
|
<!-- </a-button>--> |
|
|
|
|
<!-- <a-button type="primary" icon="redo" @click="sendToRepository()">发送到仓库--> |
|
|
|
|
<!-- </a-button>--> |
|
|
|
|
<a-button type="primary" icon="rollback" @click="fanHui()">返回</a-button> |
|
|
|
|
</template> |
|
|
|
|
<!-- <template v-slot:action="props">--> |
|
|
|
|
<!-- <a @click="jump2MianLiao(props)">面料</a>--> |
|
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
<!-- <a @click="jump2FuLiao(props)">辅料</a>--> |
|
|
|
|
<!-- <a-divider type="vertical"/>--> |
|
|
|
|
<!-- <a @click="viewDetail(props)">详情</a>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
</j-vxe-table> |
|
|
|
|
</div> |
|
|
|
|
</a-card> |
|
|
|
@ -93,18 +53,23 @@ export default { |
|
|
|
|
{ |
|
|
|
|
title: '车间', |
|
|
|
|
key: 'workshopName', |
|
|
|
|
width: '180px', |
|
|
|
|
width: '220px', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '吊挂编号', |
|
|
|
|
key: 'code', |
|
|
|
|
width: '180px', |
|
|
|
|
width: '220px', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工站数量', |
|
|
|
|
key: 'pointnumber', |
|
|
|
|
width: '220px', |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '工站编号', |
|
|
|
|
key: 'point', |
|
|
|
|
type: JVXETypes.input, |
|
|
|
|
width: '180px', |
|
|
|
|
width: '220px', |
|
|
|
|
/*validateRules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, // 必填 |
|
|
|
@ -164,6 +129,7 @@ export default { |
|
|
|
|
], |
|
|
|
|
url: { |
|
|
|
|
list: "/org.jeecg.modules.hanger/zyHang/getPointById", |
|
|
|
|
getStationList: "/jeecg-boot/org.jeecg.modules.hanger/zyHang/getStationList", |
|
|
|
|
syncHangRecord: "/org.jeecg.modules.productplan/zyPlanProcess/syncHangRecord", |
|
|
|
|
addBatch: "/org.jeecg.modules.hanger/zyHangPoint/addBatch", |
|
|
|
|
}, |
|
|
|
@ -171,15 +137,30 @@ export default { |
|
|
|
|
id: "", |
|
|
|
|
workshopName: "", |
|
|
|
|
code: "", |
|
|
|
|
dictOptions: {}, |
|
|
|
|
pointnumber: "", |
|
|
|
|
stationIdList: [], |
|
|
|
|
clickTrue: true, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.loadParameter(); |
|
|
|
|
// this.getStationList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
async getStationList() { |
|
|
|
|
const {data: res} = await this.$axios.get(this.url.getStationList, {params: {id: this.id}}) |
|
|
|
|
if (res.success) { |
|
|
|
|
// this.dataSource = res.result.records || res.result; |
|
|
|
|
this.stationIdList = JSON.stringify(res.result); |
|
|
|
|
console.log("the getStationList=" + this.stationIdList) |
|
|
|
|
console.log("this.columns[6].options------------:" + this.columns[6].options); |
|
|
|
|
this.columns[6].options = this.stationIdList; |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 【整体保存】点击保存按钮时触发的事件 |
|
|
|
|
handleTableSave({$table, target}) { |
|
|
|
|
console.log("生产计划工序保存开始-----------------") |
|
|
|
@ -217,7 +198,6 @@ export default { |
|
|
|
|
getAction(this.url.syncHangRecord, {"code": this.code}).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.$message.success("操作成功"); |
|
|
|
|
// this.loadData(); |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
} |
|
|
|
@ -233,13 +213,13 @@ export default { |
|
|
|
|
this.id = this.$route.query.id; |
|
|
|
|
this.workshopName = this.$route.query.workshopName; |
|
|
|
|
this.code = this.$route.query.code; |
|
|
|
|
this.pointnumber = this.$route.query.pointnumber; |
|
|
|
|
console.log("*******传递的id:" + this.id) |
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
loadData(arg) { |
|
|
|
|
console.log("the loadData---------开始"); |
|
|
|
|
// var that = this; |
|
|
|
|
if (!this.url.list) { |
|
|
|
|
this.$message.error("请设置url.list属性!") |
|
|
|
|
return |
|
|
|
@ -253,15 +233,13 @@ export default { |
|
|
|
|
if (res.success) { |
|
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
|
this.stationIdList = this.dataSource[0].stationIdList; |
|
|
|
|
|
|
|
|
|
// alert(this.stationIdList) |
|
|
|
|
} else { |
|
|
|
|
this.$message.warning(res.message) |
|
|
|
|
} |
|
|
|
|
}).finally(() => { |
|
|
|
|
this.dataSource.forEach(item => { |
|
|
|
|
item['workshopName'] = this.workshopName; |
|
|
|
|
// item['stationNum'] = this.stationNum; |
|
|
|
|
item['pointnumber'] = this.pointnumber; |
|
|
|
|
}) |
|
|
|
|
this.loading = false |
|
|
|
|
}) |
|
|
|
|