{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskToComplete.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\flow\\task\\taskToComplete.vue","mtime":1667327529466},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport OpinionText from \"@/components/common/opinionText.vue\";\nimport FileUpload from \"@/components/common/fileUpload.vue\";\nimport flow from \"@/api/flow.js\";\nimport { mapState } from \"vuex\";\nimport { Base64 } from \"js-base64\";\nexport default {\n name: \"taskToComplete\",\n props: [\"taskId\", \"leaderId\", \"opinion\", \"action\", \"instId\", \"signatureField\", //自动签章字段\n \"signatureCover\", //自动签章是否覆盖\n \"secretFree\" //自动签章时是否免密\n ],\n components: {\n OpinionText: OpinionText,\n FileUpload: FileUpload\n },\n data: function data() {\n return {\n dialogVisible: false,\n dialogTitle: \"\",\n text: \"\",\n boData: {},\n opinionField: \"\",\n appendOpinion: false,\n data: {},\n appendStr: true,\n wrap: \"\\n\",\n initBoAttr: \"\",\n signaturePassword: \"\",\n isSignatureCallBack: false,\n signatureLoading: null\n };\n },\n computed: mapState({\n signatureStatus: function signatureStatus(state) {\n return state.storeProcess.signatureConfig.status;\n }\n }),\n watch: {\n signatureStatus: function signatureStatus(newVal, oldVal) {\n if (newVal != 'start') {\n this.isSignatureCallBack = true;\n }\n\n if (newVal === 'success' && oldVal === 'ing') {\n this.doConfirm();\n } else if (newVal === 'success' && oldVal === 'fail') {}\n\n if (this.signatureLoading != null) {\n this.signatureLoading.close();\n }\n }\n },\n methods: {\n showDialog: function showDialog(opinionField, boData, appendOpinion, completeData) {\n this.dialogVisible = true;\n\n if (this.action == \"agree\" || this.action == \"agreeTrans\") {\n this.dialogTitle = \"审批同意\";\n } else if (this.action == \"oppose\" || this.action == \"opposeTrans\") {\n this.dialogTitle = \"审批反对\";\n }\n\n this.data = completeData;\n this.opinionField = opinionField;\n this.boData = boData;\n this.appendOpinion = appendOpinion;\n },\n afterOpen: function afterOpen() {\n var _this2 = this;\n\n if (this.opinionField) {\n var con = document.querySelector(\"[model-name='data.\" + this.opinionField + \"']\");\n\n if (con && con.__vue__ && con.__vue__.isEditor) {\n this.wrap = \"
\";\n }\n }\n\n var param = {\n instId: this.instId,\n taskId: this.taskId\n };\n flow.getBpmSaveOpinionByTeam(param).then(function (resp) {\n if (resp.state && resp.value) {\n _this2.getOpinion(resp.value);\n } else {\n if (_this2.action == \"agree\" || _this2.action == \"agreeTrans\") {\n _this2.getOpinion(\"同意\");\n } else if (_this2.action == \"oppose\" || _this2.action == \"opposeTrans\") {\n _this2.getOpinion(\"反对\");\n }\n }\n });\n },\n //获取意见\n getOpinion: function getOpinion(opinion) {\n this.text = opinion;\n var opinioValue = this.$refs.opinionText.getOpinion();\n\n if (this.opinionField) {\n var currentUser = this.$store.state.user.currentUserDetail.user;\n\n var moment = require(\"moment\");\n\n var boData = this.boData;\n var filed = this.opinionField.split(\".\");\n\n if (boData[filed[0]][filed[1]] == '


') {\n boData[filed[0]][filed[1]] = \"\";\n } //是否覆盖审批意见\n\n\n if (this.appendOpinion) {\n if (opinioValue) {\n boData[filed[0]][filed[1]] = opinioValue + this.wrap + currentUser.fullname + \" \" + moment().format(\"YYYY-MM-DD HH:mm:ss\");\n }\n } else {\n if (opinioValue) {\n opinioValue += this.wrap + currentUser.fullname + \" \" + moment().format(\"YYYY-MM-DD HH:mm:ss\");\n }\n\n if (this.appendStr) {\n this.initBoAttr = boData[filed[0]][filed[1]];\n }\n\n if (filed.length == 2) {\n if (this.initBoAttr) {\n if (opinion) {\n boData[filed[0]][filed[1]] = this.initBoAttr + this.wrap + this.wrap + opinioValue;\n } else {\n boData[filed[0]][filed[1]] = this.initBoAttr;\n }\n } else {\n boData[filed[0]][filed[1]] = opinioValue;\n }\n }\n\n this.appendStr = false;\n }\n /*else if (filed.length==3 &&boData[filed[0]][filed[1]].length>0){//处理子表\r\n for (let i = 0; i