Commit 4cfd37db authored by youjie's avatar youjie

no message

parent 8f0e9e9b
...@@ -600,8 +600,20 @@ ...@@ -600,8 +600,20 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item label="Email" prop="Email"> <el-form-item label="Email" prop="Email">
<el-input v-model="addMsg.Email" placeholder="请输入Email" style="width: 240px;"></el-input> <el-input v-model="addMsg.Email" placeholder="请输入Email" style="width: 240px;"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="合同照片">
<div style="display: flex;">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<span class="q-pl-lg text-grey-8" style="cursor: pointer;margin-left: 10px;color: gray;" <span class="q-pl-lg text-grey-8" style="cursor: pointer;margin-left: 10px;color: gray;"
@click="isShow=!isShow">{{isShow?'收起':'展开'}}</span> @click="isShow=!isShow">{{isShow?'收起':'展开'}}</span>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -682,15 +694,7 @@ ...@@ -682,15 +694,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="isShow" :gutter="20"> <el-row v-if="isShow" :gutter="20">
<el-col :span="6">
<el-form-item :label="$t('salesModule.BusinessPhoto')">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('salesModule.doorPhoto')"> <el-form-item :label="$t('salesModule.doorPhoto')">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg1" <el-upload class="avatar-uploader" action="" :http-request="uploadImg1"
...@@ -777,6 +781,15 @@ ...@@ -777,6 +781,15 @@
<el-input class='w200' v-model='updateMsg.email'></el-input> <el-input class='w200' v-model='updateMsg.email'></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="合同照片:">
<el-upload class="avatar-uploader" action="" :http-request="uploadImgNew"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
...@@ -839,15 +852,7 @@ ...@@ -839,15 +852,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="6">
<el-form-item label="名片照片:">
<el-upload class="avatar-uploader" action="" :http-request="uploadImgNew"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotosNew" :src="BusinessCardPhotosNew" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="门牌照片:"> <el-form-item label="门牌照片:">
<el-upload class="avatar-uploader" action="" :http-request="uploadImg1New" <el-upload class="avatar-uploader" action="" :http-request="uploadImg1New"
...@@ -1238,30 +1243,39 @@ ...@@ -1238,30 +1243,39 @@
}) })
}, },
uploadImgNew(file) { uploadImgNew(file) {
let that = this;
that.$message.info('上传中...')
//上传 //上传
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotosNew = this.domainManager().ViittoFileUrl + x.data.FilePath this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
that.$message.success('上传成功');
}); });
}, },
uploadImg1New(file) { uploadImg1New(file) {
let that = this;
that.$message.info('上传中...')
//上传 //上传
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.HousePhotosNew = this.domainManager().ViittoFileUrl + x.data.FilePath this.HousePhotosNew = this.domainManager().ViittoFileUrl + x.data.FilePath
that.$message.success('上传成功');
}); });
}, },
uploadImg2New(file) { uploadImg2New(file) {
let that = this;
that.$message.info('上传中...')
//上传 //上传
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.ImagesNew = this.domainManager().ViittoFileUrl + x.data.FilePath this.ImagesNew = this.domainManager().ViittoFileUrl + x.data.FilePath
that.$message.success('上传成功');
}); });
}, },
getMyCustomerInfo() { getMyCustomerInfo() {
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
class="normalBtn" class="normalBtn"
value="查询" value="查询"
/> />
<input type="button" @click="outerVisible = true,dialogTitle=$t('ground.xinzengzhanghu'),resetForm('addMsg')" class="normalBtn" :value="$t('pub.addBtn')" /> <input v-if="list&&list.length==0" type="button" @click="AddAccount" class="normalBtn" :value="$t('pub.addBtn')" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -266,6 +266,15 @@ ...@@ -266,6 +266,15 @@
this.changeTitle() this.changeTitle()
}, },
methods: { methods: {
AddAccount(){
if(this.list&&this.list.length==1){
this.$message.info('已有账户')
return
}
this.outerVisible = true,
this.dialogTitle=$t('ground.xinzengzhanghu'),
this.resetForm('addMsg')
},
changeTitle(){ changeTitle(){
if(this.addMsg.AccountClassify==1){ if(this.addMsg.AccountClassify==1){
this.nameA= this.$t("ground.pingtaimingcheng") this.nameA= this.$t("ground.pingtaimingcheng")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment