Commit e252c373 by 王玉曼

--no commit message

1 parent 48e7232e
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<span class="finish-box"> <span class="finish-box">
<span <span
class="finish" class="finish"
v-if="item1.trajectoryType == 4" v-if="item1.trajectoryType == 4 && item1.status !=3"
@click="finDynamic(item1.id)" @click="finDynamic(item1.id)"
>完成</span >完成</span
> >
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
handleWait(id) handleWait(id)
.then((data) => { .then((data) => {
if (data.code == 200) { if (data.code == 200) {
this.delDynamic(id); // this.delDynamic(id);
this.reload(); this.reload();
} }
}) })
...@@ -250,6 +250,7 @@ export default { ...@@ -250,6 +250,7 @@ export default {
color: #9c9c9c; color: #9c9c9c;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
margin-right: 16px;
} }
.con { .con {
left: 51px; left: 51px;
...@@ -258,20 +259,15 @@ export default { ...@@ -258,20 +259,15 @@ export default {
.finish-box { .finish-box {
display: inline-block; display: inline-block;
position: relative; position: relative;
color: #2c8cf0; left: 100px;
font-size: 12px; width: 25%;
font-weight: 600;
left: 140px;
top: 0px;
width: 65px;
} }
.finish { .finish {
position: absolute; position: absolute;
color: #2c8cf0; color: #2c8cf0;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
// right: -138px; // right: 30px;
top: 0px; // top: 0px;
} }
</style> </style>
...@@ -102,7 +102,6 @@ export default { ...@@ -102,7 +102,6 @@ export default {
}, },
created() { created() {
this.externalUserid = this.$route.query.customerId this.externalUserid = this.$route.query.customerId
this.findAddaddEmployes() this.findAddaddEmployes()
this.findAddGroupNum() this.findAddGroupNum()
}, },
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
label="年龄" label="年龄"
placeholder="年龄" placeholder="年龄"
input-align="right" input-align="right"
disabled
/> />
<van-field <van-field
v-model="form.birthday" v-model="form.birthday"
...@@ -67,14 +68,16 @@ ...@@ -67,14 +68,16 @@
input-align="right" input-align="right"
@click="!flage ? (show = true) : ''" @click="!flage ? (show = true) : ''"
/> />
<van-popup v-model="show"> 内容</van-popup> <van-popup v-model="show" position="bottom" round :style="{ height: '60%' }">
<!-- <van-datetime-picker <van-datetime-picker
v-model="currentDate" v-model="currentDate"
type="date" type="date"
title="选择年月日" title="选择年月日"
:min-date="minDate" :min-date="minDate"
:max-date="maxDate" :max-date="maxDate"
/> --> @confirm="confirm"
@cancel = "cancel"
/></van-popup>
<!-- -------------------------- --> <!-- -------------------------- -->
<van-field <van-field
v-model="form.email" v-model="form.email"
...@@ -134,6 +137,7 @@ export default { ...@@ -134,6 +137,7 @@ export default {
show: false, show: false,
minDate: new Date(1940, 0, 1), minDate: new Date(1940, 0, 1),
maxDate: new Date(), maxDate: new Date(),
currentDate: new Date(2000, 0, 17),
// 接口开始 // 接口开始
// 表单数据 // 表单数据
form: { form: {
...@@ -156,6 +160,7 @@ export default { ...@@ -156,6 +160,7 @@ export default {
// 获取客户年龄 // 获取客户年龄
}, },
created() { created() {
this.form.externalUserid = this.$route.query.customerId; this.form.externalUserid = this.$route.query.customerId;
// 获取客户详细信息 // 获取客户详细信息
getCustomerInfo({ getCustomerInfo({
...@@ -163,9 +168,9 @@ export default { ...@@ -163,9 +168,9 @@ export default {
userId: this.form.userId, userId: this.form.userId,
}) })
.then(({ data }) => { .then(({ data }) => {
console.log(data); // console.log(data);
this.form = data; this.form = data;
console.log(this.form); // console.log(this.form);
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
...@@ -173,13 +178,37 @@ export default { ...@@ -173,13 +178,37 @@ export default {
}, },
methods: { methods: {
// 选择生日 // 选择生日
confirm(val) {
this.show = false
this.form.birthday =this.getTime (val)
console.log(val);
},
cancel () {
this.show = false
},
edit() { edit() {
this.flage = !this.flage; this.flage = !this.flage;
}, },
// 时间处理器
getTime(data) {
const date = new Date(data)
// console.log(timer.getFullYear());
var Y = date.getFullYear() + '-'
var M =
(date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1) + '-'
var D =
date.getDate() < 10 ? '0' + date.getDate() : date.getDate() + ' '
// var h =
// (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
// var m =
// date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
return Y + M + D
},
// 点击保存按钮提交表单 // 点击保存按钮提交表单
saveUserInformation() { saveUserInformation() {
this.flage = !this.flage; this.flage = !this.flage;
getWeCustomerInfo(this.form) getWeCustomerInfo(this.form)
.then((data) => { .then((data) => {
console.log(data); console.log(data);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!