|
|
@ -27,12 +27,6 @@ |
|
|
|
<template v-slot:toolbarSuffix> |
|
|
|
<template v-slot:toolbarSuffix> |
|
|
|
<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> |
|
|
|
<!-- <a-tooltip placement="top" title="获取值,忽略表单验证" :autoAdjustOverflow="true">--> |
|
|
|
|
|
|
|
<!-- <a-button @click="handleTableGet">获取值</a-button>--> |
|
|
|
|
|
|
|
<!-- </a-tooltip>--> |
|
|
|
|
|
|
|
<!-- <a-tooltip placement="top" title="模拟加载1000条数据" :autoAdjustOverflow="true">--> |
|
|
|
|
|
|
|
<!-- <a-button @click="handleTableSet">设置值</a-button>--> |
|
|
|
|
|
|
|
<!-- </a-tooltip>--> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</j-vxe-table> |
|
|
|
</j-vxe-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -95,16 +89,27 @@ export default { |
|
|
|
options: [], |
|
|
|
options: [], |
|
|
|
placeholder: '请选择${title}', |
|
|
|
placeholder: '请选择${title}', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: 'stationIds', |
|
|
|
|
|
|
|
key: 'stationIds', |
|
|
|
|
|
|
|
type: JVXETypes.hidden, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '设备列表', |
|
|
|
title: '设备列表', |
|
|
|
key: 'machineIds', |
|
|
|
key: 'machineNames', |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
options: [], |
|
|
|
options: [], |
|
|
|
placeholder: '请选择${title}', |
|
|
|
placeholder: '请选择${title}', |
|
|
|
}, { |
|
|
|
}, |
|
|
|
title: '工具列表', |
|
|
|
{ |
|
|
|
|
|
|
|
title: 'toodsIds', |
|
|
|
key: 'toolsIds', |
|
|
|
key: 'toolsIds', |
|
|
|
|
|
|
|
type: JVXETypes.hidden, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '工具列表', |
|
|
|
|
|
|
|
key: 'toolsIdNames', |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
type: JVXETypes.selectMultiple, |
|
|
|
width: '200px', |
|
|
|
width: '200px', |
|
|
|
options: [], |
|
|
|
options: [], |
|
|
@ -150,7 +155,7 @@ export default { |
|
|
|
dictOptions: {}, |
|
|
|
dictOptions: {}, |
|
|
|
superFieldList: [], |
|
|
|
superFieldList: [], |
|
|
|
stationId: [], |
|
|
|
stationId: [], |
|
|
|
stationIdList: [], |
|
|
|
stationList: [], |
|
|
|
toolsList: [], |
|
|
|
toolsList: [], |
|
|
|
machineList: [], |
|
|
|
machineList: [], |
|
|
|
clickTrue: true, |
|
|
|
clickTrue: true, |
|
|
@ -169,11 +174,7 @@ export default { |
|
|
|
if (!errMap) { |
|
|
|
if (!errMap) { |
|
|
|
// 获取所有数据 |
|
|
|
// 获取所有数据 |
|
|
|
let tableData = target.getTableData() |
|
|
|
let tableData = target.getTableData() |
|
|
|
// tableData.forEach(item => { |
|
|
|
|
|
|
|
// item.id = ''; |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
console.log('当前保存的数据是:', tableData) |
|
|
|
console.log('当前保存的数据是:', tableData) |
|
|
|
|
|
|
|
|
|
|
|
// 【模拟保存】 |
|
|
|
// 【模拟保存】 |
|
|
|
this.loading = true |
|
|
|
this.loading = true |
|
|
|
postAction(this.url.addProcessBatch, tableData).then(res => { |
|
|
|
postAction(this.url.addProcessBatch, tableData).then(res => { |
|
|
@ -222,7 +223,7 @@ export default { |
|
|
|
if (res.success) { |
|
|
|
if (res.success) { |
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
this.dataSource = res.result.records || res.result; |
|
|
|
// this.stationId = this.dataSource[0].stationId; |
|
|
|
// this.stationId = this.dataSource[0].stationId; |
|
|
|
this.stationIdList = this.dataSource[0].stationIdList; |
|
|
|
this.stationList = this.dataSource[0].stationList; |
|
|
|
} 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) |
|
|
@ -253,7 +254,7 @@ export default { |
|
|
|
const {type, row, column, value, target, $table} = event |
|
|
|
const {type, row, column, value, target, $table} = event |
|
|
|
console.log(JSON.stringify(this.stationIdList)); |
|
|
|
console.log(JSON.stringify(this.stationIdList)); |
|
|
|
// target.$refs.vxe.columns[6].dictCode = this.stationIdCode; |
|
|
|
// target.$refs.vxe.columns[6].dictCode = this.stationIdCode; |
|
|
|
target.$refs.vxe.columns[6].options = this.stationIdList; |
|
|
|
target.$refs.vxe.columns[6].options = this.stationList; |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** 当选项被改变时,联动其他组件 */ |
|
|
|
/** 当选项被改变时,联动其他组件 */ |
|
|
|
handleValueChange(event) { |
|
|
|
handleValueChange(event) { |
|
|
|