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