mirror of
https://gitee.com/victor123/jjjerp-java.git
synced 2025-12-06 15:51:10 +08:00
bug修复
This commit is contained in:
parent
bdb88eeba8
commit
b591a1b164
@ -37,11 +37,18 @@
|
||||
>
|
||||
</div>
|
||||
<!-- 分页 -->
|
||||
<el-pagination small @size-change="handleSizeChange" @current-change="handleCurrentChange" background
|
||||
:page-sizes="[20, 50, 100]" :current-page="curPage" :page-size="pageSize"
|
||||
layout="total, prev, next, jumper,sizes" :total="totalDataNumber">
|
||||
<el-pagination
|
||||
small
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
background
|
||||
:page-sizes="[20, 50, 100]"
|
||||
:current-page="curPage"
|
||||
:page-size="pageSize"
|
||||
layout="total, prev, next, jumper,sizes"
|
||||
:total="totalDataNumber"
|
||||
>
|
||||
</el-pagination>
|
||||
|
||||
</div>
|
||||
|
||||
<!--内容-->
|
||||
@ -60,11 +67,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="60">
|
||||
<template #default="{ $index }">
|
||||
<el-button
|
||||
@click="removeOptions($index)"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
<el-button @click="removeOptions($index)" type="text" size="small">
|
||||
删除
|
||||
<!-- <el-icon :size="16">
|
||||
<DeleteFilled />
|
||||
@ -72,7 +75,7 @@
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="单位">
|
||||
<el-table-column prop="name" label="品牌名称">
|
||||
<template #default="scope">
|
||||
<template v-if="!scope.row.editing">
|
||||
<div @click="editUnit(scope.row)">{{ scope.row.name }}</div>
|
||||
|
||||
@ -529,27 +529,18 @@ export default {
|
||||
this.form.image.splice(index, 1);
|
||||
},
|
||||
openProductUpload: function (file_type, file_name, file_index) {
|
||||
console.log(1);
|
||||
this.file_name = file_name;
|
||||
this.file_index = file_index || 0;
|
||||
if (file_type == "image") {
|
||||
if (file_name == "sku") {
|
||||
this.config = {
|
||||
total: 1,
|
||||
fileType: "image",
|
||||
};
|
||||
} else {
|
||||
console.log(2);
|
||||
this.config = {
|
||||
total: 9,
|
||||
fileType: "image",
|
||||
};
|
||||
}
|
||||
} else {
|
||||
this.config = {
|
||||
total: 1,
|
||||
fileType: "video",
|
||||
};
|
||||
}
|
||||
this.isProductUpload = true;
|
||||
console.log("isProductUpload", this.isProductUpload);
|
||||
},
|
||||
handNum(index) {
|
||||
this.form.options[index].optionId = index + 65;
|
||||
|
||||
@ -74,7 +74,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="分类"
|
||||
prop="name"
|
||||
prop="categoryId"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-tree-select
|
||||
@ -93,7 +93,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="保质期"
|
||||
prop="name"
|
||||
prop="expiryNum"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input v-model="form.expiryNum" autocomplete="off">
|
||||
@ -104,7 +104,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="货号"
|
||||
prop="name"
|
||||
prop="accountNum"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input v-model="form.accountNum" autocomplete="off"></el-input>
|
||||
@ -113,7 +113,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="重量"
|
||||
prop="name"
|
||||
prop="weight"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input v-model="form.weight" autocomplete="off">
|
||||
@ -124,7 +124,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="体积"
|
||||
prop="name"
|
||||
prop="volume"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input v-model="form.volume" autocomplete="off">
|
||||
@ -135,7 +135,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="条码"
|
||||
prop="name"
|
||||
prop="barCode"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input v-model="form.barCode" autocomplete="off"></el-input>
|
||||
@ -144,7 +144,7 @@
|
||||
<el-col :span="16">
|
||||
<el-form-item
|
||||
label="长宽高"
|
||||
prop="name"
|
||||
prop="grow"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<div class="d-s-c">
|
||||
@ -171,7 +171,7 @@
|
||||
<el-col :span="8">
|
||||
<el-form-item
|
||||
label="品牌"
|
||||
prop="name"
|
||||
prop="mfrs"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-select
|
||||
@ -248,7 +248,7 @@
|
||||
<el-col :span="24">
|
||||
<el-form-item
|
||||
label="备注"
|
||||
prop="name"
|
||||
prop="remark"
|
||||
:label-width="formLabelWidth"
|
||||
>
|
||||
<el-input
|
||||
@ -449,10 +449,32 @@ export default {
|
||||
name: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入分类名称",
|
||||
message: "请输入名称",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
expiryNum: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入保质期",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
accountNum: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入货号",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
mfrs: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入品牌",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
|
||||
unitId: [
|
||||
{
|
||||
required: true,
|
||||
@ -460,6 +482,13 @@ export default {
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
categoryId: [
|
||||
{
|
||||
required: true,
|
||||
message: "请输入分类",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
sort: [
|
||||
{
|
||||
required: true,
|
||||
@ -656,6 +685,7 @@ export default {
|
||||
fileType: "video",
|
||||
};
|
||||
}
|
||||
console.log(this.isProductUpload, "this.isProductUpload");
|
||||
this.isProductUpload = true;
|
||||
},
|
||||
handNum(index) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user