fix:coding#413库存模块

This commit is contained in:
shijing 2024-05-22 17:36:06 +08:00
parent 516319c53d
commit 4ab4bc7214
6 changed files with 576 additions and 329 deletions

View File

@ -1,160 +1,251 @@
<template> <template>
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="add('do_in')" v-auth="'mio.do'">生产入库</el-button> <el-button
<el-button type="primary" @click="add('sale_out')" v-auth="'mio.sale'">销售发货</el-button> type="primary"
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" @click="add('do_in')"
@change="handleQuery"> v-auth="'mio.do'"
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> >生产入库</el-button
</el-select> >
<el-select v-model="query.state" clearable style="width: 120px; margin-left: 2px" placeholder="状态" <el-button
@change="handleQuery"> type="primary"
<el-option v-for="item in stateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> @click="add('sale_out')"
</el-select> v-auth="'mio.sale'"
</div> >销售发货</el-button
<div class="right-panel"> >
<el-input v-model="query.search" placeholder="编号" clearable style="margin-right: 5px;"></el-input> <el-select
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> v-model="query.type"
</div> clearable
</el-header> style="width: 120px; margin-left: 2px"
<el-main class="nopadding"> placeholder="出入库类型"
<scTable ref="table" :apiObj="apiObj" :params="params" :query="query" row-key="id" stripe> @change="handleQuery"
<el-table-column type="index" width="50" /> >
<el-table-column label="记录编号" prop="number"></el-table-column> <el-option
<el-table-column label="出/入库类型"> v-for="item in cateOptions"
<template #default="scope"> :key="item.id"
{{ typeDict[scope.row.type] }} :label="item.name"
</template> :value="item.id"
</el-table-column> ></el-option>
<el-table-column label="记录状态"> </el-select>
<template #default="scope"> <el-select
{{ stateDict[scope.row.state] }} v-model="query.state"
</template> clearable
</el-table-column> style="width: 120px; margin-left: 2px"
<el-table-column label="出/入库日期" prop="inout_date"> placeholder="状态"
</el-table-column> @change="handleQuery"
<el-table-column label="执行车间" prop="belong_dept_name"> >
</el-table-column> <el-option
<el-table-column label="创建人" prop="create_by_name"> v-for="item in stateOptions"
</el-table-column> :key="item.id"
<el-table-column label="创建时间" prop="create_time"> :label="item.name"
</el-table-column> :value="item.id"
<el-table-column label="操作" fixed="right" align="center" width="150px"> ></el-option>
<template #default="scope"> </el-select>
<el-button link type="primary" @click="table_detail(scope.row)"> </div>
查看 <div class="right-panel">
</el-button> <el-input
<el-button link type="primary" @click="table_submit(scope.row)" v-auth="'mio.submit'" v-model="query.search"
v-if="scope.row.state == 10"> placeholder="编号"
提交 clearable
</el-button> style="margin-right: 5px"
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mio.delete'" ></el-input>
v-if="scope.row.state == 10"> <el-button
删除 type="primary"
</el-button> icon="el-icon-search"
</template> @click="handleQuery"
</el-table-column> ></el-button>
</scTable> </div>
</el-main> </el-header>
</el-container> <el-main class="nopadding">
<save-dialog v-if="dialog.save" ref="saveDialog" @success="handleSaveSuccess" <scTable
@closed="dialog.save = false"></save-dialog> ref="table"
:apiObj="apiObj"
:params="params"
:query="query"
row-key="id"
stripe
>
<el-table-column type="index" width="50" />
<el-table-column
label="记录编号"
prop="number"
></el-table-column>
<el-table-column label="出/入库类型">
<template #default="scope">
{{ typeDict[scope.row.type] }}
</template>
</el-table-column>
<el-table-column label="记录状态">
<template #default="scope">
{{ stateDict[scope.row.state] }}
</template>
</el-table-column>
<el-table-column label="出/入库日期" prop="inout_date">
</el-table-column>
<el-table-column label="执行车间" prop="belong_dept_name">
</el-table-column>
<el-table-column label="创建人" prop="create_by_name">
</el-table-column>
<el-table-column label="创建时间" prop="create_time">
</el-table-column>
<el-table-column
label="操作"
fixed="right"
align="center"
width="150px"
>
<template #default="scope">
<el-button
link
type="primary"
@click="table_detail(scope.row)"
>
查看
</el-button>
<el-button
link
type="primary"
@click="table_submit(scope.row)"
v-auth="'mio.submit'"
v-if="scope.row.state == 10"
>
提交
</el-button>
<el-button
link
type="danger"
@click="table_del(scope.row)"
v-auth="'mio.delete'"
v-if="scope.row.state == 10"
>
删除
</el-button>
</template>
</el-table-column>
</scTable>
</el-main>
</el-container>
<save-dialog
v-if="dialog.save"
ref="saveDialog"
@success="handleSaveSuccess"
@closed="dialog.save = false"
></save-dialog>
<el-drawer title="出入库记录" v-model="dialog.record" :size="'90%'">
<record-dialog
:type="type"
:cate="cate"
:mioId="mioId"
ref="recordDialogs"
>
</record-dialog>
</el-drawer>
</template> </template>
<script> <script>
import saveDialog from "./mio_form.vue"; import saveDialog from "./mio_form.vue";
import recordDialog from "./mioitem.vue";
export default { export default {
name: "mio", name: "mio",
components: { components: {
saveDialog saveDialog,
}, recordDialog,
data() { },
return { data() {
stateDict: { return {
10: '创建中', stateDict: {
20: '已提交' 10: "创建中",
}, 20: "已提交",
stateOptions: [ },
{ id: 10, name: '创建中' }, stateOptions: [
{ id: 20, name: '已提交' }, { id: 10, name: "创建中" },
], { id: 20, name: "已提交" },
typeDict: { ],
'sale_out': '销售发货', typeDict: {
'do_in': '生产入库', sale_out: "销售发货",
}, do_in: "生产入库",
cateOptions: [ },
{ id: 'sale_out', name: '销售发货' }, cateOptions: [
{ id: 'do_in', name: '生产入库' }, { id: "sale_out", name: "销售发货" },
], { id: "do_in", name: "生产入库" },
dialog: { ],
save: false, dialog: {
}, save: false,
query: { record: false,
},
}, query: {},
params: { params: {
type__in: 'sale_out,do_in', type__in: "sale_out,do_in",
materials__type: 10 materials__type: 10,
}, },
form: { form: {},
apiObj: this.$API.inm.mio.list,
}, selection: [],
apiObj: this.$API.inm.mio.list, type: "",
selection: [], cate: "good",
}; mioId: "",
}, };
methods: { },
// methods: {
add(type) { //
this.dialog.save = true; add(type) {
this.$nextTick(() => { this.dialog.save = true;
this.$refs.saveDialog.open("add", type); this.$nextTick(() => {
}); this.$refs.saveDialog.open("add", type);
}, });
// },
table_edit(row) { //
this.dialog.save = true; table_edit(row) {
this.$nextTick(() => { this.dialog.save = true;
this.$refs.saveDialog.open("edit", type).setData(row); this.$nextTick(() => {
}); this.$refs.saveDialog.open("edit", type).setData(row);
}, });
// },
table_detail(row) { //
this.$router.push({ table_detail(row) {
name: "mioitem", this.type = row.type;
query: { mio: row.id, type: row.type, cate: 'good' } this.mioId = row.id;
}); this.dialog.record = true;
}, // this.$router.push({
// // name: "mioitem",
table_del(row) { // query: { mio: row.id, type: row.type, cate: "good" },
this.$confirm(`确定删除吗?`, "提示", { // });
type: "warning", },
}).then(() => { //
this.$API.inm.mio.delete.req(row.id).then((res) => { table_del(row) {
this.$message.success("删除成功"); this.$confirm(`确定删除吗?`, "提示", {
this.$refs.table.refresh(); type: "warning",
return res; })
}).catch((err) => { .then(() => {
return err; this.$API.inm.mio.delete
}); .req(row.id)
}).catch(() => { }); .then((res) => {
}, this.$message.success("删除成功");
table_submit(row) { this.$refs.table.refresh();
this.$API.inm.mio.submit.req(row.id).then(res => { return res;
this.$message.success("提交成功"); })
this.$refs.table.refresh() .catch((err) => {
}) return err;
}, });
handleQuery() { })
this.$refs.table.queryData(this.query) .catch(() => {});
}, },
resetQuery() { table_submit(row) {
this.query = {}; this.$API.inm.mio.submit.req(row.id).then((res) => {
}, this.$message.success("提交成功");
handleSaveSuccess() { this.$refs.table.refresh();
this.$refs.table.refresh() });
} },
}, handleQuery() {
this.$refs.table.queryData(this.query);
},
resetQuery() {
this.query = {};
},
handleSaveSuccess() {
this.$refs.table.refresh();
},
},
}; };
</script> </script>

View File

@ -149,13 +149,23 @@
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="dialog.save = false" @closed="dialog.save = false"
></save-dialog> ></save-dialog>
<el-drawer title="出入库记录" v-model="dialog.record" :size="'90%'">
<record-dialog
:type="type"
:cate="cate"
:mioId="mioId"
ref="recordDialogs"
>
</record-dialog>
</el-drawer>
</template> </template>
<script> <script>
import saveDialog from "./mio_form.vue"; import saveDialog from "./mio_form.vue";
import recordDialog from "./mioitem.vue";
export default { export default {
name: "mio", name: "mio",
components: { components: {
recordDialog,
saveDialog, saveDialog,
}, },
data() { data() {
@ -178,6 +188,7 @@ export default {
], ],
dialog: { dialog: {
save: false, save: false,
record: false,
}, },
query: {}, query: {},
params: { params: {
@ -187,6 +198,9 @@ export default {
form: {}, form: {},
apiObj: this.$API.inm.mio.list, apiObj: this.$API.inm.mio.list,
selection: [], selection: [],
type: "",
cate: "halfgood",
mioId: "",
}; };
}, },
methods: { methods: {
@ -206,10 +220,13 @@ export default {
}, },
// //
table_detail(row) { table_detail(row) {
this.$router.push({ this.type = row.type;
name: "mioitem", this.mioId = row.id;
query: { mio: row.id, type: row.type, cate: "halfgood" }, this.dialog.record = true;
}); // this.$router.push({
// name: "mioitem",
// query: { mio: row.id, type: row.type, cate: "halfgood" },
// });
}, },
// //
table_del(row) { table_del(row) {

View File

@ -132,14 +132,25 @@
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="dialog.save = false" @closed="dialog.save = false"
></save-dialog> ></save-dialog>
<el-drawer title="出入库记录" v-model="dialog.record" :size="'90%'">
<record-dialog
:type="type"
:cate="cate"
:mioId="mioId"
ref="recordDialogs"
>
</record-dialog>
</el-drawer>
</template> </template>
<script> <script>
import saveDialog from "./mio_form.vue"; import saveDialog from "./mio_form.vue";
import recordDialog from "./mioitem.vue";
export default { export default {
name: "mio", name: "mio",
components: { components: {
saveDialog, saveDialog,
recordDialog,
}, },
data() { data() {
return { return {
@ -155,6 +166,7 @@ export default {
cateOptions: [{ id: "pur_in", name: "采购入库" }], cateOptions: [{ id: "pur_in", name: "采购入库" }],
dialog: { dialog: {
save: false, save: false,
record: false,
}, },
query: {}, query: {},
params: { params: {
@ -164,6 +176,9 @@ export default {
form: {}, form: {},
apiObj: this.$API.inm.mio.list, apiObj: this.$API.inm.mio.list,
selection: [], selection: [],
type: "",
cate: "helpso",
mioId: "",
}; };
}, },
methods: { methods: {
@ -183,10 +198,13 @@ export default {
}, },
// //
table_detail(row) { table_detail(row) {
this.$router.push({ this.type = row.type;
name: "mioitem", this.mioId = row.id;
query: { mio: row.id, type: row.type, cate: "helpso" }, this.dialog.record = true;
}); // this.$router.push({
// name: "mioitem",
// query: { mio: row.id, type: row.type, cate: "helpso" },
// });
}, },
// //
table_del(row) { table_del(row) {

View File

@ -149,14 +149,25 @@
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="dialog.save = false" @closed="dialog.save = false"
></save-dialog> ></save-dialog>
<el-drawer title="出入库记录" v-model="dialog.record" :size="'90%'">
<record-dialog
:type="type"
:cate="cate"
:mioId="mioId"
ref="recordDialogs"
>
</record-dialog>
</el-drawer>
</template> </template>
<script> <script>
import saveDialog from "./mio_form.vue"; import saveDialog from "./mio_form.vue";
import recordDialog from "./mioitem.vue";
export default { export default {
name: "mio", name: "mio",
components: { components: {
saveDialog, saveDialog,
recordDialog,
}, },
data() { data() {
return { return {
@ -178,6 +189,7 @@ export default {
], ],
dialog: { dialog: {
save: false, save: false,
record: false,
}, },
query: {}, query: {},
params: { params: {
@ -187,6 +199,9 @@ export default {
form: {}, form: {},
apiObj: this.$API.inm.mio.list, apiObj: this.$API.inm.mio.list,
selection: [], selection: [],
type: "",
cate: "mainso",
mioId: "",
}; };
}, },
methods: { methods: {
@ -206,10 +221,13 @@ export default {
}, },
// //
table_detail(row) { table_detail(row) {
this.$router.push({ this.type = row.type;
name: "mioitem", this.mioId = row.id;
query: { mio: row.id, type: row.type, cate: "mainso" }, this.dialog.record = true;
}); // this.$router.push({
// name: "mioitem",
// query: { mio: row.id, type: row.type, cate: "mainso" },
// });
}, },
// //
table_del(row) { table_del(row) {

View File

@ -1,170 +1,258 @@
<template> <template>
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<!-- <el-button type="primary" @click="add('do_in')">生产入库</el-button> <!-- <el-button type="primary" @click="add('do_in')">生产入库</el-button>
<el-button type="primary" @click="add('do_out')">生产领料</el-button> <el-button type="primary" @click="add('do_out')">生产领料</el-button>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<el-button type="primary" @click="add('pur_in')">采购入库</el-button> <el-button type="primary" @click="add('pur_in')">采购入库</el-button>
<el-button type="primary" @click="add('sale_out')">销售发货</el-button> <el-button type="primary" @click="add('sale_out')">销售发货</el-button>
<el-divider direction="vertical"></el-divider> --> <el-divider direction="vertical"></el-divider> -->
<el-button type="primary" @click="add('other_in')" v-auth="'mio.other'">其他入库</el-button> <el-button
<el-button type="primary" @click="add('other_out')" v-auth="'mio.other'">其他出库</el-button> type="primary"
<el-select v-model="query.type" clearable style="width: 120px; margin-left: 2px" placeholder="出入库类型" @click="add('other_in')"
@change="handleQuery"> v-auth="'mio.other'"
<el-option v-for="item in cateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> >其他入库</el-button
</el-select> >
<el-select v-model="query.state" clearable style="width: 120px; margin-left: 2px" placeholder="状态" <el-button
@change="handleQuery"> type="primary"
<el-option v-for="item in stateOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> @click="add('other_out')"
</el-select> v-auth="'mio.other'"
</div> >其他出库</el-button
<div class="right-panel"> >
<el-input v-model="query.search" placeholder="编号" clearable style="margin-right: 5px;"></el-input> <el-select
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> v-model="query.type"
</div> clearable
</el-header> style="width: 120px; margin-left: 2px"
<el-main class="nopadding"> placeholder="出入库类型"
<scTable ref="table" :apiObj="apiObj" row-key="id" stripe> @change="handleQuery"
<el-table-column type="index" width="50" /> >
<el-table-column label="记录编号" prop="number"></el-table-column> <el-option
<el-table-column label="出/入库类型"> v-for="item in cateOptions"
<template #default="scope"> :key="item.id"
{{ typeDict[scope.row.type] }} :label="item.name"
</template> :value="item.id"
</el-table-column> ></el-option>
<el-table-column label="记录状态"> </el-select>
<template #default="scope"> <el-select
{{ stateDict[scope.row.state] }} v-model="query.state"
</template> clearable
</el-table-column> style="width: 120px; margin-left: 2px"
<el-table-column label="出/入库日期" prop="inout_date"> placeholder="状态"
</el-table-column> @change="handleQuery"
>
<el-option
v-for="item in stateOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</div>
<div class="right-panel">
<el-input
v-model="query.search"
placeholder="编号"
clearable
style="margin-right: 5px"
></el-input>
<el-button
type="primary"
icon="el-icon-search"
@click="handleQuery"
></el-button>
</div>
</el-header>
<el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id" stripe>
<el-table-column type="index" width="50" />
<el-table-column
label="记录编号"
prop="number"
></el-table-column>
<el-table-column label="出/入库类型">
<template #default="scope">
{{ typeDict[scope.row.type] }}
</template>
</el-table-column>
<el-table-column label="记录状态">
<template #default="scope">
{{ stateDict[scope.row.state] }}
</template>
</el-table-column>
<el-table-column label="出/入库日期" prop="inout_date">
</el-table-column>
<el-table-column label="创建人" prop="create_by_name"> <el-table-column label="创建人" prop="create_by_name">
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="create_time"> <el-table-column label="创建时间" prop="create_time">
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="150px"> <el-table-column
<template #default="scope"> label="操作"
<el-button link type="primary" @click="table_detail(scope.row)"> fixed="right"
查看 align="center"
</el-button> width="150px"
<el-button link type="primary" @click="table_submit(scope.row)" v-auth="'mio.submit'" >
v-if="scope.row.state == 10&&(scope.row.type=='other_in'||scope.row.type=='other_out')"> <template #default="scope">
提交 <el-button
</el-button> link
<el-button link type="danger" @click="table_del(scope.row)" v-auth="'mio.delete'" type="primary"
v-if="scope.row.state == 10&&(scope.row.type=='other_in'||scope.row.type=='other_out')"> @click="table_detail(scope.row)"
删除 >
</el-button> 查看
</template> </el-button>
</el-table-column> <el-button
</scTable> link
</el-main> type="primary"
</el-container> @click="table_submit(scope.row)"
<save-dialog v-if="dialog.save" ref="saveDialog" @success="handleSaveSuccess" v-auth="'mio.submit'"
@closed="dialog.save = false"></save-dialog> v-if="
scope.row.state == 10 &&
(scope.row.type == 'other_in' ||
scope.row.type == 'other_out')
"
>
提交
</el-button>
<el-button
link
type="danger"
@click="table_del(scope.row)"
v-auth="'mio.delete'"
v-if="
scope.row.state == 10 &&
(scope.row.type == 'other_in' ||
scope.row.type == 'other_out')
"
>
删除
</el-button>
</template>
</el-table-column>
</scTable>
</el-main>
</el-container>
<save-dialog
v-if="dialog.save"
ref="saveDialog"
@success="handleSaveSuccess"
@closed="dialog.save = false"
></save-dialog>
<el-drawer title="出入库记录" v-model="dialog.record" :size="'90%'">
<record-dialog :type="type" :mioId="mioId" ref="recordDialogs">
</record-dialog>
</el-drawer>
</template> </template>
<script> <script>
import saveDialog from "./mio_form.vue"; import saveDialog from "./mio_form.vue";
import recordDialog from "./mioitem.vue";
export default { export default {
name: "mio", name: "mio",
components: { components: {
saveDialog saveDialog,
}, recordDialog,
data() { },
return { data() {
stateDict: { return {
10: '创建中', stateDict: {
20: '已提交' 10: "创建中",
}, 20: "已提交",
stateOptions: [ },
{ id: 10, name: '创建中' }, stateOptions: [
{ id: 20, name: '已提交' }, { id: 10, name: "创建中" },
], { id: 20, name: "已提交" },
typeDict: { ],
'do_out': '生产领料', typeDict: {
'sale_out': '销售发货', do_out: "生产领料",
'pur_in': '采购入库', sale_out: "销售发货",
'do_in': '生产入库', pur_in: "采购入库",
'other_in': '其他入库', do_in: "生产入库",
'other_out': '其他出库', other_in: "其他入库",
}, other_out: "其他出库",
cateOptions: [ },
{ id: 'do_out', name: '生产领料' }, cateOptions: [
{ id: 'sale_out', name: '销售发货' }, { id: "do_out", name: "生产领料" },
{ id: 'pur_in', name: '采购入库' }, { id: "sale_out", name: "销售发货" },
{ id: 'do_in', name: '生产入库' }, { id: "pur_in", name: "采购入库" },
{ id: 'other_in', name: '其他入库' }, { id: "do_in", name: "生产入库" },
{ id: 'other_out', name: '其他出库' }, { id: "other_in", name: "其他入库" },
], { id: "other_out", name: "其他出库" },
dialog: { ],
save: false, dialog: {
}, save: false,
query: { record: false,
search: '' },
}, query: {
form: { search: "",
},
form: {},
apiObj: this.$API.inm.mio.list,
selection: [],
type: "",
mioId: "",
};
},
methods: {
//
add(type) {
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("add", type);
});
},
//
table_edit(row) {
this.dialog.save = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("edit", type).setData(row);
});
},
//
table_detail(row) {
this.type = row.type;
this.mioId = row.id;
this.dialog.record = true;
// this.$router.push({
// name: "mioitem",
// query: { mio: row.id ,type:row.type}
}, // });
apiObj: this.$API.inm.mio.list, },
selection: [], //
}; table_del(row) {
}, this.$confirm(`确定删除吗?`, "提示", {
methods: { type: "warning",
// })
add(type) { .then(() => {
this.dialog.save = true; this.$API.inm.mio.delete
this.$nextTick(() => { .req(row.id)
this.$refs.saveDialog.open("add", type); .then((res) => {
}); this.$message.success("删除成功");
}, this.$refs.table.refresh();
// return res;
table_edit(row) { })
this.dialog.save = true; .catch((err) => {
this.$nextTick(() => { return err;
this.$refs.saveDialog.open("edit", type).setData(row); });
}); })
}, .catch(() => {});
// },
table_detail(row) { table_submit(row) {
this.$router.push({ this.$API.inm.mio.submit.req(row.id).then((res) => {
name: "mioitem", this.$message.success("提交成功");
query: { mio: row.id ,type:row.type} this.$refs.table.refresh();
});
}); },
}, handleQuery() {
// this.$refs.table.queryData(this.query);
table_del(row) { },
this.$confirm(`确定删除吗?`, "提示", { resetQuery() {
type: "warning", this.query = {};
}).then(() => { },
this.$API.inm.mio.delete.req(row.id).then((res) => { handleSaveSuccess() {
this.$message.success("删除成功"); this.$refs.table.refresh();
this.$refs.table.refresh(); },
return res; },
}).catch((err) => {
return err;
});
}).catch(() => { });
},
table_submit(row) {
this.$API.inm.mio.submit.req(row.id).then(res => {
this.$message.success("提交成功");
this.$refs.table.refresh()
})
},
handleQuery() {
this.$refs.table.queryData(this.query)
},
resetQuery() {
this.query = {};
},
handleSaveSuccess() {
this.$refs.table.refresh()
}
},
}; };
</script> </script>

View File

@ -203,6 +203,20 @@ export default {
saveDialog, saveDialog,
checkDialog, checkDialog,
}, },
props: {
type: {
type: String,
default: "",
},
cate: {
type: String,
default: "",
},
mioId: {
type: String,
default: "",
},
},
data() { data() {
return { return {
dialog: { dialog: {
@ -211,7 +225,7 @@ export default {
}, },
apiObj: null, apiObj: null,
params: {}, params: {},
mioId: "", // mioId: "",
mioObj: {}, mioObj: {},
selection: [], selection: [],
stateDict: { stateDict: {
@ -227,16 +241,17 @@ export default {
other_out: "其他出库", other_out: "其他出库",
}, },
mioitemId: "", mioitemId: "",
type: "", // type: "",
cate: "", // cate: "",
objitem: {}, objitem: {},
}; };
}, },
mounted() { mounted() {
this.type = this.$route.query.type; // this.type = this.$route.query.type;
this.cate = this.$route.query.cate; // this.cate = this.$route.query.cate;
this.mioId = this.$route.query.mio; // this.mioId = this.$route.query.mio;
this.params.mio = this.$route.query.mio; // this.params.mio = this.$route.query.mio;
this.params.mio = this.mioId;
this.apiObj = this.$API.inm.mioitem.list; this.apiObj = this.$API.inm.mioitem.list;
this.getMio(); this.getMio();
}, },