feat: 进销存更改
This commit is contained in:
@@ -2,26 +2,14 @@
|
||||
<div class="app-container">
|
||||
<!-- 列表 -->
|
||||
<!-- 搜索 -->
|
||||
<page-search
|
||||
ref="searchRef"
|
||||
:search-config="searchConfig"
|
||||
@query-click="newHandleQueryClick"
|
||||
@reset-click="handleResetClick"
|
||||
/>
|
||||
<page-search ref="searchRef" :search-config="searchConfig" @query-click="newHandleQueryClick"
|
||||
@reset-click="handleResetClick" />
|
||||
<!-- 统计 -->
|
||||
<data-tongji :data="gongjiData" />
|
||||
<!-- 列表 -->
|
||||
<page-content
|
||||
ref="contentRef"
|
||||
:content-config="contentConfig"
|
||||
@add-click="handleAddClick"
|
||||
@edit-click="handleEditClick"
|
||||
@export-click="handleExportClick"
|
||||
@search-click="handleSearchClick"
|
||||
@toolbar-click="handleToolbarClick"
|
||||
@operat-click="handleOperatClick"
|
||||
@filter-change="handleFilterChange"
|
||||
>
|
||||
<page-content ref="contentRef" :content-config="contentConfig" @add-click="handleAddClick"
|
||||
@edit-click="handleEditClick" @export-click="handleExportClick" @search-click="handleSearchClick"
|
||||
@toolbar-click="handleToolbarClick" @operat-click="handleOperatClick" @filter-change="handleFilterChange">
|
||||
<template #status="scope">
|
||||
<el-tag :type="scope.row[scope.prop] == 1 ? 'success' : 'info'">
|
||||
{{ scope.row[scope.prop] == 1 ? "启用" : "禁用" }}
|
||||
@@ -33,28 +21,22 @@
|
||||
<template #goods="scope">
|
||||
<div class="goodslang">
|
||||
<div class="goods-list">
|
||||
<el-button
|
||||
v-for="item in scope.row.productList"
|
||||
:key="item.productId"
|
||||
type="text"
|
||||
@click="toGoods(item.id)"
|
||||
>
|
||||
<el-button v-for="item in scope.row.productList" :key="item.productId" type="text"
|
||||
@click="toGoods(item.id)">
|
||||
{{ item.name }}
|
||||
</el-button>
|
||||
<span v-if="scope.row.productList.length > 1">,</span>
|
||||
</div>
|
||||
<el-dropdown v-if="scope.row.productList.length > 1" trigger="click" @command="toGoods">
|
||||
<span class="el-dropdown-link" style="color: blue">
|
||||
<el-icon><CaretBottom /></el-icon>
|
||||
<el-icon>
|
||||
<CaretBottom />
|
||||
</el-icon>
|
||||
</span>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item
|
||||
v-for="item in scope.row.productList"
|
||||
:key="item.id"
|
||||
class="clearfix"
|
||||
:command="item.id"
|
||||
>
|
||||
<el-dropdown-item v-for="item in scope.row.productList" :key="item.id" class="clearfix"
|
||||
:command="item.id">
|
||||
{{ item.name }}
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
@@ -73,21 +55,15 @@
|
||||
</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"
|
||||
/>
|
||||
<copy-button v-if="scope.row[scope.prop]" :text="scope.row[scope.prop]" style="margin-left: 2px" />
|
||||
</template>
|
||||
<template #operate="scope">
|
||||
<div
|
||||
style="
|
||||
<div style="
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
">
|
||||
<el-button type="primary" link @click="refAddHaocaiOpen(scope.row)">编辑</el-button>
|
||||
<el-button link type="primary" @click="refAddHaocaiTakinShow(scope.row, 'consumables')">
|
||||
耗材盘点
|
||||
|
||||
Reference in New Issue
Block a user