|
@@ -143,7 +143,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="replacementShowOrganId" v-if="tenantId==1">
|
|
|
+ <el-form-item prop="replacementShowOrganId" v-if="tenantId == 1">
|
|
|
<el-select
|
|
|
v-model.trim="searchForm.replacementShowOrganId"
|
|
|
clearable
|
|
@@ -315,7 +315,12 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column align="center" label="是否库存预警" v-if="tenantId==1" :key="Math.random()">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ label="是否库存预警"
|
|
|
+ v-if="tenantId == 1"
|
|
|
+ :key="Math.random()"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="!scope.row.complementGoodsIdList">
|
|
|
{{ scope.row.stockWarning ? "是" : "否" }}
|
|
@@ -347,7 +352,13 @@
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="stockCount" label="内部库存" v-if="tenantId==1" :key="Math.random()">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="stockCount"
|
|
|
+ label="内部库存"
|
|
|
+ v-if="tenantId == 1"
|
|
|
+ :key="Math.random()"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<!-- 先判断是否是组合商品 -->
|
|
|
<span v-if="scope.row.complementGoodsIdList">
|
|
@@ -365,7 +376,13 @@
|
|
|
<span v-else>{{ scope.row.taxStockCount }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="stockType" label="库存类型" v-if="tenantId==1" :key="Math.random()">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="stockType"
|
|
|
+ label="库存类型"
|
|
|
+ v-if="tenantId == 1"
|
|
|
+ :key="Math.random()"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.stockType | stockTypeStatus }}
|
|
|
</template>
|
|
@@ -416,11 +433,13 @@
|
|
|
<Tooltip :content="scope.row.desc" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <!-- -->
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
width="180px"
|
|
|
label="操作"
|
|
|
fixed="right"
|
|
|
+ key="caozuo"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<!-- 组合商品没有进货清单按钮 v-permission="'/purchaseLlist'" -->
|
|
@@ -654,11 +673,11 @@
|
|
|
/>
|
|
|
<el-form-item
|
|
|
label="市场价"
|
|
|
- class="hiddenStart"
|
|
|
+ class="hiddenStart"
|
|
|
prop="marketPrice"
|
|
|
:label-width="formLabelWidth"
|
|
|
>
|
|
|
- <template slot="label">
|
|
|
+ <template slot="label">
|
|
|
<p style="position: relative">
|
|
|
<span style="color: #f56c6c; margin-right: 4px">*</span>
|
|
|
市场价
|
|
@@ -689,11 +708,11 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="零售价"
|
|
|
- class="hiddenStart"
|
|
|
+ class="hiddenStart"
|
|
|
prop="discountPrice"
|
|
|
:label-width="formLabelWidth"
|
|
|
>
|
|
|
- <template slot="label">
|
|
|
+ <template slot="label">
|
|
|
<p style="position: relative">
|
|
|
<span style="color: #f56c6c; margin-right: 4px">*</span>
|
|
|
零售价
|
|
@@ -725,10 +744,10 @@
|
|
|
<el-form-item
|
|
|
label="商品团购价"
|
|
|
prop="groupPurchasePrice"
|
|
|
- class="hiddenStart"
|
|
|
+ class="hiddenStart"
|
|
|
:label-width="formLabelWidth"
|
|
|
>
|
|
|
- <template slot="label">
|
|
|
+ <template slot="label">
|
|
|
<p style="position: relative">
|
|
|
<span style="color: #f56c6c; margin-right: 4px">*</span>
|
|
|
团购价
|
|
@@ -888,7 +907,7 @@
|
|
|
style="width: 400px !important"
|
|
|
multiple
|
|
|
clearable
|
|
|
- :disabled="addDisabled"
|
|
|
+ :disabled="addDisabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in selects.branchs"
|
|
@@ -911,7 +930,7 @@
|
|
|
style="width: 400px !important"
|
|
|
multiple
|
|
|
clearable
|
|
|
- :disabled="addDisabled"
|
|
|
+ :disabled="addDisabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in selects.branchs"
|
|
@@ -934,7 +953,7 @@
|
|
|
style="width: 400px !important"
|
|
|
multiple
|
|
|
clearable
|
|
|
- :disabled="addDisabled"
|
|
|
+ :disabled="addDisabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in selects.branchs"
|
|
@@ -945,7 +964,8 @@
|
|
|
</select-all>
|
|
|
</el-form-item>
|
|
|
<!-- :disabled="pageDisabled || pageType == 'update'" -->
|
|
|
- <el-form-item v-if="tenantId==1"
|
|
|
+ <el-form-item
|
|
|
+ v-if="tenantId == 1"
|
|
|
label="乐器置换可售分部"
|
|
|
prop="replacementShowOrganId"
|
|
|
:label-width="formLabelWidth"
|
|
@@ -957,7 +977,7 @@
|
|
|
style="width: 400px !important"
|
|
|
multiple
|
|
|
clearable
|
|
|
- :disabled="addDisabled"
|
|
|
+ :disabled="addDisabled"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in selects.branchs"
|
|
@@ -984,10 +1004,14 @@
|
|
|
:disabled="addDisabled"
|
|
|
:imageHeightM="400"
|
|
|
></upload> -->
|
|
|
- <image-cropper :options="cropperOptions" :disabled="addDisabled" :imgSize="2" :imageUrl="form.image" @crop-upload-success="cropSuccess" />
|
|
|
- <p style="color: red">
|
|
|
- 请上传大小2M以内,格式为jpg、png、gif图片
|
|
|
- </p>
|
|
|
+ <image-cropper
|
|
|
+ :options="cropperOptions"
|
|
|
+ :disabled="addDisabled"
|
|
|
+ :imgSize="2"
|
|
|
+ :imageUrl="form.image"
|
|
|
+ @crop-upload-success="cropSuccess"
|
|
|
+ />
|
|
|
+ <p style="color: red">请上传大小2M以内,格式为jpg、png、gif图片</p>
|
|
|
</el-form-item>
|
|
|
<br />
|
|
|
<el-form-item
|
|
@@ -1044,7 +1068,7 @@ import { getToken, getTenantId } from "@/utils/auth";
|
|
|
import { goodsType } from "@/utils/searchArray";
|
|
|
import load from "@/utils/loading";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
-import ImageCropper from '@/components/ImageCropper'
|
|
|
+import ImageCropper from "@/components/ImageCropper";
|
|
|
// import courseEvaluateVue from '@/views/teamDetail/componentCourse/courseEvaluate.vue';
|
|
|
let validPrice = (rule, value, callback) => {
|
|
|
if ((value == "" && typeof value == "string") || value == null) {
|
|
@@ -1071,7 +1095,7 @@ export default {
|
|
|
pagination,
|
|
|
Tooltip,
|
|
|
Upload,
|
|
|
- ImageCropper
|
|
|
+ ImageCropper,
|
|
|
},
|
|
|
name: "shopList",
|
|
|
data() {
|
|
@@ -1096,15 +1120,15 @@ export default {
|
|
|
musicGroupShow: null,
|
|
|
courseViewType: null,
|
|
|
replacementShow: null,
|
|
|
- courseFeeShowOrganId:null,
|
|
|
- educationShowOrganId:null,
|
|
|
- memberFeeShowOrganId:null,
|
|
|
- replacementShowOrganId:null,
|
|
|
- studentShowOrganId:null
|
|
|
+ courseFeeShowOrganId: null,
|
|
|
+ educationShowOrganId: null,
|
|
|
+ memberFeeShowOrganId: null,
|
|
|
+ replacementShowOrganId: null,
|
|
|
+ studentShowOrganId: null,
|
|
|
},
|
|
|
headers: {
|
|
|
Authorization: getToken(),
|
|
|
- tenantId: getTenantId()
|
|
|
+ tenantId: getTenantId(),
|
|
|
},
|
|
|
searchLsit: [],
|
|
|
tableList: [],
|
|
@@ -1316,21 +1340,21 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
selectGoodsList: [],
|
|
|
- tenantId:'',
|
|
|
+ tenantId: "",
|
|
|
cropperOptions: {
|
|
|
autoCrop: true, //是否默认生成截图框
|
|
|
autoCropWidth: 300, //默认生成截图框宽度
|
|
|
autoCropHeight: 300, //默认生成截图框高度
|
|
|
fixedBox: true, //是否固定截图框大小 不允许改变
|
|
|
previewsCircle: false, //预览图是否是圆形
|
|
|
- title: '商品图片', //模态框上显示的标题
|
|
|
+ title: "商品图片", //模态框上显示的标题
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
-async mounted() {
|
|
|
+ async mounted() {
|
|
|
// 获取分部
|
|
|
- this.tenantId = this.$helpers.tenantId
|
|
|
- await this.$store.dispatch("setBranchs");
|
|
|
+ this.tenantId = this.$helpers.tenantId;
|
|
|
+ await this.$store.dispatch("setBranchs");
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
@@ -1519,6 +1543,7 @@ async mounted() {
|
|
|
},
|
|
|
onShopOperation(type, row) {
|
|
|
// 添加或修改
|
|
|
+
|
|
|
let params = {
|
|
|
type: type,
|
|
|
};
|
|
@@ -1723,9 +1748,15 @@ async mounted() {
|
|
|
if (form.replacementShowOrganId) {
|
|
|
form.replacementShowOrganId = form.replacementShowOrganId.join(",");
|
|
|
}
|
|
|
- if(!form.studentShowOrganId&&!form.educationShowOrganId&&!form.courseFeeShowOrganId&&!form.courseFeeShowOrganId&&!form.replacementShowOrganId){
|
|
|
- this.$message.error('请至少选择一个可见分部')
|
|
|
- return
|
|
|
+ if (
|
|
|
+ !form.studentShowOrganId &&
|
|
|
+ !form.educationShowOrganId &&
|
|
|
+ !form.courseFeeShowOrganId &&
|
|
|
+ !form.courseFeeShowOrganId &&
|
|
|
+ !form.replacementShowOrganId
|
|
|
+ ) {
|
|
|
+ this.$message.error("请至少选择一个可见分部");
|
|
|
+ return;
|
|
|
}
|
|
|
form.goodsList = null;
|
|
|
if (this.addType == "create" || this.addType == "copy") {
|
|
@@ -1806,6 +1837,12 @@ async mounted() {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+/deep/.el-table__header,
|
|
|
+/deep/.el-table__body,
|
|
|
+/deep/.el-table__footer {
|
|
|
+ table-layout: inherit!important;
|
|
|
+ border-collapse: separate;
|
|
|
+}
|
|
|
.alert {
|
|
|
margin-bottom: 22px;
|
|
|
}
|
|
@@ -1829,5 +1866,4 @@ async mounted() {
|
|
|
margin-right: 4px;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|