Commit 2cdc4053 authored by 沈良进's avatar 沈良进

save

parents d91f9ad0 3c7b9713
......@@ -998,7 +998,6 @@
})
})
});
console.log("list",list);
this.list = list;
this.$forceUpdate();
}
......
......@@ -683,7 +683,6 @@ export default {
},
methods: {
changeSelect() {
console.log("changeSelect");
this.list.forEach((element) => {
element.check = this.allCheck;
});
......@@ -922,7 +921,6 @@ export default {
this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID);
},
goUrlT(path, obj, outItem, title) {
console.log('goUrlTO',path, obj, outItem, title)
this.$router.push({
name: path,
query: {
......
......@@ -574,20 +574,19 @@
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="統一编号" prop="UniqueCode">
<el-input v-model="addMsg.UniqueCode" placeholder="请输入統一编号"
maxlength="20"></el-input>
<el-input v-model="addMsg.UniqueCode" placeholder="请输入統一编号" maxlength="20"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="LINE ID" prop="LINEID">
<el-input v-model="addMsg.LINEID" placeholder="请输入LINE ID"
maxlength="20"></el-input>
<el-input v-model="addMsg.LINEID" placeholder="请输入LINE ID" maxlength="20"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="Email" prop="Email">
<el-input v-model="addMsg.Email" placeholder="请输入Email" style="width: 240px;"></el-input>
<span class="q-pl-lg text-grey-8" style="cursor: pointer;margin-left: 10px;color: gray;" @click="isShow=!isShow">{{isShow?'收起':'展开'}}</span>
<span class="q-pl-lg text-grey-8" style="cursor: pointer;margin-left: 10px;color: gray;"
@click="isShow=!isShow">{{isShow?'收起':'展开'}}</span>
</el-form-item>
</el-col>
</el-row>
......@@ -636,8 +635,6 @@
</el-col>
<el-col :span="6">
<el-form-item label="签约资料" prop="SigningFile">
<el-upload v-if="!saveMsg || !saveMsg.length" class="upload-demo" :disabled="!addMsg.SigningType"
style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="uploadFileBtn"
:show-file-list="false" action="">
......@@ -722,7 +719,8 @@
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="联系电话">
<el-input class='w200' v-model="updateMsg.contactNumber" @input='searchHistory(updateMsg.contactNumber)' placeholder="请输入联系电话"></el-input>
<el-input class='w200' v-model="updateMsg.contactNumber" @input='searchHistory(updateMsg.contactNumber)'
placeholder="请输入联系电话"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
......@@ -1070,11 +1068,11 @@
// this.$message.error('请输入联系电话')
// return
// }
if(!this.updateMsg.CustomerName){
if (!this.updateMsg.CustomerName) {
this.$message.error('请输入客户名称')
return
}
if(!this.updateMsg.Contact){
if (!this.updateMsg.Contact) {
this.$message.error('请输入联系人')
return
}
......@@ -1135,7 +1133,7 @@
})
let AreaName = sheng + shi + qu
this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
if(!this.updateMsg.Address){
if (!this.updateMsg.Address) {
this.$message.error('请输入输入详情地址')
return
}
......@@ -1182,13 +1180,6 @@
}, res => {
if (res.data.resultCode == 1) {
let x = res.data.data;
// this.customerInfo=res.data.data
// if(this.customerInfo.address.indexOf(',')!=-1){
// this.customerInfo.address=this.customerInfo.address.split(',')[1]
// }else{
// this.customerInfo.address=this.customerInfo.address
// }
// this.contact=res.data.data.contact
this.updateMsg.contactNumber = x.contactNumber
this.updateMsg.CustomerName = x.customerName
this.updateMsg.Contact = x.contactName
......@@ -1223,9 +1214,6 @@
}, res => {
if (res.data.resultCode == 1) {
this.cityList = res.data.data;
// this.regionList=[]
// this.updateMsg.City=''
// this.updateMsg.District=''
}
}, err => {})
},
......@@ -1235,8 +1223,7 @@
"level": 3
}, res => {
if (res.data.resultCode == 1) {
this.regionList = res.data.data
// this.updateMsg.District=''
this.regionList = res.data.data;
}
}, err => {})
},
......@@ -1327,7 +1314,6 @@
}, res => {
if (res.data.resultCode == 1) {
if (res.data.data.customerInfo.customerId > 0) {
this.isOldPerson = true
let x = res.data.data.customerInfo
this.addMsg = x
......@@ -1462,7 +1448,6 @@
blank: 'y'
}
})
},
goUrlT(path, id) {
this.$router.push({
......@@ -1480,17 +1465,19 @@
this.msg.CustomerStatus = type
this.getList()
},
getList() { // 获取列表数据
// 获取列表数据
getList() {
this.dataList = []
this.loading = true;
this.apipost('app_get_my_customer_list', this.msg, res => {
if (res.data.resultCode == 0) {
this.loading = false;
this.dataList = []
} else {
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
this.loading = false;
}
}, err => {})
}, err => {
this.loading = false;
})
},
getCustomerBrandList() { // 获取品牌
this.apipost('app_get_customer_brand', {}, res => {
......@@ -1501,42 +1488,32 @@
}
}, err => {})
},
saveVisa() { //
saveVisa() {
this.addMsg.SigningType = this.addMsg.SigningType ? 1 : 0
console.log('save', this.addMsg, this.updateMsg)
if(!this.addMsg.contactNumber){
if (!this.addMsg.contactNumber) {
this.$message.error('请输入联系电话')
return
}
if(!this.addMsg.customerName){
if (!this.addMsg.customerName) {
this.$message.error('请输入客户名称')
return
}
if(!this.addMsg.contact){
if (!this.addMsg.contact) {
this.$message.error('请输入联系人')
return
}
if(this.addMsg.SigningType && !this.saveMsg.length){
if (this.addMsg.SigningType && !this.saveMsg.length) {
this.$message.error('请上传签约材料')
return
} else {
if(this.saveMsg&&this.saveMsg.length>0)
{
if (this.saveMsg && this.saveMsg.length > 0) {
this.addMsg.SigningFile = this.saveMsg[0].Path
}
}
// if(!this.addMsg.UniqueCode){
// this.$message.error('请输入统一编码')
// return
// }
// if(!this.addMsg.LINEID){
// this.$message.error('请输入LINE ID')
// return
// }
if(this.updateMsg.Email){
var reg=/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
if(!reg.test(this.updateMsg.Email)){
if (this.updateMsg.Email) {
var reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
if (!reg.test(this.updateMsg.Email)) {
this.$message.error('请输入有效的邮箱')
return
}
......@@ -1583,7 +1560,7 @@
})
let AreaName = sheng + shi + qu
this.addMsg.address = AreaName + ',' + this.addMsg.address
if(!this.addMsg.address){
if (!this.addMsg.address) {
this.$message.error('请输入输入详情地址')
return
}
......
......@@ -568,7 +568,6 @@
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg = []
console.log('file', file, x)
this.saveMsg.push({
Path: x.data.FilePath,
FileName: file.file.name,
......
......@@ -887,7 +887,6 @@ export default {
methods: {
financeCheck(item) {
this.checkObj = item;
console.log("financeCheck", item);
this.showCheck = true
},
checkSubmit() {
......
......@@ -2292,7 +2292,6 @@
this.addMsg.GoCityTime = this.starTime = oldValue.StartCityTime;
this.addMsg.BackCityTime = this.endTime = oldValue.BackCityTime;
this.addMsg.SonControlID = oldValue.SonControlID;
console.log("this.addMsg.SonControlID ", this.addMsg.SonControlID);
this.priceObj = JSON.parse(JSON.stringify(oldValue));
if (this.pagesTitle == "当地游产品") {
let str = "";
......
......@@ -115,7 +115,6 @@
remarksMsg: {
immediate: true,
handler(newVal) {
console.log("old", newVal);
this.postMsg.OrderId = this.remarksMsg.OrderId;
this.postMsg.OldRemarks = this.remarksMsg.OldRemarks;
this.postMsg.Remarks = this.remarksMsg.Remarks;
......
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