Commit 9121d8bc by 宋毅

Merge branch 'igirl-channel-web' of gitlab.gongsibao.com:jiangyong/zhichan into igirl-channel-web

parents c8b5a00a 9d08bf2f
......@@ -62,6 +62,7 @@ class tmqueryCtl extends CtlBase {
}//获取渠道订单信息
return result;
} catch (e) {
console.log(e.stack,"操作error...................");
return system.getResult(null, "操作失败");
}
}
......
......@@ -22,7 +22,6 @@ module.exports = function (app) {
var skipUrl = result.skipUrl + "?itemCode=" + result.itemCode + "&channelUser=" + JSON.stringify(result.data.channelUser) + "&channelOrder=" + JSON.stringify(result.data.channelOrder) + "&channelParams=" + result.channelParams;
res.redirect(skipUrl);
});
app.get("/", async function (req, res) {
console.log(req.hostname);
var appinfo = await metaCtl.getAppInfo(req);
......
......@@ -12,7 +12,7 @@ var ENVINPUT = {
APP_ENV: process.env.APP_ENV ? process.env.APP_ENV : "dev"
};
var settings = {
env: "dev",//ENVINPUT.APP_ENV,
env: ENVINPUT.APP_ENV,
appKey: "bfe73612fa024822941e3e1ecd9a06e1",
paasKey: "wx76a324c5d201d1a4",
secret: "1671ab5405fa49c8b5dd0b0c55c279b8",
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -8,13 +8,14 @@
</div>
</div> -->
<div class="jdindentdetail">
<!-- <div class="jdindentdetail-nav">
<div class="jdindentdetail-nav">
<span>当前位置:</span>
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: \'/1688/jdindentlist?deliveryOrderNo=\' + deliveryOrderNo }">我的订单</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: \'/1688/jdindentlist?deliveryOrderNo=\' + deliveryOrderNo }">交付中心
</el-breadcrumb-item>
<el-breadcrumb-item>订单详情</el-breadcrumb-item>
</el-breadcrumb>
</div> -->
</div>
<div class="jdindentdetail-main">
<div class="jdindentdetail-flow">
<div class="jdindentdetail-main-title">
......@@ -84,13 +85,8 @@
<div class="jdindentdetail-main-receipt">
官方回执文件:
<span>{{item.officialTypeName}}</span>
<!-- <span>商标注册申请书</span>
<span>商标注册申请受理通知书</span>
<span>商标注册申请初步审定公告通知书</span> -->
</div>
</div>
<div class="jdindentdetail-main-infohr"></div>
......@@ -472,8 +468,9 @@
<span>JPG</span>,大小不能超过<span>10M</span></div>
</el-form-item>
<el-form-item class="gsb_items">
<div class="title special">上传材料:代理委托书<span @click="createWTS"
style="color:#0F8EE9;font-size:13px;cursor:pointer;position: absolute;top: 70%;left: 51%;line-height: 0px;border-bottom: 1px solid #0F8EE9;height: 5px;">生成委托书</span>
<div class="title special">上传材料:代理委托书
<!-- <span @click="createWTS"
style="color:#0F8EE9;font-size:13px;cursor:pointer;position: absolute;top: 70%;left: 51%;line-height: 0px;border-bottom: 1px solid #0F8EE9;height: 5px;">生成委托书</span> -->
</div>
<div class="upload-box" v-loading="loading2" @mouseover="mouseOverDemo(2,\'b\')"
@mouseleave="mouseLeaveDemo(2,\'b\')">
......@@ -508,8 +505,8 @@
</el-form-item>
<el-form-item class="gsb_items" label="">
<div class="title">上传材料:优先权证明 <a
href="http://gsb-zc.oss-cn-beijing.aliyuncs.com/yzq_201908281849646526xujnsedjnqwdoni.doc"
<div class="title">上传材料:优先权证明
<a href="http://gsb-zc.oss-cn-beijing.aliyuncs.com/yzq_201908281849646526xujnsedjnqwdoni.doc"
style="width:95px;color:#0F8EE9;font-size:13px;cursor:pointer;position: absolute;top: 70%;left: 37%;line-height: 0px;border-bottom: 1px solid #0F8EE9;height: 5px;">下载优先权证明</a>
</div>
<div class="upload-box" v-loading="loading3" @mouseover="mouseOverDemo(3,\'c\')"
......
......@@ -302,6 +302,7 @@
/* */
orderFlow: {},
currentStep: "",
channelUserId: "",
}
},
mounted: function() {
......@@ -318,22 +319,35 @@
that.action = d.data.url;
console.log(that.action, `oooooooooooooooooooooooooooo`);
});
console.log(this.$route.query.deliveryOrderNo, '11111111111');
if (this.$route.query.deliveryOrderNo) {
this.deliveryOrderNo = this.$route.query.deliveryOrderNo;
this.deliveryOrderNo = this.$route.query.channelOrder ? this.$route.query.channelOrder.deliveryOrderNo : this.$route.query.deliveryOrderNo;
console.log(this.$route.query, '11111111111');
if (this.$route.query.channelUser && this.$route.query.channelOrder) {
let channelUser = JSON.parse(this.$route.query.channelUser);
let channelOrder = JSON.parse(this.$route.query.channelOrder);
console.log(channelOrder, `zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz`);
/*渠道单号 */
this.channelServiceNo = channelOrder.channelServiceNo;
/*交付单号 */
this.deliveryOrderNo = channelOrder.deliveryOrderNo;
this.channelUserId = channelUser.channelUserId;
console.log(this.channelUserId, `vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv`);
this.initIndent();
}
this.initIndent();
},
created: function() {
},
computed: {
},
methods: {
/*初始化订单数据 */
initIndent(){
console.log(this.$route.query);
var deliveryObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo }, "getTmOrderInfo", "/action/tmOrder/springBoard");
var deliveryObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo, "channelUserId": this.channelUserId }, "getTmOrderInfo", "/action/tmOrder/springBoard");
var applyObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo }, "getTmApplyInfo", "/action/tmOrder/springBoard");
var nclObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo }, "getTmNclList", "/action/tmOrder/springBoard");
let [loadingA, loadingB, loadingC] = [1, 1, 1];
......@@ -359,7 +373,6 @@
console.log(d, `applyObj`);
if (d.status == 0 && d.data) {
this.applyInfo = d.data;
console.log(this.applyInfo, `vvvvvvvvvvvvvvvvvvvvvvvvv`)
}
}).then(() => {
if (loadingA == 0 && loadingB == 0 && loadingC == 0) {
......@@ -373,7 +386,6 @@
this.nclInfo = d.data;
this.nclInfo.map((item, index) => {
item.nclSmallCodes = JSON.parse(item.nclSmallCodes);
console.log(item.nclSmallCodes);
})
}
}).then(() => {
......@@ -520,8 +532,7 @@
}
if (obj.flag == "picUrl") {
console.log("黑白图样------调整宽高",obj);
console.log("黑白图样------调整宽高", obj);
var uploadStandardTm = { "key": obj.result };
var uploadStandardTm = this.$root.copyParams(uploadStandardTm, "uploadStandardTm", "/action/tmTools/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", uploadStandardTm).then(function (d) {
......@@ -665,118 +676,7 @@
return
}
},
/*uploadsuccess(obj){
var that=this;
if(obj.flag=="picUrl"){
that.$root.showMask();
this.$root.getReq("/web/toolCtl/uploadStandardTm",{"key":obj.key}).then(function(d){
if(d.status==0){
that.form.picUrl=d.data.url2;
that.form.colorizedPicUrl=d.data.url;
that.$root.hideMask();
}else{
that.form.picUrl="";
that.form.colorizedPicUrl="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
}
}).catch(function(){
that.form.picUrl="";
that.form.colorizedPicUrl="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
});
}
if(obj.flag=="colorizedPicUrl"){
that.$root.showMask();
this.$root.getReq("/web/toolCtl/adjustTMSize",{"key":obj.key}).then(function(d){
if(d.status==0){
that.form.colorizedPicUrl=d.data.url;
that.$root.hideMask();
}else{
that.form.colorizedPicUrl="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
}
}).catch(function(){
that.form.colorizedPicUrl="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
});
}
if(obj.flag=="yyzz"){
that.$root.showMask();
this.$root.getReq("/web/toolCtl/pic2pdf",{"key":obj.key}).then(function(d){
if(d.status==0){
that.apply.businessLicensePic=d.data.url;
}else{
that.apply.businessLicensePic="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
}
that.$root.hideMask();
}).catch(function(e){
that.apply.businessLicensePic="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
})
}
if(obj.flag=="sfz"){
that.$root.showMask();
this.$root.getReq("/web/toolCtl/pic2pdf",{"key":obj.key}).then(function(d){
if(d.status==0){
that.apply.identityCardPic=d.data.url;
}else{
that.apply.identityCardPic="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
}
that.$root.hideMask();
}).catch(function(e){
that.apply.identityCardPic="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
})
}
if(obj.flag=="wts"){
that.$root.showMask();
this.$root.getReq("/web/toolCtl/adjustWTSSize",{"key":obj.key}).then(function(d){
if(d.status==0){
that.apply.sealAuthorizeStuff=d.data.url;
that.$root.hideMask();
}else{
that.$refs[obj.flag][0].result="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
}
}).catch(function(){
that.$refs[obj.flag][0].result="";
that.$root.hideMask();
that.$message.warning(`上传失败请重新上传`);
return false;
});
}
if(obj.flag=="yxq"){
that.apply.descUrl=obj.result
}
},*/
beforeUpload(file){
var that = this;
var isSize = false;
......@@ -794,7 +694,6 @@
}
};
img.src = window.URL.createObjectURL(file);
},
showUrl(url){
window.open(url);
......@@ -1126,7 +1025,6 @@
businessLicensePic: this.apply.businessLicensePic, customerType: this.apply.customerType, identityCardNo: this.apply.identityCardNo,
identityCardPic: this.apply.identityCardPic
};
console.log(entobj, `wwwwwwwwwwwwwwwwwwwwwwwwwwwww`);
if (this.apply.customerType == "ent") {
var entData = localStorage.getItem("historyentlist");
var o = "";
......@@ -1360,38 +1258,58 @@
this.nclSearch();
},
submitEdit(v){
console.log(v);
switch (v) {
case '商标信息':
this.form.channelUserId = this.channelUserId;
var obj = this.$root.copyParams(this.form, "updateTmInfo", "/action/tmOrder/springBoard", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
console.log(res);
}).catch((e) => {
this.$message(e);
});
break;
case '商标类别':
var obj = this.$root.copyParams(this.form, "updateNclInfo", "/action/tmOrder/springBoard", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
console.log(res);
}).catch((e) => {
this.$message(e);
});
break;
case '交官文件':
this.apply.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.apply, "updateCustomerInfo", "/action/tmOrder/springBoard", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
console.log(res);
}).catch((e) => {
this.$message(e);
});
break;
case '申请人信息':
this.apply.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.apply, "updateCustomerInfo", "/action/tmOrder/springBoard", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
console.log(res);
}).catch((e) => {
this.$message(e);
});
break;
case '订单联系人':
this.applyInfo.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.applyInfo, "updateContacts", "/action/tmOrder/springBoard", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
console.log(res);
}).catch((e) => {
this.$message(e);
});
break;
default:
break;
}
/*
商标信息
商标类别
交官文件
申请人信息
订单联系人
*/
console.log(v);
}
},
......
......@@ -109,7 +109,7 @@
style="position: fixed;width:100%;z-index:999;background-color:black;top:0;left:0;right:0;bottom: 0;opacity: 0.5;">
</div>
<div style="position:fixed;height:400px;top:20%;left:20%;right:25%;z-index: 9999;background-color:white;">
<div>
<div style="width:80%;margin:0 auto;box-sizing: border-box;">
<h4 style="text-align:left;margin-left:2%;">上传资料</h4>
<div style="padding:20px 0;text-align: center">
<el-form ref="stuff" :model="stuff" class="demo-ruleForm" label-width="0">
......@@ -124,7 +124,7 @@
<gsb-upload flag="yyzz" ref="yyzz" :d="d" @setKey="setKey" :action="action"
filetype="image/jpeg" :ifshowlist="false" @uploadsuccess="uploadsuccess"
@error="error">
<el-button type="primary" @click="loadingKey = 0">营业执照上传</el-button>
<el-button style="padding:12px 14px;" type="" @click="loadingKey = 0">营业执照上传</el-button>
</gsb-upload>
</el-form-item>
<el-form-item style="float:left;width:25%;text-align:center"
......@@ -139,7 +139,7 @@
<gsb-upload flag="sfz" ref="sfz" :d="d" @setKey="setKey" :action="action"
filetype="image/jpeg" :ifshowlist="false" @uploadsuccess="uploadsuccess"
@error="error">
<el-button type="primary" @click="loadingKey = 1">身份证明上传</el-button>
<el-button style="padding:12px 14px;" type="" @click="loadingKey = 1">身份证明上传</el-button>
</gsb-upload>
</el-form-item>
<el-form-item style="float:left;width:25%;text-align:center" label="">
......@@ -153,7 +153,7 @@
<gsb-upload flag="wts" ref="wts" :d="d" @setKey="setKey" :action="action"
filetype="image/jpeg" :ifshowlist="false" @uploadsuccess="uploadsuccess"
@error="error">
<el-button type="primary" @click="loadingKey = 2">代理委托书上传</el-button>
<el-button style="padding:12px 14px;" type="" @click="loadingKey = 2">代理委托书上传</el-button>
</gsb-upload>
</el-form-item>
<el-form-item style="float:left;width:25%;text-align:center" label="">
......@@ -166,7 +166,7 @@
<gsb-upload flag="yxq" ref="yxq" :d="d" @setKey="setKey" :action="action"
filetype="image/jpeg" :ifshowlist="false" @uploadsuccess="uploadsuccess"
@error="error">
<el-button type="primary" @click="loadingKey = 3">优先权文件上传</el-button>
<el-button style="padding:12px 14px;" type="" @click="loadingKey = 3">优先权文件上传</el-button>
</gsb-upload>
</el-form-item>
<div style="clear:both;"></div>
......
......@@ -131,6 +131,21 @@
sfs: [
{ field: 'totalSum', label: '订单金额' },
],
form: {
tmFormType: 3,
name: "",
picUrl: "",
colorizedPicUrl: "",
selecttype: "自主选择",
totalPublicExpense: 0,
totalTaxes: 0,
totalSum: 0,
totalDiscounts: 0,
totalServiceCharge: 0,
totalProfitSum: 0,
remark: "",
sveItemRateConfig: "",
},
form1: {
title: "",
taxNum: "",
......@@ -389,6 +404,120 @@
that.stuff.descUrl = obj.result
}
},
setKey(name, flag){
name = name.substring(name.length - 5);
var myDate = new Date();
var key = "zc_" + flag + Math.round(Math.random() * 10000) + myDate.getTime() + myDate.getFullYear() + myDate.getMonth() + myDate.getDate() + ".jpg";
this.$refs[flag].d.key = key;
},
btnvisbleMethod(row, btn){
if (btn.key == "invoiceapply") {
if (row.orderPayStatus == "yfk" && row.invoiceApplyStatus == "1" && row.isIinvoice == 1) {
return true;
} else {
return false;
}
}
if (btn.key == "mydetail") {
if (row.sveItemCode == "zzsbzc" || row.sveItemCode == "dlrfzzc" || row.sveItemCode == "dbsbzc") {
return true;
} else {
return false;
}
}
if (btn.key == "myicpdetail") {
if (row.sveItemCode == "CP201910231025EaQM0b") {
return true;
} else {
return false;
}
}
if (btn.key == "myedit") {
if (row.orderPayStatus == "ddqx" || row.orderPayStatus == "tkclz" || row.orderPayStatus == "ytk") {
return false;
} else if (row.sveItemCode == "dlrfzzc" && (row.orderStatus == "1" || row.orderStatus == "2" || row.orderStatus == "3" || row.orderStatus == "4" || row.orderStatus == "6")) {
return true;
} else if (row.sveItemCode == "zzsbzc" && (row.orderStatus == "1" || row.orderStatus == "2" || row.orderStatus == "3" || row.orderStatus == "4" || row.orderStatus == "6")) {
return true;
} else if (row.sveItemCode == "dbsbzc" && (row.orderStatus == "1" || row.orderStatus == "2" || row.orderStatus == "3" || row.orderStatus == "4" || row.orderStatus == "6")) {
return true;
} else {
return false;
}
}
if (btn.key == "ptsjedit") {
if (row.orderSource == "ptsj" && row.orderPayStatus == "dfk" && this.currentUser && row.createuser_id == this.currentUser.id) {
return true;
} else {
return false;
}
}
if (btn.key == "topay") {
if (row.orderPayStatus == "dfk") {
return true;
} else {
return false;
}
}
if (btn.key == "cancelorder") {
if ((row.sveItemCode == "dlrfzzc" || row.sveItemCode == "zzsbzc" || row.sveItemCode == "dbsbzc") && row.orderPayStatus == "dfk") {
return true;
} else {
return false;
}
}
if (btn.key == "uploadstuff") {
if (row.orderPayStatus == "ddqx" || row.orderPayStatus == "tkclz" || row.orderPayStatus == "ytk") {
return false;
} else if ((row.sveItemCode == "dlrfzzc" || row.sveItemCode == "zzsbzc" || row.sveItemCode == "dbsbzc") && (row.orderStatus == "1" || row.orderStatus == "2" || row.orderStatus == "3" || row.orderStatus == "4" || row.orderStatus == "6")) {
return true;
} else {
return false;
}
}
if (btn.key == "mydelete") {
if (row.orderPayStatus == "dfk" && row.createuser_id == this.currentUser.id) {
return true;
} else {
return false;
}
}
return true;
},
onColFormater(row, column, cellvalue, index){
if (column.property == "created_at") {
var date = new Date(row["created_at"]);
var time = date.toLocaleDateString();
return time;
}
if (column.property == "customerinfo.name") {
if (!row.customerinfo) {
return "---";
} else {
return row.customerinfo.name;
}
}
if (column.property == "name") {
if (!row["name"]) {
return "---";
} else {
return row.name;
}
}
if (column.property == "nclOneCodesNum") {
if (!row["nclOneCodesNum"]) {
return "---";
} else {
return row.nclOneCodesNum;
}
}
return cellvalue;
},
error(err){
this.$message.warning(`上传失败,请重新上传`);
},
......
......@@ -4,10 +4,10 @@
style="background:rgba(249,249,249,1);padding: 30px" label-width="120px">
<div class="selftmreg_main" style="width: 96%;margin: 0 auto;padding:0 50px;background: #fff">
<div class="jdregscheme-nav" style="padding-top: 20px">
<!-- <span style="float: left;line-height: 22px;color:rgba(130,130,130,1);">当前位置:</span>
<el-breadcrumb separator-class="el-icon-arrow-right" style="float: left;line-height:22px">
<!-- <span style="float: left;line-height: 22px;color:rgba(130,130,130,1);">当前位置:</span> -->
<!-- <el-breadcrumb separator-class="el-icon-arrow-right" style="float: left;line-height:22px">
<el-breadcrumb-item><a style="color:rgba(130,130,130,1);">我的订单</a></el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: \'/\' }">
<el-breadcrumb-item :to="{ path: \'/1688/jdindentlist\' }">
<a style="font-weight:800">确认注册方案</a>
</el-breadcrumb-item>
</el-breadcrumb> -->
......
......@@ -131,7 +131,7 @@
this.apply.centerDialogVisible = true;
},
AgreedForm(){
this.$router.push({ path: "/1688/jdindentdetail"});
this.$router.push({ path: "/1688/jdindentlist"});
}
},
vname: "gsb-jdregscheme"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -29,6 +29,9 @@
"express": "^4.16.2",
"express-session": "^1.15.6",
"gm": "^1.23.1",
"gulp-concat": "^2.6.1",
"gulp-if": "^3.0.0",
"gulp-minify-css": "^1.2.4",
"method-override": "^2.3.10",
"morgan": "^1.9.0",
"multer": "^1.3.0",
......
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