|
@@ -614,53 +614,77 @@ export default {
|
|
},
|
|
},
|
|
async downDocx(url) {
|
|
async downDocx(url) {
|
|
let self = this;
|
|
let self = this;
|
|
- let data = JSON.parse(JSON.stringify(this.form));
|
|
|
|
|
|
+
|
|
var ast = this.listData.some(item => {
|
|
var ast = this.listData.some(item => {
|
|
return item.fieldKey === 'commitment_electr_signature';
|
|
return item.fieldKey === 'commitment_electr_signature';
|
|
});
|
|
});
|
|
if (ast) {
|
|
if (ast) {
|
|
await this.subCanvas();
|
|
await this.subCanvas();
|
|
}
|
|
}
|
|
|
|
+ let data = JSON.parse(JSON.stringify(this.form));
|
|
if (data['commitment_electr_signature']) {
|
|
if (data['commitment_electr_signature']) {
|
|
data.commitment_electr_signature = await this.$method.uploadFile(data.commitment_electr_signature, 0);
|
|
data.commitment_electr_signature = await this.$method.uploadFile(data.commitment_electr_signature, 0);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log(data)
|
|
|
|
+ console.log(self.copyData)
|
|
console.log(444)
|
|
console.log(444)
|
|
- let arsty = {};
|
|
|
|
- for (let k in data) {
|
|
|
|
- for (let j in self.copyData) {
|
|
|
|
- if (k === j) {
|
|
|
|
- if (self.copyData[j].value === data[k]) {
|
|
|
|
- arsty[k] = {
|
|
|
|
- fieldKey: k,
|
|
|
|
- value: data[k],
|
|
|
|
- fieldName: (function() {
|
|
|
|
- for (let i = 0; i < self.listData.length; i++) {
|
|
|
|
- if (self.listData[i].fieldKey == k) {
|
|
|
|
- return self.listData[i].fieldName;
|
|
|
|
|
|
+
|
|
|
|
+ if(this.remarkStatus) {
|
|
|
|
+ var arsty = {};
|
|
|
|
+ for (let k in data) {
|
|
|
|
+ for (let j in self.copyData) {
|
|
|
|
+ if (k === j) {
|
|
|
|
+ if (self.copyData[j].value === data[k]) {
|
|
|
|
+ arsty[k] = {
|
|
|
|
+ fieldKey: k,
|
|
|
|
+ value: data[k],
|
|
|
|
+ fieldName: (function() {
|
|
|
|
+ for (let i = 0; i < self.listData.length; i++) {
|
|
|
|
+ if (self.listData[i].fieldKey == k) {
|
|
|
|
+ return self.listData[i].fieldName;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- })(),
|
|
|
|
- status: 0
|
|
|
|
- };
|
|
|
|
- } else {
|
|
|
|
- arsty[k] = {
|
|
|
|
- fieldKey: k,
|
|
|
|
- value: data[k],
|
|
|
|
- fieldName: (function() {
|
|
|
|
- for (let i = 0; i < self.listData.length; i++) {
|
|
|
|
- if (self.listData[i].fieldKey == k) {
|
|
|
|
- return self.listData[i].fieldName;
|
|
|
|
|
|
+ })(),
|
|
|
|
+ status: 0
|
|
|
|
+ };
|
|
|
|
+ } else {
|
|
|
|
+ arsty[k] = {
|
|
|
|
+ fieldKey: k,
|
|
|
|
+ value: data[k],
|
|
|
|
+ fieldName: (function() {
|
|
|
|
+ for (let i = 0; i < self.listData.length; i++) {
|
|
|
|
+ if (self.listData[i].fieldKey == k) {
|
|
|
|
+ return self.listData[i].fieldName;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- })(),
|
|
|
|
- status: 1
|
|
|
|
- };
|
|
|
|
|
|
+ })(),
|
|
|
|
+ status: 1
|
|
|
|
+ };
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ var arsty = {};
|
|
|
|
+ for (let k in data) {
|
|
|
|
+ arsty[k] = {
|
|
|
|
+ fieldKey: k,
|
|
|
|
+ value: data[k],
|
|
|
|
+ fieldName: (function() {
|
|
|
|
+ for (let i = 0; i < self.listData.length; i++) {
|
|
|
|
+ if (self.listData[i].fieldKey == k) {
|
|
|
|
+ return self.listData[i].fieldName;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })(),
|
|
|
|
+ status: 0
|
|
|
|
+ };
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ console.log(arsty)
|
|
this.$api.baseProfileStampV2AddWord({ goodsId: this.goodsId,keyValue:JSON.stringify(arsty) }).then(res => {
|
|
this.$api.baseProfileStampV2AddWord({ goodsId: this.goodsId,keyValue:JSON.stringify(arsty) }).then(res => {
|
|
uni.downloadFile({
|
|
uni.downloadFile({
|
|
url: this.$method.splitImgHost(res.data.msg),
|
|
url: this.$method.splitImgHost(res.data.msg),
|
|
@@ -1062,6 +1086,10 @@ export default {
|
|
}).catch(err => {});
|
|
}).catch(err => {});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ clearWord() {
|
|
|
|
+ this.$set(this.form, 'commitment_seal', '');
|
|
|
|
+ this.titleName = '';
|
|
|
|
+ },
|
|
backPage() {
|
|
backPage() {
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
},
|
|
},
|
|
@@ -1480,6 +1508,7 @@ export default {
|
|
subCanvas() {
|
|
subCanvas() {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
var self = this;
|
|
var self = this;
|
|
|
|
+ console.log(self.form,'self.form')
|
|
if (self.form.commitment_electr_signature) {
|
|
if (self.form.commitment_electr_signature) {
|
|
resolve();
|
|
resolve();
|
|
return;
|
|
return;
|
|
@@ -1522,6 +1551,13 @@ page {
|
|
color: #fff;
|
|
color: #fff;
|
|
border-bottom-right-radius: 24rpx;
|
|
border-bottom-right-radius: 24rpx;
|
|
}
|
|
}
|
|
|
|
+.quzw {
|
|
|
|
+ width: 638rpx;
|
|
|
|
+ height: 638rpx;
|
|
|
|
+ position: relative;
|
|
|
|
+ border: 2rpx solid #eee;
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
+}
|
|
.handWriting {
|
|
.handWriting {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|