add
This commit is contained in:
parent
17e66d6a10
commit
a33172e67e
|
@ -13,6 +13,7 @@ dist
|
||||||
dist-ssr
|
dist-ssr
|
||||||
coverage
|
coverage
|
||||||
*.local
|
*.local
|
||||||
|
build
|
||||||
|
|
||||||
# unplugin-auto-import
|
# unplugin-auto-import
|
||||||
auto-imports.d.ts
|
auto-imports.d.ts
|
||||||
|
|
|
@ -1,27 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="edit-popup">
|
<div class="edit-popup">
|
||||||
<popup
|
<popup ref="popupRef" :title="popupTitle" :async="true" width="80%" @confirm="handleSubmit" @close="handleClose">
|
||||||
ref="popupRef"
|
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||||
:title="popupTitle"
|
|
||||||
:async="true"
|
|
||||||
width="80%"
|
|
||||||
@confirm="handleSubmit"
|
|
||||||
@close="handleClose"
|
|
||||||
>
|
|
||||||
<el-form
|
|
||||||
ref="formRef"
|
|
||||||
:model="formData"
|
|
||||||
label-width="90px"
|
|
||||||
:rules="formRules"
|
|
||||||
>
|
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品名称" prop="name">
|
<el-form-item label="商品名称" prop="name">
|
||||||
<el-input
|
<el-input v-model="formData.name" clearable placeholder="请输入商品名称" />
|
||||||
v-model="formData.name"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入商品名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="8"
|
<!-- <el-col :span="8"
|
||||||
|
@ -36,183 +20,104 @@
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品编号" prop="number">
|
<el-form-item label="商品编号" prop="number">
|
||||||
<el-input
|
<el-input v-model="formData.number" clearable placeholder="请输入商品编号" />
|
||||||
v-model="formData.number"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入商品编号"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="规格型号" prop="spec">
|
<el-form-item label="规格型号" prop="spec">
|
||||||
<el-input
|
<el-input v-model="formData.spec" clearable placeholder="请输入规格型号" />
|
||||||
v-model="formData.spec"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入规格型号"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品分类" prop="class">
|
<el-form-item label="商品分类" prop="class">
|
||||||
<el-cascader
|
<el-cascader style="width: 100%" v-model="formData.class" :props="props" placeholder="请选择商品分类" />
|
||||||
style="width: 100%"
|
|
||||||
v-model="formData.class"
|
|
||||||
:props="props"
|
|
||||||
placeholder="请选择商品分类"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品品牌" prop="brand">
|
<el-form-item label="商品品牌" prop="brand">
|
||||||
<el-cascader
|
<el-cascader style="width: 100%" v-model="formData.brand" :options="brandList" :props="{
|
||||||
style="width: 100%"
|
|
||||||
v-model="formData.brand"
|
|
||||||
:options="brandList"
|
|
||||||
:props="{
|
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
emitPath: false,
|
emitPath: false,
|
||||||
}"
|
}" placeholder="请选择商品品牌" />
|
||||||
placeholder="请选择商品品牌"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品单位" prop="unit">
|
<el-form-item label="商品单位" prop="unit">
|
||||||
<el-cascader
|
<el-cascader style="width: 100%" v-model="formData.unit" :options="unitList" :props="{
|
||||||
style="width: 100%"
|
|
||||||
v-model="formData.unit"
|
|
||||||
:options="unitList"
|
|
||||||
:props="{
|
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
emitPath: false,
|
emitPath: false,
|
||||||
}"
|
}" placeholder="请选择商品单位" />
|
||||||
placeholder="请选择商品单位"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="购货价格" prop="buy">
|
<el-form-item label="购货价格" prop="buy">
|
||||||
<el-input
|
<el-input v-model="formData.buy" clearable placeholder="请输入购货价格" />
|
||||||
v-model="formData.buy"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入购货价格"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="销货价格" prop="sell">
|
<el-form-item label="销货价格" prop="sell">
|
||||||
<el-input
|
<el-input v-model="formData.sell" clearable placeholder="请输入销货价格" />
|
||||||
v-model="formData.sell"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入销货价格"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="零售价格" prop="retail">
|
<el-form-item label="零售价格" prop="retail">
|
||||||
<el-input
|
<el-input v-model="formData.retail" clearable placeholder="请输入零售价格" />
|
||||||
v-model="formData.retail"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入零售价格"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="兑换积分" prop="integral">
|
<el-form-item label="兑换积分" prop="integral">
|
||||||
<el-input
|
<el-input v-model="formData.integral" clearable placeholder="请输入兑换积分" />
|
||||||
v-model="formData.integral"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入兑换积分"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="税率" prop="tax_rate">
|
<el-form-item label="税率" prop="tax_rate">
|
||||||
<el-input
|
<el-input v-model="formData.tax_rate" clearable placeholder="请输入税率" />
|
||||||
v-model="formData.tax_rate"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入税率"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="条形码" prop="code">
|
<el-form-item label="条形码" prop="code">
|
||||||
<el-input
|
<el-input v-model="formData.code" clearable placeholder="请输入条形码" />
|
||||||
v-model="formData.code"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入条形码"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="默认仓库" prop="warehouse">
|
<el-form-item label="默认仓库" prop="warehouse">
|
||||||
<el-cascader
|
<el-cascader style="width: 100%" v-model="formData.warehouse" :options="warehouseList" :props="{
|
||||||
style="width: 100%"
|
|
||||||
v-model="formData.warehouse"
|
|
||||||
:options="warehouseList"
|
|
||||||
:props="{
|
|
||||||
value: 'id',
|
value: 'id',
|
||||||
label: 'name',
|
label: 'name',
|
||||||
emitPath: false,
|
emitPath: false,
|
||||||
}"
|
}" placeholder="请选择仓库" />
|
||||||
placeholder="请选择仓库"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="商品货位" prop="location">
|
<el-form-item label="商品货位" prop="location">
|
||||||
<el-input
|
<el-input v-model="formData.location" clearable placeholder="请输入商品货位" />
|
||||||
v-model="formData.location"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入商品货位"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="库存阈值" prop="stocktip">
|
<el-form-item label="库存阈值" prop="stocktip">
|
||||||
<el-input
|
<el-input v-model="formData.stocktip" clearable placeholder="请输入库存阈值" />
|
||||||
v-model="formData.stocktip"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入库存阈值"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="零售名称" prop="retail_name">
|
<el-form-item label="零售名称" prop="retail_name">
|
||||||
<el-input
|
<el-input v-model="formData.retail_name" clearable placeholder="请输入零售名称" />
|
||||||
v-model="formData.retail_name"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入零售名称"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="扩展信息" prop="more">
|
<el-form-item label="扩展信息" prop="more">
|
||||||
<el-input
|
<el-input v-model="formData.more" clearable placeholder="请输入扩展信息" />
|
||||||
v-model="formData.more"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入扩展信息"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="备注信息" prop="data">
|
<el-form-item label="备注信息" prop="data">
|
||||||
<el-input
|
<el-input v-model="formData.data" clearable placeholder="请输入备注信息" />
|
||||||
v-model="formData.data"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入备注信息"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="排序" prop="sort">
|
<el-form-item label="排序" prop="sort">
|
||||||
<el-input
|
<el-input v-model="formData.sort" clearable placeholder="请输入排序" />
|
||||||
v-model="formData.sort"
|
|
||||||
clearable
|
|
||||||
placeholder="请输入排序"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<el-table-column label="零售名称" prop="retail_name" show-overflow-tooltip />
|
<el-table-column label="零售名称" prop="retail_name" 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="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="170" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button v-perms="['goods.goods/edit']" type="primary" link @click="handleEdit(row)">
|
<el-button v-perms="['goods.goods/edit']" type="primary" link @click="handleEdit(row)">
|
||||||
编辑
|
编辑
|
||||||
|
|
Loading…
Reference in New Issue