退货入库逻辑修改
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleCreateReturnStockIn"
|
||||
v-hasPermi="['in:stockIn:productBack']"
|
||||
>生成退料入库单</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
|
||||
@@ -119,6 +119,17 @@
|
||||
v-hasPermi="['out:outStockout:manualAllot']"
|
||||
>{{'手动分配'}}</el-button> <!-- 手动分配 -->
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleExportTask"
|
||||
v-hasPermi="['out:outStockout:export']"
|
||||
>{{'生成excel'}}</el-button> <!-- 导出任务 -->
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<!-- 主表数据 -->
|
||||
@@ -407,6 +418,10 @@ export default {
|
||||
outStockDetailList: [],
|
||||
// 选中数据
|
||||
selectedRows: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 选中的子表数据
|
||||
selectedDetailRows: [],
|
||||
// 审核弹窗显示状态
|
||||
@@ -571,6 +586,8 @@ export default {
|
||||
/** 多选框选中数据 */
|
||||
handleSelectionChange(selection) {
|
||||
this.selectedRows = selection
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 子表多选框选中数据 */
|
||||
handleDetailSelectionChange(selection) {
|
||||
@@ -690,7 +707,17 @@ export default {
|
||||
this.resetStockQuery()
|
||||
this.getStockList()
|
||||
},
|
||||
|
||||
/** 导出任务 */
|
||||
handleExportTask() {
|
||||
if (this.selectedRows.length !== 1) {
|
||||
this.$modal.msgWarning("请选择一条数据进行导出");
|
||||
return;
|
||||
}
|
||||
const stockoutId = this.selectedRows[0].stockoutId;
|
||||
this.download('/out/outStockout/export', {
|
||||
stockoutId: stockoutId
|
||||
}, `out_stockout_task_${stockoutId}_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
/** 提交审核 */
|
||||
submitAudit() {
|
||||
this.$refs["auditForm"].validate(valid => {
|
||||
|
||||
Reference in New Issue
Block a user