1.批量上传EXCEL的以xlsx结尾
2.第一列为标题列 姓名 手机号 证件号
3.文件是从微信聊天记录中选取或者微信文件传输助手
"
}],
specialtype:false,
- specialid:0,
+ specialid:0,
+ common_user:[],
form: {
date: "",
rule_id: "",
@@ -355,7 +385,9 @@
that.util.getUserInfo(function(r) {
that.user = r;
that.form.mobile = r.mobile;
- }, true);
+ }, true);
+
+ that.loadCommonUser();
},
@@ -371,6 +403,38 @@
// if(this.$refs.radio.currentValue){
// this.specialtype = val;
// }
+ },
+ loadCommonUser(){
+ var that = this;
+ this.util.request({
+ api: '/api/mobile/visit/address-book',
+ utilSuccess: function(res) {
+
+ for(var m of res){
+ m.checked = false
+ }
+ that.common_user = res;
+ console.log(that.common_user)
+ },
+ utilFail: function(res) {
+
+ }
+ })
+ },
+ handleCommonUser(obj){
+ obj.checked = !obj.checked
+ if(obj.checked){
+ this.form.details_list.push(obj)
+ }else{
+ for(var i=0;i