feat: 数据更改
This commit is contained in:
@@ -168,7 +168,7 @@ const refAddHaocaiTakin = ref();
|
||||
function refAddHaocaiTakinShow(item: any, type: string) {
|
||||
console.log(item);
|
||||
if (type === "manual-in") {
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutType: type, conId: item.id } });
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutItem: type, conId: item.id } });
|
||||
return;
|
||||
}
|
||||
if (type === "delete") {
|
||||
@@ -222,7 +222,7 @@ function handleToolbarClick(name: string) {
|
||||
return;
|
||||
}
|
||||
if (name == "damage-out" || name == "manual-out" || name == "manual-in") {
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutType: name } });
|
||||
router.push({ path: "/inventory/libraryrecords", query: { inOutItem: name } });
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,9 +67,8 @@ const contentConfig: IContentConfig = {
|
||||
{
|
||||
label: "变动原因",
|
||||
align: "center",
|
||||
prop: "inOutItem",
|
||||
template: "custom",
|
||||
slotName: "inOutItem",
|
||||
templet: "custom",
|
||||
slotName: "conUnit",
|
||||
},
|
||||
{
|
||||
label: "变动前的库存",
|
||||
|
||||
@@ -6,7 +6,7 @@ const searchConfig: ISearchConfig = {
|
||||
{
|
||||
type: "select",
|
||||
label: "类型",
|
||||
prop: "inOutItem",
|
||||
prop: "inOutType",
|
||||
attrs: {
|
||||
placeholder: "请选择",
|
||||
clearable: true,
|
||||
@@ -28,7 +28,7 @@ const searchConfig: ISearchConfig = {
|
||||
{
|
||||
type: "select",
|
||||
label: "名目",
|
||||
prop: "inOutType",
|
||||
prop: "inOutItem",
|
||||
attrs: {
|
||||
placeholder: "请选择",
|
||||
clearable: true,
|
||||
|
||||
@@ -19,29 +19,13 @@
|
||||
@operat-click="handleOperatClick"
|
||||
@filter-change="handleFilterChange"
|
||||
>
|
||||
<template #inOutItem="scope">
|
||||
<text v-if="scope.row.inOutItem == 'manual-in'">手动入库</text>
|
||||
<text v-if="scope.row.inOutItem == 'manual-out'">手动出库</text>
|
||||
<text v-if="scope.row.inOutItem == 'win-in'">盘盈入库</text>
|
||||
<text v-if="scope.row.inOutItem == 'loss-out'">盘亏出库</text>
|
||||
<text v-if="scope.row.inOutItem == 'order-in'">订单退款入库</text>
|
||||
<text v-if="scope.row.inOutItem == 'order-out'">订单消费出库</text>
|
||||
</template>
|
||||
<template #status="scope">
|
||||
<el-tag :type="scope.row[scope.prop] == 1 ? 'success' : 'info'">
|
||||
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #switch="scope">
|
||||
<el-switch v-model="scope.row[scope.prop]" disabled :active-value="1" :inactive-value="0" />
|
||||
</template>
|
||||
<template #mobile="scope">
|
||||
<el-text>{{ scope.row[scope.prop] }}</el-text>
|
||||
<copy-button
|
||||
v-if="scope.row[scope.prop]"
|
||||
:text="scope.row[scope.prop]"
|
||||
style="margin-left: 2px"
|
||||
/>
|
||||
<template #conUnit="scope">
|
||||
<span v-if="scope.row.inOutItem == 'manual-in'">手动入库</span>
|
||||
<span v-if="scope.row.inOutItem == 'manual-out'">手动出库</span>
|
||||
<span v-if="scope.row.inOutItem == 'win-in'">盘盈入库</span>
|
||||
<span v-if="scope.row.inOutItem == 'loss-out'">盘亏出库</span>
|
||||
<span v-if="scope.row.inOutItem == 'order-in'">订单退款入库</span>
|
||||
<span v-if="scope.row.inOutItem == 'order-out'">订单消费出库</span>
|
||||
</template>
|
||||
</page-content>
|
||||
|
||||
@@ -87,11 +71,11 @@ const {
|
||||
|
||||
// 默认初始数据
|
||||
const route = useRoute();
|
||||
const { inOutType, conId } = route.query;
|
||||
if (inOutType || conId) {
|
||||
contentConfig.indexActionData = { inOutType, conId };
|
||||
if (inOutType) {
|
||||
searchConfig.formItems[1].initialValue = inOutType;
|
||||
const { inOutItem, conId } = route.query;
|
||||
if (inOutItem || conId) {
|
||||
contentConfig.indexActionData = { inOutItem, conId };
|
||||
if (inOutItem) {
|
||||
searchConfig.formItems[1].initialValue = inOutItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-col v-if="type == 'in'" :span="8">
|
||||
<el-form-item label="供应商">
|
||||
<el-select
|
||||
v-model="queryForm.vendorId"
|
||||
@@ -83,11 +83,11 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<!-- <el-col :span="8">
|
||||
<el-form-item label="批号">
|
||||
<el-input v-model="queryForm.batchNo" placeholder="请输入批号" style="width: 220px" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
|
||||
Reference in New Issue
Block a user