|
|
@ -6,6 +6,7 @@ |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<j-vxe-table |
|
|
|
<j-vxe-table |
|
|
|
ref="xTable" |
|
|
|
ref="xTable" |
|
|
|
|
|
|
|
bordered |
|
|
|
toolbar |
|
|
|
toolbar |
|
|
|
:toolbarConfig="toolbarConfig" |
|
|
|
:toolbarConfig="toolbarConfig" |
|
|
|
row-number |
|
|
|
row-number |
|
|
@ -53,12 +54,12 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '车间', |
|
|
|
title: '车间', |
|
|
|
key: 'workshopName', |
|
|
|
key: 'workshopName', |
|
|
|
width: '220px', |
|
|
|
// width: '220px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '吊挂编号', |
|
|
|
title: '吊挂编号', |
|
|
|
key: 'code', |
|
|
|
key: 'code', |
|
|
|
width: '220px', |
|
|
|
// width: '220px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '工站数量', |
|
|
|
title: '工站数量', |
|
|
@ -69,7 +70,7 @@ export default { |
|
|
|
title: '工站编号', |
|
|
|
title: '工站编号', |
|
|
|
key: 'point', |
|
|
|
key: 'point', |
|
|
|
type: JVXETypes.input, |
|
|
|
type: JVXETypes.input, |
|
|
|
width: '220px', |
|
|
|
// width: '220px', |
|
|
|
/*validateRules: [ |
|
|
|
/*validateRules: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
required: true, // 必填 |
|
|
|
required: true, // 必填 |
|
|
@ -144,23 +145,25 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
this.loadParameter(); |
|
|
|
this.loadParameter(); |
|
|
|
// this.getStationList(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getStationList() { |
|
|
|
/* updated() { |
|
|
|
const {data: res} = await this.$axios.get(this.url.getStationList, {params: {id: this.id}}) |
|
|
|
console.log("beforeUpdate-------",JSON.stringify(this.stationIdList)); |
|
|
|
if (res.success) { |
|
|
|
console.log("this.$refs.vxe.columns[5].options-------",this.$refs.xTable.columns); |
|
|
|
// this.dataSource = res.result.records || res.result; |
|
|
|
// this.$data.columns[5].options = this.stationIdList; |
|
|
|
this.stationIdList = JSON.stringify(res.result); |
|
|
|
if (this.$refs.xTable.columns.concat('stationName2')) { |
|
|
|
console.log("the getStationList=" + this.stationIdList) |
|
|
|
// this.$refs.xTable.columns[5].options = this.stationIdList |
|
|
|
console.log("this.columns[6].options------------:" + this.columns[6].options); |
|
|
|
console.log("concat") |
|
|
|
this.columns[6].options = this.stationIdList; |
|
|
|
this.$refs.xTable.columns[5].options= this.stationIdList; |
|
|
|
} else { |
|
|
|
this.$refs.xTable.columns[4].options= this.stationIdList; |
|
|
|
this.$message.warning(res.message) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// this.$forceUpdate(); |
|
|
|
|
|
|
|
// this.$refs.xTable.columns[6].options = this.stationIdList |
|
|
|
|
|
|
|
// this.$refs.xTable.columns[7].options = this.stationIdList |
|
|
|
|
|
|
|
},*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
// 【整体保存】点击保存按钮时触发的事件 |
|
|
|
// 【整体保存】点击保存按钮时触发的事件 |
|
|
|
handleTableSave({$table, target}) { |
|
|
|
handleTableSave({$table, target}) { |
|
|
|
console.log("生产计划工序保存开始-----------------") |
|
|
|
console.log("生产计划工序保存开始-----------------") |
|
|
|