| | |
| | | <div v-if="item.states == 4" class="states states-info">已撤销</div> |
| | | </div> |
| | | <div class="card-header-right"> |
| | | <el-button |
| | | v-if="item.states == 1" |
| | | site="form" |
| | | type="success" |
| | | size="mini" |
| | | <el-button v-if="item.states == 1" site="form" type="success" size="mini" |
| | | >导出调拨出库单</el-button |
| | | > |
| | | <el-button |
| | |
| | | @click="handleOutput(item)" |
| | | >出库</el-button |
| | | > |
| | | <el-button |
| | | v-if="item.states == 2" |
| | | site="form" |
| | | type="primary" |
| | | size="mini" |
| | | <el-button v-if="item.states == 2" site="form" type="primary" size="mini" |
| | | >导出调拨入库单</el-button |
| | | > |
| | | <el-button name="查看详情" site="form" type="info" size="mini" @click="handleDetail(item)" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { transferList,transferOutput } from '@/api/stock/transfer'; |
| | | import { transferList, transferOutput } from '@/api/stock/transfer'; |
| | | import MyButton from '@/components/myButton/myButton'; |
| | | import myImport from '@/views/components/myImport'; |
| | | import detail from './detail'; |
| | |
| | | }); |
| | | }, |
| | | handleOutput(row) { |
| | | this.$confirm(`您确定 单号:${row.businessFormCode} 调拨出库吗?`, '调拨出库').then(() => { |
| | | transferOutput({ id: row.id }) |
| | | .then((res) => { |
| | | this.$message.success('调拨出库成功!'); |
| | | this.search(1); |
| | | }) |
| | | this.$confirm(`您确定 单号:${row.businessFormCode} 调拨出库吗?`, '调拨出库', { |
| | | beforeClose: (action, instance, done) => { |
| | | if (action == 'confirm') { |
| | | instance.confirmButtonLoading = true; |
| | | instance.confirmButtonText = '执行中...'; |
| | | transferOutput({ id: row.id }) |
| | | .then((res) => { |
| | | this.$message.success('调拨出库成功!'); |
| | | done(); |
| | | instance.confirmButtonLoading = false; |
| | | this.search(1); |
| | | }) |
| | | .catch(() => { |
| | | done(); |
| | | }); |
| | | } else { |
| | | done(); |
| | | } |
| | | }, |
| | | }); |
| | | }, |
| | | fifterForm(params) { |