*
@@ -161,6 +185,7 @@ export default {
info: {},
// isTouch: false,
fileManage: null,
+ time: '',
}
},
@@ -202,46 +227,46 @@ export default {
this.handwriting.uploadScaleEnd(event)
},
- submitSignature() {
- // if (!this.isTouch) {
- // return this.$toast('签名不能为空')
- // }
+ // submitSignature() {
+ // if (!this.isTouch) {
+ // return this.$toast('签名不能为空')
+ // }
- this.handwriting
- .saveCanvas()
- .then((res) => {
- uni.getFileSystemManager().readFile({
- filePath: res,
- encoding: 'base64',
- success: (res) => {
- // this.$loading()
- this.$instance
- .post(`/app/syssignaccount/xcx-draw-sign?openId=${this.user.openId}`, res.data, {
- headers: {
- 'Content-Type': 'application/json',
- },
- })
- .then((res) => {
- if (res.code === 0) {
- this.signatureId = res.data
- // this.isShow = false
- // this.$toast('签名成功')
+ // this.handwriting
+ // .saveCanvas()
+ // .then((res) => {
+ // uni.getFileSystemManager().readFile({
+ // filePath: res,
+ // encoding: 'base64',
+ // success: (res) => {
+ // this.$loading()
+ // this.$instance
+ // .post(`/app/syssignaccount/xcx-draw-sign?openId=${this.user.openId}`, res.data, {
+ // headers: {
+ // 'Content-Type': 'application/json',
+ // },
+ // })
+ // .then((res) => {
+ // if (res.code === 0) {
+ // this.signatureId = res.data
+ // this.isShow = false
+ // this.$toast('签名成功')
- this.$nextTick(() => {
- this.submitForm()
- })
- }
- })
- },
- fail: () => {
- this.$toast('签名生成失败')
- },
- })
- })
- .catch(() => {
- this.$toast('签名绘制失败')
- })
- },
+ // this.$nextTick(() => {
+ // this.submitForm()
+ // })
+ // }
+ // })
+ // },
+ // fail: () => {
+ // this.$toast('签名生成失败')
+ // },
+ // })
+ // })
+ // .catch(() => {
+ // this.$toast('签名绘制失败')
+ // })
+ // },
IdCard(UUserCard, num) {
if (num == 1) {
@@ -354,6 +379,13 @@ export default {
this.$set(this.tableForm[index][i], 'fieldDictName', key)
},
+ bindTimeChange(e) {
+ const index = e.target.dataset.index
+ const i = e.target.dataset.i
+ const value = e.detail.value
+ this.$set(this.tableForm[index][i], 'fieldValue', `${value}:00`)
+ },
+
preview(list, url) {
const imgs = list.map((v) => v.exampleFile.url)
uni.previewImage({
@@ -397,7 +429,7 @@ export default {
// this.$set(this.info.processAnnexDefs[index], 'annexFileId', data.data[0].split(';')[1])
this.$set(this.info.processAnnexDefs[index], 'src', data.data.url)
- this.$set(this.info.processAnnexDefs[index], 'id', data.data.id)
+ this.$set(this.info.processAnnexDefs[index], 'annexFileId', data.data.id)
} else {
this.$toast(data.msg)
}
@@ -413,7 +445,7 @@ export default {
next() {
if (this.currIndex === 2) {
for (let item of this.info.processAnnexDefs) {
- if (item.mustFill === '1' && !item.id) {
+ if (item.mustFill === '1' && !item.annexFileId) {
return this.$toast(`请上传${item.annexName}`)
}
}