Commit 484a98f4 by 刘泽奇

123

parent 2e799351
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -293,7 +293,6 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
console.log(d.msg);
this.$message("请重试");
}
});
......
......@@ -92,7 +92,7 @@
height: 18px;
margin-bottom: 3px;
cursor: pointer;
margin-left: 647px;
margin-left: 604px;
}
.nowbuy-footer-img>img {
......
......@@ -79,7 +79,6 @@
},
methods: {
goOrder(){
let that = this;
this.params.tm.totalSum = this.tableData[0].countPrice;
this.params.tm.salesNum = Number(this.$route.query.num);
this.apply.orderType = "zzdd";
......@@ -105,19 +104,10 @@
})
},
getProduct(){
var sdsId = window.location.href.split("sdsId=")[1];
var that = this;
this.$root.getReq("/web/serviceitemCtl/findOneById", { id: sdsId }).then(function (d) {
if (d.code == 1) {
var data = d.data;
console.log(d.data);
d.data.num = that.$route.query.num;
d.data.countPrice = (d.data.serviceCharge + d.data.publicExpense) * Number(that.$route.query.num);
that.tableData.push(d.data);
console.log("返回信息", that.tableData);
that.serviceName = d.data.name;
}
});
var data = { ...this.$route.query };
this.tableData.push(data);
console.log(data,'!!!!!!!!!!!!!!!1');
},
tiaozhuan(code) {
switch (code) {
......
......@@ -216,9 +216,7 @@
<br />
<gsb-upload2 flag="zfpz" ref="zfpz" :d="d" @setKey="setKey" :action="action" filetype="image/jpeg"
:ifshowlist="false" @uploadsuccess="uploadsuccess2" @error="error">
</gsb-upload2>
<div style="margin-top:20px;">
<span style="color:#828282;font-size: 14px;">
请上传线下支付凭证。
......
......@@ -328,7 +328,7 @@
{ required: true, validator: validateMobile, trigger: 'blur' }
],
},
num: null,
num: 1,
}
},
mounted() {
......@@ -345,12 +345,13 @@
});
},
getServiceItemInfo(){
var sdsId = window.location.href.split("sdsId=")[1];
var sdsId = this.$route.query.sdsId;
var that = this;
let obj = this.$root.copyParams({ channelUserId: "123", channelItemCode: sdsId }, "getProductDetail", "/action/tmOrder/springBoard");
let obj = this.$root.copyParams({ channelUserId: that.$root.channelUserId, channelItemCode: sdsId }, "getProductDetail", "/action/tmOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then(function (d) {
if (d.status == 0) {
that.serviceItem = d.data;
that.serviceItem.price = that.serviceItem.proPrice * that.num;
console.log("返回信息", { ...d.data })
} else {
console.log(d.msg);
......@@ -359,22 +360,20 @@
},
handleChange(value) {
console.log(value);
this.serviceItem.price = (this.serviceItem.publicExpense + this.serviceItem.serviceCharge) * value;
this.serviceItem.price = this.serviceItem.proPrice * value;
this.serviceItem.number = value;
this.num = value;
console.log(this.serviceItem);
console.log({ ...this.serviceItem });
},
sdsOp2(){
var sdsId = window.location.href.split("sdsId=")[1];
/*
window.open("https://wpa.qq.com/msgrd?v=3&uin="+this.$root.contextCompany().serviceqq+"&site=qq&menu=yes");
*/
var sdsId = this.$route.query.sdsId;
let routeUrl = this.$router.resolve({
path: `/${this.$root.channelName}/nowbuy`,
query: {
isDirectJump: 1,
num: this.num,
sdsId,
num: this.num,
name: this.serviceItem.itemName,
countPrice: this.serviceItem.price
}
});
window.open(routeUrl.href, '_blank');
......@@ -397,35 +396,28 @@
this.$refs["form"].validate((valid) => {
if (valid) {
console.log("---------------valid------------------");
var need = {
publisherName: this.form.name,
publisherMobile: this.form.mobile,
province: this.form.city[0],
city: this.form.city[1],
notes: this.form.notes,
servicecode: this.serviceCode,
company_id: this.$root.currentCompany && this.$root.currentCompany.id ? this.$root.currentCompany.id : ""
var subNeedInfo = {
"channelUser": {
"channelUserId": "",
"channelUserName": "testUser",
"channelUserMoblie": "15010929368",
"nickname": "",
"orgName": "",
"orgPath": ""
},
"channelNeedNo": "",
"needUserMoblie": this.form.mobile,
"needUserName": this.form.name,
"needDesc": this.form.notes,
"itemCode": this.serviceItem.itemCode,
"notes": ""
};
console.log(need);
var that = this;
this.$root.postReq("/web/needCtl/submitneed", need).then(function (d) {
let obj = this.$root.copyParams(subNeedInfo, "subNeed", "/action/needOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((d) => {
console.log(d);
that.dialogFormVisible = false;
if (d.code == 1) {
that.$alert('需求提交成功,我们会尽快联系您!', '', {
confirmButtonText: '确定',
callback: action => {
}
});
} else if (d.code == -100 || d.code == 0) {
that.$message.warning(d.msg);
} else {
that.$message.warning('操作失败,请稍后重试');
}
console.log(d.msg)
})
} else {
return false;
}
})
},
......
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