4.施工人员:
-
+
- {{item.selectPersion==null?"":item.selectPersion}}
+
@@ -127,8 +127,8 @@
- 施工内容修改
- 施工内容详情
+ 施工内容修改
+ 施工内容详情
|
@@ -228,6 +228,14 @@ export default {
components: {mpvuePicker},
methods: {
+
+ //转义特殊字符
+ htmlEncode (text){
+ let str = text.replaceAll("'",",,,,,,,,,");
+ str = str.replaceAll("=",".........");
+ return str;
+ },
+
// 已经立项跟踪了 想要回退 必须经过审批(审批暂拿掉2024-3-8)
approval(){
// 审批之前先将 isfinised 设置成2代表审批中
diff --git a/src/pages/pagetotal/businesstotal/message/message.vue b/src/pages/pagetotal/businesstotal/message/message.vue
index 861c9cc..960c2a0 100644
--- a/src/pages/pagetotal/businesstotal/message/message.vue
+++ b/src/pages/pagetotal/businesstotal/message/message.vue
@@ -607,49 +607,49 @@ export default {
//附件上传
fjUpload() {
let that = this;
- wx.chooseMessageFile({
- count: 1,
- type: 'file',
- success: function (res) {
- //console.log(res);
- // tempFilePath可以作为 img 标签的 src 属性显示图片
- const tempFilePaths = res.tempFiles[0].path;
- //console.log(tempFilePaths);
- wx.uploadFile({
- url: that.$http.adornUrl('/sys/oss/upload'),
- filePath: tempFilePaths,
- name: 'file',
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'message',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.commentsFj = JSON.parse(res.data).data;
- //console.log(that.dataForm.commentsFj);
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- }
- })
+ // wx.chooseMessageFile({
+ // count: 1,
+ // type: 'file',
+ // success: function (res) {
+ // //console.log(res);
+ // // tempFilePath可以作为 img 标签的 src 属性显示图片
+ // const tempFilePaths = res.tempFiles[0].path;
+ // //console.log(tempFilePaths);
+ // wx.uploadFile({
+ // url: that.$http.adornUrl('/sys/oss/upload'),
+ // filePath: tempFilePaths,
+ // name: 'file',
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'message',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.commentsFj = JSON.parse(res.data).data;
+ // //console.log(that.dataForm.commentsFj);
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // }
+ // })
},
//下载附件
diff --git a/src/pages/pageworker/businessworker/addEdit/addEdit.vue b/src/pages/pageworker/businessworker/addEdit/addEdit.vue
index 54baf10..11bf9c6 100644
--- a/src/pages/pageworker/businessworker/addEdit/addEdit.vue
+++ b/src/pages/pageworker/businessworker/addEdit/addEdit.vue
@@ -714,179 +714,179 @@ export default {
let tempFilePaths;
let photoName;
let flag;
- wx.chooseImage({
- count: 1, // 最多可以选择的图片张数,默认9
- sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
- sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
- success: function (res) {
- // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
- if (num === 1) {//本人照片
- that.files = []//只上传一张图,选择图后清空原图
- that.files = that.files.concat(res.tempFilePaths)
- photoName = "auth_pics";
- flag = 0;
- tempFilePaths = that.files[0]
- //console.log(res.tempFiles[0].size / 1024);
- } else if (num === 2) {//身份证正面
- that.filesPositive = []
- that.filesPositive = that.filesPositive.concat(res.tempFilePaths)
- photoName = "auth_picsjson1";
- tempFilePaths = that.filesPositive[0];
- flag = 1;
- } else if (num === 3) {//身份证反面
- that.filesBack = []
- that.filesBack = that.filesBack.concat(res.tempFilePaths)
- photoName = "auth_picsjson2";
- tempFilePaths = that.filesBack[0]
- flag = 2;
- } else if (num === 4) {//银行卡照片
- that.bankImage = []
- that.bankImage = that.bankImage.concat(res.tempFilePaths)
- photoName = "auth_picsjson2";
- tempFilePaths = that.bankImage[0]
- flag = 3;
- }
- wx.showToast({
- icon: "loading",
- title: "正在上传"
- });
- //console.log(tempFilePaths);
- if (flag === 0) {
- wx.uploadFile({
- url: that.$http.adornUrl("/sys/oss/upload"),
- filePath: tempFilePaths,
- name: "file",
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'photo',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.image = JSON.parse(res.data).data;
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- } else if (flag === 1) {
- wx.uploadFile({
- url: that.$http.adornUrl("/sys/oss/upload"),
- filePath: tempFilePaths,
- name: "file",
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'card',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.imageFront = JSON.parse(res.data).data;
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- } else if (flag === 2) {
- wx.uploadFile({
- url: that.$http.adornUrl("/sys/oss/upload"),
- filePath: tempFilePaths,
- name: "file",
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'card',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.imageBack = JSON.parse(res.data).data;
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- } else if (flag === 3) {
- wx.uploadFile({
- url: that.$http.adornUrl("/sys/oss/upload"),
- filePath: tempFilePaths,
- name: "file",
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'BankCard',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.bankImage = JSON.parse(res.data).data;
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- }
- }
-
- })
+ // wx.chooseImage({
+ // count: 1, // 最多可以选择的图片张数,默认9
+ // sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
+ // sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
+ // success: function (res) {
+ // // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
+ // if (num === 1) {//本人照片
+ // that.files = []//只上传一张图,选择图后清空原图
+ // that.files = that.files.concat(res.tempFilePaths)
+ // photoName = "auth_pics";
+ // flag = 0;
+ // tempFilePaths = that.files[0]
+ // //console.log(res.tempFiles[0].size / 1024);
+ // } else if (num === 2) {//身份证正面
+ // that.filesPositive = []
+ // that.filesPositive = that.filesPositive.concat(res.tempFilePaths)
+ // photoName = "auth_picsjson1";
+ // tempFilePaths = that.filesPositive[0];
+ // flag = 1;
+ // } else if (num === 3) {//身份证反面
+ // that.filesBack = []
+ // that.filesBack = that.filesBack.concat(res.tempFilePaths)
+ // photoName = "auth_picsjson2";
+ // tempFilePaths = that.filesBack[0]
+ // flag = 2;
+ // } else if (num === 4) {//银行卡照片
+ // that.bankImage = []
+ // that.bankImage = that.bankImage.concat(res.tempFilePaths)
+ // photoName = "auth_picsjson2";
+ // tempFilePaths = that.bankImage[0]
+ // flag = 3;
+ // }
+ // wx.showToast({
+ // icon: "loading",
+ // title: "正在上传"
+ // });
+ // //console.log(tempFilePaths);
+ // if (flag === 0) {
+ // wx.uploadFile({
+ // url: that.$http.adornUrl("/sys/oss/upload"),
+ // filePath: tempFilePaths,
+ // name: "file",
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'photo',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.image = JSON.parse(res.data).data;
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // } else if (flag === 1) {
+ // wx.uploadFile({
+ // url: that.$http.adornUrl("/sys/oss/upload"),
+ // filePath: tempFilePaths,
+ // name: "file",
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'card',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.imageFront = JSON.parse(res.data).data;
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // } else if (flag === 2) {
+ // wx.uploadFile({
+ // url: that.$http.adornUrl("/sys/oss/upload"),
+ // filePath: tempFilePaths,
+ // name: "file",
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'card',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.imageBack = JSON.parse(res.data).data;
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // } else if (flag === 3) {
+ // wx.uploadFile({
+ // url: that.$http.adornUrl("/sys/oss/upload"),
+ // filePath: tempFilePaths,
+ // name: "file",
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'BankCard',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.bankImage = JSON.parse(res.data).data;
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // }
+ // }
+ //
+ // })
},
//不能全屏预览
predivImage(e, num) {
diff --git a/src/pages/pageworker/businessworker/workerDuty/workerDuty.vue b/src/pages/pageworker/businessworker/workerDuty/workerDuty.vue
index b69b342..bf9e6db 100644
--- a/src/pages/pageworker/businessworker/workerDuty/workerDuty.vue
+++ b/src/pages/pageworker/businessworker/workerDuty/workerDuty.vue
@@ -115,66 +115,66 @@ export default {
let tempFilePaths;
let photoName;
let flag;
- wx.chooseImage({
- count: 1, // 最多可以选择的图片张数,默认9
- sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
- sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
- success: function (res) {
- // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
- if (num === 1) {//本人照片
- that.files = []//只上传一张图,选择图后清空原图
- that.files = that.files.concat(res.tempFilePaths)
- photoName = "auth_pics";
- flag = num;
- tempFilePaths = that.files[0]
- //console.log(res.tempFiles[0].size / 1024);
- }
- wx.showToast({
- icon: "loading",
- title: "正在上传"
- });
- if (flag === 1) {
- wx.uploadFile({
- url: that.$http.adornUrl("/sys/oss/upload"),
- filePath: tempFilePaths,
- name: "file",
- header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
- formData:
- {
- categoryType: 'file',
- },
- success: function (res) {
- if (res.statusCode !== 200) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- return;
- } else {
- that.dataForm.url = JSON.parse(res.data).data;
- if (that.dataForm.id === undefined) {//说明没有数据 则为添加
- that.url = "/business/businessworker/orgSave";
- } else {
- that.url = "/business/businessworker/orgUpdate";
- }
- that.tranPhoto(that.url);
- }
- },
- fail: function (e) {
- wx.showModal({
- title: '提示',
- content: '上传失败',
- showCancel: false
- })
- },
- complete: function () {
- wx.hideToast(); //隐藏Toast
- }
- })
- }
- }
- })
+ // wx.chooseImage({
+ // count: 1, // 最多可以选择的图片张数,默认9
+ // sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
+ // sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
+ // success: function (res) {
+ // // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
+ // if (num === 1) {//本人照片
+ // that.files = []//只上传一张图,选择图后清空原图
+ // that.files = that.files.concat(res.tempFilePaths)
+ // photoName = "auth_pics";
+ // flag = num;
+ // tempFilePaths = that.files[0]
+ // //console.log(res.tempFiles[0].size / 1024);
+ // }
+ // wx.showToast({
+ // icon: "loading",
+ // title: "正在上传"
+ // });
+ // if (flag === 1) {
+ // wx.uploadFile({
+ // url: that.$http.adornUrl("/sys/oss/upload"),
+ // filePath: tempFilePaths,
+ // name: "file",
+ // header: {"Content-Type": "multipart/form-data", "token": wx.getStorageSync('token')},
+ // formData:
+ // {
+ // categoryType: 'file',
+ // },
+ // success: function (res) {
+ // if (res.statusCode !== 200) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // return;
+ // } else {
+ // that.dataForm.url = JSON.parse(res.data).data;
+ // if (that.dataForm.id === undefined) {//说明没有数据 则为添加
+ // that.url = "/business/businessworker/orgSave";
+ // } else {
+ // that.url = "/business/businessworker/orgUpdate";
+ // }
+ // that.tranPhoto(that.url);
+ // }
+ // },
+ // fail: function (e) {
+ // wx.showModal({
+ // title: '提示',
+ // content: '上传失败',
+ // showCancel: false
+ // })
+ // },
+ // complete: function () {
+ // wx.hideToast(); //隐藏Toast
+ // }
+ // })
+ // }
+ // }
+ // })
},
//上传照片
tranPhoto(url){