Commit 4cebd6f4 by 李伟康

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents 4df168e6 edfa9717
......@@ -42,7 +42,9 @@
<view class="info flex" :key="ind">
<view class="label">{{ k.label }}</view>
<view class="value">{{
k.format ? formatTime(item[k.key]) : item[k.key] || "-"
k.format
? formatTime(item[k.key], k.key)
: item[k.key] || "-"
}}</view>
</view>
</template>
......@@ -88,9 +90,9 @@ export default {
customerNameOrPhone: '',
isSearch: false,
list: [],
inviteStatus: { 1: '待邀约', 2: '已邀约', 3: '取消预约', 4: '已施工', 5: '超时未到店' },
inviteStatus: { 1: '待邀约', 2: '已邀约', 3: '取消预约', 4: '已施工', 5: '超时未到店',6: '已撤销',7: '已支付' },
itemObject: [
{ label: '客户电话', key: 'customerPhone' },
{ label: '客户电话', key: 'customerPhone',format:true },
{ label: '客户车型', key: 'carSeriesName' },
{ label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate',format:true },
......@@ -108,7 +110,10 @@ export default {
this.getRecordList()
},
methods: {
formatTime(val) {
formatTime(val,key) {
if(key == 'customerPhone') {
return val.slice(0, 3) + " " + val.slice(3, 7) + " " + val.slice(7)
}
return dayjs(val).format("YYYY-MM-DD HH:mm:ss")
},
//下拉分页
......@@ -260,11 +265,14 @@ export default {
font-weight: 500;
font-size: 24rpx;
justify-content: center;
background: #fdece9;
color: #f24724;
&.status_1 {
background: #fff5e6;
color: #ff9d0a;
}
&.status_2 {
&.status_2,
&.status_7 {
background: #eaf9f1;
color: #35c376;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!