| | |
| | | import edit from './edit'; |
| | | import detail from './detail'; |
| | | import { getBaseUrl } from '@/utils/base'; |
| | | import listPage from '../../../mixins/listPage' |
| | | import listPage from '../../../mixins/listPage'; |
| | | |
| | | export default { |
| | | name: 'index', |
| | |
| | | }, |
| | | // 入库 |
| | | handleIncome(row) { |
| | | this.$confirm(`您确定 单号:${row.businessFormCode} 入库吗?`, '采购入库').then(() => { |
| | | procureIncome({ id: row.id }) |
| | | .then((res) => { |
| | | this.$message.success('入库成功!'); |
| | | this.search(); |
| | | }) |
| | | .catch(() => {}); |
| | | this.$confirm(`您确定 单号:${row.businessFormCode} 入库吗?`, '采购入库', { |
| | | beforeClose: (action, instance, done) => { |
| | | if (action == 'confirm') { |
| | | instance.confirmButtonLoading = true; |
| | | instance.confirmButtonText = '执行中...'; |
| | | procureIncome({ id: row.id }) |
| | | .then((res) => { |
| | | this.$message.success('入库成功!'); |
| | | done(); |
| | | instance.confirmButtonLoading = false; |
| | | this.search(); |
| | | }) |
| | | .catch(() => { |
| | | done(); |
| | | }); |
| | | } else { |
| | | done(); |
| | | } |
| | | }, |
| | | }); |
| | | }, |
| | | del(row) { |
| | | this.$modal.confirm('是否确认删除入库单号为"' + row.businessFormCode + '"的数据吗?').then( () => { |
| | | this.$modal.confirm('是否确认删除入库单号为"' + row.businessFormCode + '"的数据吗?').then(() => { |
| | | procureDel({ id: row.id }) |
| | | .then((res) => { |
| | | this.$message.success('删除成功!'); |