Commit 9e0f6f89 authored by 张海景's avatar 张海景

update:修改刀模板上下机传参和接口

parent 8d489203
This diff is collapsed.
......@@ -56,11 +56,11 @@
},
],
}
},
computed: {
tableData() {
return this.data || []
}
},
computed: {
tableData() {
return this.data || []
}
},
methods: {
async commonClick(type) {
......@@ -81,16 +81,18 @@
if (!flag) {
return this.$u.toast('请选择状态相同的数据')
}
}
const params = {
toolMachinesRecordIdList: this.tableSelectData.map(v => v.toolMachinesRecordId),
type
}
const {code} = await this.$u.api.dModel.tmToolMachinesRecord(params)
if (code == 200) {
this.$emit('action')
}
}
const params = this.tableSelectData.map(v => {
return {
toolMachinesId: v.toolMachinesId,
type
}
})
const {code} = await this.$u.api.dModel.tmToolMachinesRecord(params)
if (code == 200) {
this.$emit('action')
}
},
toggleAllSelection(checked, arr) {
......@@ -109,4 +111,4 @@
margin-top: 20rpx;
padding: 0 20rpx;
}
</style>
</style>
......@@ -1065,6 +1065,7 @@ export default {
workunitName: this.vuex_workunit.workunitName,
processId: selectData.processId,
taskId: selectData.taskId,
taskWorkunitId: selectData.taskWorkunitId,
workorderId: selectData.workorderId,
toolRequestUseId: data[0].toolRequestUseId,
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