This commit is contained in:
zmj 2024-05-10 18:13:10 +08:00
parent a7a79b6004
commit 137ced05f4
16 changed files with 120 additions and 290 deletions

View File

@ -1,5 +1,5 @@
NODE_ENV = 'development' NODE_ENV = 'development'
VITE_NOW_TYPE = 'dist' VITE_NOW_TYPE = 'dist'
# Base API # Base API
VITE_APP_BASE_URL='http://192.168.1.14:8546' # VITE_APP_BASE_URL='http://192.168.1.14:8546'
# VITE_APP_BASE_URL='https://erp.lihaink.cn' VITE_APP_BASE_URL='https://erp.lihaink.cn'

View File

@ -22,14 +22,11 @@ import { apiGoodsLabelLists } from '@/api/goods_label'
export const goods_label: Iconfig = { export const goods_label: Iconfig = {
fetchFn: apiGoodsLabelLists, fetchFn: apiGoodsLabelLists,
serchList: [ serchList: [
// { {
// label: "项目名称", label: "标签名",
// value: "project_name", value: "name",
// }, },
// {
// label: "项目编号",
// value: "project_code",
// },
], ],
tableList: [ tableList: [
{ id: "ID" }, { id: "ID" },

View File

@ -21,7 +21,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <!-- <el-col :span="6">
<el-form-item label="商户名称" prop="mer_name"> <el-form-item label="商户名称" prop="mer_name">
<el-input class="w-[280px]" v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" /> <el-input class="w-[280px]" v-model="queryParams.mer_name" clearable placeholder="请输入商户名称" />
</el-form-item> </el-form-item>
@ -35,8 +35,8 @@
:value="item.value" /> :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="6"> <!-- <el-col :span="6">
<el-form-item label="商户是否禁用" prop="status"> <el-form-item label="商户是否禁用" prop="status">
<el-select class="w-[280px]" v-model="queryParams.status" clearable placeholder="请选择商户是否禁用"> <el-select class="w-[280px]" v-model="queryParams.status" clearable placeholder="请选择商户是否禁用">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
@ -44,8 +44,8 @@
:value="item.value" /> :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="6"> <!-- <el-col :span="6">
<el-form-item label="提成比例" prop="commission_rate"> <el-form-item label="提成比例" prop="commission_rate">
<el-input class="w-[280px]" v-model="queryParams.commission_rate" clearable <el-input class="w-[280px]" v-model="queryParams.commission_rate" clearable
placeholder="请输入提成比例" /> placeholder="请输入提成比例" />
@ -79,17 +79,14 @@
<el-input class="w-[280px]" v-model="queryParams.financial_alipay" clearable <el-input class="w-[280px]" v-model="queryParams.financial_alipay" clearable
placeholder="请输入支付宝转账信息" /> placeholder="请输入支付宝转账信息" />
</el-form-item> </el-form-item>
</el-col> </el-col> -->
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</el-card> </el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never"> <el-card class="!border-none" v-loading="pager.loading" shadow="never">

View File

@ -15,7 +15,7 @@
<el-form-item label="用户账号" prop="account"> <el-form-item label="用户账号" prop="account">
<el-input v-model="formData.account" clearable placeholder="请输入用户账号" :readonly="false" /> <el-input v-model="formData.account" clearable placeholder="请输入用户账号" :readonly="false" />
</el-form-item> </el-form-item>
<el-form-item label="用户密码" prop="password"> <el-form-item label="用户密码">
<el-input v-model="formData.password" clearable placeholder="请输入用户密码" :readonly="false" /> <el-input v-model="formData.password" clearable placeholder="请输入用户密码" :readonly="false" />
</el-form-item> </el-form-item>
<el-form-item label="用户电话" prop="mobile"> <el-form-item label="用户电话" prop="mobile">

View File

@ -37,7 +37,7 @@
<div class="mt-4"> <div class="mt-4">
<el-table :data="pager.lists" @selection-change="handleSelectionChange"> <el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="主键" prop="id" show-overflow-tooltip /> <!-- <el-table-column label="主键" prop="id" show-overflow-tooltip /> -->
<el-table-column label="头像" prop="avatar" show-overflow-tooltip> <el-table-column label="头像" prop="avatar" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
<el-image :src="row.avatar" style="width: 50px;height: 50px" /> <el-image :src="row.avatar" style="width: 50px;height: 50px" />

View File

@ -1,20 +1,13 @@
<template> <template>
<div class="edit-popup"> <div class="edit-popup">
<popup <popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit" @close="handleClose">
ref="popupRef"
:title="popupTitle"
:async="true"
width="550px"
@confirm="handleSubmit"
@close="handleClose"
>
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules"> <el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
<el-form-item label="品牌名称" prop="name"> <el-form-item label="品牌名称" prop="name">
<el-input v-model="formData.name" clearable placeholder="请输入品牌名称" /> <el-input v-model="formData.name" clearable placeholder="请输入品牌名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input v-model="formData.py" clearable placeholder="请输入拼音信息" /> <el-input v-model="formData.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item> -->
<el-form-item label="品牌编号" prop="number"> <el-form-item label="品牌编号" prop="number">
<el-input v-model="formData.number" clearable placeholder="请输入品牌编号" /> <el-input v-model="formData.number" clearable placeholder="请输入品牌编号" />
</el-form-item> </el-form-item>

View File

@ -1,15 +1,11 @@
<template> <template>
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form <el-form class="mb-[-16px]" :model="queryParams" inline>
class="mb-[-16px]"
:model="queryParams"
inline
>
<el-form-item label="品牌名称" prop="name"> <el-form-item label="品牌名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入品牌名称" /> <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入品牌名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" /> <el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item>
<el-form-item label="品牌编号" prop="number"> <el-form-item label="品牌编号" prop="number">
@ -23,7 +19,7 @@
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort"> <el-form-item label="排序" prop="sort">
<el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" /> <el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
@ -37,11 +33,7 @@
</template> </template>
新增 新增
</el-button> </el-button>
<el-button <el-button v-perms="['goods.brand/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
v-perms="['goods.brand/delete']"
:disabled="!selectData.length"
@click="handleDelete(selectData)"
>
删除 删除
</el-button> </el-button>
<div class="mt-4"> <div class="mt-4">
@ -49,7 +41,7 @@
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="ID" prop="id" width="55" /> <el-table-column label="ID" prop="id" width="55" />
<el-table-column label="品牌名称" prop="name" show-overflow-tooltip /> <el-table-column label="品牌名称" prop="name" show-overflow-tooltip />
<el-table-column label="拼音信息" prop="py" show-overflow-tooltip /> <!-- <el-table-column label="拼音信息" prop="py" show-overflow-tooltip /> -->
<el-table-column label="品牌编号" prop="number" show-overflow-tooltip /> <el-table-column label="品牌编号" prop="number" show-overflow-tooltip />
<el-table-column label="备注信息" prop="data" show-overflow-tooltip /> <el-table-column label="备注信息" prop="data" show-overflow-tooltip />
<el-table-column label="扩展信息" prop="more" show-overflow-tooltip /> <el-table-column label="扩展信息" prop="more" show-overflow-tooltip />
@ -61,20 +53,10 @@
<el-table-column label="排序" prop="sort" show-overflow-tooltip /> <el-table-column label="排序" prop="sort" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button v-perms="['goods.brand/edit']" type="primary" link @click="handleEdit(row)">
v-perms="['goods.brand/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑 编辑
</el-button> </el-button>
<el-button <el-button v-perms="['goods.brand/delete']" type="danger" link @click="handleDelete(row.id)">
v-perms="['goods.brand/delete']"
type="danger"
link
@click="handleDelete(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>

View File

@ -1,38 +1,27 @@
<template> <template>
<div class="edit-popup"> <div class="edit-popup">
<popup <popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit" @close="handleClose">
ref="popupRef"
:title="popupTitle"
:async="true"
width="550px"
@confirm="handleSubmit"
@close="handleClose"
>
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules"> <el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
<el-form-item label="条码名称" prop="name"> <el-form-item label="条码名称" prop="name">
<el-input v-model="formData.name" clearable placeholder="请输入条码名称" /> <el-input v-model="formData.name" clearable placeholder="请输入条码名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input v-model="formData.py" clearable placeholder="请输入拼音信息" /> <el-input v-model="formData.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item> -->
<el-form-item label="条码内容" prop="code"> <el-form-item label="条码内容" prop="code">
<el-input v-model="formData.code" clearable placeholder="请输入条码内容" /> <el-input v-model="formData.code" clearable placeholder="请输入条码内容" />
</el-form-item> </el-form-item>
<el-form-item label="条码类型" prop="type"> <el-form-item label="条码类型" prop="type">
<el-select class="flex-1" v-model="formData.type" clearable placeholder="请选择条码类型0:条形码 | 1:二维码"> <el-select class="flex-1" v-model="formData.type" clearable placeholder="请选择条码类型">
<el-option <el-option v-for="(item, index) in dictData.code_type" :key="index" :label="item.name"
v-for="(item, index) in dictData.code_type" :value="parseInt(item.value)" />
:key="index"
:label="item.name"
:value="parseInt(item.value)"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="data"> <el-form-item label="备注信息" prop="data">
<el-input v-model="formData.data" clearable placeholder="请输入备注信息" /> <el-input v-model="formData.data" type="textarea" clearable placeholder="请输入备注信息" />
</el-form-item> </el-form-item>
<el-form-item label="扩展信息" prop="more"> <el-form-item label="扩展信息" prop="more">
<el-input v-model="formData.more" clearable placeholder="请输入扩展信息" /> <el-input v-model="formData.more" type="textarea" clearable placeholder="请输入扩展信息" />
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort"> <el-form-item label="排序" prop="sort">
<el-input v-model="formData.sort" clearable placeholder="请输入排序" /> <el-input v-model="formData.sort" clearable placeholder="请输入排序" />

View File

@ -1,40 +1,32 @@
<template> <template>
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form <el-form class="mb-[-16px]" :model="queryParams" inline>
class="mb-[-16px]"
:model="queryParams"
inline
>
<el-form-item label="条码名称" prop="name"> <el-form-item label="条码名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入条码名称" /> <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入条码名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" /> <el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item>
<el-form-item label="条码内容" prop="code"> <el-form-item label="条码内容" prop="code">
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入条码内容" /> <el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入条码内容" />
</el-form-item> </el-form-item> -->
<el-form-item label="条码类型" prop="type"> <el-form-item label="条码类型" prop="type">
<el-select class="w-[280px]" v-model="queryParams.type" clearable placeholder="请选择条码类型"> <el-select class="w-[280px]" v-model="queryParams.type" clearable placeholder="请选择条码类型">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option <el-option v-for="(item, index) in dictData.code_type" :key="index" :label="item.name"
v-for="(item, index) in dictData.code_type" :value="item.value" />
:key="index"
:label="item.name"
:value="item.value"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="data"> <!-- <el-form-item label="备注信息" prop="data">
<el-input class="w-[280px]" v-model="queryParams.data" clearable placeholder="请输入备注信息" /> <el-input class="w-[280px]" v-model="queryParams.data" clearable placeholder="请输入备注信息" />
</el-form-item> </el-form-item>
<el-form-item label="扩展信息" prop="more"> <el-form-item label="扩展信息" prop="more">
<el-input class="w-[280px]" v-model="queryParams.more" clearable placeholder="请输入扩展信息" /> <el-input class="w-[280px]" v-model="queryParams.more" clearable placeholder="请输入扩展信息" />
</el-form-item> </el-form-item> -->
<el-form-item label="排序" prop="sort"> <!-- <el-form-item label="排序" prop="sort">
<el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" /> <el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
@ -48,11 +40,7 @@
</template> </template>
新增 新增
</el-button> </el-button>
<el-button <el-button v-perms="['goods.code/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
v-perms="['goods.code/delete']"
:disabled="!selectData.length"
@click="handleDelete(selectData)"
>
删除 删除
</el-button> </el-button>
<div class="mt-4"> <div class="mt-4">
@ -72,27 +60,13 @@
<el-table-column label="排序" prop="sort" show-overflow-tooltip /> <el-table-column label="排序" prop="sort" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button v-perms="['goods.code/edit']" type="primary" link @click="handleEdit(row)">
v-perms="['goods.code/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑 编辑
</el-button> </el-button>
<el-button <el-button type="primary" link @click="handleDetails(row)">
type="primary"
link
@click="handleDetails(row)"
>
详情 详情
</el-button> </el-button>
<el-button <el-button v-perms="['goods.code/delete']" type="danger" link @click="handleDelete(row.id)">
v-perms="['goods.code/delete']"
type="danger"
link
@click="handleDelete(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>
@ -104,7 +78,8 @@
</div> </div>
</el-card> </el-card>
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" /> <edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
<detail-popup v-if="detailEdit" ref="detailRef" :dict-data="dictData" @success="getLists" @close="detailEdit = false" /> <detail-popup v-if="detailEdit" ref="detailRef" :dict-data="dictData" @success="getLists"
@close="detailEdit = false" />
</div> </div>
</template> </template>

View File

@ -1,35 +1,31 @@
<template> <template>
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form <el-form class="mb-[-16px]" :model="queryParams" inline>
class="mb-[-16px]"
:model="queryParams"
inline
>
<el-form-item label="商品名称" prop="name"> <el-form-item label="商品名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入商品名称" /> <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入商品名称" />
</el-form-item> </el-form-item>
<el-form-item label="商品分类" prop="class"> <!-- <el-form-item label="商品分类" prop="class">
<el-input class="w-[280px]" v-model="queryParams.class" clearable placeholder="请输入商品分类" /> <el-input class="w-[280px]" v-model="queryParams.class" clearable placeholder="请输入商品分类" />
</el-form-item> </el-form-item> -->
<el-form-item label="商品品牌" prop="brand"> <el-form-item label="商品品牌" prop="brand">
<el-input class="w-[280px]" v-model="queryParams.brand" clearable placeholder="请输入商品品牌" /> <el-input class="w-[280px]" v-model="queryParams.brand" clearable placeholder="请输入商品品牌" />
</el-form-item> </el-form-item>
<el-form-item label="商品单位" prop="unit"> <el-form-item label="商品单位" prop="unit">
<el-input class="w-[280px]" v-model="queryParams.unit" clearable placeholder="请输入商品单位" /> <el-input class="w-[280px]" v-model="queryParams.unit" clearable placeholder="请输入商品单位" />
</el-form-item> </el-form-item>
<el-form-item label="条形码" prop="code"> <!-- <el-form-item label="条形码" prop="code">
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入条形码" /> <el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入条形码" />
</el-form-item> </el-form-item> -->
<el-form-item label="默认仓库" prop="warehouse"> <!-- <el-form-item label="默认仓库" prop="warehouse">
<el-input class="w-[280px]" v-model="queryParams.warehouse" clearable placeholder="请输入默认仓库" /> <el-input class="w-[280px]" v-model="queryParams.warehouse" clearable placeholder="请输入默认仓库" />
</el-form-item> </el-form-item> -->
<el-form-item label="零售名称" prop="retail_name"> <!-- <el-form-item label="零售名称" prop="retail_name">
<el-input class="w-[280px]" v-model="queryParams.retail_name" clearable placeholder="请输入零售名称" /> <el-input class="w-[280px]" v-model="queryParams.retail_name" clearable placeholder="请输入零售名称" />
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort"> <el-form-item label="排序" prop="sort">
<el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" /> <el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
@ -43,11 +39,7 @@
</template> </template>
新增 新增
</el-button> </el-button>
<el-button <el-button v-perms="['goods.goods/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
v-perms="['goods.goods/delete']"
:disabled="!selectData.length"
@click="handleDelete(selectData)"
>
删除 删除
</el-button> </el-button>
<div class="mt-4"> <div class="mt-4">
@ -78,27 +70,13 @@
<el-table-column label="排序" prop="sort" show-overflow-tooltip /> <el-table-column label="排序" prop="sort" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button v-perms="['goods.goods/edit']" type="primary" link @click="handleEdit(row)">
v-perms="['goods.goods/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑 编辑
</el-button> </el-button>
<el-button <el-button type="primary" link @click="handleDetail(row)">
type="primary"
link
@click="handleDetail(row)"
>
详情 详情
</el-button> </el-button>
<el-button <el-button v-perms="['goods.goods/delete']" type="danger" link @click="handleDelete(row.id)">
v-perms="['goods.goods/delete']"
type="danger"
link
@click="handleDelete(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>

View File

@ -2,7 +2,7 @@
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline> <el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="" prop="name"> <el-form-item label="标签名" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入" /> <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>

View File

@ -2,37 +2,17 @@
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px] disabledEdit" :model="queryParams" inline> <el-form class="mb-[-16px] disabledEdit" :model="queryParams" inline>
<el-form-item label="所属ID" prop="pid"> <!-- <el-form-item label="所属ID" prop="pid">
<el-input <el-input class="w-[280px]" v-model="queryParams.pid" clearable placeholder="请输入所属ID" />
class="w-[280px]" </el-form-item> -->
v-model="queryParams.pid"
clearable
placeholder="请输入所属ID"
/>
</el-form-item>
<el-form-item label="分类名称" prop="name"> <el-form-item label="分类名称" prop="name">
<el-input <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入分类名称" />
class="w-[280px]"
v-model="queryParams.name"
clearable
placeholder="请输入分类名称"
/>
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="data"> <el-form-item label="备注信息" prop="data">
<el-input <el-input class="w-[280px]" v-model="queryParams.data" clearable placeholder="请输入备注信息" />
class="w-[280px]"
v-model="queryParams.data"
clearable
placeholder="请输入备注信息"
/>
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort"> <el-form-item label="排序" prop="sort">
<el-input <el-input class="w-[280px]" v-model="queryParams.sort" clearable placeholder="请输入排序" />
class="w-[280px]"
v-model="queryParams.sort"
clearable
placeholder="请输入排序"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
@ -41,29 +21,17 @@
</el-form> </el-form>
</el-card> </el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never"> <el-card class="!border-none" v-loading="pager.loading" shadow="never">
<el-button <el-button v-perms="['goods.goodsclass/add']" type="primary" @click="handleAdd">
v-perms="['goods.goodsclass/add']"
type="primary"
@click="handleAdd"
>
<template #icon> <template #icon>
<icon name="el-icon-Plus" /> <icon name="el-icon-Plus" />
</template> </template>
新增 新增
</el-button> </el-button>
<el-button <el-button v-perms="['goods.goodsclass/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
v-perms="['goods.goodsclass/delete']"
:disabled="!selectData.length"
@click="handleDelete(selectData)"
>
删除 删除
</el-button> </el-button>
<div class="mt-4"> <div class="mt-4">
<el-table <el-table :data="pager.lists" @selection-change="handleSelectionChange" @cell-click="cellClick">
:data="pager.lists"
@selection-change="handleSelectionChange"
@cell-click="cellClick"
>
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="ID" prop="id" width="120" /> <el-table-column label="ID" prop="id" width="120" />
<el-table-column label="所属ID" prop="pid" show-overflow-tooltip /> <el-table-column label="所属ID" prop="pid" show-overflow-tooltip />
@ -77,20 +45,10 @@
<el-table-column label="排序" prop="sort" show-overflow-tooltip /> <el-table-column label="排序" prop="sort" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button v-perms="['goods.goodsclass/edit']" type="primary" link @click.stop="handleEdit(row)">
v-perms="['goods.goodsclass/edit']"
type="primary"
link
@click.stop="handleEdit(row)"
>
编辑 编辑
</el-button> </el-button>
<el-button <el-button v-perms="['goods.goodsclass/delete']" type="danger" link @click.stop="handleDelete(row.id)">
v-perms="['goods.goodsclass/delete']"
type="danger"
link
@click.stop="handleDelete(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>
@ -101,13 +59,7 @@
<pagination v-model="pager" @change="getLists" /> <pagination v-model="pager" @change="getLists" />
</div> </div>
</el-card> </el-card>
<edit-popup <edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
v-if="showEdit"
ref="editRef"
:dict-data="dictData"
@success="getLists"
@close="showEdit = false"
/>
</div> </div>
</template> </template>

View File

@ -1,28 +1,21 @@
<template> <template>
<div class="edit-popup"> <div class="edit-popup">
<popup <popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit" @close="handleClose">
ref="popupRef"
:title="popupTitle"
:async="true"
width="550px"
@confirm="handleSubmit"
@close="handleClose"
>
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules"> <el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
<el-form-item label="单位名称" prop="name"> <el-form-item label="单位名称" prop="name">
<el-input v-model="formData.name" clearable placeholder="请输入单位名称" /> <el-input v-model="formData.name" clearable placeholder="请输入单位名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input v-model="formData.py" clearable placeholder="请输入拼音信息" /> <el-input v-model="formData.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item> -->
<el-form-item label="单位编号" prop="number"> <el-form-item label="单位编号" prop="number">
<el-input v-model="formData.number" clearable placeholder="请输入单位编号" /> <el-input v-model="formData.number" clearable placeholder="请输入单位编号" />
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="data"> <el-form-item label="备注信息" prop="data">
<el-input v-model="formData.data" clearable placeholder="请输入备注信息" /> <el-input v-model="formData.data" type="textarea" clearable placeholder="请输入备注信息" />
</el-form-item> </el-form-item>
<el-form-item label="扩展信息" prop="more"> <el-form-item label="扩展信息" prop="more">
<el-input v-model="formData.more" clearable placeholder="请输入扩展信息" /> <el-input v-model="formData.more" type="textarea" clearable placeholder="请输入扩展信息" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</popup> </popup>

View File

@ -1,26 +1,22 @@
<template> <template>
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form <el-form class="mb-[-16px]" :model="queryParams" inline>
class="mb-[-16px]"
:model="queryParams"
inline
>
<el-form-item label="单位名称" prop="name"> <el-form-item label="单位名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入单位名称" /> <el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入单位名称" />
</el-form-item> </el-form-item>
<el-form-item label="拼音信息" prop="py"> <!-- <el-form-item label="拼音信息" prop="py">
<el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" /> <el-input class="w-[280px]" v-model="queryParams.py" clearable placeholder="请输入拼音信息" />
</el-form-item> </el-form-item> -->
<el-form-item label="单位编号" prop="number"> <el-form-item label="单位编号" prop="number">
<el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单位编号" /> <el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单位编号" />
</el-form-item> </el-form-item>
<el-form-item label="备注信息" prop="data"> <!-- <el-form-item label="备注信息" prop="data">
<el-input class="w-[280px]" v-model="queryParams.data" clearable placeholder="请输入备注信息" /> <el-input class="w-[280px]" v-model="queryParams.data" clearable placeholder="请输入备注信息" />
</el-form-item> </el-form-item>
<el-form-item label="扩展信息" prop="more"> <el-form-item label="扩展信息" prop="more">
<el-input class="w-[280px]" v-model="queryParams.more" clearable placeholder="请输入扩展信息" /> <el-input class="w-[280px]" v-model="queryParams.more" clearable placeholder="请输入扩展信息" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
@ -34,11 +30,7 @@
</template> </template>
新增 新增
</el-button> </el-button>
<el-button <el-button v-perms="['goods.unit/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
v-perms="['goods.unit/delete']"
:disabled="!selectData.length"
@click="handleDelete(selectData)"
>
删除 删除
</el-button> </el-button>
<div class="mt-4"> <div class="mt-4">
@ -46,26 +38,16 @@
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column label="ID" prop="id" width="55" /> <el-table-column label="ID" prop="id" width="55" />
<el-table-column label="单位名称" prop="name" show-overflow-tooltip /> <el-table-column label="单位名称" prop="name" show-overflow-tooltip />
<el-table-column label="拼音信息" prop="py" show-overflow-tooltip /> <!-- <el-table-column label="拼音信息" prop="py" show-overflow-tooltip /> -->
<el-table-column label="单位编号" prop="number" show-overflow-tooltip /> <el-table-column label="单位编号" prop="number" show-overflow-tooltip />
<el-table-column label="备注信息" prop="data" show-overflow-tooltip /> <el-table-column label="备注信息" prop="data" show-overflow-tooltip />
<el-table-column label="扩展信息" prop="more" show-overflow-tooltip /> <el-table-column label="扩展信息" prop="more" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button v-perms="['goods.unit/edit']" type="primary" link @click="handleEdit(row)">
v-perms="['goods.unit/edit']"
type="primary"
link
@click="handleEdit(row)"
>
编辑 编辑
</el-button> </el-button>
<el-button <el-button v-perms="['goods.unit/delete']" type="danger" link @click="handleDelete(row.id)">
v-perms="['goods.unit/delete']"
type="danger"
link
@click="handleDelete(row.id)"
>
删除 删除
</el-button> </el-button>
</template> </template>

View File

@ -1,20 +1,16 @@
<template> <template>
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form <el-form class="mb-[-16px]" :model="queryParams" inline>
class="mb-[-16px]"
:model="queryParams"
inline
>
<el-form-item label="所属商户" prop="merchant"> <el-form-item label="所属商户" prop="merchant">
<el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" /> <el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" />
</el-form-item> </el-form-item>
<el-form-item label="零售订单id" prop="order_arr"> <el-form-item label="零售订单id" prop="order_arr">
<el-input class="w-[280px]" v-model="queryParams.order_arr" clearable placeholder="请输入零售订单id" /> <el-input class="w-[280px]" v-model="queryParams.order_arr" clearable placeholder="请输入零售订单id" />
</el-form-item> </el-form-item>
<el-form-item label="单据编号" prop="number"> <!-- <el-form-item label="单据编号" prop="number">
<el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单据编号" /> <el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单据编号" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>
@ -50,11 +46,7 @@
<el-table-column label="是否支付" prop="paid" show-overflow-tooltip /> <el-table-column label="是否支付" prop="paid" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }"> <template #default="{ row }">
<el-button <el-button type="primary" link @click="handleDetail(row)">
type="primary"
link
@click="handleDetail(row)"
>
详情 详情
</el-button> </el-button>
<!-- <el-button <!-- <el-button

View File

@ -5,21 +5,21 @@
<el-form-item label="所属商户" prop="merchant"> <el-form-item label="所属商户" prop="merchant">
<el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" /> <el-input class="w-[280px]" v-model="queryParams.merchant" clearable placeholder="请输入所属商户" />
</el-form-item> </el-form-item>
<el-form-item label="归属门店" prop="store_id"> <!-- <el-form-item label="归属门店" prop="store_id">
<el-input class="w-[280px]" v-model="queryParams.store_id" clearable placeholder="请输入归属门店" /> <el-input class="w-[280px]" v-model="queryParams.store_id" clearable placeholder="请输入归属门店" />
</el-form-item> </el-form-item> -->
<el-form-item label="客户ID" prop="customer"> <!-- <el-form-item label="客户ID" prop="customer">
<el-input class="w-[280px]" v-model="queryParams.customer" clearable placeholder="请输入客户ID" /> <el-input class="w-[280px]" v-model="queryParams.customer" clearable placeholder="请输入客户ID" />
</el-form-item> </el-form-item> -->
<el-form-item label="单据时间" prop="time"> <!-- <el-form-item label="单据时间" prop="time">
<el-input class="w-[280px]" v-model="queryParams.time" clearable placeholder="请输入单据时间" /> <el-input class="w-[280px]" v-model="queryParams.time" clearable placeholder="请输入单据时间" />
</el-form-item> </el-form-item> -->
<el-form-item label="单据编号" prop="number"> <el-form-item label="单据编号" prop="number">
<el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单据编号" /> <el-input class="w-[280px]" v-model="queryParams.number" clearable placeholder="请输入单据编号" />
</el-form-item> </el-form-item>
<el-form-item label="制单人" prop="user"> <!-- <el-form-item label="制单人" prop="user">
<el-input class="w-[280px]" v-model="queryParams.user" clearable placeholder="请输入制单人" /> <el-input class="w-[280px]" v-model="queryParams.user" clearable placeholder="请输入制单人" />
</el-form-item> </el-form-item> -->
<el-form-item label="支付方式" prop="pay_type"> <el-form-item label="支付方式" prop="pay_type">
<el-select class="w-[280px]" v-model="queryParams.pay_type" clearable placeholder="请选择支付方式"> <el-select class="w-[280px]" v-model="queryParams.pay_type" clearable placeholder="请选择支付方式">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
@ -34,9 +34,9 @@
:value="item.value" /> :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="审核人" prop="auditinguser"> <!-- <el-form-item label="审核人" prop="auditinguser">
<el-input class="w-[280px]" v-model="queryParams.auditinguser" clearable placeholder="请输入审核人" /> <el-input class="w-[280px]" v-model="queryParams.auditinguser" clearable placeholder="请输入审核人" />
</el-form-item> </el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button> <el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button> <el-button @click="resetParams">重置</el-button>