| | |
| | | |
| | | const data = reactive({ |
| | | searchForm: { |
| | | name: "", |
| | | no: "", |
| | | model: "", |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | | const tableColumn = ref([ |
| | | { |
| | | label: "零件名称", |
| | | prop: "speculativeTradingName", |
| | | label: "规格名称", |
| | | prop: "model", |
| | | }, |
| | | { |
| | | label: "描述", |
| | |
| | | fixed: "right", |
| | | width: 280, |
| | | operation: [ |
| | | { |
| | | name: "详情", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | showEditModal(row); |
| | | } |
| | | }, |
| | | { |
| | | name: "编辑", |
| | | type: "text", |
| | |
| | | |
| | | // 删除 |
| | | function handleDelete() { |
| | | // const no = selectedRows.value.map((item) => item.no); |
| | | // const ids = selectedRows.value.map((item) => item.id); |
| | | // proxy.$modal |
| | | // .confirm('是否确认删除工序编号为"' + no + '"的数据项?') |
| | | // .then(function () { |
| | | // return del(ids); |
| | | // }) |
| | | // .then(() => { |
| | | // getList(); |
| | | // proxy.$modal.msgSuccess("删除成功"); |
| | | // }) |
| | | // .catch(() => {}); |
| | | const ids = selectedRows.value.map((item) => item.id); |
| | | proxy.$modal |
| | | .confirm('是否确认删除已勾选的数据项?') |
| | | .then(function () { |
| | | return del(ids); |
| | | }) |
| | | .then(() => { |
| | | getList(); |
| | | proxy.$modal.msgSuccess("删除成功"); |
| | | }) |
| | | .catch(() => {}); |
| | | } |
| | | |
| | | onMounted(() => { |