fix:光芯辅料出入库详情撤回并删除
This commit is contained in:
parent
233c178480
commit
1c87245eb8
|
@ -43,7 +43,12 @@
|
||||||
show-summary
|
show-summary
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column label="日期" prop="inout_date" sortable>
|
<el-table-column label="类型" width="80">
|
||||||
|
<template #default="scope">
|
||||||
|
<span v-if="scope.row.mio_">{{typeDict[scope.row.mio_.type] }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="日期" prop="inout_date" sortable width="90">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="物料编号" show-overflow-tooltip min-width="80"
|
<el-table-column label="物料编号" show-overflow-tooltip min-width="80"
|
||||||
:filters="nameFilters1"
|
:filters="nameFilters1"
|
||||||
|
@ -85,7 +90,7 @@
|
||||||
<span v-if="scope.row.material_">{{ scope.row.material_.model }}</span>
|
<span v-if="scope.row.material_">{{ scope.row.material_.model }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="单位" prop="batch"
|
<el-table-column label="单位" prop="batch" width="70"
|
||||||
:filters="nameFilters6"
|
:filters="nameFilters6"
|
||||||
:filter-method="filterName6"
|
:filter-method="filterName6"
|
||||||
filter-placement="bottom-end">
|
filter-placement="bottom-end">
|
||||||
|
@ -125,6 +130,20 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="供应商" prop="supplier_name">
|
<el-table-column label="供应商" prop="supplier_name">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
fixed="right"
|
||||||
|
width="80"
|
||||||
|
>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button
|
||||||
|
size="small"
|
||||||
|
type="danger"
|
||||||
|
@click="revertAndDel(scope.row)"
|
||||||
|
v-if="scope.row.mio_&&scope.row.mio_.state == 20"
|
||||||
|
>撤消</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-main>
|
</el-main>
|
||||||
<el-footer>
|
<el-footer>
|
||||||
|
@ -199,6 +218,7 @@ export default {
|
||||||
getList(val){
|
getList(val){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.page = val?val:1;
|
that.params.page = val?val:1;
|
||||||
|
that.params.with_mio = 'yes';
|
||||||
that.params.search = that.query.search;
|
that.params.search = that.query.search;
|
||||||
that.params.mio__inout_date__gte = that.query.mio__inout_date__gte;
|
that.params.mio__inout_date__gte = that.query.mio__inout_date__gte;
|
||||||
that.params.mio__inout_date__lte = that.query.mio__inout_date__lte;
|
that.params.mio__inout_date__lte = that.query.mio__inout_date__lte;
|
||||||
|
@ -339,7 +359,7 @@ export default {
|
||||||
sums[index] = "合计";
|
sums[index] = "合计";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (index == 8|| index == 10) {
|
if (index == 9|| index == 11) {
|
||||||
const values = data.map((item) =>
|
const values = data.map((item) =>
|
||||||
Number(item[column.property])
|
Number(item[column.property])
|
||||||
);
|
);
|
||||||
|
@ -387,6 +407,19 @@ export default {
|
||||||
filterName9(value, row) {
|
filterName9(value, row) {
|
||||||
return row. 入库凭证号 === value;
|
return row. 入库凭证号 === value;
|
||||||
},
|
},
|
||||||
|
revertAndDel(row){
|
||||||
|
let that = this;
|
||||||
|
that.$confirm('此操作将撤回并删除该记录, 是否继续?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(res=>{
|
||||||
|
that.$API.inm.mioitem.revertDel.req(row.id).then(res=>{
|
||||||
|
that.$message.success("撤回并删除成功");
|
||||||
|
that.getList(1);
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue