This commit is contained in:
zjf committed 2025-02-08 15:26:48 +08:00
1 parent 41d3aa9895
commit c6a9725cff
3 files changed
+26 -21

No files matched your search

+3 -3
View File
@@ -8,9 +8,9 @@ VITE_OPEN = true
ENV = 'development' ENV = 'development'
# ADMIN 服务地址 # ADMIN 服务地址
VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上 #VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上
# VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/
# VITE_ADMIN_PROXY_PATH = http://localhost:9999/ VITE_ADMIN_PROXY_PATH = http://localhost:9999/
# VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地 # VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地
# VITE_ADMIN_PROXY_PATH = http://192.168.101.37:9999/ # 邓-本地 # VITE_ADMIN_PROXY_PATH = http://192.168.101.37:9999/ # 邓-本地
# VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境 # VITE_ADMIN_PROXY_PATH = http://59.202.170.152:81/api # 正式环境
@@ -18,7 +18,7 @@ VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上
# 图片访问基础地址 # 图片访问基础地址
VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 线上 VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 线上
# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc # VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc
# VITE_IMAGE_BASE_PATH = http://localhost:9999 VITE_IMAGE_BASE_PATH = http://localhost:9999
# VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地 # VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地
# VITE_IMAGE_BASE_PATH = http://192.168.101.37:9999 # 邓-本地 # VITE_IMAGE_BASE_PATH = http://192.168.101.37:9999 # 邓-本地
# VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境 # VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api/ # 正式环境
@@ -98,7 +98,7 @@ const form = reactive({
// 定义校验规则 // 定义校验规则
const dataRules = ref({ const dataRules = ref({
barCode: [{ required: true, message: "条码不能为空", trigger: "blur" }], barCode: [{ required: true, message: "条码不能为空", trigger: "blur" }],
spec: [{ required: true, message: "规格不能为空", trigger: "blur" }], // spec: [{ required: true, message: "规格不能为空", trigger: "blur" }],
unit: [{ required: true, message: "单位不能为空", trigger: "blur" }], unit: [{ required: true, message: "单位不能为空", trigger: "blur" }],
status: [{ required: true, message: "状态不能为空", trigger: "blur" }], status: [{ required: true, message: "状态不能为空", trigger: "blur" }],
packageNum: [{ required: true, message: "内装数不能为空", trigger: "blur" }], packageNum: [{ required: true, message: "内装数不能为空", trigger: "blur" }],
@@ -68,23 +68,28 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="12" class="mb20">--> <el-col :span="12" class="mb20">
<!-- <el-form-item label="单位" prop="unit">--> <el-form-item label="单位" prop="unit">
<!--&lt;!&ndash; <el-alert type="warning" show-icon>&ndash;&gt;--> <!-- <el-alert type="warning" show-icon>-->
<!--&lt;!&ndash; <p>最小售卖的基本单位</p>&ndash;&gt;--> <!-- <p>最小售卖的基本单位</p>-->
<!--&lt;!&ndash; </el-alert>&ndash;&gt;--> <!-- </el-alert>-->
<!-- <el-input placeholder="请输入单位" v-model.trim="form.unit" />--> <el-input placeholder="请输入单位" v-model.trim="form.unit" />
<!-- </el-form-item>--> </el-form-item>
<!-- </el-col>--> </el-col>
<!-- <el-col :span="14" class="mb20">--> <el-col :span="14" class="mb20">
<!-- <el-form-item label="内装数" prop="packageNum">--> <el-form-item label="内装数" prop="packageNum">
<!--&lt;!&ndash; <el-alert type="warning" show-icon >&ndash;&gt;--> <!-- <el-alert type="warning" show-icon >-->
<!--&lt;!&ndash; <p>注:内装数据必须为该商品的基本单位的内装数,否则无法完成库存数量转换。&ndash;&gt;--> <!-- <p>注:内装数据必须为该商品的基本单位的内装数,否则无法完成库存数量转换。-->
<!--&lt;!&ndash; 例如:零售一瓶矿泉水内装数为1,按一箱售卖矿泉水内装填'24'</p>&ndash;&gt;--> <!-- 例如:零售一瓶矿泉水内装数为1,按一箱售卖矿泉水内装填'24'</p>-->
<!--&lt;!&ndash; </el-alert>&ndash;&gt;--> <!-- </el-alert>-->
<!-- <el-input-number v-model="form.packageNum" :min="0" :precision="0" />--> <el-input-number v-model="form.packageNum" :min="0" :precision="0" />
<!-- </el-form-item>--> </el-form-item>
<!-- </el-col>--> </el-col>
<el-col :span="12" class="mb20">
<el-form-item label="零售价" prop="retailPrice">
<el-input-number v-model="form.retailPrice" :min="0" :precision="2" />
</el-form-item>
</el-col>
<el-col :span="14" class="mb20"> <el-col :span="14" class="mb20">
<el-form-item label="总库存" prop="stock"> <el-form-item label="总库存" prop="stock">
<el-alert type="warning" show-icon > <el-alert type="warning" show-icon >