| | |
| | | }) |
| | | } |
| | | |
| | | export const inventoryRemove = (ids) => { |
| | | return request({ |
| | | url: '/api/inventory/inventory/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const addKC = (row) => { |
| | | return request({ |
| | | url: '/api/inventory/inventory/submit', |
| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getInventoryPage } from "@/api/sale/sale" |
| | | import { getInventoryPage,inventoryRemove } from "@/api/sale/sale" |
| | | import { mapGetters } from "vuex" |
| | | export default { |
| | | data () { |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | delBtn: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | selectionFixed: false, |
| | | expandFixed: false, |
| | | menuFixed: false, |
| | | menu: false, |
| | | menu: true, |
| | | header:false, |
| | | column: [ |
| | | { |
| | |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return inventoryRemove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPage } from "@/api/retrieval/retrieval" |
| | | import { getPage,remove } from "@/api/retrieval/retrieval" |
| | | import { mapGetters } from "vuex" |
| | | export default { |
| | | data () { |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | delBtn: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | selectionFixed: false, |
| | | expandFixed: false, |
| | | menuFixed: false, |
| | | menu: false, |
| | | menu: true, |
| | | header:false, |
| | | column: [ |
| | | { |
| | |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :permission="permissionList" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @row-del="rowDel" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getPage } from "@/api/sale/sale" |
| | | import { getPage,remove } from "@/api/sale/sale" |
| | | import { mapGetters } from "vuex" |
| | | export default { |
| | | data () { |
| | |
| | | editBtn: false, |
| | | addBtn: false, |
| | | delBtn: true, |
| | | viewBtn: true, |
| | | viewBtn: false, |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | selectionFixed: false, |
| | | expandFixed: false, |
| | | menuFixed: false, |
| | | menu: false, |
| | | menu: true, |
| | | header:false, |
| | | column: [ |
| | | { |
| | |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | rowDel(row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove(row.id); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |