|
|
|
|
@ -131,6 +131,21 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box-card">
|
|
|
|
|
<u-form-item label="特殊情况" labelWidth="80" prop="leader" ref="leader">
|
|
|
|
|
<!-- <u-radio-group v-model="specialtype">
|
|
|
|
|
<u-radio ref="specialradio" width="50%" @change="radioChange" activeColor="#EF9525"
|
|
|
|
|
name='3' label="">
|
|
|
|
|
</u-radio>
|
|
|
|
|
|
|
|
|
|
</u-radio-group> -->
|
|
|
|
|
<u-checkbox-group @change="radioChange">
|
|
|
|
|
<u-checkbox activeColor="#EF9525" label="乘坐轮椅等行动不便者" v-model="specialtype" name='1' shape="circle"></u-checkbox>
|
|
|
|
|
</u-checkbox-group>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box-card" v-if="type=='team'">
|
|
|
|
|
<view class="box-card-title">
|
|
|
|
|
@ -160,6 +175,14 @@
|
|
|
|
|
<u-input readonly placeholder="请输入手机号" v-model="form.mobile"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box-card" v-if="type=='user'">
|
|
|
|
|
|
|
|
|
|
<view class="box-card-content" style="padding: 10px;">
|
|
|
|
|
<u-form-item label="手机号" labelWidth="80" prop="mobile" ref="mobile" required>
|
|
|
|
|
<u-input readonly placeholder="请输入手机号" v-model="form.mobile"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u--form>
|
|
|
|
|
<view class="page-bottom">
|
|
|
|
|
@ -186,7 +209,7 @@
|
|
|
|
|
<u-form-item label="证件号码" labelWidth="80" prop="idcard" ref="idcard" required>
|
|
|
|
|
<u-input placeholder="请输入证件号码" v-model="formUser.idcard"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="手机号" labelWidth="80" prop="from.mobile" ref="mobile" required>
|
|
|
|
|
<u-form-item label="手机号" labelWidth="80" prop="from.mobile" ref="mobile">
|
|
|
|
|
<u-input placeholder="请输入手机号" v-model="formUser.mobile"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u--form>
|
|
|
|
|
@ -234,7 +257,9 @@
|
|
|
|
|
}, {
|
|
|
|
|
title: "批量上传帮助",
|
|
|
|
|
content: "<p>1.批量上传EXCEL的以xlsx结尾</p><p>2.第一列为标题列 姓名 手机号 证件号</p><p>3.文件是从微信聊天记录中选取或者微信文件传输助手</p><img src='@host@/export.png' style='width:100%'/>"
|
|
|
|
|
}],
|
|
|
|
|
}],
|
|
|
|
|
specialtype:false,
|
|
|
|
|
specialid:0,
|
|
|
|
|
form: {
|
|
|
|
|
date: "",
|
|
|
|
|
rule_id: "",
|
|
|
|
|
@ -335,7 +360,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
methods: {
|
|
|
|
|
radioChange(val){
|
|
|
|
|
console.log(val)
|
|
|
|
|
this.specialtype = !this.specialtype;
|
|
|
|
|
if(this.specialtype){
|
|
|
|
|
this.specialid = val[0]
|
|
|
|
|
}else{
|
|
|
|
|
this.specialid = 0
|
|
|
|
|
}
|
|
|
|
|
// if(this.$refs.radio.currentValue){
|
|
|
|
|
// this.specialtype = val;
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
loadConfig() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -384,7 +421,11 @@
|
|
|
|
|
},
|
|
|
|
|
submitOrder() {
|
|
|
|
|
this.form.date = this.currentDate.date;
|
|
|
|
|
this.form.rule_id = this.currentTime.id;
|
|
|
|
|
this.form.rule_id = this.currentTime.id;
|
|
|
|
|
if(this.specialid){
|
|
|
|
|
//
|
|
|
|
|
this.form.is_disability = this.specialid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.form.details_list.length != this.form.total) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
@ -393,12 +434,7 @@
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.type != "user") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.util.isNull(this.form.leader)) {
|
|
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
@ -446,7 +482,8 @@
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -535,25 +572,36 @@
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.util.isNull(this.formUser.mobile)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请填写手机号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
} else if (!this.util.phoneRegex.test(this.formUser.mobile)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请正确填写手机号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// if (this.util.isNull(this.formUser.mobile)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请填写手机号"
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// } else if (!this.util.phoneRegex.test(this.formUser.mobile)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请正确填写手机号"
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
if(!this.util.isNull(this.formUser.mobile)){
|
|
|
|
|
if (!this.util.phoneRegex.test(this.formUser.mobile)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请正确填写手机号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断是不是编辑 如果是编辑
|
|
|
|
|
if (that.editIndex != -1) {
|
|
|
|
|
that.form.details_list.splice(that.editIndex, 1, that.formUser)
|
|
|
|
|
} else
|
|
|
|
|
that.form.details_list.push(that.formUser);
|
|
|
|
|
that.addUserAfter();
|
|
|
|
|
// that.addUserAfter();
|
|
|
|
|
that.showAdd = false;
|
|
|
|
|
}).catch(errors => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|