清理打印

dev
e 3 years ago
parent 9fa6635b39
commit 904f83274f
  1. 7
      src/views/Login.vue
  2. 1
      src/views/customer/AddCustomer.vue
  3. 1
      src/views/customer/customer.vue
  4. 11
      src/views/order/AddOrder.vue
  5. 4
      src/views/order/Order.vue
  6. 3
      src/views/user/User.vue

@ -198,7 +198,7 @@ export default {
});
localStorage.setItem('ms_username', this.param.username);
}).catch(err => {
console.log(err,'reserr');
console.log(err,'res-err');
if(err.status===30001){
this.phoneVisible = true
}else if(err.status == 10004){
@ -223,14 +223,11 @@ export default {
this.verificationIMG = this.api.verification+'?random='+`${this.param.random}`
},
phoneBlur(){
console.log(this.phoneOrEmail.account,'this.phoneOrEmail.account');
if(!this.phoneOrEmail.account){
return this.PhoneVerificationIMG = ''
}
console.log(123,'後續');
this.phoneOrEmail.random = Math.floor(Math.random()*999999999)
this.PhoneVerificationIMG = this.api.verification+'?random='+`${this.phoneOrEmail.random}`
console.log(this.PhoneVerificationIMG,'this.PhoneVerificationIMG');
},
handleSelect(val){
this.activeIndex = val
@ -243,7 +240,6 @@ export default {
types: 2
}
this.$post(this.api.sendPhoneOrEmailCode,data).then(res => {
console.log(res,'当前绑定手机否');
this.phoneCountdown()//
if(res.message.opener){
this.phoneOpener = res.message.opener
@ -281,7 +277,6 @@ export default {
if(!this.phoneTimer){
this.phoneDisabled = true
this.phoneTimer = setInterval(() => {
console.log('倒计时中')
if(count > 0){
count--
this.phoneBtnText = `${count}秒后重试`

@ -577,7 +577,6 @@ export default {
},
showContract(row){
if(!row.contractFile) return this.$message.warning('文件链接无效')
console.log(row.contractFile,'f');
let type = row.contractFile.split('.').pop()
let img = ['jpg','gif','png','jepg']

@ -133,7 +133,6 @@ export default {
},
},
mounted() {
console.log(111,localStorage.getItem('token'))
this.getData()
this.getProvince()
},

@ -684,7 +684,6 @@ export default {
if(this.renewDisabled){/* 处于续费 */
let end = Date.parse(e.endTime);
let now = +new Date()
console.log(end,now,'时间');
if(now<end){
let time = e.endTime.split(" ")[0]
let arr = time.split('-')
@ -920,7 +919,6 @@ export default {
productId:idArr
}
await this.$post(this.api.renew,params).then(res=>{
console.log(res,'调用查询接口');
this.dataPlatform.map(e=>{
res.orderOthers.map(el=>{
if(el.dataOrCourseId === e.dataOrCourseId){
@ -998,7 +996,6 @@ export default {
},
// switch--
formSwitch (e,row) {
console.log(e,row,'switch切换');
},
// --
deliverGoods (e,row) {
@ -1018,7 +1015,6 @@ export default {
let day = nowDate.getDate();
let month = nowDate.getMonth() + 1;
let year = nowDate.getFullYear();
console.log(nowDate,'nowdata');
if(this.renewDisabled||row.renew){/* 处于续费状态 */
if(!e) return row.endTime = ''
@ -1026,10 +1022,7 @@ export default {
let renewY = arr.shift()/* 年 */
let renewM = arr.shift()/* 月 */
let renewD = arr.shift()/* 日 */
console.log(renewY,renewM,renewD,'拆分时间');
let endYear = +renewY + (parseInt((+renewM+(+e))/13)===0?0:parseInt((+renewM+(+e))/12))+ char + completeDate((+renewM+(+e))%12) + char + renewD;
// console.log((parseInt((+renewM(+e))/12)===0?0:parseInt((+renewM+(+e))/12)),renewY,'', +renewY + (parseInt((+renewM+(+e))/12)===0?0:parseInt((+renewM+(+e))/12)));
console.log(parseInt((+renewM+(+e))/13),'计算整除的年份',12/13,'+renewM+(+e)');
row.endTime = endYear
//
@ -1249,7 +1242,6 @@ export default {
const size = file.size / 1024 / 1024 < 10;
let type = file.name.split('.').pop()
let str = ["jpg","jepg","gif","png","doc","docx","pdf"].includes(type.toLowerCase())
console.log(type,str,'类型判断');
if(!str){
this.$message.error('只能上传图片,word文件和pdf文件!')
}else if (!size) {
@ -1260,7 +1252,6 @@ export default {
},
//
uploadSuccess(response, file, fileList) {
console.log(file,'上传构子',response,);
this.contract.contractFile = response.filesResult.fileUrl
},
//
@ -1273,7 +1264,6 @@ export default {
},
//
beforeRemove(file, fileList) {
console.log(file,'删除钩子');
let type = file.name.split('.').pop()
let str = ["jpg","jepg","gif","png","doc","pdf"].includes(type.toLowerCase())
const size = file.size / 1024 / 1024 < 10;
@ -1305,7 +1295,6 @@ export default {
boolean = false
}
})
console.log(boolean);
return boolean
}

@ -157,8 +157,6 @@ export default {
if(val.length>5){
val = 5
}
console.log(this.value1,'value1');
console.log(val,'val');
},
getData() {
@ -172,7 +170,6 @@ export default {
provinceId: this.form.provinces,
}
this.$post(this.api.orderList,data).then(res => {
console.log(res,'list');
res.orderPage.orders.forEach(e => {
e.orderType = this.orderTypeFn(e.orderType)
e.orderStatus = this.orderStatusFn(e.orderStatus)
@ -231,7 +228,6 @@ export default {
return row.orderId;
},
handleSelectionChange(val) {
console.log(val,'xuan');
if(val.length>0){
this.multipleSelection = val.map(e=>e.orderId);
}else{

@ -339,14 +339,11 @@ export default {
}).catch(res => {})
},
handleSelectionChange(val) {
this.multipleSelection = val.filter(e=>{
if(e.userId===1){
}
})
console.log(val,'val');
},
delAllSelection() {
if(this.multipleSelection.length != ''){

Loading…
Cancel
Save