Commit aac174dd authored by 李驰骋's avatar 李驰骋

Merge remote-tracking branch 'origin/dev' into dev

parents 6e1852a9 9e0f6f89
This diff is collapsed.
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
}, },
], ],
} }
}, },
computed: { computed: {
tableData() { tableData() {
return this.data || [] return this.data || []
} }
}, },
methods: { methods: {
async commonClick(type) { async commonClick(type) {
...@@ -81,16 +81,18 @@ ...@@ -81,16 +81,18 @@
if (!flag) { if (!flag) {
return this.$u.toast('请选择状态相同的数据') return this.$u.toast('请选择状态相同的数据')
} }
} }
const params = { const params = this.tableSelectData.map(v => {
toolMachinesRecordIdList: this.tableSelectData.map(v => v.toolMachinesRecordId), return {
type toolMachinesId: v.toolMachinesId,
} type
const {code} = await this.$u.api.dModel.tmToolMachinesRecord(params) }
if (code == 200) { })
this.$emit('action') const {code} = await this.$u.api.dModel.tmToolMachinesRecord(params)
} if (code == 200) {
this.$emit('action')
}
}, },
toggleAllSelection(checked, arr) { toggleAllSelection(checked, arr) {
...@@ -109,4 +111,4 @@ ...@@ -109,4 +111,4 @@
margin-top: 20rpx; margin-top: 20rpx;
padding: 0 20rpx; padding: 0 20rpx;
} }
</style> </style>
...@@ -1065,6 +1065,7 @@ export default { ...@@ -1065,6 +1065,7 @@ export default {
workunitName: this.vuex_workunit.workunitName, workunitName: this.vuex_workunit.workunitName,
processId: selectData.processId, processId: selectData.processId,
taskId: selectData.taskId, taskId: selectData.taskId,
taskWorkunitId: selectData.taskWorkunitId,
workorderId: selectData.workorderId, workorderId: selectData.workorderId,
toolRequestUseId: data[0].toolRequestUseId, toolRequestUseId: data[0].toolRequestUseId,
toolMachinesRecordList: data.map((v) => { toolMachinesRecordList: data.map((v) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment