Merge branch 'dev_20231201_feizhi' into 'master'

Dev 20231201 feizhi

See merge request laws-foton-slrs/foton-laws-system-front!128
This commit is contained in:
高嵩
2023-12-15 09:18:12 +00:00
120 changed files with 8430 additions and 7649 deletions
+9 -3
View File
@@ -34,7 +34,7 @@
<div class="user-box">
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
<span class="iconfont" v-else style="color: #000;">&#xe69b;</span>
<span style="color: #000;">{{ $store.getters.userInfo.uName }}</span>
<span style="color: #000;" v-if="uName">{{ uName }}</span>
<i style="color: #000;" class="el-icon-arrow-down"/>
</div>
<el-dropdown-menu slot="dropdown">
@@ -70,7 +70,7 @@
<div class="user-box">
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
<span class="iconfont" v-else style="color: #000;">&#xe69b;</span>
<span style="color: #000;">{{ $store.getters.userInfo.uName }}</span>
<span style="color: #000;" v-if="uName">{{ uName }}</span>
<i style="color: #000;" class="el-icon-arrow-down"/>
</div>
<el-dropdown-menu slot="dropdown">
@@ -97,9 +97,9 @@
<script>
import {mapGetters, mapState} from 'vuex'
import {webLoginType, ssoLogoutUrlDev} from '@/sysConfig'
import customerService from "@/components/customerService";
import isMobile from "./store/isMobile";
import { loginOut } from '@/utils/login'
export default {
name: 'App',
@@ -152,6 +152,8 @@
confirmButtonClass: 'common-button-primary',
roundButton: false
}).then(() => {
loginOut()
/*
if (webLoginType != null && webLoginType === 'idm') {
this.$store.dispatch('logout')
window.location.href = ssoLogoutUrlDev
@@ -168,6 +170,7 @@
}, e => {
})
}
*/
// this.$http.post('/logout', {}, res => {
// window.location.href = 'http://testsso1.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&redirect_uri=http://127.0.0.1:9090&response_type=code'
// })
@@ -243,6 +246,9 @@
userAvator() {
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png')
},
uName () {
return this.$store.getters.userInfo.uName || this.$store.getters.userInfo.uname
},
customerServiceShow () {
return !isMobile()
},
+8
View File
@@ -9,6 +9,7 @@ import store from '@/store'
import {Message} from 'element-ui'
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
import isMobile from "../../store/isMobile";
import { loginAgain } from '@/utils/login'
import domMessage from '../messageOnce/messageOnce'
@@ -69,6 +70,7 @@ _axios.interceptors.response.use(
}
}
if(res.data && res.data.respCode && res.data.respCode === 'LE505'){
/*
if (isMobile()) {
localStorage.removeItem('token')
return router.push('/phoneIndex')
@@ -84,6 +86,12 @@ _axios.interceptors.response.use(
}else if(webLoginType != null && webLoginType === 'dev'){
return router.push('/login')
}
*/
messageOnce.warning({
message: '登录超时,请重新登录',
type: 'warning'
})
loginAgain()
}
return res
},
+8
View File
@@ -4,6 +4,7 @@ import store from '@/store'
import {Message} from 'element-ui'
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
import isMobile from "../../store/isMobile";
import { loginAgain } from '@/utils/login'
import domMessage from '../messageOnce/messageOnce'
@@ -64,6 +65,7 @@ service.interceptors.response.use(
}
}
if(res.data && res.data.respCode !== undefined && res.data.respCode === 'LE505'){
/*
if (isMobile()) {
localStorage.removeItem('token')
return router.push('/phoneIndex')
@@ -80,6 +82,12 @@ service.interceptors.response.use(
return router.push('/login')
}
}
*/
messageOnce.warning({
message: '登录超时,请重新登录',
type: 'warning'
})
loginAgain()
}
return res.data
},
+562
View File
@@ -0,0 +1,562 @@
import '@babel/polyfill'
require('es6-promise').polyfill();
require('es6-promise/auto');
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// jQuery
import $ from 'jquery'
// vuex
import store from './store'
import Axios from 'axios'
// 复制
import VueClipboard from 'vue-clipboard2'
// 全局样式文件
import '@/assets/styles/common.less'
// 样式重置
import '@/assets/styles/reset.css'
// iconfont字体库
import '@/assets/styles/iconfont.css'
import '@/assets/styles/shangqi-iconfont/iconfont.css'
import '@/assets/styles/shangqi-iconfont-replace/iconfont.css' // 可直接替换此文件夹
import '@/assets/styles/shangqi-iconfont-2021/iconfont.css'
// axios
import axios from 'axios'
import $axios from '@/common/axios'
// 自定义全局组件
import components from '@/components'
// 自定义插件
import common from '@/common'
import dragDialogWidth from '@/common/dragDialogWidth'
// 自定义按钮显示指令
import btnPermission from '@/common/btnPermission' // eslint-disable-line
import VueI18n from 'vue-i18n' // 国际化
// import * as echarts from 'echarts'
import { simpleUploadPath } from '@/sysConfig'
// 时间转换
import moment from 'moment'
moment.suppressDeprecationWarnings = true;
// 右键菜单
import Contextmenu from 'vue-contextmenujs'
// vant
import vant from 'vant';
import 'vant/lib/index.css';
//vant
import animate from 'animate.css'
import tool from './utils/tool'
Vue.use(tool)
// 引入路由器
import router from './router'
// 路由解析器
import Re from 'path-to-regexp'
import { get_verify_by_instance,loginIdm,getMenu,loginMobile } from 'api/process'
import hwh5 from 'api/hwh5-cloudonline.js';
import { ssoLoginUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
import { mapMutations, mapActions } from 'vuex'
import VConsole from 'vuex'
import isMobile from "./store/isMobile";
import { Loading } from 'element-ui';
// 路由拦截
router.beforeEach(function (to, from, next) {
closeLoading()
if (isMobile()){
var loading = Loading.service({
text: '加载中...',
background: '#fff'
});
}
function closeLoading(){
if (loading) {
setTimeout(() => {
loading.close()
loading = null
}, 3000)
}
}
let fromName = from.name
if(fromName === undefined || fromName === null){
window.sessionStorage.clear()
}
let toName = to.name
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error'
|| toName === 'LoginVerifyPhone') {
next()
closeLoading()
return
}
if(webLoginType === 'idm' && toName === 'Login'){
window.location.href = ssoLoginUrlDev
}
let token = store.state.token
let path = to.path;
let userName = ""
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName=") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined))){
if((path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined)){
userName = to.query.userName
}else {
userName = path.split("&")[1].split("=")[1]
}
window.sessionStorage.clear()
}else {
*/
if(fromName === 'Home2'){
localStorage.removeItem("external")
}
/*
}
*/
let requireAuth = to.meta.requireAuth;
let taskId = to.query.taskIds;
let prcId = to.query.prcId;
let prcNum = to.query.prcNum;
let prcName = to.query.prcName;
let prcType = to.query.prcType;
let routerType = to.query.routerType;
let unShowReceipt = to.query.unShowReceipt;
let param = "taskIds=" + taskId + "&prcId=" + prcId
+ "&prcNum=" + prcNum + "&prcName=" + prcName + "&prcType=" + prcType;
if (unShowReceipt) {
param += "&unShowReceipt=" + unShowReceipt
}
let param4 = {
path: path,
token: token,
taskId: taskId,
prcId: prcId,
prcNum: prcNum,
prcName: prcName,
prcType: prcType,
toName: toName
}
let url = window.location.search
let code = "";
if(url){
url = url.substr(1);
url = url.split('&');
let info = [];
let obj = {};
for (let i = 0,len = url.length; i < len; i++) {
info = url[i].split('=')
obj[info[0]] = decodeURI(info[1]);
url[i] = obj;
}
code = url[0].code
}
function extractedLocalStorage(url,param,param4) {
localStorage.removeItem("external")
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', url)
localStorage.removeItem("routerParam")
localStorage.setItem('routerParam', param)
}
// 返回值为登录状态
// 单点登录
/** 判断是不是在手机端操作 */
if (isMobile()) {
if(toName === 'phoneHome' && (token === undefined || token === null || token === '')){
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else if(toName === 'phoneHome' && token != null && (fromName === undefined || fromName === null)){
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
next()
closeLoading()
}else if(toName === 'phoneHome' && token != null){
next()
closeLoading()
} else if(toName === 'processCenter'){
// hwh5.close();
//关闭当前窗口
let userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") !== -1 || userAgent.indexOf("Chrome") !==-1) {
window.location.href="about:blank";
}else if(userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1){
window.opener=null;window.open('about:blank','_self','').close();
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
//如果是微信打开,关闭当前微信窗口
weixinClosePage()
}else {
if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else if(toName === 'databaseSearch' || toName === 'standDynamics' ||
toName === 'domesticStand' || toName === 'domesticDetails' || toName === 'zlzxDetails'){
localStorage.setItem("routerName",toName)
next('/loginVerifyPhone')
closeLoading()
}else {
if(fromName === 'phoneHome'){
next()
closeLoading()
}else {
localStorage.removeItem("param");
localStorage.setItem('param',JSON.stringify(param4))
next('/phoneIndex')
closeLoading()
}
}
}else {
// 区分手机端首页 单独逻辑处理 token 为空 跳回验证页面重新验证
if(fromName === 'databaseSearch' || fromName === 'standDynamics' ||
fromName === 'domesticStand' || fromName === 'domesticDetails' || toName === 'zlzxDetails'){
localStorage.setItem("routerName",toName)
next('/loginVerifyPhone')
closeLoading()
}else {
next()
closeLoading()
}
}
} else {
if(toName === 'databaseSearch' || toName === 'standDynamics' || toName === 'zlzxDetails' ||
toName === 'domesticStand' || toName === 'domesticDetails'){
next()
closeLoading()
}else if (toName.slice(0,5) !== 'phone') {
if(toName === 'LoginVerify'){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else{
next('/blankPage')
closeLoading()
}
}else {
if(toName === 'blankPage' || toName === 'processedPage') {
next()
closeLoading()
}else {
console.log('-pc端-')
extractedVerify()
}
}
}else {
if(toName !== 'blankPage'){
if(to.matched.length === 0){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else{
next('/blankPage')
closeLoading()
}
}else {
console.log('-phone端-')
next()
closeLoading()
}
}else {
next()
closeLoading()
}
}
}
}
} else {
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', 'home2')
localStorage.removeItem("routerParam")
localStorage.setItem('routerParam', '')
if ((token === null || token === '' ) && toName === 'OtherStandardDetails') {
if (document.cookie) {
next()
closeLoading()
return
}
}
if ((token === null || token === '' ) && toName !== 'Login') {
if(webLoginType != null && webLoginType === 'idm' ){
if(code){
next()
closeLoading()
}else {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
extractedVerify(token)
}else {
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))){
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')
closeLoading()
}else {
*/
if (toName === 'LoginVerifyNoEncryption') {
next()
closeLoading()
}else {
/*
if(path === '/standardSearch/All'){
extractedLocalStorage('standardSearch/All','');
}else {
*/
extractedLocalStorage('home2','');
/*
}
*/
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
}
/*
}
*/
}
}
}else if(webLoginType != null && webLoginType === 'dev'){
if (isMobile()) {
extractedVerify(token)
} else {
next('/Login')
closeLoading()
}
}
}else {
extractedVerify(token)
}
}
function weixinClosePage() {
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', weixin_ClosePage, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', weixin_ClosePage);
document.attachEvent('onWeixinJSBridgeReady', weixin_ClosePage);
}
} else {
weixin_ClosePage();
}
}
function weixin_ClosePage() {
WeixinJSBridge.call('closeWindow');
}
function extractedVerify() {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
get_verify_by_instance({
taskId: taskId, // 任务id
pId: prcId // 流程实例
}).then(res => {
let hisCount = res.hisCount === undefined ? 0 : res.hisCount;
let commitStatus = res.commitStatus === undefined ? 0 : res.commitStatus;
let isNotFinished = res.isNotFinished === undefined ? 0 : res.isNotFinished;
if ((hisCount && hisCount > 0)) { // 业务系统 当前节点已完成
if(isMobile()){
next('/processedPage')
closeLoading()
}else {
next()
closeLoading()
}
} else { // 业务系统 当前节点未完成
// commitStatus 大于0 表示当前节点存在未完成干活流程
// isNotFinished OA 系统显示接受任务 已置为已办
if (routerType && routerType === 'oa' &&isNotFinished && isNotFinished > 0 && commitStatus && commitStatus > 0) {
if(isMobile()) {
extractedIphone()
}else if (prcType === '3') {
//标准征求意见 接受节点 未完成 oa已办 跳转详情页面
if (path === '/bzzqyjStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '5') {
if (path === '/xmpgStep4') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '2') {
if (path === '/bzdyStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '9') {
if (path === '/bzjdStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '6') {
if (path === '/xmpg2Step6') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '10') {
if (path === '/xmqdqrStep2') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '8') {
if (path === '/wfhxzgStep4') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}
} else {
if(isMobile()) {
extractedIphone()
}else{
extracted3()
}
}
}
function extracted(routerPath) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next({path: routerPath + '?' +param})
closeLoading()
}
}
function extracted3() {
if (token === null || token === '') {
extractedLocalStorage(toName,param);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next()
closeLoading()
}
}
function extractedIphone() {
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
console.log(phoneRouter);
next({path: phoneRouter + '?' + paramPhone})
closeLoading()
}
function extracted2(routerPath,param2) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param2);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next({path: routerPath + '?' + param2})
closeLoading()
}
}
function extracted4(routerPath,param4) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param4);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next({path: routerPath + '?' + param4})
closeLoading()
}
}
})
}
if(path === '/loginVerify'){
if(webLoginType != null && webLoginType === 'dev'){
next('/Login')
closeLoading()
}else {
next()
closeLoading()
}
}else {
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))) {
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')
closeLoading()
}else {
*/
next()
closeLoading()
/*
}
*/
}
}
})
// 设置用户信息
function setUserInfo (userInfo) {
const timeStamp = new Date().getTime().toString()
const _USERINFO = JSON.parse(userInfo)
_USERINFO.userId = _USERINFO.userId || _USERINFO.usId
_USERINFO.userName = _USERINFO.userName || _USERINFO.uName
try {
localStorage.setItem('userInfo', JSON.stringify(_USERINFO))
localStorage.setItem('userInfoModifyTime', timeStamp)
} catch (e) {}
}
Vue.config.productionTip = false
// jquery
Vue.prototype.$ = $
Vue.use(ElementUI)
Vue.use(common)
Vue.use(dragDialogWidth)
Vue.use(components)
Vue.use(VueI18n)
Vue.use(VueClipboard)
Vue.use(Contextmenu)
Vue.use(animate)
Vue.use(vant)
// Vue.prototype.$echarts = echarts
// 原生axios
Vue.prototype.axios = axios
// 封装后的axios
Vue.prototype.$http = $axios
Vue.prototype.simpleUploadPath = simpleUploadPath
Vue.prototype.$moment = moment
// 国际化
const i18n = new VueI18n({
locale: store.getters.getLanguage || 'cn', // 定义默认语言为中文
messages: {
cn: require('@/assets/languages/cn'),
en: require('@/assets/languages/en')
}
})
/* eslint-disable no-new */
window.vm = new Vue({
VConsole,
router,
store,
i18n,
render: h => h(App)
}).$mount('#app')
+54 -458
View File
@@ -1,6 +1,6 @@
import '@babel/polyfill'
require('es6-promise').polyfill();
require('es6-promise/auto');
require('es6-promise').polyfill()
require('es6-promise/auto')
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
@@ -9,7 +9,6 @@ import 'element-ui/lib/theme-chalk/index.css'
import $ from 'jquery'
// vuex
import store from './store'
import Axios from 'axios'
// 复制
import VueClipboard from 'vue-clipboard2'
// 全局样式文件
@@ -32,17 +31,16 @@ import dragDialogWidth from '@/common/dragDialogWidth'
// 自定义按钮显示指令
import btnPermission from '@/common/btnPermission' // eslint-disable-line
import VueI18n from 'vue-i18n' // 国际化
// import * as echarts from 'echarts'
import { simpleUploadPath } from '@/sysConfig'
// 时间转换
import moment from 'moment'
moment.suppressDeprecationWarnings = true;
moment.suppressDeprecationWarnings = true
// 右键菜单
import Contextmenu from 'vue-contextmenujs'
// vant
import vant from 'vant';
import 'vant/lib/index.css';
import vant from 'vant'
import 'vant/lib/index.css'
//vant
import animate from 'animate.css'
@@ -50,480 +48,78 @@ import tool from './utils/tool'
Vue.use(tool)
// 引入路由器
import router from './router'
// 路由解析器
import Re from 'path-to-regexp'
import { get_verify_by_instance,loginIdm,getMenu,loginMobile } from 'api/process'
import hwh5 from 'api/hwh5-cloudonline.js';
import { webLoginType } from '@/sysConfig'
import { ssoLoginUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
import { mapMutations, mapActions } from 'vuex'
import VConsole from 'vuex'
import isMobile from './store/isMobile'
import { getCode, toIdmLoginPage, loginInIdm, loginInPhone, close } from '@/utils/login'
import isMobile from "./store/isMobile";
import { Loading } from 'element-ui';
// 路由拦截
router.beforeEach(function (to, from, next) {
closeLoading()
if (isMobile()){
var loading = Loading.service({
text: '加载中...',
background: '#fff'
});
}
function closeLoading(){
if (loading) {
setTimeout(() => {
loading.close()
loading = null
}, 3000)
}
}
let fromName = from.name
if(fromName === undefined || fromName === null){
window.sessionStorage.clear()
}
let toName = to.name
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error'
|| toName === 'LoginVerifyPhone') {
next()
closeLoading()
return
}
if(webLoginType === 'idm' && toName === 'Login'){
window.location.href = ssoLoginUrlDev
}
let token = store.state.token
let path = to.path;
let userName = ""
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName=") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined))){
if((path.indexOf("/standardSearch/All") !== -1 && to.query.userName !== undefined)){
userName = to.query.userName
}else {
userName = path.split("&")[1].split("=")[1]
}
window.sessionStorage.clear()
}else {
*/
if(fromName === 'Home2'){
localStorage.removeItem("external")
}
/*
}
*/
let requireAuth = to.meta.requireAuth;
let taskId = to.query.taskIds;
let prcId = to.query.prcId;
let prcNum = to.query.prcNum;
let prcName = to.query.prcName;
let prcType = to.query.prcType;
let routerType = to.query.routerType;
let unShowReceipt = to.query.unShowReceipt;
let param = "taskIds=" + taskId + "&prcId=" + prcId
+ "&prcNum=" + prcNum + "&prcName=" + prcName + "&prcType=" + prcType;
if (unShowReceipt) {
param += "&unShowReceipt=" + unShowReceipt
}
let param4 = {
path: path,
token: token,
taskId: taskId,
prcId: prcId,
prcNum: prcNum,
prcName: prcName,
prcType: prcType,
toName: toName
}
let url = window.location.search
let code = "";
if(url){
url = url.substr(1);
url = url.split('&');
let info = [];
let obj = {};
for (let i = 0,len = url.length; i < len; i++) {
info = url[i].split('=')
obj[info[0]] = decodeURI(info[1]);
url[i] = obj;
}
code = url[0].code
}
function extractedLocalStorage(url,param,param4) {
localStorage.removeItem("external")
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', url)
localStorage.removeItem("routerParam")
localStorage.setItem('routerParam', param)
}
// 返回值为登录状态
// 单点登录
/** 判断是不是在手机端操作 */
if (isMobile()) {
if(toName === 'phoneHome' && (token === undefined || token === null || token === '')){
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else if(toName === 'phoneHome' && token != null && (fromName === undefined || fromName === null)){
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
next()
closeLoading()
}else if(toName === 'phoneHome' && token != null){
next()
closeLoading()
} else if(toName === 'processCenter'){
// hwh5.close();
//关闭当前窗口
let userAgent = navigator.userAgent;
if (userAgent.indexOf("Firefox") !== -1 || userAgent.indexOf("Chrome") !==-1) {
window.location.href="about:blank";
}else if(userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1){
window.opener=null;window.open('about:blank','_self','').close();
}else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
router.beforeEach((to, from, next) => {
const token = store.state.token
if (to.query.taskIds && to.query.taskIds !== '' && to.query.prcId && to.query.prcId !== '') {
const fullPath = to.fullPath.slice(1)
if (isMobile()) {
if (fullPath.indexOf('phone') !== 0) {
let path = fullPath.replace(fullPath.charAt(0), fullPath.charAt(0).toUpperCase())
path = '/phone' + path
next({ path: path })
}
//如果是微信打开,关闭当前微信窗口
weixinClosePage()
}else {
if (!to.name) {
// 不存在路由
next('/blankPage')
}
}
}
if ((token === null || token === '' ) && toName !== 'Login') {
if(toName !== 'phoneIndex'){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else if(toName === 'databaseSearch' || toName === 'standDynamics' ||
toName === 'domesticStand' || toName === 'domesticDetails' || toName === 'zlzxDetails'){
localStorage.setItem("routerName",toName)
next('/loginVerifyPhone')
closeLoading()
}else {
if(fromName === 'phoneHome'){
next()
closeLoading()
}else {
localStorage.removeItem("param");
localStorage.setItem('param',JSON.stringify(param4))
next('/phoneIndex')
closeLoading()
}
}
}else {
// 区分手机端首页 单独逻辑处理 token 为空 跳回验证页面重新验证
if(fromName === 'databaseSearch' || fromName === 'standDynamics' ||
fromName === 'domesticStand' || fromName === 'domesticDetails' || toName === 'zlzxDetails'){
localStorage.setItem("routerName",toName)
next('/loginVerifyPhone')
closeLoading()
}else {
next()
closeLoading()
}
}
if (token && token !== '') {
if (to.path === '/') {
if (isMobile()) {
next('/phoneHome')
} else {
if(toName === 'databaseSearch' || toName === 'standDynamics' || toName === 'zlzxDetails' ||
toName === 'domesticStand' || toName === 'domesticDetails'){
next()
closeLoading()
}else if (toName.slice(0,5) !== 'phone') {
if(toName === 'LoginVerify'){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else{
next('/blankPage')
closeLoading()
}
}else {
if(toName === 'blankPage' || toName === 'processedPage') {
next()
closeLoading()
}else {
console.log('-pc端-')
extractedVerify()
}
}
}else {
if(toName !== 'blankPage'){
if(to.matched.length === 0){
if(toName === 'phoneHome'){
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
localStorage.removeItem('token')
token = localStorage.getItem("token")
window.sessionStorage.clear()
localStorage.setItem("routerName","phoneHome")
next('/loginVerifyPhone')
closeLoading()
}else{
next('/blankPage')
closeLoading()
}
}else {
console.log('-phone端-')
next()
closeLoading()
}
}else {
next()
closeLoading()
}
}
next('/home2')
}
}
next()
} else {
localStorage.removeItem("routerUrl")
localStorage.setItem('routerUrl', 'home2')
localStorage.removeItem("routerParam")
localStorage.setItem('routerParam', '')
if ((token === null || token === '' ) && toName === 'OtherStandardDetails') {
if (document.cookie) {
if (to.path === '/login') {
if (webLoginType === 'idm') {
// webLoginType === "idm"时不会进入login路由
// let href = window.location.href.replace('code=' + getCode(), '')
// toIdmLoginPage(href)
}
if (webLoginType === 'dev') {
next()
closeLoading()
return
}
}
if ((token === null || token === '' ) && toName !== 'Login') {
if(webLoginType != null && webLoginType === 'idm' ){
if(code){
next()
closeLoading()
}else {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
extractedVerify(token)
}else {
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))){
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')
closeLoading()
}else {
*/
if (toName === 'LoginVerifyNoEncryption') {
next()
closeLoading()
}else {
/*
if(path === '/standardSearch/All'){
extractedLocalStorage('standardSearch/All','');
}else {
*/
extractedLocalStorage('home2','');
/*
}
*/
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
}
/*
}
*/
}
}
}else if(webLoginType != null && webLoginType === 'dev'){
if (isMobile()) {
extractedVerify(token)
} else {
next('/Login')
closeLoading()
}
}
}else {
extractedVerify(token)
}
}
function weixinClosePage() {
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', weixin_ClosePage, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', weixin_ClosePage);
document.attachEvent('onWeixinJSBridgeReady', weixin_ClosePage);
}
} else {
weixin_ClosePage();
}
}
function weixin_ClosePage() {
WeixinJSBridge.call('closeWindow');
}
function extractedVerify() {
if (taskId !== undefined && taskId !== null && prcId !== undefined && prcId !== null) {
get_verify_by_instance({
taskId: taskId, // 任务id
pId: prcId // 流程实例
}).then(res => {
let hisCount = res.hisCount === undefined ? 0 : res.hisCount;
let commitStatus = res.commitStatus === undefined ? 0 : res.commitStatus;
let isNotFinished = res.isNotFinished === undefined ? 0 : res.isNotFinished;
if ((hisCount && hisCount > 0)) { // 业务系统 当前节点已完成
if(isMobile()){
next('/processedPage')
closeLoading()
}else {
next()
closeLoading()
}
} else { // 业务系统 当前节点未完成
// commitStatus 大于0 表示当前节点存在未完成干活流程
// isNotFinished OA 系统显示接受任务 已置为已办
if (routerType && routerType === 'oa' &&isNotFinished && isNotFinished > 0 && commitStatus && commitStatus > 0) {
if(isMobile()) {
extractedIphone()
}else if (prcType === '3') {
//标准征求意见 接受节点 未完成 oa已办 跳转详情页面
if (path === '/bzzqyjStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '5') {
if (path === '/xmpgStep4') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '2') {
if (path === '/bzdyStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '9') {
if (path === '/bzjdStep3') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '6') {
if (path === '/xmpg2Step6') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '10') {
if (path === '/xmqdqrStep2') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}else if (prcType === '8') {
if (path === '/wfhxzgStep4') {
extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess");
}
}
} else {
if(isMobile()) {
extractedIphone()
}else{
extracted3()
}
}
}
function extracted(routerPath) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next({path: routerPath + '?' +param})
closeLoading()
}
}
function extracted3() {
if (token === null || token === '') {
extractedLocalStorage(toName,param);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
if (webLoginType === 'idm') {
if (isMobile()) {
loginInPhone().then(() => {
next()
closeLoading()
}
}
function extractedIphone() {
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
'&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType
let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1)
console.log(phoneRouter);
next({path: phoneRouter + '?' + paramPhone})
closeLoading()
}
function extracted2(routerPath,param2) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param2);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
})
} else {
if (getCode()) {
loginInIdm(getCode()).then(() => {
const path = to.fullPath.replace('code=' + getCode(), '')
next({ path })
})
} else {
next({path: routerPath + '?' + param2})
closeLoading()
toIdmLoginPage(window.location.href)
}
}
function extracted4(routerPath,param4) {
if (token === null || token === '') {
extractedLocalStorage(routerPath,param4);
// ssoLoginUrlDev 默认sso 地址
window.location.href = ssoLoginUrlDev
} else {
next({path: routerPath + '?' + param4})
closeLoading()
}
}
if (webLoginType === 'dev') {
if (isMobile()) {
next('/login')
} else {
next('/login')
}
})
}
if(path === '/loginVerify'){
if(webLoginType != null && webLoginType === 'dev'){
next('/Login')
closeLoading()
}else {
next()
closeLoading()
}
}else {
/*
if((fromName === undefined || fromName === null) && (path.indexOf("/standardSearch/All&userName") !== -1 || (path.indexOf("/standardSearch/All") !== -1 && userName !== undefined))) {
extractedLocalStorage("standardSearch/All",userName)
localStorage.setItem('external', "external")
next('/LoginVerifyNoEncryption')
closeLoading()
}else {
*/
next()
closeLoading()
/*
}
*/
}
}
})
// 设置用户信息
function setUserInfo (userInfo) {
const timeStamp = new Date().getTime().toString()
const _USERINFO = JSON.parse(userInfo)
_USERINFO.userId = _USERINFO.userId || _USERINFO.usId
_USERINFO.userName = _USERINFO.userName || _USERINFO.uName
try {
localStorage.setItem('userInfo', JSON.stringify(_USERINFO))
localStorage.setItem('userInfoModifyTime', timeStamp)
} catch (e) {}
}
Vue.config.productionTip = false
// jquery
Vue.prototype.$ = $
@@ -537,7 +133,7 @@ Vue.use(Contextmenu)
Vue.use(animate)
Vue.use(vant)
// Vue.prototype.$echarts = echarts
Vue.prototype.$close = close
// 原生axios
Vue.prototype.axios = axios
// 封装后的axios
+18 -9
View File
@@ -1,26 +1,35 @@
<template>
<div class="blankPage">
<van-icon name="clear" color="#dabb27" size="70"/>
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务不支持手机端处理</div>
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="closeWindow()">返回</el-button>
<van-icon name="clear" color="#dabb27" size="70" />
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">
当前任务不支持手机端处理
</div>
<el-button
type="primary"
size="small"
style="margin-top: 30px;width: 270px;"
@click="closeWindow()"
>
返回
</el-button>
</div>
</template>
<script>
import Vue from 'vue';
import { Icon } from 'vant';
import hwh5 from '../../api/hwh5-cloudonline.js';
Vue.use(Icon);
export default {
name: "blankPage",
data() {
name: 'BlankPage',
data () {
return {}
},
methods: {
closeWindow(){
// hwh5.close()
this.$router.go(-2)
closeWindow () {
// hwh5.close()
// this.$router.go(-2)
this.$close()
}
}
}
+5
View File
@@ -29,6 +29,7 @@
import { mapMutations, mapActions } from 'vuex'
import axios from 'axios'
import util from 'util'
import isMobile from "../../store/isMobile";
export default {
name: 'Login',
data () {
@@ -187,6 +188,10 @@
if (this.showIETips) {//判断是否IE浏览器
alert('为了最佳显示效果 请使用google chrome')
}
if (isMobile()) {
this.$router.push('/phoneHome')
return;
}
this.$router.push('/home2')
}, e => {
this.$message.warning('未获取到菜单')
+2 -1
View File
@@ -39,7 +39,8 @@
showCancelButton: false,
}).then(() => {
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
})
},
/**
@@ -206,7 +206,7 @@ export default {
},
destroyed() {
window.onresize = null
this.tableHeight = ''
this.tableHeight = ""
},
methods: {
addModal () {
+207 -205
View File
@@ -104,213 +104,215 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep2",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText2: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
showNodeList: [],
nodeList2: [],
type: '',
modalshowflag2: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
modelList: [],
fjList: [],
responUserList: '',
responUserListName: '',
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
]
},
json: {}
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload(file) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
checkedRole2 (data) {
var idList = ''
var nameList = ''
if (data.length) {
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
}
this.form.responUserList = idList
this.form.responUserListName = nameList
},
choiceZRR () {
this.nodeList2 = []
if ( this.form.responUserList.length > 0) {
this.nodeList2 = this.form.responUserList.split(',')
}
this.modalshowflag2 = true
},
handleTabs(name) {
this.active = name
},
handleSave() {
this.saveLoading = true
this.isSubmit = true
let _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
commentText2: this.commentText2,
}))
saveTaskForPub(_formData).then(res => {
this.$message.success('保存成功')
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => {
if (valid) {
this.isSubmit = true
this.saveLoading = true
var json = this.json
json.commentText = this.commentText2
json.responUserList = this.form.responUserList
json.responUserListName = this.form.responUserListName
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
})
} else {
return this.$message.warning('请完善基础信息')
}
})
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.fjList = data.fjList || data.form.fjList
this.form.modelList = data.modelList || data.form.modelList
this.form.title = data.title || data.form.title
this.form.processName = data.processName || data.form.processName
this.form.date = data.date || data.form.date
this.json = data || data.form
this.form.responUserList = data.form? data.form.responUserList : ''
this.form.responUserListName = data.form? data.form.responUserListName : ''
this.commentText2 = data.commentText2 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getData()
this.getHistoryData()
}
export default {
name: 'phoneBzdyStep2',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText2: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
showNodeList: [],
nodeList2: [],
type: '',
modalshowflag2: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
modelList: [],
fjList: [],
responUserList: '',
responUserListName: '',
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' },
]
},
json: {}
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload(file) {
let attId = ''
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
checkedRole2 (data) {
let idList = ''
let nameList = ''
if (data.length) {
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
}
this.form.responUserList = idList
this.form.responUserListName = nameList
},
choiceZRR () {
this.nodeList2 = []
if ( this.form.responUserList.length > 0) {
this.nodeList2 = this.form.responUserList.split(',')
}
this.modalshowflag2 = true
},
handleTabs(name) {
this.active = name
},
handleSave() {
this.saveLoading = true
this.isSubmit = true
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
form: this.form,
commentText2: this.commentText2,
}))
saveTaskForPub(_formData).then(res => {
this.$message.success('保存成功')
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => {
if (valid) {
this.isSubmit = true
this.saveLoading = true
const json = this.json
json.commentText = this.commentText2
json.responUserList = this.form.responUserList
json.responUserListName = this.form.responUserListName
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
})
} else {
return this.$message.warning('请完善基础信息')
}
})
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.fjList = data.fjList || data.form.fjList
this.form.modelList = data.modelList || data.form.modelList
this.form.title = data.title || data.form.title
this.form.processName = data.processName || data.form.processName
this.form.date = data.date || data.form.date
this.json = data || data.form
this.form.responUserList = data.form? data.form.responUserList : ''
this.form.responUserListName = data.form? data.form.responUserListName : ''
this.commentText2 = data.commentText2 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getData()
this.getHistoryData()
}
}
</script>
<style lang="less" scoped>
@@ -103,11 +103,11 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
import InputFormItem from '@/components/hzwlComponents/InputFormItem'
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
import UploadFormItem from "@/components/hzwlComponents/UploadFormItem";
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem';
import TextareaFormItem from '@/components/hzwlComponents/TextareaFormItem'
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
@@ -115,7 +115,7 @@ import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRole
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
export default {
name: "step3",
name: 'step3',
components: {
ProcessHeaderPhone,
PhoneHistortTable,
@@ -196,7 +196,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
+191 -188
View File
@@ -120,196 +120,199 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep4",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText4: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
dyhz: '',
title: '', // 调研标题
date: '', // 完成时间
modelList: [],
fjList: [],
fileId: '',
fileName: '',
responUserList: '',
responUserListName: '',
text: ''
},
formRules: {
text: [
{ required: true, message: '请输入审批意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload2(file) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
clickButtonToUpload(file) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
handleTabs(name) {
this.active = name
},
handleSubmit() { // 同意
this.isSubmit = true
var json = this.json
json.actionFlag = 0
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText4) {
this.isSubmit = true
var json = this.json
json.actionFlag = 1
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.dyhz = data.dyhz || data.form.dyhz
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.form.file = data.fileId || data.form.fileId
this.form.fileName = data.fileName || data.form.fileName
this.form.fileId = data.fileId || data.form.fileId
this.form.modelList = data.form ? data.form.modelList : data.modelList
this.form.fjList = data.fjList || data.form.fjList
this.commentText4 = data.commentText4 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getData()
this.getHistoryData()
}
export default {
name: 'phoneBzdyStep4',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText4: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
dyhz: '',
title: '', // 调研标题
date: '', // 完成时间
modelList: [],
fjList: [],
fileId: '',
fileName: '',
responUserList: '',
responUserListName: '',
text: ''
},
formRules: {
text: [
{ required: true, message: '请输入审批意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload2(file) {
let attId = ''
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
clickButtonToUpload(file) {
let attId = ''
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
handleTabs(name) {
this.active = name
},
handleSubmit() { // 同意
this.isSubmit = true
const json = this.json
json.actionFlag = 0
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText4) {
this.isSubmit = true
const json = this.json
json.actionFlag = 1
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.dyhz = data.dyhz || data.form.dyhz
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.form.file = data.fileId || data.form.fileId
this.form.fileName = data.fileName || data.form.fileName
this.form.fileId = data.fileId || data.form.fileId
this.form.modelList = data.form ? data.form.modelList : data.modelList
this.form.fjList = data.fjList || data.form.fjList
this.commentText4 = data.commentText4 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getData()
this.getHistoryData()
}
}
</script>
<style lang="less" scoped>
@@ -117,11 +117,11 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
import InputFormItem from '@/components/hzwlComponents/InputFormItem'
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
import UploadFormItem from "@/components/hzwlComponents/UploadFormItem";
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem';
import TextareaFormItem from '@/components/hzwlComponents/TextareaFormItem'
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
@@ -129,7 +129,7 @@ import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRole
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
export default {
name: "step3",
name: 'step3',
components: {
ProcessHeaderPhone,
PhoneHistortTable,
@@ -234,7 +234,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
+216 -213
View File
@@ -144,221 +144,224 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep6",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText6: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
texthq: ''
},
formRules: {
texthq: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload2(file) {
let attId = ""
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.actionFlag = 0
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText6) {
this.isSubmit = true
var json = this.json
json.actionFlag = 1
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
this.commentText6 = data.commentText6 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzdyStep6',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText6: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
texthq: ''
},
formRules: {
texthq: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
clickButtonToUpload2(file) {
let attId = ''
if(file && file.id){
attId = file.id
}else {
attId = file.response.data.id
}
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.actionFlag = 0
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText6) {
this.isSubmit = true
const json = this.json
json.actionFlag = 1
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
this.commentText6 = data.commentText6 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
+208 -205
View File
@@ -111,213 +111,216 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep7",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText7: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: ''
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
// window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.actionFlag = 0
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText7) {
this.isSubmit = true
var json = this.json
json.commentText = this.commentText7
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
this.commentText7 = data.commentText7 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzdyStep7',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText7: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: ''
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
// window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.actionFlag = 0
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText7) {
this.isSubmit = true
const json = this.json
json.commentText = this.commentText7
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
this.commentText7 = data.commentText7 || ''
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
+208 -205
View File
@@ -111,213 +111,216 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep8",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText8: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: ''
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.actionFlag = 0
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText8) {
this.isSubmit = true
var json = this.json
json.commentText = this.commentText8
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.commentText8 = data.commentText8 || ''
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzdyStep8',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText8: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: ''
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.actionFlag = 0
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText8) {
this.isSubmit = true
const json = this.json
json.commentText = this.commentText8
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.json = data || data.form
this.commentText8 = data.commentText8 || ''
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
+212 -209
View File
@@ -136,217 +136,220 @@
</template>
<script>
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from 'axios';
export default {
name: "phoneBzdyStep9",
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText9: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: '',
modelList:[], //调研模板
fjList:[] //相关附件
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.actionFlag = 0
json.commentText = this.commentText9
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText9) {
this.isSubmit = true
var json = this.json
json.commentText = this.commentText9
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
console.log(data)
this.commentText9 = data.commentText9 || ''
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.form.modelList = data.modelList
this.form.fjList =data.fjList
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzdyStep9',
data() {
return {
drawerModal: false,
foldFormFlag: false,
histortData: [],
commentText9: '',
tableData: [],
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
title: '', // 调研标题
date: '', // 完成时间
hzfileId: '',
hzfileName: '',
textsh: '',
modelList:[], //调研模板
fjList:[] //相关附件
},
formRules: {
textsh: [
{ required: true, message: '请输入审核意见', trigger: 'blur' },
]
},
json: {},
fileUrl: 'api/att/attFile/uploadNew',
fileMadel: false,
}
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
updateFile (fileId) {
this.$preview(fileId)
},
// 导入按钮 上传之前的钩子
beginImportFile (file) {
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
// 导入标准数据成功后执行
importFileSuccess (response, file) {
if (response.ok) {
this.fileMadel = false
this.form.hzfileId = response.data.id
this.form.hzfileName = response.data.name
this.$message({
// showClose: true,
message: response.message,
type: 'success'
})
}
},
fileUpload () {
this.fileMadel = true
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.actionFlag = 0
json.commentText = this.commentText9
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText9) {
this.isSubmit = true
const json = this.json
json.commentText = this.commentText9
json.actionFlag = 1
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
console.log(data)
this.commentText9 = data.commentText9 || ''
this.form.processName = data.form ? data.form.processName : data.processName
this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date
this.form.modelList = data.modelList
this.form.fjList =data.fjList
this.json = data || data.form
this.tableData = data.responUserList || data.form.responUserList
this.form.hzfileId = data.hzfileId || data.form.hzfileId
this.form.hzfileName = data.hzfileName || data.form.hzfileName
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
@@ -126,7 +126,7 @@ import ProcessTitle from '../../components/ProcessTitle'
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzchStep2",
name: 'phoneBzchStep2',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -149,7 +149,7 @@ export default {
fillFile: '',
},
ch_rules: {
meetingInRoleId: [{required: true, message: "请选择参会人员", trigger: ['blur', 'change']}]
meetingInRoleId: [{required: true, message: '请选择参会人员', trigger: ['blur', 'change']}]
},
nodeList: [],
modalshowflag: false,
@@ -198,7 +198,7 @@ export default {
if (this.commentText === '') {
this.$message.warning('请输入审批意见')
} else {
let json = {
const json = {
roleList: this.roleForm,
memberId: this.$store.getters.userInfo.account,
passFlag: '0',
@@ -216,7 +216,8 @@ export default {
if (res.success === true) {
this.$message.success('退回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -229,7 +230,7 @@ export default {
},
// 提交按钮
handleSubmit() {
let json = {
const json = {
roleList: this.roleForm,
memberId: this.$store.getters.userInfo.account,
passFlag: '1',
@@ -247,7 +248,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -259,8 +261,8 @@ export default {
},
/** 点击对应附件进行下载*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -273,8 +275,8 @@ export default {
this.modalshowflag = true
},
checkedRole (data) {
var idList = ''
var nameList = ''
let idList = ''
let nameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
@@ -123,7 +123,7 @@ import ProcessTitle from '../../components/ProcessTitle'
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzchStep4",
name: 'phoneBzchStep4',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -194,7 +194,7 @@ export default {
if (this.textarea === '') {
this.$message.warning('请输入审批意见')
} else {
let json = {
const json = {
member: this.selfUser,
passFlag: '0',
roleList: this.roleForm,
@@ -212,7 +212,8 @@ export default {
if (res.success === true) {
this.$message.success('退回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -224,7 +225,7 @@ export default {
},
// 提交按钮
handleSubmit() {
let json = {
const json = {
member: this.selfUser,
passFlag: '1',
engineerSum: this.roleForm.startUser,
@@ -243,7 +244,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -254,8 +256,8 @@ export default {
},
/** 点击对应附件进行预览 */
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -130,7 +130,7 @@ import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzchStep6",
name: 'phoneBzchStep6',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -175,7 +175,7 @@ export default {
getData() {
if (this.taskInfo === '标准法规工程师修订完毕') {
this.passTitle = '回执说明',
this.passHolder = '请输入回执说明'
this.passHolder = '请输入回执说明'
}
const params = {
taskIds: this.taskIds,
@@ -198,15 +198,15 @@ export default {
/** 批量删除 */
del_paryForm() {
if (this.deleteDataList.length < 1) {
this.$message.warning("请选择一条数据进行删除");
this.$message.warning('请选择一条数据进行删除');
} else {
this.$confirm("您确认删除这些数据?", "提示", {
confirmButtonText: "确认",
confirmButtonClass: "common-button-primary",
cancelButtonText: "取消",
type: "warning"
this.$confirm('您确认删除这些数据?', '提示', {
confirmButtonText: '确认',
confirmButtonClass: 'common-button-primary',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let exits = [];
const exits = [];
this.deleteDataList.map(item => {
let index;
index = this.ch_pageData.myPartRole.findIndex(items => {
@@ -262,7 +262,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -305,7 +306,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -317,8 +319,8 @@ export default {
},
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -165,7 +165,7 @@ import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzhhStep2",
name: 'phoneBzhhStep2',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -247,29 +247,29 @@ export default {
},
// 点击上传的文件进行下载
handleOnPreview(file) {
let attId = file.id
if (attId != null && attId !== "") {
const attId = file.id
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
// 点击上传的文件进行预览
onPreviewTheme(file) {
let attId = file.id
if (attId != null && attId !== "") {
const attId = file.id
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
// 点击上传的文件进行下载
onPreviewOther(file) {
let attId = file.id
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
const attId = file.id
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
}
},
// 退回按钮
handleSubmitNo() {
let json = {
const json = {
passFlag: '0',
commentText: this.commentText,
hh_pageData: this.hh_pageData,
@@ -285,7 +285,8 @@ export default {
if (res.success === true) {
this.$message.success('退回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -296,7 +297,7 @@ export default {
},
// 提交按钮
handleSubmit() {
let json = {
const json = {
passFlag: '1',
commentText: this.commentText,
ch_pageData: this.ch_pageData,
@@ -312,7 +313,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -127,10 +127,10 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { completeTask, inboundLiaisonDetail } from "@/api/process.js"
import { completeTask, inboundLiaisonDetail } from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzrhStep2",
name: 'phoneBzrhStep2',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -161,7 +161,7 @@ export default {
comityInRoleId: '',
},
roleForm: {
comityOpRoleId: [{required: true, message: "请选择入会人员", trigger: ['blur', 'change']}]
comityOpRoleId: [{required: true, message: '请选择入会人员', trigger: ['blur', 'change']}]
},
commentText: '',
roleShowflag: false,
@@ -212,8 +212,8 @@ export default {
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -222,7 +222,7 @@ export default {
if (this.commentText === '') {
this.$message.warning('请输入审批意见')
} else {
let json = {
const json = {
roleList: this.roleForm,
memberId: this.$store.getters.userInfo.account,
passFlag: '0',
@@ -240,7 +240,8 @@ export default {
if (res.success === true) {
this.$message.success('退回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -252,7 +253,7 @@ export default {
},
// 提交按钮
handleSubmit() {
let json = {
const json = {
roleList: this.roleForm,
memberId: this.$store.getters.userInfo.account,
passFlag: '1',
@@ -270,7 +271,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -287,8 +289,8 @@ export default {
this.modalshowflag = true
},
checkedRole (data) {
var idList = ''
var nameList = ''
let idList = ''
let nameList = ''
data.forEach( item => {
if (nameList.length > 0) {
nameList += ','
@@ -133,10 +133,10 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { completeTask, inboundLiaisonDetail } from "@/api/process.js"
import { completeTask, inboundLiaisonDetail } from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzrhStep4",
name: 'phoneBzrhStep4',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -235,7 +235,7 @@ export default {
if (this.textarea === '') {
this.$message.warning('请输入审批意见')
} else {
let json = {
const json = {
member: this.selfUser,
passFlag: '0',
roleList: this.roleForm,
@@ -253,7 +253,8 @@ export default {
if (res.success === true) {
this.$message.success('退回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -266,7 +267,7 @@ export default {
},
// 提交按钮
handleSubmit() {
let json = {
const json = {
member: this.selfUser,
passFlag: '1',
engineerSum: this.roleForm.startUser,
@@ -285,7 +286,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -296,8 +298,8 @@ export default {
},
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -146,10 +146,10 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { completeTask, inboundLiaisonDetail } from "@/api/process.js"
import { completeTask, inboundLiaisonDetail } from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzrhStep6",
name: 'phoneBzrhStep6',
components: {
ProcessHeaderPhone,
ProcessFooter,
@@ -234,8 +234,8 @@ export default {
},
/** 点击对应附件进行预览*/
previews(val) {
let attId = val
if (attId != null && attId !== "") {
const attId = val
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
@@ -247,7 +247,7 @@ export default {
if (this.textarea === '') {
this.$message.warning('请输入反馈意见')
} else {
let json = {
const json = {
passFlag: '0',
rh_pageData: this.rh_pageData,
roleList: this.roleForm
@@ -271,7 +271,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -284,7 +285,7 @@ export default {
// 提交按钮
handleSubmit() {
let json = {
const json = {
passFlag: '1',
rh_pageData: this.rh_pageData,
commentText: this.textarea,
@@ -309,7 +310,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -149,7 +149,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -149,7 +149,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
+224 -221
View File
@@ -262,236 +262,239 @@
</template>
<script>
import { Dialog } from "vant";
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
import axios from "axios";
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzjdStep4",
name: 'phoneBzjdStep4',
data() {
return {
tableIndex: 0,
itemLists: [],
itemsNum: "",
similarityDegree: "",
itemsNum: '',
similarityDegree: '',
BDmodel: false,
leftData: "",
rightData: "",
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
commentText4: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
let index = this.tableIndex * 20
let endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
let newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
let itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.resolveFlag = 1
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText4) {
this.isSubmit = true
var json = this.json
json.resolveFlag = 2
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText4 = data.commentText4 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || "";
this.form.itemsNum1 = data.form.itemsNum1 || "";
} else {
this.form.itemsName1 = data.itemsName1 || "";
this.form.itemsNum1 = data.itemsNum1 || "";
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === "1") {
item.complianceRequirShow = "符合";
} else {
item.complianceRequirShow = "不符合";
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
leftData: '',
rightData: '',
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
commentText4: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
const index = this.tableIndex * 20
const endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
const newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
const itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.resolveFlag = 1
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText4) {
this.isSubmit = true
const json = this.json
json.resolveFlag = 2
json.commentText = this.commentText4
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText4 = data.commentText4 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || '';
this.form.itemsNum1 = data.form.itemsNum1 || '';
} else {
this.form.itemsName1 = data.itemsName1 || '';
this.form.itemsNum1 = data.itemsNum1 || '';
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === '1') {
item.complianceRequirShow = '符合';
} else {
item.complianceRequirShow = '不符合';
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
}
</script>
<style lang="less" scoped>
+225 -222
View File
@@ -260,236 +260,239 @@
</template>
<script>
import { Dialog } from "vant";
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import axios from 'axios';
export default {
name: "phoneBzjdStep5",
name: 'phoneBzjdStep5',
data() {
return {
BDmodel: false,
itemsNum: "",
similarityDegree: "",
leftData: "",
rightData: "",
commentText5: "",
itemsNum: '',
similarityDegree: '',
leftData: '',
rightData: '',
commentText5: '',
tableIndex: 0,
itemLists: [],
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
let index = this.tableIndex * 20
let endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
let newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
let itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.zrApplyFlag = 1
json.commentText = this.commentText5
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText5) {
this.isSubmit = true
var json = this.json
json.zrApplyFlag = 2
json.commentText = this.commentText5
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText5 = data.commentText5 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || "";
this.form.itemsNum1 = data.form.itemsNum1 || "";
} else {
this.form.itemsName1 = data.itemsName1 || "";
this.form.itemsNum1 = data.itemsNum1 || "";
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === "1") {
item.complianceRequirShow = "符合";
} else {
item.complianceRequirShow = "不符合";
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
itemLists: [],
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
const index = this.tableIndex * 20
const endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
const newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
const itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.zrApplyFlag = 1
json.commentText = this.commentText5
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText5) {
this.isSubmit = true
const json = this.json
json.zrApplyFlag = 2
json.commentText = this.commentText5
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText5 = data.commentText5 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || '';
this.form.itemsNum1 = data.form.itemsNum1 || '';
} else {
this.form.itemsName1 = data.itemsName1 || '';
this.form.itemsNum1 = data.itemsNum1 || '';
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === '1') {
item.complianceRequirShow = '符合';
} else {
item.complianceRequirShow = '不符合';
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
}
</script>
<style lang="less" scoped>
+225 -222
View File
@@ -258,236 +258,239 @@
</template>
<script>
import { Dialog } from "vant";
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
import axios from "axios";
import axios from 'axios';
export default {
name: "phoneBzjdStep6",
name: 'phoneBzjdStep6',
data() {
return {
commentText6: "",
commentText6: '',
BDmodel: false,
itemsNum: "",
similarityDegree: "",
leftData: "",
rightData: "",
itemsNum: '',
similarityDegree: '',
leftData: '',
rightData: '',
tableIndex: 0,
itemLists: [],
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
let index = this.tableIndex * 20
let endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
let newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
let itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.gcApplyFlag = 1
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText6) {
this.isSubmit = true
var json = this.json
json.gcApplyFlag = 2
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText6 = data.commentText6 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || "";
this.form.itemsNum1 = data.form.itemsNum1 || "";
} else {
this.form.itemsName1 = data.itemsName1 || "";
this.form.itemsNum1 = data.itemsNum1 || "";
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === "1") {
item.complianceRequirShow = "符合";
} else {
item.complianceRequirShow = "不符合";
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
itemLists: [],
dialogMadal: false,
drawerModal: false,
//折叠的标志,true为折叠,false为不折叠
foldFormFlag: false,
itermsConditionsFlag: false,
itermsConditionsTitle: '',
histortData: [],
sarType: '',
itemList: [],
loading: true,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
textarea: '', // 意见
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
itemsNum: '',
itemsName: '',
itemsNum1: '',
itemsName1: '',
},
json: {},
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
tableLoading () {
this.tableIndex++
const index = this.tableIndex * 20
const endIndex = index + 20
if (this.tableIndex * 20 > this.itemLists.length) {
this.$message.warning('没有更多了')
}
const newData = this.itemLists.slice(index, endIndex)
this.itemList = this.itemList.concat(newData)
},
dialogOk () {
this.dialogMadal = false
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
//折叠/展开基础信息方法
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.dialogMadal = true
this.itermsConditionsTitle = row
},
checkBD (id,id2,itemsNum) {
const itemsEoPage = {
oldItemId: id,
newItemId: id2,
flag: 1
}
if (!id || !id2) {
this.$message.warning('暂无找到相似的文本')
return
}
this.$http.post('lawss/sarStandCompareHis/clauseComparison', itemsEoPage, {
_this: this
}, res => {
if (res.data.leftString === '' && res.data.rightString === '') {
this.$message.warning('暂无找到相似的文本')
} else {
this.itemsNum = itemsNum
this.leftData = res.data.leftString
this.rightData = res.data.rightString
this.BDmodel = true
this.similarityDegree = res.data.similarityDegree
}
})
},
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.gcApplyFlag = 1
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo () {
if (this.commentText6) {
this.isSubmit = true
const json = this.json
json.gcApplyFlag = 2
json.commentText = this.commentText6
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.endTime = data.endTime || data.form.endTime
this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName
this.commentText6 = data.commentText6 || ''
if (data.form) {
this.form.itemsName1 = data.form.itemsName1 || '';
this.form.itemsNum1 = data.form.itemsNum1 || '';
} else {
this.form.itemsName1 = data.itemsName1 || '';
this.form.itemsNum1 = data.itemsNum1 || '';
}
this.sarType = data.standInData || data.sarType;
this.json = data;
this.itemLists = data.itemList;
this.itemList = this.itemLists.slice(this.tableIndex, 20);
this.itemList.forEach(item => {
if (item.complianceRequir === '1') {
item.complianceRequirShow = '符合';
} else {
item.complianceRequirShow = '不符合';
}
});
this.loading = false;
}).catch(e => {
})
})
},
},
mounted () {
this.getHistoryData()
this.getData()
},
}
</script>
<style lang="less" scoped>
@@ -115,12 +115,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios";
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
import ProcessHeader from "process/components/ProcessHeader";
import ProcessHeader from 'process/components/ProcessHeader';
export default {
name: "phoneBzpgStep2",
name: 'phoneBzpgStep2',
components: {
ProcessHeader,
ProcessFooter,
@@ -201,14 +201,14 @@ export default {
},
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: "INLAND_STAND"
pageType: 'INLAND_STAND'
}
});
window.open(routeUrl.href, "_blank");
window.open(routeUrl.href, '_blank');
},
//提交
handleSubmit(){
@@ -226,7 +226,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -252,7 +253,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -276,7 +278,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -147,7 +147,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -146,7 +146,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -146,7 +146,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -217,12 +217,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzpgStep6",
name: 'phoneBzpgStep6',
components: {
ProcessHeader,
ProcessFooter,
@@ -249,48 +249,48 @@ export default {
processType: 1,
loading: false,
dataList: [],//清单里的标准数据
active: "1",
active: '1',
userId:this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
listType: "country", //选择的清单类型
listType: 'country', //选择的清单类型
isSubmit: false,
saveLoading: false,
tabValue: "listOfCountries",
tabValue: 'listOfCountries',
selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框
bringData: [],
commentText: "", //填写会签意见
commentText: '', //填写会签意见
page: 1,
total: 0,
pageSize: this.$store.getters.userInfo.configContent,
listForm: {
passFlag: " ", //空为审批通过 1 为驳回
standNumber: "", //标准编号
standName: "",//标准名称
certifiedEngineer: "", //认证工程师
qualityEngineer: "", //质量工程师
certifiedEngineerName: "", //认证工程师
qualityEngineerName: "", //质量工程师
passFlag: ' ', //空为审批通过 1 为驳回
standNumber: '', //标准编号
standName: '',//标准名称
certifiedEngineer: '', //认证工程师
qualityEngineer: '', //质量工程师
certifiedEngineerName: '', //认证工程师
qualityEngineerName: '', //质量工程师
breakdownList: [{
applyArctic: "",
busStandCover: "",
claimType: "",
id: "",
itemsName: "",
itemsNum: "",
responsibleUnit: "", //责任部门
responsibleEngineer: "", //责任工程师
standId: "",
svpps: ""
applyArctic: '',
busStandCover: '',
claimType: '',
id: '',
itemsName: '',
itemsNum: '',
responsibleUnit: '', //责任部门
responsibleEngineer: '', //责任工程师
standId: '',
svpps: ''
}],
dataList: [{
projectLine: "", //产品线
uname: "",//产品线责任人
projectManager:"",// 产品线责任人id
distributePerson: "", //分发责任人
distributePersonId: "", //分发责任人id
id: "",
projectLine: '', //产品线
uname: '',//产品线责任人
projectManager:'',// 产品线责任人id
distributePerson: '', //分发责任人
distributePersonId: '', //分发责任人id
id: '',
sarStandProjectLibraries: [{
projectManager: '',
projectLevel: '',
@@ -310,11 +310,11 @@ export default {
},
choiceForm: {}, //选择标准清单列表
countryOptions: [], //适用区域下拉框数据
user1: "",
user2: "",
user3: "",
user4: "",
user5: "",
user1: '',
user2: '',
user3: '',
user4: '',
user5: '',
standMap: new Map()
};
},
@@ -337,7 +337,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -382,7 +383,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -424,14 +426,14 @@ export default {
},
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: "INLAND_STAND"
pageType: 'INLAND_STAND'
}
});
window.open(routeUrl.href, "_blank");
window.open(routeUrl.href, '_blank');
},
getData() {
return new Promise((resolve, reject) => {
@@ -497,7 +499,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -522,7 +525,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -227,12 +227,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzpgStep7",
name: 'phoneBzpgStep7',
components: {
ProcessHeader,
ProcessFooter,
@@ -262,48 +262,48 @@ export default {
processType: 1,
loading: false,
dataList: [],//清单里的标准数据
active: "1",
active: '1',
userId:this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
listType: "country", //选择的清单类型
listType: 'country', //选择的清单类型
isSubmit: false,
saveLoading: false,
tabValue: "listOfCountries",
tabValue: 'listOfCountries',
selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框
bringData: [],
commentText: "", //填写会签意见
commentText: '', //填写会签意见
page: 1,
total: 0,
pageSize: this.$store.getters.userInfo.configContent,
listForm: {
passFlag: " ", //空为审批通过 1 为驳回
standNumber: "", //标准编号
standName: "",//标准名称
certifiedEngineer: "", //认证工程师
qualityEngineer: "", //质量工程师
certifiedEngineerName: "", //认证工程师
qualityEngineerName: "", //质量工程师
passFlag: ' ', //空为审批通过 1 为驳回
standNumber: '', //标准编号
standName: '',//标准名称
certifiedEngineer: '', //认证工程师
qualityEngineer: '', //质量工程师
certifiedEngineerName: '', //认证工程师
qualityEngineerName: '', //质量工程师
breakdownList: [{
applyArctic: "",
busStandCover: "",
claimType: "",
id: "",
itemsName: "",
itemsNum: "",
responsibleUnit: "", //责任部门
responsibleEngineer: "", //责任工程师
standId: "",
svpps: ""
applyArctic: '',
busStandCover: '',
claimType: '',
id: '',
itemsName: '',
itemsNum: '',
responsibleUnit: '', //责任部门
responsibleEngineer: '', //责任工程师
standId: '',
svpps: ''
}],
dataList: [{
projectLine: "", //产品线
uname: "",//产品线责任人
projectManager:"",// 产品线责任人id
distributePerson: "", //分发责任人
distributePersonId: "", //分发责任人id
id: "",
projectLine: '', //产品线
uname: '',//产品线责任人
projectManager:'',// 产品线责任人id
distributePerson: '', //分发责任人
distributePersonId: '', //分发责任人id
id: '',
sarStandProjectLibraries: [{
projectManager: '',
projectLevel: '',
@@ -323,11 +323,11 @@ export default {
},
choiceForm: {}, //选择标准清单列表
countryOptions: [], //适用区域下拉框数据
user1: "",
user2: "",
user3: "",
user4: "",
user5: "",
user1: '',
user2: '',
user3: '',
user4: '',
user5: '',
standMap: new Map()
};
},
@@ -353,7 +353,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -398,7 +399,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -440,14 +442,14 @@ export default {
},
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: "INLAND_STAND"
pageType: 'INLAND_STAND'
}
});
window.open(routeUrl.href, "_blank");
window.open(routeUrl.href, '_blank');
},
getData() {
return new Promise((resolve, reject) => {
@@ -514,7 +516,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -227,12 +227,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzpgStep8",
name: 'phoneBzpgStep8',
components: {
ProcessHeader,
ProcessFooter,
@@ -261,48 +261,48 @@ export default {
processType: 1,
loading: false,
dataList: [],//清单里的标准数据
active: "1",
active: '1',
userId:this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
listType: "country", //选择的清单类型
listType: 'country', //选择的清单类型
isSubmit: false,
saveLoading: false,
tabValue: "listOfCountries",
tabValue: 'listOfCountries',
selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框
bringData: [],
commentText: "", //填写会签意见
commentText: '', //填写会签意见
page: 1,
total: 0,
pageSize: this.$store.getters.userInfo.configContent,
listForm: {
passFlag: " ", //空为审批通过 1 为驳回
standNumber: "", //标准编号
standName: "",//标准名称
certifiedEngineer: "", //认证工程师
qualityEngineer: "", //质量工程师
certifiedEngineerName: "", //认证工程师
qualityEngineerName: "", //质量工程师
passFlag: ' ', //空为审批通过 1 为驳回
standNumber: '', //标准编号
standName: '',//标准名称
certifiedEngineer: '', //认证工程师
qualityEngineer: '', //质量工程师
certifiedEngineerName: '', //认证工程师
qualityEngineerName: '', //质量工程师
breakdownList: [{
applyArctic: "",
busStandCover: "",
claimType: "",
id: "",
itemsName: "",
itemsNum: "",
responsibleUnit: "", //责任部门
responsibleEngineer: "", //责任工程师
standId: "",
svpps: ""
applyArctic: '',
busStandCover: '',
claimType: '',
id: '',
itemsName: '',
itemsNum: '',
responsibleUnit: '', //责任部门
responsibleEngineer: '', //责任工程师
standId: '',
svpps: ''
}],
dataList: [{
projectLine: "", //产品线
uname: "",//产品线责任人
projectManager:"",// 产品线责任人id
distributePerson: "", //分发责任人
distributePersonId: "", //分发责任人id
id: "",
projectLine: '', //产品线
uname: '',//产品线责任人
projectManager:'',// 产品线责任人id
distributePerson: '', //分发责任人
distributePersonId: '', //分发责任人id
id: '',
sarStandProjectLibraries: [{
projectManager: '',
projectLevel: '',
@@ -322,11 +322,11 @@ export default {
},
choiceForm: {}, //选择标准清单列表
countryOptions: [], //适用区域下拉框数据
user1: "",
user2: "",
user3: "",
user4: "",
user5: "",
user1: '',
user2: '',
user3: '',
user4: '',
user5: '',
standMap: new Map()
};
},
@@ -352,7 +352,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -397,7 +398,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -439,14 +441,14 @@ export default {
},
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: "INLAND_STAND"
pageType: 'INLAND_STAND'
}
});
window.open(routeUrl.href, "_blank");
window.open(routeUrl.href, '_blank');
},
getData() {
return new Promise((resolve, reject) => {
@@ -513,7 +515,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -147,7 +147,8 @@ export default {
this.$message.success(completeTaskRef.message)
this.footerLoading = false
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
},
handleTransfer () {
@@ -167,7 +168,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -148,7 +148,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -161,14 +161,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
import ProcessHeader from '../../components/ProcessHeader';
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzqdfbStep4",
name: 'phoneBzqdfbStep4',
components: {
ProcessHeader,
ProcessFooter,
@@ -190,38 +190,38 @@ export default {
processType: 1,
loading: false,
dataList: [],//清单里的标准数据
approvalOpinion: "", // 通过0/驳回1
active: "1",
listType: "country", //选择的清单类型
approvalOpinion: '', // 通过0/驳回1
active: '1',
listType: 'country', //选择的清单类型
isSubmit: false,
saveLoading: false,
tabValue: "listOfCountries",
tabValue: 'listOfCountries',
selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框
bringData: [],
commentText: "", //填写会签意见
commentText: '', //填写会签意见
fileList:[],
page: 1,
total: 0,
pageSize: this.$store.getters.userInfo.configContent,
listForm: {
fileIds: '',
listType: "", //区分是哪个清单
listName: "", //清单名称
descriptionList: "", //清单说明
enclosure: "", //附件
signFlag: "1", //是否会签 1为会签 2为不会签
approvalOpinion: "", // 通过/驳回
listType: '', //区分是哪个清单
listName: '', //清单名称
descriptionList: '', //清单说明
enclosure: '', //附件
signFlag: '1', //是否会签 1为会签 2为不会签
approvalOpinion: '', // 通过/驳回
dataList: [{
standNumber: "", //标准号
cnName: "", //中文名称
enName: "", //英文名称
isSubTime: "", //发布日期
newCarTime: "", //新车型实施日期
oldCarTime: "", //在产车实施日期
applyCar: "", //适用车型
textState: "", //标准状态
id: ""
standNumber: '', //标准号
cnName: '', //中文名称
enName: '', //英文名称
isSubTime: '', //发布日期
newCarTime: '', //新车型实施日期
oldCarTime: '', //在产车实施日期
applyCar: '', //适用车型
textState: '', //标准状态
id: ''
}]
},
choiceForm: {}, //选择标准清单列表
@@ -229,12 +229,12 @@ export default {
userId: this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
signFlag: "1", //是否会签 1为会签 2为不会签
user1: "",
user2: "",
user3: "",
user4: "",
user5: "",
signFlag: '1', //是否会签 1为会签 2为不会签
user1: '',
user2: '',
user3: '',
user4: '',
user5: '',
standMap: new Map(),
textStatusMap: {}// 标准状态id与name对应
};
@@ -262,28 +262,29 @@ export default {
this.phoneDrawerTitle = '转办处理人'
},
drawerCheck (data) {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.userId, // 被委托人
pId: this.pId // 流程实例
}).then(res =>{
if (res.success) {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.userId, // 被委托人
pId: this.pId // 流程实例
}).then(res =>{
if (res.success) {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
this.modalshowflag = false
},
//tab发生变化
@@ -295,14 +296,14 @@ export default {
},
// 点击查看
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.id,
pageType: "INLAND_STAND"
pageType: 'INLAND_STAND'
}
});
window.open(routeUrl.href, "_blank");
window.open(routeUrl.href, '_blank');
},
//保存事件
handleSave() {
@@ -330,13 +331,13 @@ export default {
this.listForm = JSON.parse(JSON.stringify(item));
this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id;
this.listForm['id'] = item.id;
this.listForm.dataList = item.dataList;
this.dataList = item.dataList;
this.listForm.applyUpdUserId = item.applyUpdUserId;
this.listForm.jlUserId = item.jlUserId;
this.listForm.zrUserId = item.zrUserId;
let filesId = []
const filesId = []
item.fileName.forEach(itemIds =>{
filesId.push(itemIds.id)
})
@@ -349,7 +350,7 @@ export default {
},
// 请求上传的文件信息
getFileInfo() {
this.$http.get("att/attFile/getMultiFileInfos", {
this.$http.get('att/attFile/getMultiFileInfos', {
fileIds: this.fileIds
}, {
_this: this
@@ -377,10 +378,10 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
},
// 驳回事件
@@ -389,11 +390,11 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.isSubmit = true
this.listForm.approvalOpinion = "1";
this.listForm.approvalOpinion = '1';
this.saveLoading = true
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -403,7 +404,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.saveLoading = false
@@ -414,10 +416,10 @@ export default {
//提交事件
handleSubmit() {
this.isSubmit = true;
this.listForm.approvalOpinion = "2";
this.listForm.approvalOpinion = '2';
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -427,7 +429,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -464,12 +467,12 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
mounted() {
//从数据库中查询下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
this.$http.get('sys/dictype/getDicTypeListCode', {}, {
_this: this
}, res => {
this.countryOptions = res.data.COUNTRY;
@@ -449,7 +449,7 @@ import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
@@ -458,7 +458,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBzrkStep2",
name: 'phoneBzrkStep2',
data() {
return {
commentText: '',
@@ -675,7 +675,8 @@ export default {
this.processNum()
this.queryProcess()
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
@@ -753,7 +754,7 @@ export default {
})
},
assemble(ids, names) {
let list = new Array();
const list = new Array();
let idArray = []
let nameArray = []
if (ids.length > 0) {
@@ -762,7 +763,7 @@ export default {
if (names.length > 0) {
nameArray = names.split(',');
}
for (var i = 0; i < idArray.length; i++) {
for (let i = 0; i < idArray.length; i++) {
list.push({id: idArray[i], name: nameArray[i]});
}
@@ -823,7 +824,7 @@ export default {
getFormFieldList(item) {
this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item))
let wssmrName = this.form.wssmrname || this.form.wssmr
const wssmrName = this.form.wssmrname || this.form.wssmr
this.form.wssmr = wssmrName
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
@@ -835,8 +836,8 @@ export default {
this.defaultCheckedKeys3 = [this.form.dybxh]
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? this.form.standYear : ''
if (this.form.country && this.form.country.indexOf(",") !== -1) {
this.form.country = this.form.country.split(",");
if (this.form.country && this.form.country.indexOf(',') !== -1) {
this.form.country = this.form.country.split(',');
}
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
@@ -848,7 +849,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -883,27 +884,27 @@ export default {
this.form.commentText = this.commentText;
this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
if (this.form.syrz.length === 0) {
this.form.syrz = "";
this.form.syrz = '';
}
if (this.form.nylx.length === 0) {
this.form.nylx = "";
this.form.nylx = '';
}
if (this.form.zrbm.length === 0) {
this.form.zrbm = "";
this.form.zrbm = '';
}
if (this.form.qcdw.length === 0) {
this.form.qcdw = "";
this.form.qcdw = '';
}
if (this.form.cllx.length === 0) {
this.form.cllx = "";
this.form.cllx = '';
}
if (this.form.sycpx.length === 0) {
this.form.sycpx = "";
this.form.sycpx = '';
}
if (this.form.zrgcs.length === 0) {
this.form.zrgcs = "";
this.form.zrgcs = '';
}
let qcdwName = []
const qcdwName = []
if(this.form.qcdw && this.form.qcdw.length > 0){
this.form.qcdw.map(item => {
this.qcdwOptions.forEach(items => {
@@ -919,7 +920,7 @@ export default {
this.form.qcdw = qcdwName
this.form.qcdw = qcdwName.splice(',')
const json = JSON.stringify(this.form);
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -927,13 +928,14 @@ export default {
_this: this
}, res => {
if (res.success) {
if (this.formTongGuo.approvalOpinion == "1") {
this.$message.warning("驳回成功");
if (this.formTongGuo.approvalOpinion == '1') {
this.$message.warning('驳回成功');
this.isSubmit = false;
this.formTongGuo.commentText = "";
this.formTongGuo.commentText = '';
// 流程提交之后,应该流转至待办任务页面
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
} else {
this.processCreateStand(json);
@@ -955,7 +957,8 @@ export default {
this.$message.success(res.data)
setTimeout(() => {
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({
// name: 'ProcessCenter'
// })
@@ -142,7 +142,8 @@ export default {
this.$message.success(completeTaskRef.message)
this.footerLoading = false
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
},
getDicTypeListCode () {
@@ -148,7 +148,8 @@ export default {
// this.$message.success(completeTaskRef.message)
// this.footerLoading = false
// setTimeout(() => {
// this.$router.go(-2)
// // this.$router.go(-2)
this.$close()
// }, 100)
},
getDicTypeListCode () {
@@ -103,229 +103,230 @@
</template>
<script>
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew} from "api/process";
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from 'api/process';
import axios from 'axios';
export default {
name: "phoneBzzqyjStep2",
data() {
return {
drawerModal: false,
histortData: [],
commentText2: "",
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
nodeList: [],
type: "",
modalshowflag: false, // drawer开关
drawerTitle: "", //drawer标题
textarea: "", // 意见
ListModel: false, // 新增编辑抽屉开关
active: "1", // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: "", // 编号
endTime: "", // 结束日期
cname: "", // 名称
fjList: [],
fjListId: '',
responUserList: "",
responUserListName: "",
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{ required: true, message: "请选择责任人", trigger: "change" }
]
},
json: {}
};
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
checkedRole2(data) {
var idList = "";
var nameList = "";
if (data.length) {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
}
this.form.responUserList = idList;
this.form.responUserListName = nameList;
},
choiceZRR() {
this.nodeList = [];
if (this.form.responUserList.length > 0) {
this.nodeList = this.form.responUserList.split(",");
}
this.modalshowflag = true;
},
handleTabs(name) {
this.active = name;
},
//保存事件
handleSave() {
this.saveLoading = true;
this.isSubmit = true
let _formData = new FormData();
_formData.append("id", this.bpnId || "");
_formData.append("prcType", "3");
_formData.append("taskIds", this.taskIds);
_formData.append("json", JSON.stringify({
form: this.form,
commentText2: this.commentText2
}));
saveTaskForPub(_formData).then(res => {
this.$message.success("保存成功");
this.bpnId = res.result;
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false
});
},
handleSubmit() {
this.$refs["bzzqyjForm"].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
var json = this.json;
json.onlyKey = this.onlyKey
json.commentText = this.commentText2;
json.responUserList = this.form.responUserList;
json.responUserListName = this.form.responUserListName;
json.presidentUser = this.form.presidentUser
json.presidentUserName = this.form.presidentUserName
json.introduce = false;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
});
} else {
return this.$message.warning("请完善基础信息");
}
});
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.onlyKey = data.form ? data.form.onlyKey : data.onlyKey
this.commentText2 = data.commentText2 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.startUserName = data.form ? data.form.startUserName : data.startUserName
this.form.startUser = data.form ? data.form.startUser : data.startUser
this.form.cid = data.form ? data.form.cid : data.cid
this.form.endTime = data.form ? data.form.endTime : data.endTime
this.form.fjList = data.form ? data.form.fjList : data.fjList
this.form.textType = data.form ? data.form.textType : data.textType
this.form.modelList = data.form ? data.form.modelList : data.modelList
this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '')
this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '')
this.json = data
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
export default {
name: 'phoneBzzqyjStep2',
data() {
return {
drawerModal: false,
histortData: [],
commentText2: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
nodeList: [],
type: '',
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
responUserList: '',
responUserListName: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{ required: true, message: '请选择责任人', trigger: 'change' }
]
},
json: {}
};
},
components: {
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.saveLoading = true
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
checkedRole2(data) {
let idList = '';
let nameList = '';
if (data.length) {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ',';
idList += ',';
}
idList += item.id;
nameList += item.name;
});
}
this.form.responUserList = idList;
this.form.responUserListName = nameList;
},
choiceZRR() {
this.nodeList = [];
if (this.form.responUserList.length > 0) {
this.nodeList = this.form.responUserList.split(',');
}
this.modalshowflag = true;
},
handleTabs(name) {
this.active = name;
},
//保存事件
handleSave() {
this.saveLoading = true;
this.isSubmit = true
const _formData = new FormData();
_formData.append('id', this.bpnId || '');
_formData.append('prcType', '3');
_formData.append('taskIds', this.taskIds);
_formData.append('json', JSON.stringify({
form: this.form,
commentText2: this.commentText2
}));
saveTaskForPub(_formData).then(res => {
this.$message.success('保存成功');
this.bpnId = res.result;
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false
});
},
handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
const json = this.json;
json.onlyKey = this.onlyKey
json.commentText = this.commentText2;
json.responUserList = this.form.responUserList;
json.responUserListName = this.form.responUserListName;
json.presidentUser = this.form.presidentUser
json.presidentUserName = this.form.presidentUserName
json.introduce = false;
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功');
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
});
} else {
return this.$message.warning('请完善基础信息');
}
});
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.onlyKey = data.form ? data.form.onlyKey : data.onlyKey
this.commentText2 = data.commentText2 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.startUserName = data.form ? data.form.startUserName : data.startUserName
this.form.startUser = data.form ? data.form.startUser : data.startUser
this.form.cid = data.form ? data.form.cid : data.cid
this.form.endTime = data.form ? data.form.endTime : data.endTime
this.form.fjList = data.form ? data.form.fjList : data.fjList
this.form.textType = data.form ? data.form.textType : data.textType
this.form.modelList = data.form ? data.form.modelList : data.modelList
this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '')
this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '')
this.json = data
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
};
</script>
<style lang="less" scoped>
@@ -59,16 +59,16 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
import Basic from "./componnets/Basic";
import SolicitationList from "./componnets/SolicitationList";
import Basic from './componnets/Basic';
import SolicitationList from './componnets/SolicitationList';
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
export default {
name: "step3",
name: 'step3',
components: {
ProcessHeaderPhone,
PhoneHistortTable,
@@ -153,7 +153,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -176,232 +176,235 @@
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep4-1",
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
data: [],
commentText41: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
bzfgId: '',
bzfgName: '',
},
formRules: {
bzfgId: [
{required: true, message: '请选择标准法规工程师分线管理员', trigger: 'change'},
]
},
json: {}
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
checkedRole2(data) {
this.form.bzfgId = data[0].id
this.form.bzfgName = data[0].name
},
choiceZRR(id) {
this.nodeList = []
this.nodeList.push(id)
this.modalshowflag = true;
},
dialogOk () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {
})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) {
this.isSubmit = true
let json = this.json
json.info = this.data
json.commentText = this.commentText41
json.bzfgId = this.form.bzfgId
json.bzfgName = this.form.bzfgName
json.spFlag = '0'
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请选择标准法规工程师分线管理员')
}
})
},
handleSubmitNo() {
if (this.commentText41) {
var json = this.json
json.spFlag = '1'
json.commentText = this.commentText41
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid
this.form.endTime = data.endTime || data.form.endTime
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
this.commentText41 = data.commentText41 || ''
this.form.bzfgId = data.startUser || data.form.startUser
this.form.bzfgName = data.startUserName || data.form.startUserName
this.json = data
this.data = data.info || data.data
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzzqyjStep4-1',
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
data: [],
commentText41: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
bzfgId: '',
bzfgName: '',
},
formRules: {
bzfgId: [
{required: true, message: '请选择标准法规工程师分线管理员', trigger: 'change'},
]
},
json: {}
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
checkedRole2(data) {
this.form.bzfgId = data[0].id
this.form.bzfgName = data[0].name
},
choiceZRR(id) {
this.nodeList = []
this.nodeList.push(id)
this.modalshowflag = true;
},
dialogOk () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {
})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) {
this.isSubmit = true
const json = this.json
json.info = this.data
json.commentText = this.commentText41
json.bzfgId = this.form.bzfgId
json.bzfgName = this.form.bzfgName
json.spFlag = '0'
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请选择标准法规工程师分线管理员')
}
})
},
handleSubmitNo() {
if (this.commentText41) {
const json = this.json
json.spFlag = '1'
json.commentText = this.commentText41
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid
this.form.endTime = data.endTime || data.form.endTime
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
this.commentText41 = data.commentText41 || ''
this.form.bzfgId = data.startUser || data.form.startUser
this.form.bzfgName = data.startUserName || data.form.startUserName
this.json = data
this.data = data.info || data.data
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
@@ -164,226 +164,229 @@
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep4-2",
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
data: [],
commentText42: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
bzfgId: '',
bzfgName: '',
},
formRules: {
responUserList: [
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
checkedRole2(data) {
this.form.bzfgId = data[0].id
this.form.bzfgName = data[0].name
},
choiceZRR(id) {
this.nodeList = []
this.nodeList.push(id)
this.modalshowflag = true;
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {
})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
let json = this.json
json.info = this.data
json.commentText = this.commentText42
json.bzFlag = '0'
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText42) {
var json = this.json
json.bzFlag = '1'
json.commentText = this.commentText42
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.form.fjList = data.fjList || data.form.fjList
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.commentText42 = data.commentText42 || ''
this.form.cid = data.cid || data.form.cid
this.form.endTime = data.endTime || data.form.endTime
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
this.form.bzfgId = data.bzfgId || ''
this.json = data
this.data = data.info || data.data
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData()
this.getData()
}
export default {
name: 'phoneBzzqyjStep4-2',
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
data: [],
commentText42: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
bzfgId: '',
bzfgName: '',
},
formRules: {
responUserList: [
{required: true, message: '请选择责任人', trigger: 'change'},
]
},
json: {}
}
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
checkedRole2(data) {
this.form.bzfgId = data[0].id
this.form.bzfgName = data[0].name
},
choiceZRR(id) {
this.nodeList = []
this.nodeList.push(id)
this.modalshowflag = true;
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
}, {}, res => {
this.histortData = res
}, e => {
})
},
handleTabs(name) {
this.active = name
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.info = this.data
json.commentText = this.commentText42
json.bzFlag = '0'
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText42) {
const json = this.json
json.bzFlag = '1'
json.commentText = this.commentText42
this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.form.fjList = data.fjList || data.form.fjList
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.commentText42 = data.commentText42 || ''
this.form.cid = data.cid || data.form.cid
this.form.endTime = data.endTime || data.form.endTime
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
this.form.bzfgId = data.bzfgId || ''
this.json = data
this.data = data.info || data.data
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData()
this.getData()
}
}
</script>
<style lang="less" scoped>
@@ -59,16 +59,16 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
import Basic from "./componnets/Basic";
import SolicitationList from "./componnets/SolicitationList";
import Basic from './componnets/Basic';
import SolicitationList from './componnets/SolicitationList';
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
import {inboundLiaisonDetail, changeAssigneeNew} from 'api/process'
export default {
name: "step3",
name: 'step3',
components: {
ProcessHeaderPhone,
PhoneHistortTable,
@@ -153,7 +153,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -59,16 +59,16 @@ import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHe
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
import Basic from "./componnets/Basic";
import SolicitationList from "./componnets/SolicitationList";
import Basic from './componnets/Basic';
import SolicitationList from './componnets/SolicitationList';
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
export default {
name: "step3",
name: 'step3',
components: {
ProcessHeaderPhone,
PhoneHistortTable,
@@ -153,7 +153,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -198,286 +198,289 @@
</template>
<script>
import { Dialog } from 'vant';
import isMobile from "@/store/isMobile";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import isMobile from '@/store/isMobile';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process';
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep6",
data() {
return {
data2: [],
commentText6: '',
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText: "",
oldText: "",
newText: "",
reason: "",
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: "",
defaultProps: {
children: "children",
label: "name"
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: "", //drawer标题
textarea: "", // 意见
ListModel: false, // 新增编辑抽屉开关
active: "1", // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: "", // 编号
endTime: "", // 结束日期
cname: "", // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
user7: '',
user7Name: ''
},
formRules: {
user7: [
{required: true, message: "请选择审批领导", trigger: "change"}
]
},
json: {}
};
export default {
name: 'phoneBzzqyjStep6',
data() {
return {
data2: [],
commentText6: '',
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText: '',
oldText: '',
newText: '',
reason: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
checkedRole2(data) {
var idList = "";
var nameList = "";
if (data.length) {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
}
this.form.user7 = idList;
this.form.user7Name = nameList;
},
choiceZRR() {
this.nodeList = [];
if (this.form.user7.length > 0) {
this.nodeList = this.form.user7.split(",");
}
this.modalshowflag = true;
},
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === "1") {
return "上报";
} else if (row === "2") {
return "处理后上报";
} else {
return "不上报";
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
var json = this.json;
json.hqFlag = '0';
json.commentText = this.commentText6;
json.user7 = this.form.user7;
json.user7Name = this.form.user7Name;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning('请选择审批领导')
}
})
},
handleSubmitNo() {
if (this.commentText6) {
this.isSubmit = true;
var json = this.json;
json.hqFlag = '1';
json.commentText = this.commentText6;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success("驳回成功");
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning("请输入反馈意见");
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg);
this.commentText6 = data.commentText6 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
if(data.form){
let user7Id = data.form.user7
if(user7Id){
this.form.user7 =user7Id
this.form.user7Name =data.form.user7Name
}else{
this.form.user7 = data.user7 ? data.user7 : data.spId
this.form.user7Name = data.user7Name ? data.user7Name : data.spName
}
}else{
this.form.user7 = data.user7 ? data.user7 : data.spId
this.form.user7Name = data.user7Name ? data.user7Name : data.spName
}
let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
let arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
user7: '',
user7Name: ''
},
formRules: {
user7: [
{required: true, message: '请选择审批领导', trigger: 'change'}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
checkedRole2(data) {
let idList = '';
let nameList = '';
if (data.length) {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ',';
idList += ',';
}
idList += item.id;
nameList += item.name;
});
}
this.form.user7 = idList;
this.form.user7Name = nameList;
},
choiceZRR() {
this.nodeList = [];
if (this.form.user7.length > 0) {
this.nodeList = this.form.user7.split(',');
}
this.modalshowflag = true;
},
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === '1') {
return '上报';
} else if (row === '2') {
return '处理后上报';
} else {
return '不上报';
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
const json = this.json;
json.hqFlag = '0';
json.commentText = this.commentText6;
json.user7 = this.form.user7;
json.user7Name = this.form.user7Name;
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功');
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning('请选择审批领导')
}
})
},
handleSubmitNo() {
if (this.commentText6) {
this.isSubmit = true;
const json = this.json;
json.hqFlag = '1';
json.commentText = this.commentText6;
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功');
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning('请输入反馈意见');
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg);
this.commentText6 = data.commentText6 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
if(data.form){
const user7Id = data.form.user7
if(user7Id){
this.form.user7 =user7Id
this.form.user7Name =data.form.user7Name
}else{
this.form.user7 = data.user7 ? data.user7 : data.spId
this.form.user7Name = data.user7Name ? data.user7Name : data.spName
}
}else{
this.form.user7 = data.user7 ? data.user7 : data.spId
this.form.user7Name = data.user7Name ? data.user7Name : data.spName
}
const newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
const arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
};
</script>
<style lang="less" scoped>
@@ -182,235 +182,238 @@
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from 'api/process';
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep7",
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText7: "",
oldText: "",
newText: "",
reason: "",
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: "",
defaultProps: {
children: "children",
label: "name"
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: "", //drawer标题
textarea: "", // 意见
ListModel: false, // 新增编辑抽屉开关
active: "1", // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: "", // 编号
endTime: "", // 结束日期
cname: "", // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === "1") {
return "上报";
} else if (row === "2") {
return "处理后上报";
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.bdFlag = '0'
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText7) {
this.isSubmit = true
var json = this.json
json.bdFlag = '1'
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.commentText7 = data.commentText7 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
let arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData();
this.getData();
}
export default {
name: 'phoneBzzqyjStep7',
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText7: '',
oldText: '',
newText: '',
reason: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: '请选择责任人', trigger: 'change'}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === '1') {
return '上报';
} else if (row === '2') {
return '处理后上报';
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.bdFlag = '0'
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText7) {
this.isSubmit = true
const json = this.json
json.bdFlag = '1'
json.commentText = this.commentText7
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.commentText7 = data.commentText7 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
const newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
const arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData();
this.getData();
}
};
</script>
<style lang="less" scoped>
@@ -183,237 +183,240 @@
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process';
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep8",
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText8: "",
oldText: "",
newText: "",
reason: "",
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: "",
defaultProps: {
children: "children",
label: "name"
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: "", //drawer标题
textarea: "", // 意见
ListModel: false, // 新增编辑抽屉开关
active: "1", // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: "", // 编号
endTime: "", // 结束日期
cname: "", // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === "1") {
return "上报";
} else if (row === "2") {
return "处理后上报";
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSave() {
},
handleSubmit() {
this.isSubmit = true
var json = this.json
json.directorFlag = '0'
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText8) {
this.isSubmit = true
var json = this.json
json.directorFlag = '1'
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.commentText8 = data.commentText8 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
let arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData();
this.getData();
}
export default {
name: 'phoneBzzqyjStep8',
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText8: '',
oldText: '',
newText: '',
reason: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: '请选择责任人', trigger: 'change'}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === '1') {
return '上报';
} else if (row === '2') {
return '处理后上报';
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSave() {
},
handleSubmit() {
this.isSubmit = true
const json = this.json
json.directorFlag = '0'
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmitNo() {
if (this.commentText8) {
this.isSubmit = true
const json = this.json
json.directorFlag = '1'
json.commentText = this.commentText8
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.commentText8 = data.commentText8 || ''
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
const newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
const arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data2 = newArr
this.data = arr
}).catch(e => {
})
})
},
},
mounted() {
this.getHistoryData();
this.getData();
}
};
</script>
<style lang="less" scoped>
@@ -183,251 +183,254 @@
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
import axios from "axios";
import hwh5 from '@/api/hwh5-cloudonline.js'
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter';
import ProcessTitle from '../../components/ProcessTitle';
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from 'api/process';
import axios from 'axios';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneBzzqyjStep9",
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText9: "",
oldText: "",
newText: "",
reason: "",
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: "",
defaultProps: {
children: "children",
label: "name"
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: "", //drawer标题
textarea: "", // 意见
ListModel: false, // 新增编辑抽屉开关
active: "1", // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: "", // 编号
endTime: "", // 结束日期
cname: "", // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: "请选择责任人", trigger: "change"}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
getBusStandFileByAttId(attId) { // 预览
return new Promise((resolve, reject) => {
getBusStandFileByAttId({
attId
}).then(res => {
if (res.ok) {
resolve(res.data)
} else {
reject()
}
}).catch(e => {
reject(e)
})
})
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
this.$router.go(-2)
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === "1") {
return "上报";
} else if (row === "2") {
return "处理后上报";
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.isSubmit = true;
var json = this.json;
json.presidentFlag = '0';
json.commentText = this.commentText9;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success("提交成功");
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
},
handleSubmitNo() {
if (this.commentText9) {
this.isSubmit = true;
var json = this.json;
json.presidentFlag = '1';
json.commentText = this.commentText9;
this.$http.post("lawss/activiti/completeTask", {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success("驳回成功");
// hwh5.close()
this.$router.go(-2)
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning("请输入反馈意见");
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
this.commentText9 = data.commentText9 || ''
this.onlyKey = data.form ? data.form.onlyKey :data.onlyKey
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
let newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
let arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data = arr
this.data2 = newArr
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
export default {
name: 'phoneBzzqyjStep9',
data() {
return {
itermsConditionsFlag: false,
itermsConditionsTitle: '',
drawerModal: false,
histortData: [],
oldData: [],
data: [],
commentText9: '',
oldText: '',
newText: '',
reason: '',
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
roleRow: {},
nodeList: [],
type: '',
defaultProps: {
children: 'children',
label: 'name'
},
treeData: [], // 人员数据
modalshowflag: false, // drawer开关
drawerTitle: '', //drawer标题
textarea: '', // 意见
ListModel: false, // 新增编辑抽屉开关
active: '1', // 默认显示
isSubmit: false,
saveLoading: false,
form: {
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
fjList: [],
fjListId: '',
textType: '',
modelList: [],
modelNameList: '',
},
formRules: {
responUserList: [
{required: true, message: '请选择责任人', trigger: 'change'}
]
},
json: {}
};
},
components: {
[Dialog.Component.name]: Dialog.Component,
ProcessHeaderPhone,
ProcessFooter,
ProcessTitle
},
methods: {
dialogOk () {
this.itermsConditionsFlag = false
},
filesUpload (file) { // 下载
const attId = file.attId
if (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
} else {
this.$message.warning('文件不存在,下载失败')
}
},
getBusStandFileByAttId(attId) { // 预览
return new Promise((resolve, reject) => {
getBusStandFileByAttId({
attId
}).then(res => {
if (res.ok) {
resolve(res.data)
} else {
reject()
}
}).catch(e => {
reject(e)
})
})
},
fileLook(file) { // 预览
const attId = file.attId
this.$preview(attId)
},
itermsConditionsClose () {
this.itermsConditionsFlag = false
},
itermsConditionsOpen (row) {
this.itermsConditionsFlag = true
this.itermsConditionsTitle = row
},
downloadFile (attId) {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
},
handleTransfer() {
this.drawerModal = true
},
checkedRole (data) {
this.isSubmit = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.account, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.processNum()
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.isSubmit = false
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
updataFj(item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
getHistoryData() {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum
}, {}, res => {
this.histortData = res;
}, e => {
});
},
stateText(row) {
if (row === '1') {
return '上报';
} else if (row === '2') {
return '处理后上报';
}
},
upload(row, title) {
this.$message.warning('手机端不支持该操作')
},
handleTabs(name) {
this.active = name;
},
handleSubmit() {
this.isSubmit = true;
const json = this.json;
json.presidentFlag = '0';
json.commentText = this.commentText9;
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('提交成功');
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
},
handleSubmitNo() {
if (this.commentText9) {
this.isSubmit = true;
const json = this.json;
json.presidentFlag = '1';
json.commentText = this.commentText9;
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskIds: this.taskIds,
userId: this.$store.getters.userInfo.account
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功');
// hwh5.close()
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
});
} else {
this.$message.warning('请输入反馈意见');
}
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
const data = JSON.parse(res.mesg)
this.commentText9 = data.commentText9 || ''
this.onlyKey = data.form ? data.form.onlyKey :data.onlyKey
this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.form.fjList = data.fjList || data.form.fjList
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.textType = data.textType || data.form.textType
this.form.modelList = data.modelList || data.form.modelList
const newArr = data.info ? data.info : data.form.data
this.oldData = JSON.parse(JSON.stringify(newArr))
const arr = []
newArr.forEach(item => {
if (item.state !== '3') {
arr.push(item)
}
})
this.json = data
this.data = arr
this.data2 = newArr
}).catch(e => {
});
});
}
},
mounted() {
this.getHistoryData();
this.getData();
}
};
</script>
<style lang="less" scoped>
@@ -108,13 +108,13 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { inboundLiaisonDetail } from "api/process";
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneCywbbzzxdStep2",
name: 'phoneCywbbzzxdStep2',
components: {
ProcessHeaderPhone,
ProcessTitle,
@@ -130,17 +130,17 @@ export default {
modalshowflag: false, // drawer开关
modalshowflag2: false,
nodeList2: [],
drawerTitle: "", //drawer标题
drawerTitle: '', //drawer标题
nodeList: [],
roleForm: {
prcCreateUserName: this.$store.getters.userInfo.userName,
prcCreateUser: this.$store.getters.userInfo.account,
dockUser: "",
directorUser: "",
workPeople: "",
dockUserName: "",
workPeopleName: "",
directorUserName: ""
dockUser: '',
directorUser: '',
workPeople: '',
dockUserName: '',
workPeopleName: '',
directorUserName: ''
},
roleFormRules: {
// dockUserName: [
@@ -192,30 +192,30 @@ export default {
choiceZRRS() {
this.nodeList2 = [];
if (this.roleForm.workPeople.length > 0) {
this.nodeList2 = this.roleForm.workPeople.split(",");
this.nodeList2 = this.roleForm.workPeople.split(',');
}
this.modalshowflag2 = true;
},
checkedRole(data) {
if (this.type === "dockUser") {
if (this.type === 'dockUser') {
this.roleForm.dockUser = this.roleRow.id;
this.roleForm.dockUserName = this.roleRow.name;
} else if (this.type === "directorUser") {
} else if (this.type === 'directorUser') {
this.roleForm.directorUser = data[0].id;
this.roleForm.directorUserName = data[0].name;
} else if(this.type === "workPeople"){
} else if(this.type === 'workPeople'){
this.roleForm.workPeople = data[0].id;
this.roleForm.workPeopleName = data[0].name;
}
this.modalshowflag = false;
},
checkedRole2(data) {
var idList = "";
var nameList = "";
let idList = '';
let nameList = '';
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
nameList += ',';
idList += ',';
}
idList += item.id;
nameList += item.name;
@@ -225,11 +225,11 @@ export default {
},
handleSubmit(){
if(this.roleForm.workPeople !== undefined){
let json = this.roleForm
this.$refs["Form"].validate((valid) => {
const json = this.roleForm
this.$refs['Form'].validate((valid) => {
if (valid) {
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -239,13 +239,14 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善人员信息");
return this.$message.warning('请完善人员信息');
}
});
}else{
@@ -207,14 +207,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneCywbbzzxdStep4",
name: 'phoneCywbbzzxdStep4',
components: {
ProcessHeader,
ProcessTitle,
@@ -227,7 +227,7 @@ export default {
phoneRoleList: [],
phoneDrawerTitle: '',
//tab
active: "1",
active: '1',
foldFormFlag: true,
isSubmit: false,
recordLoading: false,
@@ -239,20 +239,20 @@ export default {
detailData: [], //
nodeList: [],
wbbzform: {
reportingUnit: "",
standNumber: "",
hostOrTask: "",
participants: "",
standMechanism: "",
partakeTime: "",
standName: "",
standType: "",
standRevise: "",
releaseTime: ""
reportingUnit: '',
standNumber: '',
hostOrTask: '',
participants: '',
standMechanism: '',
partakeTime: '',
standName: '',
standType: '',
standRevise: '',
releaseTime: ''
},
formRules: {
reportingUnit: [
{ required: true, message: "请输入提报单位", trigger: "change" }
{ required: true, message: '请输入提报单位', trigger: 'change' }
]
},
participantsData: [],
@@ -263,14 +263,14 @@ export default {
// costBudget:'',
// }], //
associationOptions: [{
value: "选项1",
label: "1"
value: '选项1',
label: '1'
}, {
value: "选项2",
label: "2"
value: '选项2',
label: '2'
}, {
value: "选项3",
label: "3"
value: '选项3',
label: '3'
}]
};
},
@@ -317,15 +317,15 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
signFlag: '2',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -335,36 +335,37 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
},
handleSubmit() {
if (this.participantsData.length < 1) {
this.$message.warning("项目信息不能为空");
this.$message.warning('项目信息不能为空');
} else {
this.participantsData.forEach(item => {
if (item.projectNumber === undefined) {
this.$message.warning("请完善项目信息");
this.$message.warning('请完善项目信息');
}
});
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
signFlag: '1',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -374,13 +375,14 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
@@ -407,7 +409,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -420,7 +423,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
};
@@ -207,14 +207,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneCywbbzzxdStep5",
name: 'phoneCywbbzzxdStep5',
components: {
ProcessHeader,
ProcessTitle,
@@ -227,7 +227,7 @@ export default {
phoneRoleList: [],
phoneDrawerTitle: '',
//tab
active: "1",
active: '1',
foldFormFlag: true,
isSubmit: false,
recordLoading: false,
@@ -239,20 +239,20 @@ export default {
detailData: [], //
nodeList: [],
wbbzform: {
reportingUnit: "",
standNumber: "",
hostOrTask: "",
participants: "",
standMechanism: "",
partakeTime: "",
standName: "",
standType: "",
standRevise: "",
releaseTime: ""
reportingUnit: '',
standNumber: '',
hostOrTask: '',
participants: '',
standMechanism: '',
partakeTime: '',
standName: '',
standType: '',
standRevise: '',
releaseTime: ''
},
formRules: {
reportingUnit: [
{ required: true, message: "请输入提报单位", trigger: "change" }
{ required: true, message: '请输入提报单位', trigger: 'change' }
]
},
participantsData: [],
@@ -263,14 +263,14 @@ export default {
// costBudget:'',
// }], //
associationOptions: [{
value: "选项1",
label: "1"
value: '选项1',
label: '1'
}, {
value: "选项2",
label: "2"
value: '选项2',
label: '2'
}, {
value: "选项3",
label: "3"
value: '选项3',
label: '3'
}]
};
},
@@ -317,15 +317,15 @@ export default {
this.$message.warning('请填写审批意见')
}else {
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
signFlag: '2',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -335,36 +335,37 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
},
handleSubmit() {
if (this.participantsData.length < 1) {
this.$message.warning("项目信息不能为空");
this.$message.warning('项目信息不能为空');
} else {
this.participantsData.forEach(item => {
if (item.projectNumber === undefined) {
this.$message.warning("请完善项目信息");
this.$message.warning('请完善项目信息');
}
});
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
signFlag: '1',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -374,13 +375,14 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
@@ -407,7 +409,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -420,7 +423,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
};
@@ -207,14 +207,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneCywbbzzxdStep6",
name: 'phoneCywbbzzxdStep6',
components: {
ProcessHeader,
ProcessTitle,
@@ -227,7 +227,7 @@ export default {
phoneRoleList: [],
phoneDrawerTitle: '',
//tab
active: "1",
active: '1',
foldFormFlag: true,
isSubmit: false,
recordLoading: false,
@@ -239,20 +239,20 @@ export default {
detailData: [], //
nodeList: [],
wbbzform: {
reportingUnit: "",
standNumber: "",
hostOrTask: "",
participants: "",
standMechanism: "",
partakeTime: "",
standName: "",
standType: "",
standRevise: "",
releaseTime: ""
reportingUnit: '',
standNumber: '',
hostOrTask: '',
participants: '',
standMechanism: '',
partakeTime: '',
standName: '',
standType: '',
standRevise: '',
releaseTime: ''
},
formRules: {
reportingUnit: [
{ required: true, message: "请输入提报单位", trigger: "change" }
{ required: true, message: '请输入提报单位', trigger: 'change' }
]
},
participantsData: [],
@@ -263,14 +263,14 @@ export default {
// costBudget:'',
// }], //
associationOptions: [{
value: "选项1",
label: "1"
value: '选项1',
label: '1'
}, {
value: "选项2",
label: "2"
value: '选项2',
label: '2'
}, {
value: "选项3",
label: "3"
value: '选项3',
label: '3'
}]
};
},
@@ -317,15 +317,15 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
bzFlag: '2',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -335,36 +335,37 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
},
handleSubmit() {
if (this.participantsData.length < 1) {
this.$message.warning("项目信息不能为空");
this.$message.warning('项目信息不能为空');
} else {
this.participantsData.forEach(item => {
if (item.projectNumber === undefined) {
this.$message.warning("请完善项目信息");
this.$message.warning('请完善项目信息');
}
});
this.wbbzform.commentText = this.commentText;
let json = {
const json = {
participantsData: this.participantsData,
wbbzform: this.wbbzform,
bzFlag: '1',
};
this.$refs["wbbzForm"].validate((valid) => {
this.$refs['wbbzForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: JSON.stringify(json)
@@ -374,13 +375,14 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善基础信息");
return this.$message.warning('请完善基础信息');
}
});
}
@@ -407,7 +409,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -420,7 +423,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
};
@@ -246,15 +246,15 @@
</template>
<script>
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneJrbzhxhStep3",
name: 'phoneJrbzhxhStep3',
components: {
ProcessHeader,
ProcessTitle,
@@ -265,9 +265,9 @@ export default {
return {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: "",
phoneDrawerTitle: '',
//tab
active: "1",
active: '1',
foldFormFlag: true,
isSubmit: false,
isTransfer: false,
@@ -275,11 +275,11 @@ export default {
loading: false,
modalshowflag: false,
drawerModal: false,
drawerTitle: "",
drawerTitle: '',
nodeList: [],
fileList:[],
commentText: '',
uploadFileListPath: "api/att/attFile/uploadNew", //
uploadFileListPath: 'api/att/attFile/uploadNew', //
fileInfoList: [], //
userId: this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
@@ -315,7 +315,7 @@ export default {
participantsData: [], //
associationData: [], //
detailData: [], //
selectedId: "",
selectedId: '',
associationOptions: [{
value: '选项1',
label: '1'
@@ -343,7 +343,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -354,7 +355,7 @@ export default {
choiceZRRS(row, index) {
this.selectedId = index;
this.drawerTitle = "选择责任人";
this.drawerTitle = '选择责任人';
this.nodeList = [];
this.zrIndex = index;
this.nodeList.push(row);
@@ -362,7 +363,7 @@ export default {
},
checkedRole(data) {
if (this.participantsData.length > 1) {
let parList = data
const parList = data
this.participantsData.forEach(item => {
parList.forEach(items => {
if (items.name === item.workPeople) {
@@ -376,7 +377,7 @@ export default {
} else {
this.participantsData = data
this.participantsData.forEach(item => {
this.$set(item, "workPeople", item.name)
this.$set(item, 'workPeople', item.name)
});
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
}
@@ -438,7 +439,7 @@ export default {
},
//
getFileInfo() {
this.$http.get("att/attFile/getMultiFileInfos", {
this.$http.get('att/attFile/getMultiFileInfos', {
fileIds: this.fileIds
}, {
_this: this
@@ -461,17 +462,17 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
},
//
handleTransfer() {
this.phoneshowflag = true;
this.phoneRoleList = this.roleTransfer;
this.phoneDrawerTitle = "转办处理人";
this.phoneDrawerTitle = '转办处理人';
},
//
drawerCheck(data) {
@@ -487,9 +488,10 @@ export default {
}).then(res => {
if (res.success) {
this.turnLoading = false;
this.$message.success("调整成功");
this.$message.success('调整成功');
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
} else {
this.$message.warning(res.message);
@@ -502,13 +504,13 @@ export default {
//
handleSubmit() {
this.isSubmit = true;
this.wbbzform.signFlag = "1"
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.signFlag = '1'
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData;
this.wbbzform.associationData = this.associationData;
var json = JSON.stringify(this.wbbzform);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.wbbzform);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -518,7 +520,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -529,16 +532,16 @@ export default {
//
beforeBack() {
if (!this.commentText) {
this.$message.warning("请填写审批意见");
this.$message.warning('请填写审批意见');
} else {
this.isSubmit = true;
this.wbbzform.signFlag = "0"
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.signFlag = '0'
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData;
this.wbbzform.associationData = this.associationData;
var json = JSON.stringify(this.wbbzform);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.wbbzform);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -548,7 +551,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -563,7 +567,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
};
@@ -248,14 +248,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneJrbzhxhStep4",
name: 'phoneJrbzhxhStep4',
components: {
ProcessHeader,
ProcessTitle,
@@ -268,7 +268,7 @@ export default {
phoneRoleList: [],
phoneDrawerTitle: '',
//tab
active: "1",
active: '1',
foldFormFlag: true,
isSubmit: false,
isTransfer: false,
@@ -280,7 +280,7 @@ export default {
nodeList: [],
fileList:[],
commentText: '',
uploadFileListPath: "api/att/attFile/uploadNew", //
uploadFileListPath: 'api/att/attFile/uploadNew', //
fileInfoList: [], //
userId: this.$store.getters.userInfo.account,
taskIds: this.$route.query.taskIds,
@@ -316,7 +316,7 @@ export default {
participantsData: [], //
associationData: [], //
detailData: [], //
selectedId: "",
selectedId: '',
associationOptions: [{
value: '选项1',
label: '1'
@@ -344,7 +344,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -355,7 +356,7 @@ export default {
choiceZRRS(row, index) {
this.selectedId = index;
this.drawerTitle = "选择责任人";
this.drawerTitle = '选择责任人';
this.nodeList = [];
this.zrIndex = index;
this.nodeList.push(row);
@@ -363,7 +364,7 @@ export default {
},
checkedRole(data) {
if (this.participantsData.length > 1) {
let parList = data
const parList = data
this.participantsData.forEach(item => {
parList.forEach(items => {
if (items.name === item.workPeople) {
@@ -377,7 +378,7 @@ export default {
} else {
this.participantsData = data
this.participantsData.forEach(item => {
this.$set(item, "workPeople", item.name)
this.$set(item, 'workPeople', item.name)
});
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
}
@@ -424,7 +425,7 @@ export default {
},
//
getFileInfo() {
this.$http.get("att/attFile/getMultiFileInfos", {
this.$http.get('att/attFile/getMultiFileInfos', {
fileIds: this.fileIds
}, {
_this: this
@@ -447,10 +448,10 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
},
//
@@ -475,7 +476,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -489,12 +491,12 @@ export default {
handleSubmit() {
this.isSubmit = true
this.wbbzform.bzFlag = '1',
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData
this.wbbzform.associationData = this.associationData
var json = JSON.stringify( this.wbbzform)
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify( this.wbbzform)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -504,7 +506,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -516,12 +519,12 @@ export default {
beforeBack(){
this.isSubmit = true
this.wbbzform.bzFlag = '2'
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.passUser = this.$store.getters.userInfo.account
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData
this.wbbzform.associationData = this.associationData
var json = JSON.stringify( this.wbbzform)
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify( this.wbbzform)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -531,7 +534,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -545,7 +549,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
};
@@ -617,7 +617,8 @@ export default {
})
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
} else {
this.submitLoading = false
@@ -725,7 +726,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -81,14 +81,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbfzStep2",
name: 'phoneQbfzStep2',
components: {
ProcessHeader,
ProcessTitle,
@@ -110,7 +110,7 @@ export default {
isTransfer: false,
//
drawerModal: false,
drawerTitle: "", //drawer
drawerTitle: '', //drawer
modalshowflag: false, // drawer
loading: false,
qbfsForm:{
@@ -128,11 +128,11 @@ export default {
jgUserId: '',
},
roleForm: {
jgUser: ""
jgUser: ''
},
formRules: {
jgUser: [
{required: true, message: "请选择工作组成员", trigger: "change"}
{required: true, message: '请选择工作组成员', trigger: 'change'}
],
},
}
@@ -143,12 +143,12 @@ export default {
},
methods:{
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -188,7 +188,7 @@ export default {
this.isSubmit = true
this.qbfsForm.passFlag = '1'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -199,7 +199,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -212,7 +213,7 @@ export default {
this.isSubmit = true
this.qbfsForm.passFlag = '0'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -223,7 +224,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -252,7 +254,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -288,12 +291,12 @@ export default {
this.modalshowflag = true;
},
checkedRole(data) {
var idList = "";
var nameList = "";
let idList = '';
let nameList = '';
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
nameList += ',';
idList += ',';
}
idList += item.id;
nameList += item.name;
@@ -304,7 +307,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
};
@@ -157,7 +157,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -116,13 +116,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbfzStep5",
name: 'phoneQbfzStep5',
components: {
ProcessTitle,
ProcessHeader,
@@ -134,45 +134,45 @@ export default {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
active: "1",
active: '1',
isTransfer: false,
isSubmit: false,
saveLoading: false,
drawerModal: false,
drawerTitle: "",
drawerTitle: '',
nodeList: [],
fileList: [],
commentText: "",
commentText: '',
dataList: [],
detailData: [],
loading: false,
foldFormFlag: false,
qbfsForm: {
entNumber: "",
cnName: "",
enName: "",
entCategory: "",
replaceNumber: "",
replacedNumber: "",
releaseDate: "",
implementDate: "",
reviewDate: "",
nextStatus: ""
entNumber: '',
cnName: '',
enName: '',
entCategory: '',
replaceNumber: '',
replacedNumber: '',
releaseDate: '',
implementDate: '',
reviewDate: '',
nextStatus: ''
},
formRules: {
nextStatus: [
{ required: true, message: "请选择下一步状态", trigger: "change" }
{ required: true, message: '请选择下一步状态', trigger: 'change' }
]
},
associationOptions: [{
value: "修订",
label: "修订"
value: '修订',
label: '修订'
}, {
value: "废止",
label: "废止"
value: '废止',
label: '废止'
}, {
value: "有效",
label: "有效"
value: '有效',
label: '有效'
}]
};
},
@@ -182,12 +182,12 @@ export default {
},
methods: {
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res;
@@ -215,13 +215,13 @@ export default {
console.log(item);
this.$nextTick(() => {
this.qbfsForm = JSON.parse(JSON.stringify(item));
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
res = res.split(",");
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
res = res.split(',');
this.dataList = [];
res.forEach(item => {
this.dataList.push({
opinion: item.split("-")[1],
people: item.split("-")[0]
opinion: item.split('-')[1],
people: item.split('-')[0]
});
});
});
@@ -273,7 +273,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -286,9 +287,9 @@ export default {
//
processNum(row) {
axios.request({
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
responseType: "blob",
method: "get",
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
@@ -302,16 +303,16 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
}
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbfzStep5",
name: 'phoneQbfzStep5',
components: {
ProcessTitle,
ProcessHeader,
@@ -132,45 +132,45 @@ export default {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
active: "1",
active: '1',
isTransfer: false,
isSubmit: false,
saveLoading: false,
drawerModal: false,
drawerTitle: "",
drawerTitle: '',
nodeList: [],
fileList: [],
commentText: "",
commentText: '',
dataList: [],
detailData: [],
loading: false,
foldFormFlag: false,
qbfsForm: {
entNumber: "",
cnName: "",
enName: "",
entCategory: "",
replaceNumber: "",
replacedNumber: "",
releaseDate: "",
implementDate: "",
reviewDate: "",
nextStatus: ""
entNumber: '',
cnName: '',
enName: '',
entCategory: '',
replaceNumber: '',
replacedNumber: '',
releaseDate: '',
implementDate: '',
reviewDate: '',
nextStatus: ''
},
formRules: {
nextStatus: [
{ required: true, message: "请选择下一步状态", trigger: "change" }
{ required: true, message: '请选择下一步状态', trigger: 'change' }
]
},
associationOptions: [{
value: "修订",
label: "修订"
value: '修订',
label: '修订'
}, {
value: "废止",
label: "废止"
value: '废止',
label: '废止'
}, {
value: "有效",
label: "有效"
value: '有效',
label: '有效'
}]
};
},
@@ -180,12 +180,12 @@ export default {
},
methods: {
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res;
@@ -213,13 +213,13 @@ export default {
console.log(item);
this.$nextTick(() => {
this.qbfsForm = JSON.parse(JSON.stringify(item));
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
res = res.split(",");
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
res = res.split(',');
this.dataList = [];
res.forEach(item => {
this.dataList.push({
opinion: item.split("-")[1],
people: item.split("-")[0]
opinion: item.split('-')[1],
people: item.split('-')[0]
});
});
});
@@ -233,8 +233,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bzFlag = '1'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -244,7 +244,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -260,8 +261,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bzFlag = '0'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -271,7 +272,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -311,7 +313,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -324,9 +327,9 @@ export default {
//
processNum(row) {
axios.request({
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
responseType: "blob",
method: "get",
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
@@ -340,16 +343,16 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
}
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbfzStep5",
name: 'phoneQbfzStep5',
components: {
ProcessTitle,
ProcessHeader,
@@ -132,45 +132,45 @@ export default {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
active: "1",
active: '1',
isTransfer: false,
isSubmit: false,
saveLoading: false,
drawerModal: false,
drawerTitle: "",
drawerTitle: '',
nodeList: [],
fileList: [],
commentText: "",
commentText: '',
dataList: [],
detailData: [],
loading: false,
foldFormFlag: false,
qbfsForm: {
entNumber: "",
cnName: "",
enName: "",
entCategory: "",
replaceNumber: "",
replacedNumber: "",
releaseDate: "",
implementDate: "",
reviewDate: "",
nextStatus: ""
entNumber: '',
cnName: '',
enName: '',
entCategory: '',
replaceNumber: '',
replacedNumber: '',
releaseDate: '',
implementDate: '',
reviewDate: '',
nextStatus: ''
},
formRules: {
nextStatus: [
{ required: true, message: "请选择下一步状态", trigger: "change" }
{ required: true, message: '请选择下一步状态', trigger: 'change' }
]
},
associationOptions: [{
value: "修订",
label: "修订"
value: '修订',
label: '修订'
}, {
value: "废止",
label: "废止"
value: '废止',
label: '废止'
}, {
value: "有效",
label: "有效"
value: '有效',
label: '有效'
}]
};
},
@@ -180,12 +180,12 @@ export default {
},
methods: {
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res;
@@ -213,13 +213,13 @@ export default {
console.log(item);
this.$nextTick(() => {
this.qbfsForm = JSON.parse(JSON.stringify(item));
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
res = res.split(",");
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
res = res.split(',');
this.dataList = [];
res.forEach(item => {
this.dataList.push({
opinion: item.split("-")[1],
people: item.split("-")[0]
opinion: item.split('-')[1],
people: item.split('-')[0]
});
});
});
@@ -233,8 +233,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.sdFlag = '1'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -244,7 +244,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -258,8 +259,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.sdFlag = '0'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -269,7 +270,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -305,7 +307,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -318,9 +321,9 @@ export default {
//
processNum(row) {
axios.request({
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
responseType: "blob",
method: "get",
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
@@ -334,16 +337,16 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
}
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbfzStep7",
name: 'phoneQbfzStep7',
components: {
ProcessTitle,
ProcessHeader,
@@ -132,45 +132,45 @@ export default {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
active: "1",
active: '1',
isTransfer: false,
isSubmit: false,
saveLoading: false,
drawerModal: false,
drawerTitle: "",
drawerTitle: '',
nodeList: [],
fileList: [],
commentText: "",
commentText: '',
dataList: [],
detailData: [],
loading: false,
foldFormFlag: false,
qbfsForm: {
entNumber: "",
cnName: "",
enName: "",
entCategory: "",
replaceNumber: "",
replacedNumber: "",
releaseDate: "",
implementDate: "",
reviewDate: "",
nextStatus: ""
entNumber: '',
cnName: '',
enName: '',
entCategory: '',
replaceNumber: '',
replacedNumber: '',
releaseDate: '',
implementDate: '',
reviewDate: '',
nextStatus: ''
},
formRules: {
nextStatus: [
{ required: true, message: "请选择下一步状态", trigger: "change" }
{ required: true, message: '请选择下一步状态', trigger: 'change' }
]
},
associationOptions: [{
value: "修订",
label: "修订"
value: '修订',
label: '修订'
}, {
value: "废止",
label: "废止"
value: '废止',
label: '废止'
}, {
value: "有效",
label: "有效"
value: '有效',
label: '有效'
}]
};
},
@@ -180,12 +180,12 @@ export default {
},
methods: {
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res;
@@ -213,13 +213,13 @@ export default {
console.log(item);
this.$nextTick(() => {
this.qbfsForm = JSON.parse(JSON.stringify(item));
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
res = res.split(",");
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
res = res.split(',');
this.dataList = [];
res.forEach(item => {
this.dataList.push({
opinion: item.split("-")[1],
people: item.split("-")[0]
opinion: item.split('-')[1],
people: item.split('-')[0]
});
});
});
@@ -233,8 +233,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bafzFlag = '1'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -244,7 +244,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -260,8 +261,8 @@ export default {
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bafzFlag = '0'
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
json: json
@@ -271,7 +272,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false;
@@ -311,7 +313,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -324,9 +327,9 @@ export default {
//
processNum(row) {
axios.request({
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
responseType: "blob",
method: "get",
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
@@ -340,16 +343,16 @@ export default {
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件');
}
}
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
}
@@ -235,27 +235,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk-product/common/formList";
import formList from 'process/phone/qbrk-product/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibraryProduct10",
name: 'phoneBussLibraryProduct10',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -685,21 +685,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -708,7 +708,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -737,8 +737,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -769,10 +769,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -780,8 +780,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -810,10 +810,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -835,10 +835,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -852,7 +852,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -910,7 +910,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -967,7 +968,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1033,96 +1034,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1133,17 +1134,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1211,8 +1212,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1243,7 +1244,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1255,15 +1256,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1323,8 +1324,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1332,8 +1333,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1341,8 +1342,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1462,7 +1463,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1520,10 +1521,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1581,9 +1582,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1595,22 +1596,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1630,22 +1631,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1653,29 +1654,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1687,7 +1688,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1701,8 +1702,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1717,8 +1718,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1733,8 +1734,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1751,7 +1752,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1771,7 +1772,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1800,20 +1801,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1833,7 +1834,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1841,7 +1842,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1858,19 +1859,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1930,13 +1931,14 @@ export default {
if (res.success) {
//
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1991,16 +1993,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2037,12 +2039,12 @@ export default {
}
},
processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -235,27 +235,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk-product/common/formList";
import formList from 'process/phone/qbrk-product/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibraryProduct12",
name: 'phoneBussLibraryProduct12',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -685,21 +685,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -708,7 +708,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -737,8 +737,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -769,10 +769,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -780,8 +780,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -810,10 +810,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -835,10 +835,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -852,7 +852,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -910,7 +910,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -967,7 +968,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1033,96 +1034,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1133,17 +1134,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1211,8 +1212,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1243,7 +1244,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1255,15 +1256,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1323,8 +1324,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1332,8 +1333,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1341,8 +1342,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1462,7 +1463,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1520,10 +1521,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1581,9 +1582,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1595,22 +1596,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1630,22 +1631,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1653,29 +1654,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1687,7 +1688,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1701,8 +1702,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1717,8 +1718,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1733,8 +1734,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1751,7 +1752,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1771,7 +1772,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1800,20 +1801,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1833,7 +1834,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1841,7 +1842,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1858,19 +1859,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1930,13 +1931,14 @@ export default {
if (res.success) {
//
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1991,16 +1993,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2037,12 +2039,12 @@ export default {
}
},
processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -158,7 +158,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -164,7 +164,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -233,17 +233,17 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk-product/common/formList";
import formList from 'process/phone/qbrk-product/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
@@ -252,7 +252,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibraryProduct4",
name: 'phoneBussLibraryProduct4',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -683,21 +683,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -706,7 +706,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -735,8 +735,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -767,10 +767,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -778,8 +778,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -808,10 +808,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -833,10 +833,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -850,7 +850,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -908,7 +908,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -965,7 +966,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1031,96 +1032,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1131,17 +1132,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1209,8 +1210,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1241,7 +1242,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1253,15 +1254,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1321,8 +1322,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1330,8 +1331,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1339,8 +1340,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1460,7 +1461,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1518,10 +1519,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1579,9 +1580,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1593,22 +1594,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1628,22 +1629,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1651,29 +1652,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1685,7 +1686,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1699,8 +1700,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1715,8 +1716,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1731,8 +1732,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1749,7 +1750,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1769,7 +1770,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1798,20 +1799,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1831,7 +1832,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1839,7 +1840,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1856,19 +1857,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1928,13 +1929,14 @@ export default {
if (res.success) {
//
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1989,16 +1991,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2035,12 +2037,12 @@ export default {
}
},
processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -171,7 +171,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -235,27 +235,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk-product/common/formList";
import formList from 'process/phone/qbrk-product/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibraryProduct7",
name: 'phoneBussLibraryProduct7',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -266,7 +266,7 @@ export default {
},
data () {
const numberCodeNot = (rule, value, callback) => {
let pattern = /^[1]*$/
const pattern = /^[1]*$/
if (!pattern.test(value)) {
return callback(new Error('评分分值只可为1分'))
} else {
@@ -277,7 +277,7 @@ export default {
if(value === undefined || value === ''){
return callback(new Error('评分分值不可为空'))
}
let pattern = /^[0-9]*$/
const pattern = /^[0-9]*$/
if (!pattern.test(value)) {
return callback(new Error('只能输入数字'))
} else {
@@ -714,21 +714,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -737,7 +737,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -760,7 +760,7 @@ export default {
this.dataLoading = boo
},
filterData2(){
let spanOneArr = []
const spanOneArr = []
let concatOne = 0
this.form.evaluationData.forEach((item,index)=>{//(orderdata)
if(index === 0){
@@ -809,7 +809,7 @@ export default {
} else {
sums[index] = '';
}
if(sums[index] !== '' && sums[index].indexOf(".") !== -1){
if(sums[index] !== '' && sums[index].indexOf('.') !== -1){
sums[index] = parseFloat(sums[index]).toFixed(1);
}
});
@@ -844,8 +844,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -876,10 +876,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -887,8 +887,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -917,10 +917,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -942,10 +942,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -959,7 +959,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -1036,7 +1036,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
@@ -1108,96 +1108,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1208,17 +1208,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1286,8 +1286,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1318,7 +1318,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1330,15 +1330,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1398,8 +1398,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1407,8 +1407,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1416,8 +1416,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1537,7 +1537,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1595,10 +1595,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1656,9 +1656,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1670,22 +1670,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1705,22 +1705,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1728,29 +1728,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1762,7 +1762,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1792,8 +1792,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1808,8 +1808,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1826,7 +1826,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1846,7 +1846,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1869,20 +1869,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1902,7 +1902,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1910,7 +1910,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1927,19 +1927,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1973,7 +1973,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -2025,7 +2026,8 @@ export default {
this.$message.success(res.message)
//
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// if(this.formTongGuo.approvalOpinion === '1'){
// this.$message.warning("")
@@ -2087,10 +2089,10 @@ export default {
})
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2153,18 +2155,18 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -235,27 +235,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk-product/common/formList";
import formList from 'process/phone/qbrk-product/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibraryProduct8",
name: 'phoneBussLibraryProduct8',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -685,21 +685,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -708,7 +708,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -737,8 +737,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -769,10 +769,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -780,8 +780,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -810,10 +810,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -835,10 +835,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -852,7 +852,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -910,7 +910,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -967,7 +968,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1033,96 +1034,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1133,17 +1134,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1211,8 +1212,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1243,7 +1244,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1255,15 +1256,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1323,8 +1324,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1332,8 +1333,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1341,8 +1342,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1462,7 +1463,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1520,10 +1521,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1581,9 +1582,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1595,22 +1596,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1630,22 +1631,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1653,29 +1654,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1687,7 +1688,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1701,8 +1702,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1717,8 +1718,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1733,8 +1734,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1751,7 +1752,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1771,7 +1772,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1800,20 +1801,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1833,7 +1834,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1841,7 +1842,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1858,19 +1859,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1930,13 +1931,14 @@ export default {
if (res.success) {
//
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1990,16 +1992,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2036,12 +2038,12 @@ export default {
}
},
processTable () {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -164,27 +164,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk/common/formList";
import formList from 'process/phone/qbrk/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibrary8",
name: 'phoneBussLibrary8',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -195,7 +195,7 @@ export default {
},
data () {
const numberCodeNot = (rule, value, callback) => {
let pattern = /^[1]*$/
const pattern = /^[1]*$/
if (!pattern.test(value)) {
return callback(new Error('评分分值只可为1分'))
} else {
@@ -206,7 +206,7 @@ export default {
if(value === undefined || value === ''){
return callback(new Error('评分分值不可为空'))
}
let pattern = /^[0-9]*$/
const pattern = /^[0-9]*$/
if (!pattern.test(value)) {
return callback(new Error('只能输入数字'))
} else {
@@ -650,21 +650,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -673,7 +673,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -696,7 +696,7 @@ export default {
this.dataLoading = boo
},
filterData2(){
let spanOneArr = []
const spanOneArr = []
let concatOne = 0
this.form.evaluationData.forEach((item,index)=>{//(orderdata)
if(index === 0){
@@ -745,7 +745,7 @@ export default {
} else {
sums[index] = '';
}
if(sums[index] !== '' && sums[index].indexOf(".") !== -1){
if(sums[index] !== '' && sums[index].indexOf('.') !== -1){
sums[index] = parseFloat(sums[index]).toFixed(1);
}
});
@@ -780,8 +780,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -812,10 +812,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -823,8 +823,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -853,10 +853,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -878,10 +878,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -895,7 +895,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -938,7 +938,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -995,7 +996,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS'])
@@ -1070,96 +1071,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1170,17 +1171,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1248,8 +1249,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1280,7 +1281,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1292,15 +1293,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1360,8 +1361,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1369,8 +1370,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1378,8 +1379,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1499,7 +1500,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1557,10 +1558,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1618,9 +1619,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1632,22 +1633,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1667,22 +1668,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1690,29 +1691,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1724,7 +1725,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1738,8 +1739,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1754,8 +1755,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1770,8 +1771,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1788,7 +1789,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1808,7 +1809,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1832,20 +1833,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1865,7 +1866,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1873,7 +1874,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1890,19 +1891,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1965,13 +1966,14 @@ export default {
}, res => {
if (res.success) {
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -2027,16 +2029,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2098,7 +2100,7 @@ export default {
this.$nextTick(() => {
Promise.all([this.getTaskId()]).then((value) => {
if(value[0] &&value.length > 0){
let mes = JSON.parse(value[0].mes)
const mes = JSON.parse(value[0].mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.taskIds = mes.taskIds;
@@ -216,7 +216,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -243,27 +243,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk/common/formList";
import formList from 'process/phone/qbrk/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibrary10",
name: 'phoneBussLibrary10',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -699,21 +699,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -722,7 +722,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -751,8 +751,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -783,10 +783,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -794,8 +794,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -824,10 +824,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -849,10 +849,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -866,7 +866,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -909,7 +909,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
this.processNum()
} else {
@@ -966,7 +967,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1032,96 +1033,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1132,17 +1133,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1210,8 +1211,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1242,7 +1243,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1254,15 +1255,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1322,8 +1323,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1331,8 +1332,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1340,8 +1341,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1461,7 +1462,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1519,10 +1520,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1580,9 +1581,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1594,22 +1595,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1629,22 +1630,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1652,29 +1653,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1686,7 +1687,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1700,8 +1701,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1716,8 +1717,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1732,8 +1733,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1750,7 +1751,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1770,7 +1771,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('id', this.bpnId || '')
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1799,20 +1800,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1832,7 +1833,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1840,7 +1841,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1857,19 +1858,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1928,13 +1929,14 @@ export default {
}, res => {
if (res.success) {
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1988,16 +1990,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2037,7 +2039,7 @@ export default {
this.$nextTick(() => {
Promise.all([this.getTaskId()]).then((value) => {
if(value[0] &&value.length > 0){
let mes = JSON.parse(value[0].mes)
const mes = JSON.parse(value[0].mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.taskIds = mes.taskIds;
@@ -243,27 +243,27 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk/common/formList";
import formList from 'process/phone/qbrk/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
import { getEvaluationIndex } from "api/businessApi";
import { getEvaluationIndex } from 'api/businessApi';
import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibrary11",
name: 'phoneBussLibrary11',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -698,21 +698,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -721,7 +721,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -750,8 +750,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -782,10 +782,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -793,8 +793,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -823,10 +823,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -848,10 +848,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -865,7 +865,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -908,7 +908,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
// this.processNum()
} else {
@@ -965,7 +966,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1031,96 +1032,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1131,17 +1132,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1209,8 +1210,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1241,7 +1242,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1253,15 +1254,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1321,8 +1322,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1330,8 +1331,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1339,8 +1340,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1460,7 +1461,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1518,10 +1519,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1579,9 +1580,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1593,22 +1594,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1628,22 +1629,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1651,29 +1652,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -1685,7 +1686,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -1699,8 +1700,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -1715,8 +1716,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -1731,8 +1732,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -1749,7 +1750,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -1769,7 +1770,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -1798,20 +1799,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -1831,7 +1832,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -1839,7 +1840,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -1856,19 +1857,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -1927,13 +1928,14 @@ export default {
}, res => {
if (res.success) {
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -1987,16 +1989,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2036,7 +2038,7 @@ export default {
this.$nextTick(() => {
Promise.all([this.getTaskId()]).then((value) => {
if(value[0] &&value.length > 0){
let mes = JSON.parse(value[0].mes)
const mes = JSON.parse(value[0].mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.taskIds = mes.taskIds;
@@ -239,7 +239,8 @@ export default {
}
this.footerLoading = false
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
} else {
this.footerLoading = false
this.$message.error(res.message)
@@ -280,7 +281,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -348,7 +348,8 @@ export default {
}
this.footerLoading = false
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
} else {
this.footerLoading = false
this.$message.error(res.message)
@@ -389,7 +390,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -165,7 +165,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -171,7 +171,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
+225 -223
View File
@@ -158,17 +158,17 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import formList from "process/phone/qbrk/common/formList";
import formList from 'process/phone/qbrk/common/formList';
import {
inboundLiaisonDetail,
processCreateStand,
changeAssigneeNew,
queryTaskFirst,
getBusStandFileByAttId, saveTaskFirst
} from "api/process";
} from 'api/process';
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
import Vue from 'vue';
import { Form } from 'vant';
import { Field } from 'vant';
@@ -177,7 +177,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
Vue.use(Form);
Vue.use(Field);
export default {
name: "phoneBussLibrary4",
name: 'phoneBussLibrary4',
components: {
CusTomDataPickerGroup,
ProcessHeaderPhone,
@@ -1029,21 +1029,21 @@ export default {
'form.issueTime': {
handler: function() {
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
let date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
const date = new Date(this.$moment(this.form.issueTime).format('YYYY-MM-DD'))
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
let year = date.getFullYear()+5;
const year = date.getFullYear()+5;
let month =(date.getMonth() + 1).toString();
let day = (date.getDate()).toString();
if (month.length == 1) {
month = "0" + month;
month = '0' + month;
}
if (day.length == 1) {
day = "0" + day;
day = '0' + day;
}
const FSRQBUSS = year + "-" + month + "-" + day;
this.form["FSRQBUSS"] = FSRQBUSS
const FSRQBUSS = year + '-' + month + '-' + day;
this.form['FSRQBUSS'] = FSRQBUSS
}
},
@@ -1052,7 +1052,7 @@ export default {
handler (val) {
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
if (val instanceof Array) {
this.countryArr = val.join(",");
this.countryArr = val.join(',');
} else {
this.countryArr = val
}
@@ -1081,8 +1081,8 @@ export default {
console.log('modelData.' + index + '.modelName')
return 'modelData.' + index + '.modelName';
}else {
let propStr = "";
const indexList = row.modelIndex.split(",");
let propStr = '';
const indexList = row.modelIndex.split(',');
for (let i = 0; i < indexList.length; i++) {
if(i === 0){
propStr += 'modelData.' + indexList[i]
@@ -1113,10 +1113,10 @@ export default {
console.log(row)
console.log(this.form.modelData)
//
this.$confirm("是否确认删除本条数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
this.$confirm('是否确认删除本条数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'info'
}).then(() => {
//
const ids = []
@@ -1124,8 +1124,8 @@ export default {
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
console.log(this.form.modelData)
this.$message({
message: "删除成功",
type: "success",
message: '删除成功',
type: 'success',
duration: 2000
});
this.$forceUpdate()
@@ -1154,10 +1154,10 @@ export default {
pid: '0',
modelIndex: this.form.modelData.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
this.form.modelData.push(list);
@@ -1179,10 +1179,10 @@ export default {
pid: row.modelNum,
modelIndex: row.children.length,
disabled: false,
modelName: "",
modelContent: "",
zrUserId:"",
zrUserIdName:"",
modelName: '',
modelContent: '',
zrUserId:'',
zrUserIdName:'',
children:[],
};
row.children.push(list)
@@ -1196,7 +1196,7 @@ export default {
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
return [year, month, day].join('-') + " " + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
return [year, month, day].join('-') + ' ' + [hour, minute, second].join(':');//YY-MM-DD hh:mm:ss
},
// choiceZRRS () {
// if (this.userType === 'zrUserId') {
@@ -1254,7 +1254,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
this.processNum()
} else {
@@ -1311,7 +1312,7 @@ export default {
bpnId: this.$route.query.bpnId
}).then(res => {
this.verifySarStandard = this.$route.query.verifySarStandard
let mes = JSON.parse(res.mes)
const mes = JSON.parse(res.mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.roleForm = mes.roleForm
@@ -1377,96 +1378,96 @@ export default {
},
handleProcessStandardNext(status) {
switch (status) {
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 1:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
this.verifySarStandard = true
this.clearFormData(this.form)
break
//
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
case 2:
if (this.standardCheckedList.length === 1) {
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
_this: this
}, res => {
if(res && res.data){
const bringData = res.data
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
const json = Object.assign(bringData, bringData.attrInfoMap);
this.form = JSON.parse(JSON.stringify(json))
this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : []
this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : []
this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : []
this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : []
this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : []
this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : []
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = bringData.id
this.standardDrawer = false
this.verifySarStandard = true
this.busVsFunc()
this.modelFunc()
this.$forceUpdate()
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != 'function') {
this.initializeFileList(p,this.form[p]);
}
//
for(const p in this.form) {
if (typeof (this.form[p ]) != "function") {
this.initializeFileList(p,this.form[p]);
}
}
console.log("res",res);
})
}
console.log('res',res);
})
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
} else if (this.standardCheckedList.length > 1) {
this.$message.warning('最多可以带入一条政策信息')
} else {
this.$message.warning('请选择要带入的政策信息')
}
break
//
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
case 3:
this.selectedList = []
this.standardCheckedList = []
this.standardDrawer = false
break
}
},
initializeFileList(property ,value){
switch (property){
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default: ;
case 'xgd':
this.getFileList(value,this.xgdFileList);
break;
case 'fbgbjbd':
this.getFileList(value,this.FBGBJBDFileList);
break;
case 'ssg':
this.getFileList(value,this.ssgFileList);
break;
case 'ca':
this.getFileList(value,this.caFileList);
break;
case 'zbjbd':
this.getFileList(value,this.zbjbdFileList);
break;
case 'kwj':
this.getFileList(value,this.kwjFileList);
break;
case 'jdwj':
this.getFileList(value,this.jdwjFileList);
break;
case 'bpg':
this.getFileList(value,this.bpgFileList);
break;
case 'zqyjg':
this.getFileList(value,this.zqyjgFileList);
break;
case 'glwj':
this.getFileList(value,this.glwjFileList);
break;
default:
}
},getFileList(fileIds,defaultFileList){
@@ -1477,17 +1478,17 @@ export default {
_this: this
}, res => {
let fileList = res.data
const fileList = res.data
if (fileList != null && fileList.length > 0) {
for (let i = 0; i < fileList.length; i++) {
let obj = {name: '', response: {}}
const obj = {name: '', response: {}}
obj.name = fileList[i].oldFileName
obj.response.data = fileList[i]
//idlist
defaultFileList.push(obj)
console.log("defaultFileList",defaultFileList);
console.log('defaultFileList',defaultFileList);
}
}
}, e => {
@@ -1555,8 +1556,8 @@ export default {
saveUserInfo () {
this.filterText = ''
if (this.userType === 'zrUserId') {
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
} else if (this.userType === 'jlUserId') {
this.roleForm.jlUserId = this.roleRow.id
this.roleForm.jlUserName = this.roleRow.name
@@ -1587,7 +1588,7 @@ export default {
}
}else {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
const getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
this.roleRow = getlist[0]
}else {
@@ -1599,15 +1600,15 @@ export default {
//
handleCommand (command) {
switch (command[2]) {
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
case '新增':
this.createChildRow(command[0],command[1])
break
case '维护':
command[1].disabled = false
break
case '删除':
this.handleDelete(command[0],command[1])
break
}
},
choiceZRRList (type, title, id) {
@@ -1667,8 +1668,8 @@ export default {
this.modalShowFlag2 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key1++
},
choiceZRR3 (type, title, id) {
@@ -1676,8 +1677,8 @@ export default {
this.modalShowFlag3 = true
this.url = ''
this.urlChild = ''
this.url="sarVppsTree/list"
this.urlChild="sarVppsTree/childByList"
this.url='sarVppsTree/list'
this.urlChild='sarVppsTree/childByList'
this.key2++
},
choiceZRR4 (type, title, id) {
@@ -1685,8 +1686,8 @@ export default {
this.modalShowFlag4 = true
this.url = ''
this.urlChild = ''
this.url="sarModelTree/list"
this.urlChild="sarModelTree/childByList"
this.url='sarModelTree/list'
this.urlChild='sarModelTree/childByList'
this.key3++
},
getTree () {
@@ -1806,7 +1807,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherLawsStandDetails',
params: {
id: item.id,
@@ -1864,10 +1865,10 @@ export default {
})
},
beginImportFile (file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
const filename = file.name
const index1 = filename.lastIndexOf('.')
const index2 = filename.length
const fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] //
//
if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
@@ -1925,9 +1926,9 @@ export default {
}
}
}).catch(e => {
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
console.log(e)
this.$message.warning('文件不存在,预览失败')
})
}
},
//
@@ -1939,22 +1940,22 @@ export default {
if (response.ok) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'GLWJLAWS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
this.$message({
// showClose: true,
@@ -1974,22 +1975,22 @@ export default {
this.fileType = type;
switch (this.fileType){
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default : ;
case 'FBGBUSS':
this.fileList=this.FBGBUSSFileList
break;
case 'BZSMBUSS' :
this.fileList=this.BZSMBUSSFileList
break;
case 'LSBBBUSS':
this.fileList=this.LSBBBUSSFileList
break;
case 'QTWJBUSS':
this.fileList=this.QTWJBUSSFileList
break;
case 'GLWJBUSS':
this.fileList=this.GLWJBUSSFileList
break;
default :
}
this.fileMadel = true;
@@ -1997,29 +1998,29 @@ export default {
removeOneFile(file, fileList) {
switch (this.fileType){
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default : ;
case 'FBGBUSS':
this.FBGBUSSFileList = fileList
break;
case 'BZSMBUSS' :
this.BZSMBUSSFileList = fileList
break;
case 'LSBBBUSS':
this.LSBBBUSSFileList = fileList
break;
case 'QTWJBUSS':
this.QTWJBUSSFileList = fileList
break;
case 'GLWJBUSS':
this.GLWJBUSSFileList = fileList
break;
default :
}
},
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.VPPSBMBUSS = checkedData.code
this.form.VPPSCNBUSS = checkedData.chineseName
@@ -2031,7 +2032,7 @@ export default {
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) {
if(checkedData.length > 0){
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
}else {
this.form.TXLBBUSS = checkedData.menuName
}
@@ -2045,8 +2046,8 @@ export default {
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0 && checkedData.length != 0){
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.cycvppsbm = checkedData.code
this.form.cycvppscn = checkedData.chineseName
@@ -2061,8 +2062,8 @@ export default {
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
}else {
this.form.kccvppsbm = checkedData.code
this.form.kccvppscn = checkedData.chineseName
@@ -2077,8 +2078,8 @@ export default {
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData && checkedData.length != 0) {
if(checkedData.length > 0){
this.form.dybxh = checkedData.map(item => item.model).join(",")
this.form.dymc = checkedData.map(item => item.name).join(",")
this.form.dybxh = checkedData.map(item => item.model).join(',')
this.form.dymc = checkedData.map(item => item.name).join(',')
}else {
this.form.dybxh = checkedData.model
this.form.dymc = checkedData.name
@@ -2095,7 +2096,7 @@ export default {
},
OkDrawer() {
this.ListModel = false
var item = {
const item = {
remarks: '123'
}
this.data.push(item)
@@ -2115,7 +2116,7 @@ export default {
// }
this.saveLoading = true
let _formData = new FormData()
const _formData = new FormData()
// _formData.append('id', this.bpnId)
_formData.append('createUser', this.$store.getters.userInfo.account)
_formData.append('createUserName', this.$store.getters.userInfo.uName)
@@ -2144,20 +2145,20 @@ export default {
fileInfoHandle(){
//id Activity
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",")
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",")
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(',')
this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",")
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",")
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(',')
this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",")
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",")
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(',')
this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",")
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",")
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",")
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(',')
this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
},
//
@@ -2177,7 +2178,7 @@ export default {
return data
},
changeRestTree(val) {
let arr = [];
const arr = [];
if (val.length !== 0) {
val.forEach(item => {
if (item.children.length >= 1) {
@@ -2185,7 +2186,7 @@ export default {
}
if(item.pid === '0'){
item.id = arr.length + 1,
item.modelNum = arr.length + 1+''
item.modelNum = arr.length + 1+''
item.orderNum = arr.length + 1 // orderNum
item.modelIndex = arr.length
}else {
@@ -2202,19 +2203,19 @@ export default {
return arr;
},
changeTree(val) {
let arr = [];
const arr = [];
this.modelDataNameVerify = []
this.modelDataZrUserVerify = []
if (val.length !== 0) {
val.forEach(item => {
let obj = {};
const obj = {};
obj.modelName = item.modelName;
obj.zrUserIdName = item.zrUserIdName;
if(!obj.modelName || obj.modelName === ''){
this.modelDataNameVerify.push("1")
this.modelDataNameVerify.push('1')
}
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
this.modelDataZrUserVerify.push("1")
this.modelDataZrUserVerify.push('1')
}
if (item.children.length >= 1) {
item.children = this.changeTree(item.children);
@@ -2274,13 +2275,14 @@ export default {
if (res.success) {
//
if(this.formTongGuo.approvalOpinion === '1'){
this.$message.warning("驳回成功")
this.$message.warning('驳回成功')
}else{
this.$message.success(res.message)
// this.processCreateLaws(json)
}
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
//
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else {
@@ -2334,16 +2336,16 @@ export default {
if(obj instanceof Array){
return obj;
}else {
return obj.split(",")
return obj.split(',')
}
}
return "";
return '';
},
assemble(ids,names){
let list= new Array();
const list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -2382,7 +2384,7 @@ export default {
this.$nextTick(() => {
Promise.all([this.getTaskId()]).then((value) => {
if(value[0] &&value.length > 0){
let mes = JSON.parse(value[0].mes)
const mes = JSON.parse(value[0].mes)
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
this.form = mes.form
this.taskIds = mes.taskIds;
@@ -194,7 +194,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -209,7 +209,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -221,7 +221,8 @@ export default {
}
this.footerLoading = false
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
} else {
this.footerLoading = false
this.$message.error(res.message)
@@ -262,7 +263,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -227,7 +227,8 @@ export default {
}
this.footerLoading = false
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
} else {
this.footerLoading = false
this.$message.error(res.message)
@@ -268,7 +269,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -228,7 +228,8 @@ export default {
}
this.footerLoading = false
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
} else {
this.footerLoading = false
this.$message.error(res.message)
@@ -269,7 +270,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -105,14 +105,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbzxdjhgkStep2",
name: 'phoneQbzxdjhgkStep2',
components: {
ProcessHeader,
ProcessTitle,
@@ -158,8 +158,8 @@ export default {
methods:{
//
handleFilePreview(file,type) {
let id = ""
let fileName = ""
let id = ''
let fileName = ''
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
fileName = this.qbfsForm.esName+'-立项单.docx'
}else {
@@ -183,12 +183,12 @@ export default {
}
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -222,10 +222,10 @@ export default {
})
},
assemble(ids,names){
let list= [];
const list= [];
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -257,7 +257,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -286,7 +287,7 @@ export default {
this.isSubmit = true
this.qbfsForm.passFlag = '0'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -297,7 +298,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -311,7 +313,7 @@ export default {
this.isSubmit = true
this.qbfsForm.passFlag = '1'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -322,7 +324,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -105,14 +105,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbzxdjhgkStep3",
name: 'phoneQbzxdjhgkStep3',
components: {
ProcessHeader,
ProcessTitle,
@@ -158,8 +158,8 @@ export default {
methods:{
//
handleFilePreview(file,type) {
let id = ""
let fileName = ""
let id = ''
let fileName = ''
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
fileName = this.qbfsForm.esName+'-立项单.docx'
}else {
@@ -183,12 +183,12 @@ export default {
}
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -222,10 +222,10 @@ export default {
})
},
assemble(ids,names){
let list= [];
const list= [];
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -257,7 +257,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -286,7 +287,7 @@ export default {
this.isSubmit = true
this.qbfsForm.deptCenterFlag = '0'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -297,7 +298,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -311,7 +313,7 @@ export default {
this.isSubmit = true
this.qbfsForm.deptCenterFlag = '1'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -322,7 +324,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -105,14 +105,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbzxdjhgkStep4",
name: 'phoneQbzxdjhgkStep4',
components: {
ProcessHeader,
ProcessTitle,
@@ -158,8 +158,8 @@ export default {
methods:{
//
handleFilePreview(file,type) {
let id = ""
let fileName = ""
let id = ''
let fileName = ''
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
fileName = this.qbfsForm.esName+'-立项单.docx'
}else {
@@ -183,12 +183,12 @@ export default {
}
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -221,10 +221,10 @@ export default {
})
},
assemble(ids,names){
let list= [];
const list= [];
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -256,7 +256,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -285,7 +286,7 @@ export default {
this.isSubmit = true
this.qbfsForm.bzFlag = '0'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -296,7 +297,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -310,7 +312,7 @@ export default {
this.isSubmit = true
this.qbfsForm.bzFlag = '1'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -321,7 +323,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -105,14 +105,14 @@
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessHeader from "../../components/ProcessHeader";
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
import ProcessHeader from '../../components/ProcessHeader';
import ProcessTitle from 'process/components/ProcessTitle';
import ProcessFooter from 'process/components/ProcessFooter';
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneQbzxdjhgkStep5",
name: 'phoneQbzxdjhgkStep5',
components: {
ProcessHeader,
ProcessTitle,
@@ -158,8 +158,8 @@ export default {
methods:{
//
handleFilePreview(file,type) {
let id = ""
let fileName = ""
let id = ''
let fileName = ''
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
fileName = this.qbfsForm.esName+'-立项单.docx'
}else {
@@ -183,12 +183,12 @@ export default {
}
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -221,10 +221,10 @@ export default {
})
},
assemble(ids,names){
let list= [];
const list= [];
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
const idArray=ids.split(',');
const nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
@@ -256,7 +256,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -289,7 +290,7 @@ export default {
this.qbfsForm.area = this.qbfsForm.area.join(',')
}
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -300,7 +301,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -314,7 +316,7 @@ export default {
this.isSubmit = true
this.qbfsForm.bzfgbzFlag = '1'
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
const json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.account,
@@ -325,7 +327,8 @@ export default {
if (res.success) {
this.$message.success(res.message)
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -162,7 +162,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -97,13 +97,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWbsmStep3",
name: 'phoneWbsmStep3',
components: {
ProcessTitle,
ProcessHeader,
@@ -174,7 +174,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
watch: {
@@ -197,7 +197,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -206,12 +207,12 @@ export default {
})
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -245,7 +246,7 @@ export default {
//
dutyEngineerList(id) {
if (this.multipleSelection.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人");
this.$message.warning('请选择至少一条数据进行分发责任人');
} else {
this.nodeList = []
this.nodeList.push(id)
@@ -276,7 +277,7 @@ export default {
//
handleSave() {
this.isSubmit = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
@@ -293,14 +294,14 @@ export default {
//
handleSubmit() {
this.isSubmit = true
let son = {
const son = {
signFlag: '1',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(son)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -310,7 +311,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -322,15 +324,15 @@ export default {
if(!this.commentText){
this.$message.warning('请填写审批意见')
}else{
let son = {
const son = {
signFlag: '2',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
const json = JSON.stringify(son)
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -340,7 +342,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -370,7 +373,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -390,7 +394,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -103,13 +103,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWbsmStep4",
name: 'phoneWbsmStep4',
components: {
ProcessTitle,
ProcessHeader,
@@ -180,7 +180,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
watch: {
@@ -203,7 +203,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -212,12 +213,12 @@ export default {
})
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -251,7 +252,7 @@ export default {
//
dutyEngineerList(id) {
if (this.multipleSelection.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人");
this.$message.warning('请选择至少一条数据进行分发责任人');
} else {
this.nodeList = []
this.nodeList.push(id)
@@ -282,7 +283,7 @@ export default {
//
handleSave() {
this.isSubmit = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
@@ -299,14 +300,14 @@ export default {
//
handleSubmit() {
this.isSubmit = true
let son = {
const son = {
signFlag: '1',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(son)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -316,7 +317,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -328,15 +330,15 @@ export default {
if(!this.commentText){
this.$message.warning('请填写审批意见')
}else{
let son = {
const son = {
signFlag: '2',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
const json = JSON.stringify(son)
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -346,7 +348,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -376,7 +379,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -396,7 +400,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -103,13 +103,13 @@ import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
import axios from "axios";
import ProcessHeader from "process/components/ProcessHeader";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
import axios from 'axios';
import ProcessHeader from 'process/components/ProcessHeader';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWbsmStep5",
name: 'phoneWbsmStep5',
components: {
ProcessTitle,
ProcessHeader,
@@ -180,7 +180,7 @@ export default {
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
}
},
watch: {
@@ -203,7 +203,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
// this.processNum()
} else {
@@ -212,12 +213,12 @@ export default {
})
},
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
sortWord: this.shunxu ? this.paixu : '',
shunxu: this.shunxu
}, {
loading: "loading",
loading: 'loading',
_this: this
}, res => {
this.detailData = res
@@ -251,7 +252,7 @@ export default {
//
dutyEngineerList(id) {
if (this.multipleSelection.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人");
this.$message.warning('请选择至少一条数据进行分发责任人');
} else {
this.nodeList = []
this.nodeList.push(id)
@@ -282,7 +283,7 @@ export default {
//
handleSave() {
this.isSubmit = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
@@ -299,14 +300,14 @@ export default {
//
handleSubmit() {
this.isSubmit = true
let son = {
const son = {
yzFlag: '1',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
this.$http.post("lawss/activiti/completeTask", {
const json = JSON.stringify(son)
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -316,7 +317,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -328,15 +330,15 @@ export default {
if(!this.commentText){
this.$message.warning('请填写审批意见')
}else{
let son = {
const son = {
yzFlag: '2',
commentText: this.commentText,
dataList: this.dataList,
roleForm: this.roleForm
}
var json = JSON.stringify(son)
const json = JSON.stringify(son)
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", {
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.taskIds,
userId: this.userId,
json: json
@@ -346,7 +348,8 @@ export default {
if (res.success) {
this.$message.success(res.message);
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -376,7 +379,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -396,7 +400,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -113,10 +113,10 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from '@/api/process.js'
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWfhxzgStep2",
name: 'phoneWfhxzgStep2',
data() {
return {
passInfo: 0,
@@ -215,7 +215,7 @@ export default {
//
dutyEngineerList(id) {
if (this.multipleSelection.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人");
this.$message.warning('请选择至少一条数据进行分发责任人');
} else {
this.phoneRoleList = []
if (this.multipleSelection[0].dutyPeopleInfoId.length > 0) {
@@ -251,7 +251,7 @@ export default {
//
handleSave() {
this.isSubmit = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
@@ -270,8 +270,8 @@ export default {
if(!this.commentInfo){
this.$message.warning('请填写审批意见')
}else{
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
const zqa = new Map();
for (const lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
if( a == null){
a = {
@@ -283,11 +283,11 @@ export default {
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = [];
for(let item of zqa) {
const list = [];
for(const item of zqa) {
list.push(item[1])
}
let json = {
const json = {
dockUserList: list,
passInfo: this.passInfo,
passFlag: '1',
@@ -302,7 +302,8 @@ export default {
if(res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -314,8 +315,8 @@ export default {
//
handleSubmit() {
this.isSubmit = true
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
const zqa = new Map();
for (const lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
if( a == null){
a = {
@@ -327,11 +328,11 @@ export default {
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = [];
for(let item of zqa) {
const list = [];
for(const item of zqa) {
list.push(item[1])
}
let json = {
const json = {
dockUserList: list,
passInfo: this.passInfo,
passFlag: '0',
@@ -353,7 +354,8 @@ export default {
if(res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
this.isSubmit = false
@@ -376,7 +378,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -409,7 +412,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -116,11 +116,11 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {changeAssigneeNew, completeTask, inboundLiaisonDetail, saveTaskForPub} from "@/api/process.js";
import {changeAssigneeNew, completeTask, inboundLiaisonDetail, saveTaskForPub} from '@/api/process.js';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWfhxzgStep3",
name: 'phoneWfhxzgStep3',
data() {
return {
passInfo: 0,
@@ -187,7 +187,7 @@ export default {
this.$nextTick(() => {
if (item.passInfo !== 0) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
const fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList
@@ -196,7 +196,7 @@ export default {
}
}
} else {
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
const fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[i].standardInfoList
@@ -219,7 +219,7 @@ export default {
//
dutyPeopleList(id) {
if (this.selectTableMore.length === 0) {
this.$message.warning("请选择至少一条数据进行分发责任人");
this.$message.warning('请选择至少一条数据进行分发责任人');
} else {
this.phoneRoleList = []
if (this.selectTableMore[0].dutyPeopleId.length > 0) {
@@ -243,7 +243,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -255,8 +255,8 @@ export default {
},
//
handleSave() {
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
const zqa = new Map();
for (const lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
if( a == null){
a = {
@@ -268,12 +268,12 @@ export default {
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = [];
for(let item of zqa) {
const list = [];
for(const item of zqa) {
list.push(item[1])
}
this.isSubmit = true
let _formData = new FormData()
const _formData = new FormData()
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({
// roleForm: this.roleForm,
@@ -298,8 +298,8 @@ export default {
}
})
if(flag)return this.$message.warning('请选择负责人填入')
let zqa = new Map();
for (let lastDataListElement of this.dataList) {
const zqa = new Map();
for (const lastDataListElement of this.dataList) {
let a = zqa.get(lastDataListElement.dutyPeopleId)
if( a == null){
a = {
@@ -311,11 +311,11 @@ export default {
a.standardInfoList.push(lastDataListElement);
zqa.set(a.id, a);
}
let list = [];
for(let item of zqa) {
const list = [];
for(const item of zqa) {
list.push(item[1])
}
let json = {
const json = {
passInfo: this.passInfo,
responUserList: list,
commentText: this.textarea,
@@ -330,7 +330,8 @@ export default {
if (res.success === true) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter");
}
}).finally(() => {
@@ -352,7 +353,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push({
// name: "processCenter"
// })
@@ -186,7 +186,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)
@@ -102,11 +102,11 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, changeAssigneeNew} from "@/api/process";
import {inboundLiaisonDetail, changeAssigneeNew} from '@/api/process';
import hwh5 from '@/api/hwh5-cloudonline.js'
export default {
name: "phoneWfhxzgStep5",
name: 'phoneWfhxzgStep5',
data() {
return {
drawerTitle: '',
@@ -193,7 +193,7 @@ export default {
},
//
handlePreview (item) {
let routeUrl = this.$router.resolve({
const routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
@@ -205,15 +205,15 @@ export default {
},
//
handleOnPreview(file) {
let attId = file.id
if (attId != null && attId !== "") {
const attId = file.id
if (attId != null && attId !== '') {
this.$preview(attId)
}
},
//
handleSubmit() {
this.isSubmit = true
var json = this.json
const json = this.json
json.info = {
fileDataList: this.dataList
}
@@ -227,7 +227,8 @@ export default {
if (res.success) {
this.$message.success('提交成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
}
this.isSubmit = false
@@ -252,7 +253,8 @@ export default {
this.turnLoading = false
this.$message.success('调整成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
@@ -265,7 +267,7 @@ export default {
handleSubmitNo() {
this.backLoading = true
if (this.commentText) {
var json = {
const json = {
responUserList: this.dataList,
actionFlag: 1,
commentText: this.commentText
@@ -279,7 +281,8 @@ export default {
if (res.success) {
this.$message.success('驳回成功')
// hwh5.close()
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
// this.$router.push('/processCenter')
this.backLoading = false
}
@@ -324,8 +327,8 @@ export default {
this.getData()
},
download(row) {
let attId = row.fileTextId
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
const attId = row.fileTextId
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
},
//
pageChange (page) {
@@ -145,7 +145,8 @@ export default {
this.drawerModal = false
this.$message.success('调整成功')
setTimeout(() => {
this.$router.go(-2)
// this.$router.go(-2)
this.$close()
}, 100)
} else {
this.$message.warning(res.message)

Some files were not shown because too many files have changed in this diff Show More