Browse Source

no message

pengyh 1 year ago
parent
commit
d351fd11c1

+ 3 - 2
src/views/mallManagement/tenancyManagement/tenancyProduct/detail.vue

@@ -38,7 +38,7 @@
 							</el-form-item>
 							</el-form-item>
 						</el-col>
 						</el-col>
 						<el-col :span="8">
 						<el-col :span="8">
-							<el-form-item label="租价格" prop="leasePrice">
+							<el-form-item label="租价格" prop="leasePrice">
 								<div class="flex">
 								<div class="flex">
 									<el-input type="number" style="flex: 1" v-model="formData.leasePrice" oninput="if(value<0) value=0" :disabled="formType==2" placeholder="请输入"></el-input>
 									<el-input type="number" style="flex: 1" v-model="formData.leasePrice" oninput="if(value<0) value=0" :disabled="formType==2" placeholder="请输入"></el-input>
 									<span>元/月</span>
 									<span>元/月</span>
@@ -133,7 +133,7 @@
 						{ required: true, message: '请选择商品分类', trigger: 'change' }
 						{ required: true, message: '请选择商品分类', trigger: 'change' }
 					],
 					],
 					leasePrice: [
 					leasePrice: [
-						{ required: true, message: '请输入租价格', trigger: 'blur' },
+						{ required: true, message: '请输入租价格', trigger: 'blur' },
 					],
 					],
 					oldPrice: [
 					oldPrice: [
 						{ required: true, message: '请输入划线价格', trigger: 'blur' },
 						{ required: true, message: '请输入划线价格', trigger: 'blur' },
@@ -170,6 +170,7 @@
 			  return new Promise((resolve, reject) => {
 			  return new Promise((resolve, reject) => {
 			    let params = {
 			    let params = {
 			      name: '',
 			      name: '',
+				  type: 2,
 			      categoryLevel: 1,
 			      categoryLevel: 1,
 			      status: true
 			      status: true
 			    };
 			    };

+ 9 - 9
src/views/mallManagement/tenancyManagement/tenancyProduct/index.vue

@@ -6,7 +6,7 @@
 					<div class="item" :class="screenForm.status === '' ? 'current':''" @click="changeType('')">
 					<div class="item" :class="screenForm.status === '' ? 'current':''" @click="changeType('')">
 						全部({{ (downCount + upCount) || 0 }})</div>
 						全部({{ (downCount + upCount) || 0 }})</div>
 					<div class="item" :class="screenForm.status ? 'current':''" @click="changeType(true)">
 					<div class="item" :class="screenForm.status ? 'current':''" @click="changeType(true)">
-						租中({{ upCount || 0 }})</div>
+						租中({{ upCount || 0 }})</div>
 					<div class="item" :class="screenForm.status === false ? 'current':''" @click="changeType(false)">
 					<div class="item" :class="screenForm.status === false ? 'current':''" @click="changeType(false)">
 						已下架({{ downCount || 0 }})</div>
 						已下架({{ downCount || 0 }})</div>
 				</div>
 				</div>
@@ -36,7 +36,7 @@
 										</el-form-item>
 										</el-form-item>
 									</el-col>
 									</el-col>
 									<el-col :xs="12" :sm="12" :lg="8">
 									<el-col :xs="12" :sm="12" :lg="8">
-										<el-form-item label="租定金:" label-width="90px">
+										<el-form-item label="租定金:" label-width="90px">
 											<el-input v-model="screenForm.price1" size="small" @change="getListByScreen"
 											<el-input v-model="screenForm.price1" size="small" @change="getListByScreen"
 												clearable></el-input>
 												clearable></el-input>
 											<span>至</span>
 											<span>至</span>
@@ -45,7 +45,7 @@
 										</el-form-item>
 										</el-form-item>
 									</el-col>
 									</el-col>
 									<el-col :xs="12" :sm="12" :lg="8">
 									<el-col :xs="12" :sm="12" :lg="8">
-										<el-form-item label="租价格:" label-width="90px">
+										<el-form-item label="租价格:" label-width="90px">
 											<el-input v-model="screenForm.amount1" size="small" @change="getListByScreen"
 											<el-input v-model="screenForm.amount1" size="small" @change="getListByScreen"
 												clearable></el-input>
 												clearable></el-input>
 											<span>至</span>
 											<span>至</span>
@@ -69,14 +69,14 @@
 						<el-table-column align="center" type="selection" width="55" fixed></el-table-column>
 						<el-table-column align="center" type="selection" width="55" fixed></el-table-column>
 						<el-table-column align="center" label="一级分类图片" prop="imgUrl" width="85">
 						<el-table-column align="center" label="一级分类图片" prop="imgUrl" width="85">
 							<template slot-scope="scope">
 							<template slot-scope="scope">
-								<el-image style="width: 60px; height: 60px; display: block;" :src="scope.row.imgUrl"
-									:preview-src-list="[scope.row.imgUrl]" fit="cover"></el-image>
+								<el-image style="width: 60px; height: 60px; display: block;" :src="scope.row.categoryUrl"
+									:preview-src-list="[scope.row.categoryUrl]" fit="cover"></el-image>
 							</template>
 							</template>
 						</el-table-column>
 						</el-table-column>
 						<el-table-column align="center" label="商品ID" prop="id" min-width="200"></el-table-column>
 						<el-table-column align="center" label="商品ID" prop="id" min-width="200"></el-table-column>
 						<el-table-column align="center" label="商品名称" prop="name" min-width="200"></el-table-column>
 						<el-table-column align="center" label="商品名称" prop="name" min-width="200"></el-table-column>
-						<el-table-column align="center" label="租价格" prop="leasePrice" min-width="200"></el-table-column>
-						<el-table-column align="center" label="租定金" prop="depositPrice" min-width="200"></el-table-column>
+						<el-table-column align="center" label="租价格" prop="leasePrice" min-width="200"></el-table-column>
+						<el-table-column align="center" label="租定金" prop="depositPrice" min-width="200"></el-table-column>
 						<el-table-column align="center" label="排序" prop="sort" min-width="110" sortable>
 						<el-table-column align="center" label="排序" prop="sort" min-width="110" sortable>
 							<template slot-scope="scope">
 							<template slot-scope="scope">
 								<!-- {{ scope.row.sortNum }} -->
 								<!-- {{ scope.row.sortNum }} -->
@@ -101,7 +101,7 @@
 									:data-clipboard-text="scope.row.id">复制链接</el-button>
 									:data-clipboard-text="scope.row.id">复制链接</el-button>
 								<el-popconfirm v-if="$restrict('del')" style="margin-left: 10px;" title="确定删除吗?"
 								<el-popconfirm v-if="$restrict('del')" style="margin-left: 10px;" title="确定删除吗?"
 									@confirm="delItem(scope.row.id)">
 									@confirm="delItem(scope.row.id)">
-									<el-button slot="reference" size="mini">删除</el-button>
+									<el-button v-if="!scope.row.status" slot="reference" size="mini">删除</el-button>
 								</el-popconfirm>
 								</el-popconfirm>
 							</template>
 							</template>
 						</el-table-column>
 						</el-table-column>
@@ -119,7 +119,7 @@
 			</div>
 			</div>
 		</template>
 		</template>
 		<template v-else>
 		<template v-else>
-			<detail @back="backList" :title="'租产品' + formTypeItems[formType]" :id="id" :formType="formType"></detail>
+			<detail @back="backList" :title="'租产品' + formTypeItems[formType]" :id="id" :formType="formType"></detail>
 		</template>
 		</template>
 	</div>
 	</div>
 </template>
 </template>