Commit a233e365 by 刘泽奇

123

parent 6ac55c90
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -79,6 +79,7 @@
height: 32px;
width: 100%;
padding-left: 12px;
padding-right: 12px;
box-sizing: border-box;
line-height: 32px;
font-family: PingFangSC-Regular;
......
......@@ -103,8 +103,8 @@
<div class="license-uploader">
<img v-if="imageUrl" :src="imageUrl" class="license">
<div class="license-uploader-icon" v-else>
<img :src="applyInfo.businessLicensePic ? applyInfo.businessLicensePic : \'/imgs/indent/pdf.png\'"
alt="" @click="window.open(applyInfo.businessLicensePdf)">
<img :src="applyInfo.businessLicensePic ? applyInfo.businessLicensePic : \'/imgs/indent/materialNull.png\'"
alt="" @click="openPdf(applyInfo.businessLicensePdf)">
</div>
</div>
<p>营业执照</p>
......@@ -113,8 +113,8 @@
<div class="license-uploader">
<img v-if="imageUrl" :src="imageUrl" class="license">
<div class="license-uploader-icon" v-else>
<img :src="deliveryInfo.gzwtsUrl?deliveryInfo.gzwtsUrl:\'/imgs/indent/jpg.png\'" alt=""
@click="window.open(deliveryInfo.gzwtsUrl)">
<img :src="deliveryInfo.gzwtsUrl?deliveryInfo.gzwtsUrl:\'/imgs/indent/materialNull.png\'" alt=""
@click="openPdf(deliveryInfo.gzwtsUrl)">
</div>
</div>
<p>委托书</p>
......@@ -124,8 +124,8 @@
<div class="license-uploader">
<img v-if="imageUrl" :src="imageUrl" class="license">
<div class="license-uploader-icon" v-else>
<img :src="deliveryInfo.smwjUrl?deliveryInfo.smwjUrl:\'/imgs/indent/jpg.png\'" alt=""
@click="window.open(deliveryInfo.smwjUrl)>
<img :src="deliveryInfo.smwjUrl?deliveryInfo.smwjUrl:\'/imgs/indent/materialNull.png\'" alt=""
@click="openPdf(deliveryInfo.smwjUrl)">
</div>
</div>
<p>优先权证明</p>
......@@ -134,7 +134,7 @@
<div class="license-uploader">
<img v-if="imageUrl" :src="imageUrl" class="license">
<div class="license-uploader-icon" v-else>
<img :src="applyInfo.identityCardPic?applyInfo.identityCardPic:\'/imgs/indent/jpg.png\'"
<img :src="applyInfo.identityCardPic?applyInfo.identityCardPic:\'/imgs/indent/materialNull.png\'"
alt="">
</div>
</div>
......
......@@ -306,7 +306,6 @@
channelUserId: "",
itemName: '',
deliveryStatus: "",
totalSum: "",
/*大类下标 */
nclIndex: "",
editNcl: {},
......@@ -329,7 +328,7 @@
/*修改验证 对应表单的值 */
popupValue: "",
/**订单付款信息 */
receiptVoucher: "",
receiptVoucher: {},
}
},
mounted: function() {
......@@ -444,7 +443,9 @@
this.form = JSON.parse(JSON.stringify(this.deliveryInfo));
this.editDeliveryInfo = JSON.parse(JSON.stringify(this.deliveryInfo));
this.form.tmFormType = Number(this.form.tmFormType);
this.receiptVoucher = d.data.receiptVoucher[0];
if(d.data.receiptVoucher.length>0){
this.receiptVoucher = d.data.receiptVoucher[0];
}
switch (this.form.tmFormType) {
case 3:
this.brandType = "文字";
......@@ -518,6 +519,7 @@
break;
case 2:
this.headerInfo = "商标类别";
this.popupValue = "form";
break;
case 3:
this.headerInfo = "交官文件";
......@@ -1365,155 +1367,166 @@
this.checkedNcl = [];
this.nclSearch();
},
openPdf(v){
if(v){
window.open(v);
}else{
this.$message.warning("您还没有上传相关材料");
}
},
submitEdit(v, agree){
console.log(v);
this.$nextTick(() => {
this.$refs[this.popupValue].validate(valid => {
if (valid) {
console.log(valid);
switch (v) {
case '商标信息':
/*
this.form.channelUserId = this.channelUserId;
*/
this.$root.loading = true;
this.form.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.form, "updateTmInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '修改成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
this.$root.loading = false;
}
}).catch((e) => {
this.$message(e);
});
break;
case '商标类别':
this.editNcl.deliveryOrderNo = this.deliveryOrderNo;
this.editNcl.tbCode = this.nclInfo[this.nclIndex].tbCode;
this.editNcl.nclOneCodes = this.nclOne[0].code;
this.editNcl.nclSmallCodes = this.nclOne[0].nclThree;
console.log(this.nclInfo, this.nclOne, this.editNcl, `xxxxxxxxxxxxxxxxxxxxxxxx`);
if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) {
this.nclSelected = this.nclOne[0].nclThree.length;
this.showConfrim = true;
if (agree) {
this.agree = agree;
this.showConfrim = false;
this.$root.loading = true;
if(this.$refs[this.popupValue].validate){
this.$refs[this.popupValue].validate(valid => {
if (valid) {
console.log(valid);
switch (v) {
case '商标信息':
/*
this.form.channelUserId = this.channelUserId;
*/
this.$root.loading = true;
this.form.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.form, "updateTmInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '修改成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
return;
this.$message(res.msg);
this.$root.loading = false;
}
}).catch((e) => {
this.$message(e);
});
break;
case '商标类别':
this.editNcl.deliveryOrderNo = this.deliveryOrderNo;
this.editNcl.tbCode = this.nclInfo[this.nclIndex].tbCode;
this.editNcl.nclOneCodes = this.nclOne[0].code;
this.editNcl.nclSmallCodes = this.nclOne[0].nclThree;
console.log(this.nclInfo, this.nclOne, this.editNcl, `xxxxxxxxxxxxxxxxxxxxxxxx`);
if (this.nclOne.length > 0) {
if (this.nclOne[0].nclThree.length < 10) {
this.nclSelected = this.nclOne[0].nclThree.length;
this.showConfrim = true;
if (agree) {
this.agree = agree;
this.showConfrim = false;
this.$root.loading = true;
} else {
return;
}
}
}
}
var obj = this.$root.copyParams(this.editNcl, "updateNclInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '修改成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '交官文件':
this.$root.loading = true;
this.apply.deliveryOrderNo = this.deliveryOrderNo;
console.log(this.apply);
var obj = this.$root.copyParams(this.apply, "updateOfficial", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '申请人信息':
this.$root.loading = true;
this.editApply.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.editApply, "updateCustomerInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '订单联系人':
this.$root.loading = true;
this.editApply.deliveryOrderNo = this.deliveryOrderNo;
this.editApply.name = this.editApply.contacts;
console.log(this.editApply, `zzzzzzzzzzzzzzzzzzzz`);
var obj = this.$root.copyParams(this.editApply, "updateContacts", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
default:
break;
var obj = this.$root.copyParams(this.editNcl, "updateNclInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '修改成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '交官文件':
this.$root.loading = true;
this.apply.deliveryOrderNo = this.deliveryOrderNo;
console.log(this.apply);
var obj = this.$root.copyParams(this.apply, "updateOfficial", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '申请人信息':
this.$root.loading = true;
this.editApply.deliveryOrderNo = this.deliveryOrderNo;
var obj = this.$root.copyParams(this.editApply, "updateCustomerInfo", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
case '订单联系人':
this.$root.loading = true;
this.editApply.deliveryOrderNo = this.deliveryOrderNo;
this.editApply.name = this.editApply.contacts;
console.log(this.editApply, `zzzzzzzzzzzzzzzzzzzz`);
var obj = this.$root.copyParams(this.editApply, "updateContacts", "/action/tmOrder/springBoard", "yes", "yes");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then((res) => {
if (res.status == 0) {
console.log(res);
this.dialogTableVisible = false;
this.$message({
type: 'success',
message: '提交成功!'
});
this.$root.loading = false;
this.$router.go(0);
} else {
this.$message(res.msg);
}
}).catch((e) => {
this.$message(e);
});
break;
default:
break;
}
} else {
console.log('error submit!!');
this.$message.warning("请核对您的信息");
return false;
}
});
}else{
} else {
console.log('error submit!!');
this.$message.warning("请核对您的信息");
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