|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div v-loading.fullscreen.lock="fullscreenLoading">
|
|
|
<div class="pickuplist-all">
|
|
|
<div class="pickuplist-head">
|
|
|
<div class="pickuplist-head-li">
|
|
@@ -34,23 +34,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="pickuplist-Upload-box">
|
|
|
- <!-- <el-upload
|
|
|
- style="width:30%"
|
|
|
- class="upload-demo"
|
|
|
- ref="upload"
|
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
- :on-preview="handlePreview"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :file-list="fileList"
|
|
|
+ <div class="pickuplist-Upload-box">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ ref="upload"
|
|
|
+ action=""
|
|
|
+ :on-change="httpRequest"
|
|
|
+ :on-remove="httpRequest"
|
|
|
accept=".png, .jpg, .jpeg"
|
|
|
:limit="1"
|
|
|
+ :file-list="fileList"
|
|
|
:auto-upload="false">
|
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
|
|
|
- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
|
- </el-upload> -->
|
|
|
-
|
|
|
+ <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">识别图片</el-button>
|
|
|
+ <div slot="tip" class="el-upload__tip">只能识别jpg/png文件</div>
|
|
|
+ </el-upload>
|
|
|
</div>
|
|
|
<div class="pickuplist-table">
|
|
|
<el-table
|
|
@@ -94,7 +92,6 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- fixed="right"
|
|
|
label="操作"
|
|
|
width="100">
|
|
|
<template slot-scope="scope">
|
|
@@ -214,7 +211,7 @@
|
|
|
<el-input :rows="2" type="textarea" v-model="pickupinif.remark"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-dialog class="dutzl" width="1242px" title="添加多条资料" :visible.sync="dialogTableVisible">
|
|
|
+ <el-dialog class="dutzl" width="1242px" title="添加多条资料" :visible.sync="dialogTableVisible" :before-close="closeExpertFormDialog">
|
|
|
<div class="dialog-hade">
|
|
|
<label>PS:自动填写补全功能可能有误差请仔细核实,补全或修改(没有可用‘-’或‘暂无’代替)</label>
|
|
|
<el-button @click="manysave" size="mini" type="primary">保 存</el-button>
|
|
@@ -320,6 +317,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { pinyin } from 'pinyin-pro';
|
|
|
+import { cl, el } from '@fullcalendar/core/internal-common';
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
@@ -328,112 +326,162 @@ export default {
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex:'男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
],
|
|
|
token:'',
|
|
@@ -498,7 +546,10 @@ export default {
|
|
|
{ required: true, message: '请选择舱位类型', trigger: ['blur', 'change'] }
|
|
|
],
|
|
|
},
|
|
|
- fileList: []
|
|
|
+ fileList: [],
|
|
|
+ upLoadFile: [],
|
|
|
+ fullscreenLoading:false,
|
|
|
+ timeStamp:''
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -521,126 +572,172 @@ export default {
|
|
|
return restaurant.value.replace(" ", "").toLowerCase().match(queryString.toLowerCase());
|
|
|
};
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
delegationSelectChange(){
|
|
|
this.PostShareGroupInfo()
|
|
|
this.addhandoff()
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
//清空
|
|
|
clearedlist(){
|
|
|
this.tourClientListInfos=[
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex:'男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
{
|
|
|
lastName: "",
|
|
|
firstName: "",
|
|
|
+ pinyin:'',
|
|
|
sex: '男',
|
|
|
companyFullName: "",
|
|
|
job: "",
|
|
|
idCardNo: "",
|
|
|
phone: "",
|
|
|
birthDay: "",
|
|
|
- shippingSpaceTypeId: 460
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
},
|
|
|
]
|
|
|
},
|
|
@@ -723,6 +820,7 @@ export default {
|
|
|
},
|
|
|
//获取基础数据
|
|
|
PostTourClientListBasicDataInit() {
|
|
|
+ this.fullscreenLoading=true;
|
|
|
var url = "/api/Groups/PostTourClientListBasicDataInit"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -753,8 +851,10 @@ export default {
|
|
|
value: terminal.companyFullName,
|
|
|
};
|
|
|
});
|
|
|
+ that.fullscreenLoading=false;
|
|
|
}
|
|
|
}).catch(function (error) {
|
|
|
+ that.fullscreenLoading=false;
|
|
|
that.$message.error("获取基础数据失败!");
|
|
|
});
|
|
|
},
|
|
@@ -895,6 +995,7 @@ export default {
|
|
|
},
|
|
|
//保存修改api
|
|
|
PostTourClientListAddOrEdit() {
|
|
|
+ this.fullscreenLoading=true;
|
|
|
var url = "/api/Groups/PostTourClientListAddOrEdit"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -917,7 +1018,7 @@ export default {
|
|
|
companyFullName:that.pickupinif.flats,//公司名全称
|
|
|
job:that.pickupinif.office,//职位
|
|
|
idCardNo:that.pickupinif.identity,//身份证No
|
|
|
- tel:'',//...
|
|
|
+ // tel:'',//...
|
|
|
birthDay:that.pickupinif.birth,//生日
|
|
|
shippingSpaceTypeId:that.pickupinif.Accommodation,//舱位类型(数据类型表Id)
|
|
|
shippingSpaceSpecialNeeds:that.pickupinif.ClassRemarks,//舱位特殊需求
|
|
@@ -938,10 +1039,14 @@ export default {
|
|
|
that.addhandoff();
|
|
|
that.loading=false;
|
|
|
}, 500);
|
|
|
+ that.fullscreenLoading=false;
|
|
|
}else{
|
|
|
that.$message.error(res.data.msg);
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+
|
|
|
}
|
|
|
}).catch(function (error) {
|
|
|
+ that.fullscreenLoading=false;
|
|
|
that.$message.error("保存或修改失败!");
|
|
|
});
|
|
|
},
|
|
@@ -971,6 +1076,11 @@ export default {
|
|
|
}
|
|
|
this.PostTourClientListBasicDataInit()
|
|
|
},
|
|
|
+ //清空表单
|
|
|
+ closeExpertFormDialog(done){
|
|
|
+ this.clearedlist()
|
|
|
+ done();//done 用于关闭 Dialog
|
|
|
+ },
|
|
|
//删除
|
|
|
PostTourClientListDel(index,row) {
|
|
|
this.$confirm('此操作将删除此条数据,是否确认', '提示', {
|
|
@@ -1033,6 +1143,14 @@ export default {
|
|
|
PostTourClientListAddMultiple(listinif) {
|
|
|
var url = "/api/Groups/PostTourClientListAddMultiple"
|
|
|
var that = this
|
|
|
+ var data= {
|
|
|
+ portType: 1,
|
|
|
+ userId:that.userId,
|
|
|
+ pageId:that.pageId,
|
|
|
+ diId:that.diId,
|
|
|
+ tourClientListInfos:listinif
|
|
|
+ }
|
|
|
+ console.log(JSON.stringify(data))
|
|
|
this.$axios({
|
|
|
method: 'post',
|
|
|
url: url,
|
|
@@ -1096,15 +1214,119 @@ export default {
|
|
|
that.$message.error("下载失败!");
|
|
|
});
|
|
|
},
|
|
|
+ async httpRequest(file, fileList) {
|
|
|
+ this.upLoadFile = []
|
|
|
+ for (let i in fileList) {
|
|
|
+ this.upLoadFile[i] = await this.getBase64(fileList[i].raw)
|
|
|
+ }
|
|
|
+ console.log('上传文件列表', this.upLoadFile)
|
|
|
+ },
|
|
|
+ // 转base64码
|
|
|
+ getBase64(file) {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ const reader = new FileReader()
|
|
|
+ let fileResult = ''
|
|
|
+ reader.readAsDataURL(file)
|
|
|
+ // 开始转
|
|
|
+ reader.onload = () => {
|
|
|
+ fileResult = reader.result
|
|
|
+ }
|
|
|
+ // 转 失败
|
|
|
+ reader.onerror = error => {
|
|
|
+ reject(error)
|
|
|
+ }
|
|
|
+ // 转 结束
|
|
|
+ reader.onloadend = () => {
|
|
|
+ resolve(fileResult)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
submitUpload() {
|
|
|
- this.$refs.upload.submit();
|
|
|
- },
|
|
|
- handleRemove(file, fileList) {
|
|
|
- console.log(file, fileList);
|
|
|
+ console.log(this.upLoadFile)
|
|
|
+ if(this.upLoadFile.length==0){
|
|
|
+ this.$message.error("未选择图片!");
|
|
|
+ }else{
|
|
|
+ this.fullscreenLoading=true;
|
|
|
+ var url = "/api/BaiduOCR/ClientOCR"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ base64img:that.upLoadFile[0]
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ console.log(res)
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+ var dataarr=res.data.data;
|
|
|
+ var dataarrnew=[];
|
|
|
+ for(var i=0;i<dataarr.length;i++){
|
|
|
+ dataarrnew.push(
|
|
|
+ {
|
|
|
+ lastName:dataarr[i].lastName,
|
|
|
+ firstName:dataarr[i].firstName,
|
|
|
+ pinyin:'',
|
|
|
+ sex:dataarr[i].sex,
|
|
|
+ companyFullName:dataarr[i].companyFullName,
|
|
|
+ job:dataarr[i].job,
|
|
|
+ idCardNo:dataarr[i].iDcard,
|
|
|
+ phone:dataarr[i].phone,
|
|
|
+ birthDay:dataarr[i].birthday=='-'?'':dataarr[i].birthday,
|
|
|
+ shippingSpaceTypeId:dataarr[i].berth,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ // that.tourClientListInfos[i]=dataarrnew[i]
|
|
|
+ }
|
|
|
+ that.tourClientListInfos=dataarrnew
|
|
|
+ console.log(10-dataarrnew.length)
|
|
|
+ var len = 10 - dataarrnew.length
|
|
|
+ console.log(len)
|
|
|
+ for(var jk=0;jk<len;jk++){
|
|
|
+ that.tourClientListInfos.push(
|
|
|
+ {
|
|
|
+ lastName: '',
|
|
|
+ firstName: "",
|
|
|
+ pinyin:'',
|
|
|
+ sex: '男',
|
|
|
+ companyFullName: "",
|
|
|
+ job: "",
|
|
|
+ idCardNo: "",
|
|
|
+ phone: "",
|
|
|
+ birthDay: "",
|
|
|
+ shippingSpaceTypeId: 460,
|
|
|
+ shippingSpaceSpecialNeeds:'',
|
|
|
+ hotelSpecialNeeds:'',
|
|
|
+ mealSpecialNeeds:'',
|
|
|
+ remark:'',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
+ that.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.msg,
|
|
|
+ duration:'3000'
|
|
|
+ });
|
|
|
+ // setTimeout(function(){ that.dialogTableVisible=true; }, 3000);
|
|
|
+ that.dialogTableVisible=true;
|
|
|
+ }else{
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ }).catch(function (error) {
|
|
|
+ that.fullscreenLoading=false;
|
|
|
+ that.$message.error("导入失败!");
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
- handlePreview(file) {
|
|
|
- console.log(file);
|
|
|
- }
|
|
|
},
|
|
|
filters:{
|
|
|
filter_city(value){
|
|
@@ -1119,6 +1341,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
+ console.log(this.tourClientListInfos)
|
|
|
this.token = JSON.parse(localStorage.getItem('userinif')).token;
|
|
|
this.pageId=Number(localStorage.getItem('indexs').split('-')[1]);//页面id
|
|
|
this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
|
|
@@ -1155,7 +1378,9 @@ export default {
|
|
|
display: flex;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
-
|
|
|
+.pickuplist-info .pickuplist-info-li:last-child{
|
|
|
+ margin-right: 0;
|
|
|
+}
|
|
|
.pickuplist-info-li {
|
|
|
margin-right: 30px;
|
|
|
}
|
|
@@ -1176,6 +1401,16 @@ export default {
|
|
|
align-items: baseline;
|
|
|
justify-content: end;
|
|
|
}
|
|
|
+.pickuplist-Upload-box .upload-demo{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.pickuplist-Upload-box .el-upload__tip{
|
|
|
+ margin-top: 0px;
|
|
|
+}
|
|
|
+.pickuplist-Upload-box .el-upload-list__item:first-child{
|
|
|
+ margin-top: 0px;
|
|
|
+}
|
|
|
.pickuplist-table{
|
|
|
margin-top: 20px;
|
|
|
}
|