فهرست منبع

租赁单优化

pengyh 1 سال پیش
والد
کامیت
d0e1a66c0f

+ 24 - 4
src/views/mallManagement/tenancyManagement/tenancyOrder/detail.vue

@@ -335,7 +335,11 @@
 								</el-form-item>
 							</template>
 						</el-table-column>
-						<el-table-column prop="realEndDate" align="center" label="实际到期日期"></el-table-column>
+						<el-table-column prop="realEndDate" align="center" label="实际到期日期">
+							<template slot-scope="scope">
+								{{scope.row.realEndDate?scope.row.realEndDate.substring(0,10):''}}
+							</template>
+						</el-table-column>
 						<el-table-column prop="depositAmount" align="center" label="*押金">
 							<template slot-scope="scope">
 								<el-form-item :prop="'dataList.' + scope.$index + '.depositAmount'"
@@ -377,12 +381,12 @@
 					<el-table-column prop="payValue" label="订金" align="center"></el-table-column>
 					<el-table-column prop="" align="center" label="租赁开始时间">
 						<template slot-scope="scope">
-							{{scope.row.startDate.substring(0,10)}}
+							{{scope.row.startDate?scope.row.startDate.substring(0,10):''}}
 						</template>
 					</el-table-column>
 					<el-table-column prop="" align="center" label="租赁结束时间">
 						<template slot-scope="scope">
-							{{scope.row.endDate.substring(0,10)}}
+							{{scope.row.endDate?scope.row.endDate.substring(0,10):''}}
 						</template>
 					</el-table-column>
 					<el-table-column prop="createBy" align="center" label="操作人"></el-table-column>
@@ -390,6 +394,22 @@
 				</el-table>
 			</div>
 		</el-card>
+		<el-card class="box-card" v-if="formType != 0">
+			<div slot="header" class="clearfix">
+				<span>报修记录</span>
+			</div>
+			<div class="table">
+				<el-table :data="formData.orderBases" element-loading-text="Loading" border fit highlight-current-row
+					stripe>
+					<el-table-column prop="id" label="报修单号" align="center"></el-table-column>
+					<el-table-column prop="createDate" label="提交时间" align="center"></el-table-column>
+					<el-table-column prop="appointmentTime" label="上门时间" align="center"></el-table-column>
+					<el-table-column prop="overDate" label="完工时间" align="center"></el-table-column>
+					<el-table-column prop="updateBy" align="center" label="操作人"></el-table-column>
+					<el-table-column prop="updateTime" align="center" label="操作时间"></el-table-column>
+				</el-table>
+			</div>
+		</el-card>
 		<div class="page-footer">
 			<div class="footer">
 				<el-button v-if="formType == 0" size="small" type="primary" @click="submit()">提交</el-button>
@@ -607,7 +627,7 @@
 						cityObj: {id: res.data.cityId},
 						areaObj: {id: res.data.areaId},
 						streetObj: {id: res.data.streetId},
-						userInfo: res.data.userId?{userId: res.data.userId,userMobile: res.data.userMobile,userName: res.data.userName}:res.data.userMobile
+						userInfo: (res.data.userId && res.data.payType=="LINE")?{userId: res.data.userId,userMobile: res.data.userMobile,userName: res.data.userName}:res.data.userMobile
 					}
 					this.formData3.dataList = res.data.items
 					this.getinitlbslist()

+ 1 - 1
src/views/mallManagement/tenancyManagement/tenancyOrder/index.vue

@@ -59,7 +59,7 @@
 					<el-tab-pane label="全部" name="ALL"></el-tab-pane>
 					<el-tab-pane label="待确认" name="WAIT"></el-tab-pane>
 					<el-tab-pane label="待开始" name="WAIT_START"></el-tab-pane>
-					<el-tab-pane label="租中" name="LEASE"></el-tab-pane>
+					<el-tab-pane label="租中" name="LEASE"></el-tab-pane>
 					<el-tab-pane label="已到期-待回收" name="OVER"></el-tab-pane>
 					<el-tab-pane label="已到期-已回收" name="RECOVER"></el-tab-pane>
 					<el-tab-pane label="已取消" name="CANCEL"></el-tab-pane>

+ 1 - 1
src/views/mallManagement/tenancyManagement/tenancyProduct/detail.vue

@@ -54,7 +54,7 @@
 							</el-form-item>
 						</el-col>
 						<el-col :span="8">
-							<el-form-item label="金价格" prop="depositPrice">
+							<el-form-item label="金价格" prop="depositPrice">
 								<div class="flex">
 									<el-input type="number" style="flex: 1" v-model="formData.depositPrice" oninput="if(value<0) value=0" :disabled="formType==2" placeholder="请输入"></el-input>
 									<span>元</span>