Merge branch 'master' into 'fix_foton_20231213'
Master See merge request laws-foton-slrs/foton-laws-system-front!130
This commit is contained in:
@@ -0,0 +1,78 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true, // 将eslint配置限制在当前配置文件所在目录下
|
||||||
|
// 继承其他规则
|
||||||
|
'extends': ['eslint:recommended', 'plugin:vue/recommended'],
|
||||||
|
// 解析选项
|
||||||
|
'parserOptions': {
|
||||||
|
parser: "babel-eslint", // 解析器
|
||||||
|
'ecmaVersion': 6, // ES 语法版本
|
||||||
|
'sourceType': 'module', // ES 模块化
|
||||||
|
'ecmaFeatures': { // ES 其他特性
|
||||||
|
'jsx': true // 如果是 React 项目,就需要开启 jsx 语法
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
// '@stylistic/js'
|
||||||
|
],
|
||||||
|
// 具体检查规则
|
||||||
|
'rules': {
|
||||||
|
'no-var': 'error', // 不能使用 var 定义变量
|
||||||
|
'eqeqeq': [
|
||||||
|
'warn', // 建议使用 === 和 !==,否则警告
|
||||||
|
'smart' // https://eslint.bootcss.com/docs/rules/eqeqeq#smart 除了少数情况下不会有警告
|
||||||
|
],
|
||||||
|
'prefer-arrow-callback': 'warn', // 建议使用箭头函数
|
||||||
|
'prefer-const': 'error', // 强制使用 const 定义常量
|
||||||
|
'indent': ['error', 2], // 缩进 2 个空格
|
||||||
|
// '@stylistic/js/indent': ['error', 2], // 缩进 2 个空格
|
||||||
|
'no-mixed-spaces-and-tabs': 'error', // 禁止混用空格和 tab缩进
|
||||||
|
'quotes': ['error', 'single'], // 强制使用单引号
|
||||||
|
"spaced-comment": ["error", "always"], // 注释后面需要有空格
|
||||||
|
"prefer-template": "error", // 字符串拼接使用模版字符串 'hello' + world => `hello${world}`
|
||||||
|
"template-curly-spacing": ["error", "always"], // 模版字符串中{}前后内有一个或多个空格 `hello${ world }` => `hello${ world }`
|
||||||
|
"key-spacing": ["error", { mode: "strict" }], // 对象字面量中冒号的前后空格 { "foo" : 42 } => { "foo": 42 }
|
||||||
|
"comma-spacing": ["error", { "before": false, "after": true }], // 逗号前面不能有空格,后面需要有空格 [1, 2 , 3 ,4] => [1, 2, 4, 4]
|
||||||
|
"array-bracket-spacing": ["error","always"], // 数组前后需要有空格 [ 1,2 ] => [ 1,2 ]
|
||||||
|
"object-curly-spacing": ["error","always"], // 对象前后需要有空格 { a:b } => { a:b }
|
||||||
|
"no-whitespace-before-property": "error", // 禁止属性前有空格 obj . foo => obj.foo
|
||||||
|
"func-call-spacing": ["error", "never"], // 函数调用时,函数名与()之间不能有空格 fn () => fn()
|
||||||
|
'space-before-function-paren': ['error', 'always'], // 函数左括号空格 function name(){} => function name (){}
|
||||||
|
// "rest-spread-spacing": "error", // 展开运算符前后需要有空格 ...arr => ... arr
|
||||||
|
'space-before-blocks': 'error', // 代码块前面(if function等的大括号之前)需要有空格 function name(){} => function name() {}
|
||||||
|
"space-infix-ops": 'error', // 操作符前后需要有空格 a=0 => a = 0
|
||||||
|
'arrow-spacing': ['error', { before: true, after: true }], // 箭头函数前后需要有空格
|
||||||
|
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], // if else 等的大括号风格
|
||||||
|
"no-irregular-whitespace": 'error', // 不能有不规则的空格 https://eslint.nodejs.cn/docs/latest/rules/no-irregular-whitespace
|
||||||
|
"no-trailing-spaces": 'error', // 一行结束后面不要有空格
|
||||||
|
"padded-blocks": ["error", "never"], // 代码块内部前后不要有空行
|
||||||
|
"semi-spacing": ["error", { "before": false, "after": true }], // 分号前面不能有空格,后面需要有空格 var foo ; var bar; => var foo; var bar;
|
||||||
|
'no-multiple-empty-lines': [ 'error', { max: 1 }], // 最多只能有一行空行
|
||||||
|
'no-return-assign': ['error', 'except-parens'], // 禁止在 return 语句中使用赋值语句
|
||||||
|
'no-self-assign': 'error', // 禁止自我赋值
|
||||||
|
'no-self-compare': 'error', // 禁止自身比较
|
||||||
|
// "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }], // 链式调用时,每个调用都需要换行
|
||||||
|
"no-duplicate-imports": "error", // 禁止重复 import
|
||||||
|
// 以下规则都是基于plugin:vue/recommended的默认值
|
||||||
|
'vue/max-attributes-per-line': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
singleline: 4, // 单行最多 4 个属性
|
||||||
|
multiline: {
|
||||||
|
max: 1, // 多行最多 1 个属性
|
||||||
|
allowFirstLine: false, // 不允许属性与组件名称在同一行
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'vue/singleline-html-element-content-newline': 'off', // 单行元素内容之前和之后不需要换行
|
||||||
|
'vue/multiline-html-element-content-newline': 'error', // 多行元素内容之前和之后需要换行
|
||||||
|
'vue/html-indent': ['error', 2], // 缩进 2 个空格
|
||||||
|
'vue/html-closing-bracket-newline': ['error', { // 强制或禁止在自闭合标签之前换行
|
||||||
|
'singleline': 'never',
|
||||||
|
'multiline': 'always',
|
||||||
|
}],
|
||||||
|
},
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
node: true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -43,11 +43,15 @@
|
|||||||
"vuex": "^3.4.0"
|
"vuex": "^3.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@stylistic/eslint-plugin-js": "^1.5.1",
|
||||||
"@vue/cli-plugin-babel": "~4.5.0",
|
"@vue/cli-plugin-babel": "~4.5.0",
|
||||||
"@vue/cli-plugin-router": "~4.5.0",
|
"@vue/cli-plugin-router": "~4.5.0",
|
||||||
"@vue/cli-plugin-vuex": "~4.5.0",
|
"@vue/cli-plugin-vuex": "~4.5.0",
|
||||||
"@vue/cli-service": "~4.5.0",
|
"@vue/cli-service": "~4.5.0",
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-plugin-import": "^1.13.3",
|
"babel-plugin-import": "^1.13.3",
|
||||||
|
"eslint": "6.7.2",
|
||||||
|
"eslint-plugin-vue": "6.2.2",
|
||||||
"less": "^3.13.1",
|
"less": "^3.13.1",
|
||||||
"less-loader": "^5.0.0",
|
"less-loader": "^5.0.0",
|
||||||
"popper.js": "^1.16.1",
|
"popper.js": "^1.16.1",
|
||||||
|
|||||||
+9
-3
@@ -34,7 +34,7 @@
|
|||||||
<div class="user-box">
|
<div class="user-box">
|
||||||
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
|
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
|
||||||
<span class="iconfont" v-else style="color: #000;"></span>
|
<span class="iconfont" v-else style="color: #000;"></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"/>
|
<i style="color: #000;" class="el-icon-arrow-down"/>
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
<div class="user-box">
|
<div class="user-box">
|
||||||
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
|
<img :src="userAvator" v-if="$store.getters.userInfo.avator">
|
||||||
<span class="iconfont" v-else style="color: #000;"></span>
|
<span class="iconfont" v-else style="color: #000;"></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"/>
|
<i style="color: #000;" class="el-icon-arrow-down"/>
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
@@ -97,9 +97,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapGetters, mapState} from 'vuex'
|
import {mapGetters, mapState} from 'vuex'
|
||||||
import {webLoginType, ssoLogoutUrlDev} from '@/sysConfig'
|
|
||||||
import customerService from "@/components/customerService";
|
import customerService from "@/components/customerService";
|
||||||
import isMobile from "./store/isMobile";
|
import isMobile from "./store/isMobile";
|
||||||
|
import { loginOut } from '@/utils/login'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
@@ -152,6 +152,8 @@
|
|||||||
confirmButtonClass: 'common-button-primary',
|
confirmButtonClass: 'common-button-primary',
|
||||||
roundButton: false
|
roundButton: false
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
loginOut()
|
||||||
|
/*
|
||||||
if (webLoginType != null && webLoginType === 'idm') {
|
if (webLoginType != null && webLoginType === 'idm') {
|
||||||
this.$store.dispatch('logout')
|
this.$store.dispatch('logout')
|
||||||
window.location.href = ssoLogoutUrlDev
|
window.location.href = ssoLogoutUrlDev
|
||||||
@@ -168,6 +170,7 @@
|
|||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// this.$http.post('/logout', {}, res => {
|
// 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'
|
// 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() {
|
userAvator() {
|
||||||
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png')
|
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 () {
|
customerServiceShow () {
|
||||||
return !isMobile()
|
return !isMobile()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import store from '@/store'
|
|||||||
import {Message} from 'element-ui'
|
import {Message} from 'element-ui'
|
||||||
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
|
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
|
||||||
import isMobile from "../../store/isMobile";
|
import isMobile from "../../store/isMobile";
|
||||||
|
import { loginAgain } from '@/utils/login'
|
||||||
|
|
||||||
import domMessage from '../messageOnce/messageOnce'
|
import domMessage from '../messageOnce/messageOnce'
|
||||||
|
|
||||||
@@ -69,6 +70,7 @@ _axios.interceptors.response.use(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(res.data && res.data.respCode && res.data.respCode === 'LE505'){
|
if(res.data && res.data.respCode && res.data.respCode === 'LE505'){
|
||||||
|
/*
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
return router.push('/phoneIndex')
|
return router.push('/phoneIndex')
|
||||||
@@ -84,6 +86,12 @@ _axios.interceptors.response.use(
|
|||||||
}else if(webLoginType != null && webLoginType === 'dev'){
|
}else if(webLoginType != null && webLoginType === 'dev'){
|
||||||
return router.push('/login')
|
return router.push('/login')
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
messageOnce.warning({
|
||||||
|
message: '登录超时,请重新登录',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
loginAgain()
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import store from '@/store'
|
|||||||
import {Message} from 'element-ui'
|
import {Message} from 'element-ui'
|
||||||
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
|
import { baseUrl,webLoginType,ssoLoginUrlDev } from '@/sysConfig'
|
||||||
import isMobile from "../../store/isMobile";
|
import isMobile from "../../store/isMobile";
|
||||||
|
import { loginAgain } from '@/utils/login'
|
||||||
|
|
||||||
import domMessage from '../messageOnce/messageOnce'
|
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(res.data && res.data.respCode !== undefined && res.data.respCode === 'LE505'){
|
||||||
|
/*
|
||||||
if (isMobile()) {
|
if (isMobile()) {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
return router.push('/phoneIndex')
|
return router.push('/phoneIndex')
|
||||||
@@ -80,6 +82,12 @@ service.interceptors.response.use(
|
|||||||
return router.push('/login')
|
return router.push('/login')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
messageOnce.warning({
|
||||||
|
message: '登录超时,请重新登录',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
loginAgain()
|
||||||
}
|
}
|
||||||
return res.data
|
return res.data
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
import '@babel/polyfill'
|
import '@babel/polyfill'
|
||||||
require('es6-promise').polyfill();
|
require('es6-promise').polyfill()
|
||||||
require('es6-promise/auto');
|
require('es6-promise/auto')
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import ElementUI from 'element-ui'
|
import ElementUI from 'element-ui'
|
||||||
@@ -9,7 +9,6 @@ import 'element-ui/lib/theme-chalk/index.css'
|
|||||||
import $ from 'jquery'
|
import $ from 'jquery'
|
||||||
// vuex
|
// vuex
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import Axios from 'axios'
|
|
||||||
// 复制
|
// 复制
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
// 全局样式文件
|
// 全局样式文件
|
||||||
@@ -32,17 +31,16 @@ import dragDialogWidth from '@/common/dragDialogWidth'
|
|||||||
// 自定义按钮显示指令
|
// 自定义按钮显示指令
|
||||||
import btnPermission from '@/common/btnPermission' // eslint-disable-line
|
import btnPermission from '@/common/btnPermission' // eslint-disable-line
|
||||||
import VueI18n from 'vue-i18n' // 国际化
|
import VueI18n from 'vue-i18n' // 国际化
|
||||||
// import * as echarts from 'echarts'
|
|
||||||
import { simpleUploadPath } from '@/sysConfig'
|
import { simpleUploadPath } from '@/sysConfig'
|
||||||
// 时间转换
|
// 时间转换
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
moment.suppressDeprecationWarnings = true;
|
moment.suppressDeprecationWarnings = true
|
||||||
// 右键菜单
|
// 右键菜单
|
||||||
import Contextmenu from 'vue-contextmenujs'
|
import Contextmenu from 'vue-contextmenujs'
|
||||||
|
|
||||||
// vant
|
// vant
|
||||||
import vant from 'vant';
|
import vant from 'vant'
|
||||||
import 'vant/lib/index.css';
|
import 'vant/lib/index.css'
|
||||||
//vant
|
//vant
|
||||||
|
|
||||||
import animate from 'animate.css'
|
import animate from 'animate.css'
|
||||||
@@ -50,480 +48,78 @@ import tool from './utils/tool'
|
|||||||
Vue.use(tool)
|
Vue.use(tool)
|
||||||
// 引入路由器
|
// 引入路由器
|
||||||
import router from './router'
|
import router from './router'
|
||||||
// 路由解析器
|
|
||||||
import Re from 'path-to-regexp'
|
|
||||||
|
|
||||||
import { get_verify_by_instance,loginIdm,getMenu,loginMobile } from 'api/process'
|
import { webLoginType } from '@/sysConfig'
|
||||||
import hwh5 from 'api/hwh5-cloudonline.js';
|
|
||||||
|
|
||||||
import { ssoLoginUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
|
||||||
|
|
||||||
import { mapMutations, mapActions } from 'vuex'
|
|
||||||
import VConsole 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";
|
router.beforeEach((to, from, next) => {
|
||||||
import { Loading } from 'element-ui';
|
const token = store.state.token
|
||||||
|
if (to.query.taskIds && to.query.taskIds !== '' && to.query.prcId && to.query.prcId !== '') {
|
||||||
// 路由拦截
|
const fullPath = to.fullPath.slice(1)
|
||||||
router.beforeEach(function (to, from, next) {
|
if (isMobile()) {
|
||||||
closeLoading()
|
if (fullPath.indexOf('phone') !== 0) {
|
||||||
if (isMobile()){
|
let path = fullPath.replace(fullPath.charAt(0), fullPath.charAt(0).toUpperCase())
|
||||||
var loading = Loading.service({
|
path = '/phone' + path
|
||||||
text: '加载中...',
|
next({ path: path })
|
||||||
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();
|
|
||||||
}
|
}
|
||||||
//如果是微信打开,关闭当前微信窗口
|
if (!to.name) {
|
||||||
weixinClosePage()
|
// 不存在路由
|
||||||
}else {
|
next('/blankPage')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((token === null || token === '' ) && toName !== 'Login') {
|
if (token && token !== '') {
|
||||||
if(toName !== 'phoneIndex'){
|
if (to.path === '/') {
|
||||||
if(toName === 'phoneHome'){
|
if (isMobile()) {
|
||||||
// 手机端 首页 首次进入系统 清除 缓存, 防止 跳转 oa 的页面, 问题追溯 #55852
|
next('/phoneHome')
|
||||||
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 {
|
} else {
|
||||||
if(toName === 'databaseSearch' || toName === 'standDynamics' || toName === 'zlzxDetails' ||
|
next('/home2')
|
||||||
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()
|
||||||
} else {
|
} else {
|
||||||
localStorage.removeItem("routerUrl")
|
if (to.path === '/login') {
|
||||||
localStorage.setItem('routerUrl', 'home2')
|
if (webLoginType === 'idm') {
|
||||||
localStorage.removeItem("routerParam")
|
// webLoginType === "idm"时不会进入login路由
|
||||||
localStorage.setItem('routerParam', '')
|
// let href = window.location.href.replace('code=' + getCode(), '')
|
||||||
if ((token === null || token === '' ) && toName === 'OtherStandardDetails') {
|
// toIdmLoginPage(href)
|
||||||
if (document.cookie) {
|
}
|
||||||
|
if (webLoginType === 'dev') {
|
||||||
next()
|
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 {
|
} else {
|
||||||
weixin_ClosePage();
|
if (webLoginType === 'idm') {
|
||||||
}
|
if (isMobile()) {
|
||||||
}
|
loginInPhone().then(() => {
|
||||||
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()
|
next()
|
||||||
closeLoading()
|
})
|
||||||
}
|
} else {
|
||||||
}
|
if (getCode()) {
|
||||||
|
loginInIdm(getCode()).then(() => {
|
||||||
function extractedIphone() {
|
const path = to.fullPath.replace('code=' + getCode(), '')
|
||||||
let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum +
|
next({ path })
|
||||||
'&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 {
|
} else {
|
||||||
next({path: routerPath + '?' + param2})
|
toIdmLoginPage(window.location.href)
|
||||||
closeLoading()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function extracted4(routerPath,param4) {
|
}
|
||||||
if (token === null || token === '') {
|
if (webLoginType === 'dev') {
|
||||||
extractedLocalStorage(routerPath,param4);
|
if (isMobile()) {
|
||||||
// ssoLoginUrlDev 默认sso 地址
|
next('/login')
|
||||||
window.location.href = ssoLoginUrlDev
|
} else {
|
||||||
} else {
|
next('/login')
|
||||||
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
|
Vue.config.productionTip = false
|
||||||
// jquery
|
// jquery
|
||||||
Vue.prototype.$ = $
|
Vue.prototype.$ = $
|
||||||
@@ -537,7 +133,7 @@ Vue.use(Contextmenu)
|
|||||||
Vue.use(animate)
|
Vue.use(animate)
|
||||||
Vue.use(vant)
|
Vue.use(vant)
|
||||||
|
|
||||||
// Vue.prototype.$echarts = echarts
|
Vue.prototype.$close = close
|
||||||
// 原生axios
|
// 原生axios
|
||||||
Vue.prototype.axios = axios
|
Vue.prototype.axios = axios
|
||||||
// 封装后的axios
|
// 封装后的axios
|
||||||
|
|||||||
@@ -1,26 +1,35 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="blankPage">
|
<div class="blankPage">
|
||||||
<van-icon name="clear" color="#dabb27" size="70"/>
|
<van-icon name="clear" color="#dabb27" size="70" />
|
||||||
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">当前任务不支持手机端处理</div>
|
<div style="font-size: 15px;margin-top: 20px;color: #8c939d">
|
||||||
<el-button type="primary" size="small" style="margin-top: 30px;width: 270px;" @click="closeWindow()">返回</el-button>
|
当前任务不支持手机端处理
|
||||||
|
</div>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="small"
|
||||||
|
style="margin-top: 30px;width: 270px;"
|
||||||
|
@click="closeWindow()"
|
||||||
|
>
|
||||||
|
返回
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Icon } from 'vant';
|
import { Icon } from 'vant';
|
||||||
import hwh5 from '../../api/hwh5-cloudonline.js';
|
|
||||||
|
|
||||||
Vue.use(Icon);
|
Vue.use(Icon);
|
||||||
export default {
|
export default {
|
||||||
name: "blankPage",
|
name: 'BlankPage',
|
||||||
data() {
|
data () {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeWindow(){
|
closeWindow () {
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
import { mapMutations, mapActions } from 'vuex'
|
import { mapMutations, mapActions } from 'vuex'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import util from 'util'
|
import util from 'util'
|
||||||
|
import isMobile from "../../store/isMobile";
|
||||||
export default {
|
export default {
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
data () {
|
data () {
|
||||||
@@ -187,6 +188,10 @@
|
|||||||
if (this.showIETips) {//判断是否IE浏览器
|
if (this.showIETips) {//判断是否IE浏览器
|
||||||
alert('为了最佳显示效果 请使用google chrome')
|
alert('为了最佳显示效果 请使用google chrome')
|
||||||
}
|
}
|
||||||
|
if (isMobile()) {
|
||||||
|
this.$router.push('/phoneHome')
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.$router.push('/home2')
|
this.$router.push('/home2')
|
||||||
}, e => {
|
}, e => {
|
||||||
this.$message.warning('未获取到菜单')
|
this.$message.warning('未获取到菜单')
|
||||||
|
|||||||
@@ -39,7 +39,8 @@
|
|||||||
showCancelButton: false,
|
showCancelButton: false,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ export default {
|
|||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
window.onresize = null
|
window.onresize = null
|
||||||
this.tableHeight = ''
|
this.tableHeight = ""
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
addModal () {
|
addModal () {
|
||||||
|
|||||||
@@ -104,213 +104,215 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep2",
|
name: 'phoneBzdyStep2',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText2: '',
|
commentText2: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
showNodeList: [],
|
showNodeList: [],
|
||||||
nodeList2: [],
|
nodeList2: [],
|
||||||
type: '',
|
type: '',
|
||||||
modalshowflag2: false, // drawer开关
|
modalshowflag2: false, // drawer开关
|
||||||
drawerTitle: '', //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
modelList: [],
|
modelList: [],
|
||||||
fjList: [],
|
fjList: [],
|
||||||
responUserList: '',
|
responUserList: '',
|
||||||
responUserListName: '',
|
responUserListName: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{ required: true, message: '请选择责任人', trigger: 'change' },
|
{ required: true, message: '请选择责任人', trigger: 'change' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<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 ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 InputFormItem from '@/components/hzwlComponents/InputFormItem'
|
||||||
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
|
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 TextareaFormItem from '@/components/hzwlComponents/TextareaFormItem'
|
||||||
|
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
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'
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
export default {
|
export default {
|
||||||
name: "step3",
|
name: 'step3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -196,7 +196,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -120,196 +120,199 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep4",
|
name: 'phoneBzdyStep4',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText4: '',
|
commentText4: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
dyhz: '',
|
dyhz: '',
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
modelList: [],
|
modelList: [],
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fileId: '',
|
fileId: '',
|
||||||
fileName: '',
|
fileName: '',
|
||||||
responUserList: '',
|
responUserList: '',
|
||||||
responUserListName: '',
|
responUserListName: '',
|
||||||
text: ''
|
text: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
text: [
|
text: [
|
||||||
{ required: true, message: '请输入审批意见', trigger: 'blur' },
|
{ required: true, message: '请输入审批意见', trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {},
|
json: {},
|
||||||
fileUrl: 'api/att/attFile/uploadNew',
|
fileUrl: 'api/att/attFile/uploadNew',
|
||||||
fileMadel: false,
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<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 ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 InputFormItem from '@/components/hzwlComponents/InputFormItem'
|
||||||
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
|
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 TextareaFormItem from '@/components/hzwlComponents/TextareaFormItem'
|
||||||
|
|
||||||
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
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'
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
export default {
|
export default {
|
||||||
name: "step3",
|
name: 'step3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -234,7 +234,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -144,221 +144,224 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep6",
|
name: 'phoneBzdyStep6',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText6: '',
|
commentText6: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
hzfileId: '',
|
hzfileId: '',
|
||||||
hzfileName: '',
|
hzfileName: '',
|
||||||
texthq: ''
|
texthq: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
texthq: [
|
texthq: [
|
||||||
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {},
|
json: {},
|
||||||
fileUrl: 'api/att/attFile/uploadNew',
|
fileUrl: 'api/att/attFile/uploadNew',
|
||||||
fileMadel: false,
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -111,213 +111,216 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep7",
|
name: 'phoneBzdyStep7',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText7: '',
|
commentText7: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
hzfileId: '',
|
hzfileId: '',
|
||||||
hzfileName: '',
|
hzfileName: '',
|
||||||
textsh: ''
|
textsh: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
textsh: [
|
textsh: [
|
||||||
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {},
|
json: {},
|
||||||
fileUrl: 'api/att/attFile/uploadNew',
|
fileUrl: 'api/att/attFile/uploadNew',
|
||||||
fileMadel: false,
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -111,213 +111,216 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep8",
|
name: 'phoneBzdyStep8',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText8: '',
|
commentText8: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
hzfileId: '',
|
hzfileId: '',
|
||||||
hzfileName: '',
|
hzfileName: '',
|
||||||
textsh: ''
|
textsh: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
textsh: [
|
textsh: [
|
||||||
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {},
|
json: {},
|
||||||
fileUrl: 'api/att/attFile/uploadNew',
|
fileUrl: 'api/att/attFile/uploadNew',
|
||||||
fileMadel: false,
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -136,217 +136,220 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzdyStep9",
|
name: 'phoneBzdyStep9',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText9: '',
|
commentText9: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
title: '', // 调研标题
|
title: '', // 调研标题
|
||||||
date: '', // 完成时间
|
date: '', // 完成时间
|
||||||
hzfileId: '',
|
hzfileId: '',
|
||||||
hzfileName: '',
|
hzfileName: '',
|
||||||
textsh: '',
|
textsh: '',
|
||||||
modelList:[], //调研模板
|
modelList:[], //调研模板
|
||||||
fjList:[] //相关附件
|
fjList:[] //相关附件
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
textsh: [
|
textsh: [
|
||||||
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
{ required: true, message: '请输入审核意见', trigger: 'blur' },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {},
|
json: {},
|
||||||
fileUrl: 'api/att/attFile/uploadNew',
|
fileUrl: 'api/att/attFile/uploadNew',
|
||||||
fileMadel: false,
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
|||||||
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzchStep2",
|
name: 'phoneBzchStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -149,7 +149,7 @@ export default {
|
|||||||
fillFile: '',
|
fillFile: '',
|
||||||
},
|
},
|
||||||
ch_rules: {
|
ch_rules: {
|
||||||
meetingInRoleId: [{required: true, message: "请选择参会人员", trigger: ['blur', 'change']}]
|
meetingInRoleId: [{required: true, message: '请选择参会人员', trigger: ['blur', 'change']}]
|
||||||
},
|
},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
modalshowflag: false,
|
modalshowflag: false,
|
||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
if (this.commentText === '') {
|
if (this.commentText === '') {
|
||||||
this.$message.warning('请输入审批意见')
|
this.$message.warning('请输入审批意见')
|
||||||
} else {
|
} else {
|
||||||
let json = {
|
const json = {
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
memberId: this.$store.getters.userInfo.account,
|
memberId: this.$store.getters.userInfo.account,
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
@@ -216,7 +216,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('退回成功')
|
this.$message.success('退回成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -229,7 +230,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
memberId: this.$store.getters.userInfo.account,
|
memberId: this.$store.getters.userInfo.account,
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
@@ -247,7 +248,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -259,8 +261,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 点击对应附件进行下载*/
|
/** 点击对应附件进行下载*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -273,8 +275,8 @@ export default {
|
|||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
var idList = ''
|
let idList = ''
|
||||||
var nameList = ''
|
let nameList = ''
|
||||||
data.forEach( item => {
|
data.forEach( item => {
|
||||||
if (nameList.length > 0) {
|
if (nameList.length > 0) {
|
||||||
nameList += ','
|
nameList += ','
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
|||||||
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
import {startProcess, saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzchStep4",
|
name: 'phoneBzchStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -194,7 +194,7 @@ export default {
|
|||||||
if (this.textarea === '') {
|
if (this.textarea === '') {
|
||||||
this.$message.warning('请输入审批意见')
|
this.$message.warning('请输入审批意见')
|
||||||
} else {
|
} else {
|
||||||
let json = {
|
const json = {
|
||||||
member: this.selfUser,
|
member: this.selfUser,
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
@@ -212,7 +212,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('退回成功')
|
this.$message.success('退回成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -224,7 +225,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
member: this.selfUser,
|
member: this.selfUser,
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
engineerSum: this.roleForm.startUser,
|
engineerSum: this.roleForm.startUser,
|
||||||
@@ -243,7 +244,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -254,8 +256,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 点击对应附件进行预览 */
|
/** 点击对应附件进行预览 */
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ import ProcessFooter from '../../components/ProcessFooter'
|
|||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzchStep6",
|
name: 'phoneBzchStep6',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
getData() {
|
getData() {
|
||||||
if (this.taskInfo === '标准法规工程师修订完毕') {
|
if (this.taskInfo === '标准法规工程师修订完毕') {
|
||||||
this.passTitle = '回执说明',
|
this.passTitle = '回执说明',
|
||||||
this.passHolder = '请输入回执说明'
|
this.passHolder = '请输入回执说明'
|
||||||
}
|
}
|
||||||
const params = {
|
const params = {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
@@ -198,15 +198,15 @@ export default {
|
|||||||
/** 批量删除 */
|
/** 批量删除 */
|
||||||
del_paryForm() {
|
del_paryForm() {
|
||||||
if (this.deleteDataList.length < 1) {
|
if (this.deleteDataList.length < 1) {
|
||||||
this.$message.warning("请选择一条数据进行删除");
|
this.$message.warning('请选择一条数据进行删除');
|
||||||
} else {
|
} else {
|
||||||
this.$confirm("您确认删除这些数据?", "提示", {
|
this.$confirm('您确认删除这些数据?', '提示', {
|
||||||
confirmButtonText: "确认",
|
confirmButtonText: '确认',
|
||||||
confirmButtonClass: "common-button-primary",
|
confirmButtonClass: 'common-button-primary',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "warning"
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
let exits = [];
|
const exits = [];
|
||||||
this.deleteDataList.map(item => {
|
this.deleteDataList.map(item => {
|
||||||
let index;
|
let index;
|
||||||
index = this.ch_pageData.myPartRole.findIndex(items => {
|
index = this.ch_pageData.myPartRole.findIndex(items => {
|
||||||
@@ -262,7 +262,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -305,7 +306,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -317,8 +319,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 点击对应附件进行预览*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
|||||||
import {saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
import {saveTaskFirst, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzhhStep2",
|
name: 'phoneBzhhStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -247,29 +247,29 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击上传的文件进行下载
|
// 点击上传的文件进行下载
|
||||||
handleOnPreview(file) {
|
handleOnPreview(file) {
|
||||||
let attId = file.id
|
const attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 点击上传的文件进行预览
|
// 点击上传的文件进行预览
|
||||||
onPreviewTheme(file) {
|
onPreviewTheme(file) {
|
||||||
let attId = file.id
|
const attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 点击上传的文件进行下载
|
// 点击上传的文件进行下载
|
||||||
onPreviewOther(file) {
|
onPreviewOther(file) {
|
||||||
let attId = file.id
|
const attId = file.id
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 退回按钮
|
// 退回按钮
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
let json = {
|
const json = {
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
hh_pageData: this.hh_pageData,
|
hh_pageData: this.hh_pageData,
|
||||||
@@ -285,7 +285,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('退回成功')
|
this.$message.success('退回成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -296,7 +297,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
ch_pageData: this.ch_pageData,
|
ch_pageData: this.ch_pageData,
|
||||||
@@ -312,7 +313,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
@@ -127,10 +127,10 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzrhStep2",
|
name: 'phoneBzrhStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -161,7 +161,7 @@ export default {
|
|||||||
comityInRoleId: '',
|
comityInRoleId: '',
|
||||||
},
|
},
|
||||||
roleForm: {
|
roleForm: {
|
||||||
comityOpRoleId: [{required: true, message: "请选择入会人员", trigger: ['blur', 'change']}]
|
comityOpRoleId: [{required: true, message: '请选择入会人员', trigger: ['blur', 'change']}]
|
||||||
},
|
},
|
||||||
commentText: '',
|
commentText: '',
|
||||||
roleShowflag: false,
|
roleShowflag: false,
|
||||||
@@ -212,8 +212,8 @@ export default {
|
|||||||
|
|
||||||
/** 点击对应附件进行预览*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -222,7 +222,7 @@ export default {
|
|||||||
if (this.commentText === '') {
|
if (this.commentText === '') {
|
||||||
this.$message.warning('请输入审批意见')
|
this.$message.warning('请输入审批意见')
|
||||||
} else {
|
} else {
|
||||||
let json = {
|
const json = {
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
memberId: this.$store.getters.userInfo.account,
|
memberId: this.$store.getters.userInfo.account,
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
@@ -240,7 +240,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('退回成功')
|
this.$message.success('退回成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -252,7 +253,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
memberId: this.$store.getters.userInfo.account,
|
memberId: this.$store.getters.userInfo.account,
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
@@ -270,7 +271,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -287,8 +289,8 @@ export default {
|
|||||||
this.modalshowflag = true
|
this.modalshowflag = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
var idList = ''
|
let idList = ''
|
||||||
var nameList = ''
|
let nameList = ''
|
||||||
data.forEach( item => {
|
data.forEach( item => {
|
||||||
if (nameList.length > 0) {
|
if (nameList.length > 0) {
|
||||||
nameList += ','
|
nameList += ','
|
||||||
|
|||||||
@@ -133,10 +133,10 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzrhStep4",
|
name: 'phoneBzrhStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
if (this.textarea === '') {
|
if (this.textarea === '') {
|
||||||
this.$message.warning('请输入审批意见')
|
this.$message.warning('请输入审批意见')
|
||||||
} else {
|
} else {
|
||||||
let json = {
|
const json = {
|
||||||
member: this.selfUser,
|
member: this.selfUser,
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
roleList: this.roleForm,
|
roleList: this.roleForm,
|
||||||
@@ -253,7 +253,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('退回成功')
|
this.$message.success('退回成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -266,7 +267,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
member: this.selfUser,
|
member: this.selfUser,
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
engineerSum: this.roleForm.startUser,
|
engineerSum: this.roleForm.startUser,
|
||||||
@@ -285,7 +286,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -296,8 +298,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 点击对应附件进行预览*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -146,10 +146,10 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzrhStep6",
|
name: 'phoneBzrhStep6',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -234,8 +234,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 点击对应附件进行预览*/
|
/** 点击对应附件进行预览*/
|
||||||
previews(val) {
|
previews(val) {
|
||||||
let attId = val
|
const attId = val
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -247,7 +247,7 @@ export default {
|
|||||||
if (this.textarea === '') {
|
if (this.textarea === '') {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
} else {
|
} else {
|
||||||
let json = {
|
const json = {
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
rh_pageData: this.rh_pageData,
|
rh_pageData: this.rh_pageData,
|
||||||
roleList: this.roleForm
|
roleList: this.roleForm
|
||||||
@@ -271,7 +271,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -284,7 +285,7 @@ export default {
|
|||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let json = {
|
const json = {
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
rh_pageData: this.rh_pageData,
|
rh_pageData: this.rh_pageData,
|
||||||
commentText: this.textarea,
|
commentText: this.textarea,
|
||||||
@@ -309,7 +310,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -262,236 +262,239 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from "vant";
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzjdStep4",
|
name: 'phoneBzjdStep4',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableIndex: 0,
|
tableIndex: 0,
|
||||||
itemLists: [],
|
itemLists: [],
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
similarityDegree: "",
|
similarityDegree: '',
|
||||||
BDmodel: false,
|
BDmodel: false,
|
||||||
leftData: "",
|
leftData: '',
|
||||||
rightData: "",
|
rightData: '',
|
||||||
dialogMadal: false,
|
dialogMadal: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
//折叠的标志,true为折叠,false为不折叠
|
//折叠的标志,true为折叠,false为不折叠
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
histortData: [],
|
histortData: [],
|
||||||
sarType: '',
|
sarType: '',
|
||||||
itemList: [],
|
itemList: [],
|
||||||
loading: true,
|
loading: true,
|
||||||
commentText4: '',
|
commentText4: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
itemsNum: '',
|
itemsNum: '',
|
||||||
itemsName: '',
|
itemsName: '',
|
||||||
itemsNum1: '',
|
itemsNum1: '',
|
||||||
itemsName1: '',
|
itemsName1: '',
|
||||||
},
|
},
|
||||||
json: {},
|
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()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -260,236 +260,239 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from "vant";
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzjdStep5",
|
name: 'phoneBzjdStep5',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
BDmodel: false,
|
BDmodel: false,
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
similarityDegree: "",
|
similarityDegree: '',
|
||||||
leftData: "",
|
leftData: '',
|
||||||
rightData: "",
|
rightData: '',
|
||||||
commentText5: "",
|
commentText5: '',
|
||||||
tableIndex: 0,
|
tableIndex: 0,
|
||||||
itemLists: [],
|
itemLists: [],
|
||||||
dialogMadal: false,
|
dialogMadal: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
//折叠的标志,true为折叠,false为不折叠
|
//折叠的标志,true为折叠,false为不折叠
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
histortData: [],
|
histortData: [],
|
||||||
sarType: '',
|
sarType: '',
|
||||||
itemList: [],
|
itemList: [],
|
||||||
loading: true,
|
loading: true,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
itemsNum: '',
|
itemsNum: '',
|
||||||
itemsName: '',
|
itemsName: '',
|
||||||
itemsNum1: '',
|
itemsNum1: '',
|
||||||
itemsName1: '',
|
itemsName1: '',
|
||||||
},
|
},
|
||||||
json: {},
|
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()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -258,236 +258,239 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from "vant";
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzjdStep6",
|
name: 'phoneBzjdStep6',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
commentText6: "",
|
commentText6: '',
|
||||||
BDmodel: false,
|
BDmodel: false,
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
similarityDegree: "",
|
similarityDegree: '',
|
||||||
leftData: "",
|
leftData: '',
|
||||||
rightData: "",
|
rightData: '',
|
||||||
tableIndex: 0,
|
tableIndex: 0,
|
||||||
itemLists: [],
|
itemLists: [],
|
||||||
dialogMadal: false,
|
dialogMadal: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
//折叠的标志,true为折叠,false为不折叠
|
//折叠的标志,true为折叠,false为不折叠
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
histortData: [],
|
histortData: [],
|
||||||
sarType: '',
|
sarType: '',
|
||||||
itemList: [],
|
itemList: [],
|
||||||
loading: true,
|
loading: true,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
itemsNum: '',
|
itemsNum: '',
|
||||||
itemsName: '',
|
itemsName: '',
|
||||||
itemsNum1: '',
|
itemsNum1: '',
|
||||||
itemsName1: '',
|
itemsName1: '',
|
||||||
},
|
},
|
||||||
json: {},
|
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()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -115,12 +115,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
|||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzpgStep2",
|
name: 'phoneBzpgStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -201,14 +201,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: "INLAND_STAND"
|
pageType: 'INLAND_STAND'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
//提交
|
//提交
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
@@ -226,7 +226,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -252,7 +253,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -276,7 +278,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -146,7 +146,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -146,7 +146,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -217,12 +217,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
|||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzpgStep6",
|
name: 'phoneBzpgStep6',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -249,48 +249,48 @@ export default {
|
|||||||
processType: 1,
|
processType: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
dataList: [],//清单里的标准数据
|
dataList: [],//清单里的标准数据
|
||||||
active: "1",
|
active: '1',
|
||||||
userId:this.$store.getters.userInfo.account,
|
userId:this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
listType: "country", //选择的清单类型
|
listType: 'country', //选择的清单类型
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
tabValue: "listOfCountries",
|
tabValue: 'listOfCountries',
|
||||||
selectedList: [], //选择清单的选择框
|
selectedList: [], //选择清单的选择框
|
||||||
selectList: [], //选择标准的选择框
|
selectList: [], //选择标准的选择框
|
||||||
bringData: [],
|
bringData: [],
|
||||||
commentText: "", //填写会签意见
|
commentText: '', //填写会签意见
|
||||||
page: 1,
|
page: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
listForm: {
|
listForm: {
|
||||||
passFlag: " ", //空为审批通过 1 为驳回
|
passFlag: ' ', //空为审批通过 1 为驳回
|
||||||
standNumber: "", //标准编号
|
standNumber: '', //标准编号
|
||||||
standName: "",//标准名称
|
standName: '',//标准名称
|
||||||
certifiedEngineer: "", //认证工程师
|
certifiedEngineer: '', //认证工程师
|
||||||
qualityEngineer: "", //质量工程师
|
qualityEngineer: '', //质量工程师
|
||||||
certifiedEngineerName: "", //认证工程师
|
certifiedEngineerName: '', //认证工程师
|
||||||
qualityEngineerName: "", //质量工程师
|
qualityEngineerName: '', //质量工程师
|
||||||
breakdownList: [{
|
breakdownList: [{
|
||||||
applyArctic: "",
|
applyArctic: '',
|
||||||
busStandCover: "",
|
busStandCover: '',
|
||||||
claimType: "",
|
claimType: '',
|
||||||
id: "",
|
id: '',
|
||||||
itemsName: "",
|
itemsName: '',
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
responsibleUnit: "", //责任部门
|
responsibleUnit: '', //责任部门
|
||||||
responsibleEngineer: "", //责任工程师
|
responsibleEngineer: '', //责任工程师
|
||||||
standId: "",
|
standId: '',
|
||||||
svpps: ""
|
svpps: ''
|
||||||
}],
|
}],
|
||||||
dataList: [{
|
dataList: [{
|
||||||
projectLine: "", //产品线
|
projectLine: '', //产品线
|
||||||
uname: "",//产品线责任人
|
uname: '',//产品线责任人
|
||||||
projectManager:"",// 产品线责任人id
|
projectManager:'',// 产品线责任人id
|
||||||
distributePerson: "", //分发责任人
|
distributePerson: '', //分发责任人
|
||||||
distributePersonId: "", //分发责任人id
|
distributePersonId: '', //分发责任人id
|
||||||
id: "",
|
id: '',
|
||||||
sarStandProjectLibraries: [{
|
sarStandProjectLibraries: [{
|
||||||
projectManager: '',
|
projectManager: '',
|
||||||
projectLevel: '',
|
projectLevel: '',
|
||||||
@@ -310,11 +310,11 @@ export default {
|
|||||||
},
|
},
|
||||||
choiceForm: {}, //选择标准清单列表
|
choiceForm: {}, //选择标准清单列表
|
||||||
countryOptions: [], //适用区域下拉框数据
|
countryOptions: [], //适用区域下拉框数据
|
||||||
user1: "",
|
user1: '',
|
||||||
user2: "",
|
user2: '',
|
||||||
user3: "",
|
user3: '',
|
||||||
user4: "",
|
user4: '',
|
||||||
user5: "",
|
user5: '',
|
||||||
standMap: new Map()
|
standMap: new Map()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -337,7 +337,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -382,7 +383,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -424,14 +426,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: "INLAND_STAND"
|
pageType: 'INLAND_STAND'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -497,7 +499,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -522,7 +525,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -227,12 +227,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
|||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzpgStep7",
|
name: 'phoneBzpgStep7',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -262,48 +262,48 @@ export default {
|
|||||||
processType: 1,
|
processType: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
dataList: [],//清单里的标准数据
|
dataList: [],//清单里的标准数据
|
||||||
active: "1",
|
active: '1',
|
||||||
userId:this.$store.getters.userInfo.account,
|
userId:this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
listType: "country", //选择的清单类型
|
listType: 'country', //选择的清单类型
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
tabValue: "listOfCountries",
|
tabValue: 'listOfCountries',
|
||||||
selectedList: [], //选择清单的选择框
|
selectedList: [], //选择清单的选择框
|
||||||
selectList: [], //选择标准的选择框
|
selectList: [], //选择标准的选择框
|
||||||
bringData: [],
|
bringData: [],
|
||||||
commentText: "", //填写会签意见
|
commentText: '', //填写会签意见
|
||||||
page: 1,
|
page: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
listForm: {
|
listForm: {
|
||||||
passFlag: " ", //空为审批通过 1 为驳回
|
passFlag: ' ', //空为审批通过 1 为驳回
|
||||||
standNumber: "", //标准编号
|
standNumber: '', //标准编号
|
||||||
standName: "",//标准名称
|
standName: '',//标准名称
|
||||||
certifiedEngineer: "", //认证工程师
|
certifiedEngineer: '', //认证工程师
|
||||||
qualityEngineer: "", //质量工程师
|
qualityEngineer: '', //质量工程师
|
||||||
certifiedEngineerName: "", //认证工程师
|
certifiedEngineerName: '', //认证工程师
|
||||||
qualityEngineerName: "", //质量工程师
|
qualityEngineerName: '', //质量工程师
|
||||||
breakdownList: [{
|
breakdownList: [{
|
||||||
applyArctic: "",
|
applyArctic: '',
|
||||||
busStandCover: "",
|
busStandCover: '',
|
||||||
claimType: "",
|
claimType: '',
|
||||||
id: "",
|
id: '',
|
||||||
itemsName: "",
|
itemsName: '',
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
responsibleUnit: "", //责任部门
|
responsibleUnit: '', //责任部门
|
||||||
responsibleEngineer: "", //责任工程师
|
responsibleEngineer: '', //责任工程师
|
||||||
standId: "",
|
standId: '',
|
||||||
svpps: ""
|
svpps: ''
|
||||||
}],
|
}],
|
||||||
dataList: [{
|
dataList: [{
|
||||||
projectLine: "", //产品线
|
projectLine: '', //产品线
|
||||||
uname: "",//产品线责任人
|
uname: '',//产品线责任人
|
||||||
projectManager:"",// 产品线责任人id
|
projectManager:'',// 产品线责任人id
|
||||||
distributePerson: "", //分发责任人
|
distributePerson: '', //分发责任人
|
||||||
distributePersonId: "", //分发责任人id
|
distributePersonId: '', //分发责任人id
|
||||||
id: "",
|
id: '',
|
||||||
sarStandProjectLibraries: [{
|
sarStandProjectLibraries: [{
|
||||||
projectManager: '',
|
projectManager: '',
|
||||||
projectLevel: '',
|
projectLevel: '',
|
||||||
@@ -323,11 +323,11 @@ export default {
|
|||||||
},
|
},
|
||||||
choiceForm: {}, //选择标准清单列表
|
choiceForm: {}, //选择标准清单列表
|
||||||
countryOptions: [], //适用区域下拉框数据
|
countryOptions: [], //适用区域下拉框数据
|
||||||
user1: "",
|
user1: '',
|
||||||
user2: "",
|
user2: '',
|
||||||
user3: "",
|
user3: '',
|
||||||
user4: "",
|
user4: '',
|
||||||
user5: "",
|
user5: '',
|
||||||
standMap: new Map()
|
standMap: new Map()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -353,7 +353,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -398,7 +399,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -440,14 +442,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: "INLAND_STAND"
|
pageType: 'INLAND_STAND'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -514,7 +516,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -227,12 +227,12 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
|||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail,processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzpgStep8",
|
name: 'phoneBzpgStep8',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -261,48 +261,48 @@ export default {
|
|||||||
processType: 1,
|
processType: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
dataList: [],//清单里的标准数据
|
dataList: [],//清单里的标准数据
|
||||||
active: "1",
|
active: '1',
|
||||||
userId:this.$store.getters.userInfo.account,
|
userId:this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
listType: "country", //选择的清单类型
|
listType: 'country', //选择的清单类型
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
tabValue: "listOfCountries",
|
tabValue: 'listOfCountries',
|
||||||
selectedList: [], //选择清单的选择框
|
selectedList: [], //选择清单的选择框
|
||||||
selectList: [], //选择标准的选择框
|
selectList: [], //选择标准的选择框
|
||||||
bringData: [],
|
bringData: [],
|
||||||
commentText: "", //填写会签意见
|
commentText: '', //填写会签意见
|
||||||
page: 1,
|
page: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
listForm: {
|
listForm: {
|
||||||
passFlag: " ", //空为审批通过 1 为驳回
|
passFlag: ' ', //空为审批通过 1 为驳回
|
||||||
standNumber: "", //标准编号
|
standNumber: '', //标准编号
|
||||||
standName: "",//标准名称
|
standName: '',//标准名称
|
||||||
certifiedEngineer: "", //认证工程师
|
certifiedEngineer: '', //认证工程师
|
||||||
qualityEngineer: "", //质量工程师
|
qualityEngineer: '', //质量工程师
|
||||||
certifiedEngineerName: "", //认证工程师
|
certifiedEngineerName: '', //认证工程师
|
||||||
qualityEngineerName: "", //质量工程师
|
qualityEngineerName: '', //质量工程师
|
||||||
breakdownList: [{
|
breakdownList: [{
|
||||||
applyArctic: "",
|
applyArctic: '',
|
||||||
busStandCover: "",
|
busStandCover: '',
|
||||||
claimType: "",
|
claimType: '',
|
||||||
id: "",
|
id: '',
|
||||||
itemsName: "",
|
itemsName: '',
|
||||||
itemsNum: "",
|
itemsNum: '',
|
||||||
responsibleUnit: "", //责任部门
|
responsibleUnit: '', //责任部门
|
||||||
responsibleEngineer: "", //责任工程师
|
responsibleEngineer: '', //责任工程师
|
||||||
standId: "",
|
standId: '',
|
||||||
svpps: ""
|
svpps: ''
|
||||||
}],
|
}],
|
||||||
dataList: [{
|
dataList: [{
|
||||||
projectLine: "", //产品线
|
projectLine: '', //产品线
|
||||||
uname: "",//产品线责任人
|
uname: '',//产品线责任人
|
||||||
projectManager:"",// 产品线责任人id
|
projectManager:'',// 产品线责任人id
|
||||||
distributePerson: "", //分发责任人
|
distributePerson: '', //分发责任人
|
||||||
distributePersonId: "", //分发责任人id
|
distributePersonId: '', //分发责任人id
|
||||||
id: "",
|
id: '',
|
||||||
sarStandProjectLibraries: [{
|
sarStandProjectLibraries: [{
|
||||||
projectManager: '',
|
projectManager: '',
|
||||||
projectLevel: '',
|
projectLevel: '',
|
||||||
@@ -322,11 +322,11 @@ export default {
|
|||||||
},
|
},
|
||||||
choiceForm: {}, //选择标准清单列表
|
choiceForm: {}, //选择标准清单列表
|
||||||
countryOptions: [], //适用区域下拉框数据
|
countryOptions: [], //适用区域下拉框数据
|
||||||
user1: "",
|
user1: '',
|
||||||
user2: "",
|
user2: '',
|
||||||
user3: "",
|
user3: '',
|
||||||
user4: "",
|
user4: '',
|
||||||
user5: "",
|
user5: '',
|
||||||
standMap: new Map()
|
standMap: new Map()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -352,7 +352,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -397,7 +398,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -439,14 +441,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: "INLAND_STAND"
|
pageType: 'INLAND_STAND'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -513,7 +515,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ export default {
|
|||||||
this.$message.success(completeTaskRef.message)
|
this.$message.success(completeTaskRef.message)
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
handleTransfer () {
|
handleTransfer () {
|
||||||
@@ -167,7 +168,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -148,7 +148,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -161,14 +161,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzqdfbStep4",
|
name: 'phoneBzqdfbStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessFooter,
|
ProcessFooter,
|
||||||
@@ -190,38 +190,38 @@ export default {
|
|||||||
processType: 1,
|
processType: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
dataList: [],//清单里的标准数据
|
dataList: [],//清单里的标准数据
|
||||||
approvalOpinion: "", // 通过0/驳回1
|
approvalOpinion: '', // 通过0/驳回1
|
||||||
active: "1",
|
active: '1',
|
||||||
listType: "country", //选择的清单类型
|
listType: 'country', //选择的清单类型
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
tabValue: "listOfCountries",
|
tabValue: 'listOfCountries',
|
||||||
selectedList: [], //选择清单的选择框
|
selectedList: [], //选择清单的选择框
|
||||||
selectList: [], //选择标准的选择框
|
selectList: [], //选择标准的选择框
|
||||||
bringData: [],
|
bringData: [],
|
||||||
commentText: "", //填写会签意见
|
commentText: '', //填写会签意见
|
||||||
fileList:[],
|
fileList:[],
|
||||||
page: 1,
|
page: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
listForm: {
|
listForm: {
|
||||||
fileIds: '',
|
fileIds: '',
|
||||||
listType: "", //区分是哪个清单
|
listType: '', //区分是哪个清单
|
||||||
listName: "", //清单名称
|
listName: '', //清单名称
|
||||||
descriptionList: "", //清单说明
|
descriptionList: '', //清单说明
|
||||||
enclosure: "", //附件
|
enclosure: '', //附件
|
||||||
signFlag: "1", //是否会签 1为会签 2为不会签
|
signFlag: '1', //是否会签 1为会签 2为不会签
|
||||||
approvalOpinion: "", // 通过/驳回
|
approvalOpinion: '', // 通过/驳回
|
||||||
dataList: [{
|
dataList: [{
|
||||||
standNumber: "", //标准号
|
standNumber: '', //标准号
|
||||||
cnName: "", //中文名称
|
cnName: '', //中文名称
|
||||||
enName: "", //英文名称
|
enName: '', //英文名称
|
||||||
isSubTime: "", //发布日期
|
isSubTime: '', //发布日期
|
||||||
newCarTime: "", //新车型实施日期
|
newCarTime: '', //新车型实施日期
|
||||||
oldCarTime: "", //在产车实施日期
|
oldCarTime: '', //在产车实施日期
|
||||||
applyCar: "", //适用车型
|
applyCar: '', //适用车型
|
||||||
textState: "", //标准状态
|
textState: '', //标准状态
|
||||||
id: ""
|
id: ''
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
choiceForm: {}, //选择标准清单列表
|
choiceForm: {}, //选择标准清单列表
|
||||||
@@ -229,12 +229,12 @@ export default {
|
|||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
signFlag: "1", //是否会签 1为会签 2为不会签
|
signFlag: '1', //是否会签 1为会签 2为不会签
|
||||||
user1: "",
|
user1: '',
|
||||||
user2: "",
|
user2: '',
|
||||||
user3: "",
|
user3: '',
|
||||||
user4: "",
|
user4: '',
|
||||||
user5: "",
|
user5: '',
|
||||||
standMap: new Map(),
|
standMap: new Map(),
|
||||||
textStatusMap: {}// 标准状态id与name对应
|
textStatusMap: {}// 标准状态id与name对应
|
||||||
};
|
};
|
||||||
@@ -262,28 +262,29 @@ export default {
|
|||||||
this.phoneDrawerTitle = '转办处理人'
|
this.phoneDrawerTitle = '转办处理人'
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
this.roleTransfer = data
|
this.roleTransfer = data
|
||||||
this.phoneRoleList = this.roleTransfer
|
this.phoneRoleList = this.roleTransfer
|
||||||
this.turnLoading = true
|
this.turnLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.userId, // 被委托人
|
userId: this.userId, // 被委托人
|
||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
// this.$router.push("/processCenter")
|
this.$close()
|
||||||
} else {
|
// this.$router.push("/processCenter")
|
||||||
this.$message.warning(res.message)
|
} else {
|
||||||
}
|
this.$message.warning(res.message)
|
||||||
}).finally(() => {
|
}
|
||||||
this.isSubmit = false
|
}).finally(() => {
|
||||||
})
|
this.isSubmit = false
|
||||||
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
//tab发生变化
|
//tab发生变化
|
||||||
@@ -295,14 +296,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(item) {
|
handlePreview(item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
pageType: "INLAND_STAND"
|
pageType: 'INLAND_STAND'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.open(routeUrl.href, "_blank");
|
window.open(routeUrl.href, '_blank');
|
||||||
},
|
},
|
||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
@@ -330,13 +331,13 @@ export default {
|
|||||||
this.listForm = JSON.parse(JSON.stringify(item));
|
this.listForm = JSON.parse(JSON.stringify(item));
|
||||||
this.listForm.prcNum = this.prcNum;
|
this.listForm.prcNum = this.prcNum;
|
||||||
this.listForm.prcName = this.prcName;
|
this.listForm.prcName = this.prcName;
|
||||||
this.listForm["id"] = item.id;
|
this.listForm['id'] = item.id;
|
||||||
this.listForm.dataList = item.dataList;
|
this.listForm.dataList = item.dataList;
|
||||||
this.dataList = item.dataList;
|
this.dataList = item.dataList;
|
||||||
this.listForm.applyUpdUserId = item.applyUpdUserId;
|
this.listForm.applyUpdUserId = item.applyUpdUserId;
|
||||||
this.listForm.jlUserId = item.jlUserId;
|
this.listForm.jlUserId = item.jlUserId;
|
||||||
this.listForm.zrUserId = item.zrUserId;
|
this.listForm.zrUserId = item.zrUserId;
|
||||||
let filesId = []
|
const filesId = []
|
||||||
item.fileName.forEach(itemIds =>{
|
item.fileName.forEach(itemIds =>{
|
||||||
filesId.push(itemIds.id)
|
filesId.push(itemIds.id)
|
||||||
})
|
})
|
||||||
@@ -349,7 +350,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo() {
|
getFileInfo() {
|
||||||
this.$http.get("att/attFile/getMultiFileInfos", {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.fileIds
|
fileIds: this.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -377,10 +378,10 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 驳回事件
|
// 驳回事件
|
||||||
@@ -389,11 +390,11 @@ export default {
|
|||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.listForm.approvalOpinion = "1";
|
this.listForm.approvalOpinion = '1';
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -403,7 +404,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
@@ -414,10 +416,10 @@ export default {
|
|||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.listForm.approvalOpinion = "2";
|
this.listForm.approvalOpinion = '2';
|
||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -427,7 +429,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -464,12 +467,12 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
//从数据库中查询下拉框数据
|
//从数据库中查询下拉框数据
|
||||||
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
|
this.$http.get('sys/dictype/getDicTypeListCode', {}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.countryOptions = res.data.COUNTRY;
|
this.countryOptions = res.data.COUNTRY;
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ import ProcessTitle from '../../components/ProcessTitle'
|
|||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
@@ -458,7 +458,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
|
|||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzrkStep2",
|
name: 'phoneBzrkStep2',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
commentText: '',
|
commentText: '',
|
||||||
@@ -675,7 +675,8 @@ export default {
|
|||||||
this.processNum()
|
this.processNum()
|
||||||
this.queryProcess()
|
this.queryProcess()
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -753,7 +754,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids, names) {
|
assemble(ids, names) {
|
||||||
let list = new Array();
|
const list = new Array();
|
||||||
let idArray = []
|
let idArray = []
|
||||||
let nameArray = []
|
let nameArray = []
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
@@ -762,7 +763,7 @@ export default {
|
|||||||
if (names.length > 0) {
|
if (names.length > 0) {
|
||||||
nameArray = names.split(',');
|
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]});
|
list.push({id: idArray[i], name: nameArray[i]});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -823,7 +824,7 @@ export default {
|
|||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = JSON.parse(JSON.stringify(item))
|
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.wssmr = wssmrName
|
||||||
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
this.form.sycpx = this.form.sycpx && this.form.sycpx !== [] ? this.form.sycpx : ''
|
||||||
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
this.form.nylx = this.form.nylx && this.form.nylx !== [] ? this.form.nylx : ''
|
||||||
@@ -835,8 +836,8 @@ export default {
|
|||||||
this.defaultCheckedKeys3 = [this.form.dybxh]
|
this.defaultCheckedKeys3 = [this.form.dybxh]
|
||||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||||
this.form.standYear = this.form.standYear ? this.form.standYear : ''
|
this.form.standYear = this.form.standYear ? this.form.standYear : ''
|
||||||
if (this.form.country && this.form.country.indexOf(",") !== -1) {
|
if (this.form.country && this.form.country.indexOf(',') !== -1) {
|
||||||
this.form.country = this.form.country.split(",");
|
this.form.country = this.form.country.split(',');
|
||||||
}
|
}
|
||||||
this.form.prcNum = this.prcNum
|
this.form.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
@@ -848,7 +849,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -883,27 +884,27 @@ export default {
|
|||||||
this.form.commentText = this.commentText;
|
this.form.commentText = this.commentText;
|
||||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
|
this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
|
||||||
if (this.form.syrz.length === 0) {
|
if (this.form.syrz.length === 0) {
|
||||||
this.form.syrz = "";
|
this.form.syrz = '';
|
||||||
}
|
}
|
||||||
if (this.form.nylx.length === 0) {
|
if (this.form.nylx.length === 0) {
|
||||||
this.form.nylx = "";
|
this.form.nylx = '';
|
||||||
}
|
}
|
||||||
if (this.form.zrbm.length === 0) {
|
if (this.form.zrbm.length === 0) {
|
||||||
this.form.zrbm = "";
|
this.form.zrbm = '';
|
||||||
}
|
}
|
||||||
if (this.form.qcdw.length === 0) {
|
if (this.form.qcdw.length === 0) {
|
||||||
this.form.qcdw = "";
|
this.form.qcdw = '';
|
||||||
}
|
}
|
||||||
if (this.form.cllx.length === 0) {
|
if (this.form.cllx.length === 0) {
|
||||||
this.form.cllx = "";
|
this.form.cllx = '';
|
||||||
}
|
}
|
||||||
if (this.form.sycpx.length === 0) {
|
if (this.form.sycpx.length === 0) {
|
||||||
this.form.sycpx = "";
|
this.form.sycpx = '';
|
||||||
}
|
}
|
||||||
if (this.form.zrgcs.length === 0) {
|
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){
|
if(this.form.qcdw && this.form.qcdw.length > 0){
|
||||||
this.form.qcdw.map(item => {
|
this.form.qcdw.map(item => {
|
||||||
this.qcdwOptions.forEach(items => {
|
this.qcdwOptions.forEach(items => {
|
||||||
@@ -919,7 +920,7 @@ export default {
|
|||||||
this.form.qcdw = qcdwName
|
this.form.qcdw = qcdwName
|
||||||
this.form.qcdw = qcdwName.splice(',')
|
this.form.qcdw = qcdwName.splice(',')
|
||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -927,13 +928,14 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (this.formTongGuo.approvalOpinion == "1") {
|
if (this.formTongGuo.approvalOpinion == '1') {
|
||||||
this.$message.warning("驳回成功");
|
this.$message.warning('驳回成功');
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
this.formTongGuo.commentText = "";
|
this.formTongGuo.commentText = '';
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
// this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
||||||
} else {
|
} else {
|
||||||
this.processCreateStand(json);
|
this.processCreateStand(json);
|
||||||
@@ -955,7 +957,8 @@ export default {
|
|||||||
this.$message.success(res.data)
|
this.$message.success(res.data)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({
|
// this.$router.push({
|
||||||
// name: 'ProcessCenter'
|
// name: 'ProcessCenter'
|
||||||
// })
|
// })
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ export default {
|
|||||||
this.$message.success(completeTaskRef.message)
|
this.$message.success(completeTaskRef.message)
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
},
|
},
|
||||||
getDicTypeListCode () {
|
getDicTypeListCode () {
|
||||||
|
|||||||
@@ -148,7 +148,8 @@ export default {
|
|||||||
// this.$message.success(completeTaskRef.message)
|
// this.$message.success(completeTaskRef.message)
|
||||||
// this.footerLoading = false
|
// this.footerLoading = false
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
// this.$router.go(-2)
|
// // this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// }, 100)
|
// }, 100)
|
||||||
},
|
},
|
||||||
getDicTypeListCode () {
|
getDicTypeListCode () {
|
||||||
|
|||||||
@@ -103,229 +103,230 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew} from "api/process";
|
import { inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep2",
|
name: 'phoneBzzqyjStep2',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText2: "",
|
commentText2: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: "",
|
type: '',
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: "", // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: "1", // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: "", // 编号
|
cid: '', // 编号
|
||||||
endTime: "", // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: "", // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
responUserList: "",
|
responUserList: '',
|
||||||
responUserListName: "",
|
responUserListName: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{ required: true, message: "请选择责任人", trigger: "change" }
|
{ required: true, message: '请选择责任人', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<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 ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./componnets/Basic";
|
import Basic from './componnets/Basic';
|
||||||
import SolicitationList from "./componnets/SolicitationList";
|
import SolicitationList from './componnets/SolicitationList';
|
||||||
|
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step3",
|
name: 'step3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -153,7 +153,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -176,232 +176,235 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep4-1",
|
name: 'phoneBzzqyjStep4-1',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText41: '',
|
commentText41: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: '',
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: '', //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: '', // 编号
|
cid: '', // 编号
|
||||||
endTime: '', // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: '', // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
bzfgId: '',
|
bzfgId: '',
|
||||||
bzfgName: '',
|
bzfgName: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
bzfgId: [
|
bzfgId: [
|
||||||
{required: true, message: '请选择标准法规工程师分线管理员', trigger: 'change'},
|
{required: true, message: '请选择标准法规工程师分线管理员', trigger: 'change'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -164,226 +164,229 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process'
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep4-2",
|
name: 'phoneBzzqyjStep4-2',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText42: '',
|
commentText42: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: '',
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: 'children',
|
children: 'children',
|
||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: '', //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: '', // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: '1', // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: '', // 编号
|
cid: '', // 编号
|
||||||
endTime: '', // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: '', // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
bzfgId: '',
|
bzfgId: '',
|
||||||
bzfgName: '',
|
bzfgName: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{required: true, message: '请选择责任人', trigger: 'change'},
|
{required: true, message: '请选择责任人', trigger: 'change'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<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 ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./componnets/Basic";
|
import Basic from './componnets/Basic';
|
||||||
import SolicitationList from "./componnets/SolicitationList";
|
import SolicitationList from './componnets/SolicitationList';
|
||||||
|
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step3",
|
name: 'step3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -153,7 +153,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
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 ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./componnets/Basic";
|
import Basic from './componnets/Basic';
|
||||||
import SolicitationList from "./componnets/SolicitationList";
|
import SolicitationList from './componnets/SolicitationList';
|
||||||
|
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step3",
|
name: 'step3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -153,7 +153,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -198,286 +198,289 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import isMobile from "@/store/isMobile";
|
import isMobile from '@/store/isMobile';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep6",
|
name: 'phoneBzzqyjStep6',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data2: [],
|
data2: [],
|
||||||
commentText6: '',
|
commentText6: '',
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText: "",
|
commentText: '',
|
||||||
oldText: "",
|
oldText: '',
|
||||||
newText: "",
|
newText: '',
|
||||||
reason: "",
|
reason: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: "",
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: 'children',
|
||||||
label: "name"
|
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: {}
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
components: {
|
treeData: [], // 人员数据
|
||||||
[Dialog.Component.name]: Dialog.Component,
|
modalshowflag: false, // drawer开关
|
||||||
ProcessHeaderPhone,
|
drawerTitle: '', //drawer标题
|
||||||
ProcessFooter,
|
textarea: '', // 意见
|
||||||
ProcessTitle
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
},
|
active: '1', // 默认显示
|
||||||
methods: {
|
isSubmit: false,
|
||||||
checkedRole2(data) {
|
saveLoading: false,
|
||||||
var idList = "";
|
form: {
|
||||||
var nameList = "";
|
cid: '', // 编号
|
||||||
if (data.length) {
|
endTime: '', // 结束日期
|
||||||
data.forEach(item => {
|
cname: '', // 名称
|
||||||
if (nameList.length > 0) {
|
fjList: [],
|
||||||
nameList += ",";
|
fjListId: '',
|
||||||
idList += ",";
|
textType: '',
|
||||||
}
|
modelList: [],
|
||||||
idList += item.id;
|
modelNameList: '',
|
||||||
nameList += item.name;
|
user7: '',
|
||||||
});
|
user7Name: ''
|
||||||
}
|
},
|
||||||
this.form.user7 = idList;
|
formRules: {
|
||||||
this.form.user7Name = nameList;
|
user7: [
|
||||||
},
|
{required: true, message: '请选择审批领导', trigger: 'change'}
|
||||||
choiceZRR() {
|
]
|
||||||
this.nodeList = [];
|
},
|
||||||
if (this.form.user7.length > 0) {
|
json: {}
|
||||||
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();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -182,235 +182,238 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep7",
|
name: 'phoneBzzqyjStep7',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText7: "",
|
commentText7: '',
|
||||||
oldText: "",
|
oldText: '',
|
||||||
newText: "",
|
newText: '',
|
||||||
reason: "",
|
reason: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: "",
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: 'children',
|
||||||
label: "name"
|
label: 'name'
|
||||||
},
|
},
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: "", // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: "1", // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: "", // 编号
|
cid: '', // 编号
|
||||||
endTime: "", // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: "", // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{required: true, message: "请选择责任人", trigger: "change"}
|
{required: true, message: '请选择责任人', trigger: 'change'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -183,237 +183,240 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep8",
|
name: 'phoneBzzqyjStep8',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText8: "",
|
commentText8: '',
|
||||||
oldText: "",
|
oldText: '',
|
||||||
newText: "",
|
newText: '',
|
||||||
reason: "",
|
reason: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: "",
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: 'children',
|
||||||
label: "name"
|
label: 'name'
|
||||||
},
|
},
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: "", // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: "1", // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: "", // 编号
|
cid: '', // 编号
|
||||||
endTime: "", // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: "", // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{required: true, message: "请选择责任人", trigger: "change"}
|
{required: true, message: '请选择责任人', trigger: 'change'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -183,251 +183,254 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from '../../components/ProcessFooter';
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from '../../components/ProcessTitle';
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBzzqyjStep9",
|
name: 'phoneBzzqyjStep9',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
itermsConditionsFlag: false,
|
itermsConditionsFlag: false,
|
||||||
itermsConditionsTitle: '',
|
itermsConditionsTitle: '',
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText9: "",
|
commentText9: '',
|
||||||
oldText: "",
|
oldText: '',
|
||||||
newText: "",
|
newText: '',
|
||||||
reason: "",
|
reason: '',
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
roleRow: {},
|
roleRow: {},
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
type: "",
|
type: '',
|
||||||
defaultProps: {
|
defaultProps: {
|
||||||
children: "children",
|
children: 'children',
|
||||||
label: "name"
|
label: 'name'
|
||||||
},
|
},
|
||||||
treeData: [], // 人员数据
|
treeData: [], // 人员数据
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
textarea: "", // 意见
|
textarea: '', // 意见
|
||||||
ListModel: false, // 新增编辑抽屉开关
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
active: "1", // 默认显示
|
active: '1', // 默认显示
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
form: {
|
form: {
|
||||||
cid: "", // 编号
|
cid: '', // 编号
|
||||||
endTime: "", // 结束日期
|
endTime: '', // 结束日期
|
||||||
cname: "", // 名称
|
cname: '', // 名称
|
||||||
fjList: [],
|
fjList: [],
|
||||||
fjListId: '',
|
fjListId: '',
|
||||||
textType: '',
|
textType: '',
|
||||||
modelList: [],
|
modelList: [],
|
||||||
modelNameList: '',
|
modelNameList: '',
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
responUserList: [
|
responUserList: [
|
||||||
{required: true, message: "请选择责任人", trigger: "change"}
|
{required: true, message: '请选择责任人', trigger: 'change'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
json: {}
|
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();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
@@ -108,13 +108,13 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { inboundLiaisonDetail } from "api/process";
|
import { inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneCywbbzzxdStep2",
|
name: 'phoneCywbbzzxdStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -130,17 +130,17 @@ export default {
|
|||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
modalshowflag2: false,
|
modalshowflag2: false,
|
||||||
nodeList2: [],
|
nodeList2: [],
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
roleForm: {
|
roleForm: {
|
||||||
prcCreateUserName: this.$store.getters.userInfo.userName,
|
prcCreateUserName: this.$store.getters.userInfo.userName,
|
||||||
prcCreateUser: this.$store.getters.userInfo.account,
|
prcCreateUser: this.$store.getters.userInfo.account,
|
||||||
dockUser: "",
|
dockUser: '',
|
||||||
directorUser: "",
|
directorUser: '',
|
||||||
workPeople: "",
|
workPeople: '',
|
||||||
dockUserName: "",
|
dockUserName: '',
|
||||||
workPeopleName: "",
|
workPeopleName: '',
|
||||||
directorUserName: ""
|
directorUserName: ''
|
||||||
},
|
},
|
||||||
roleFormRules: {
|
roleFormRules: {
|
||||||
// dockUserName: [
|
// dockUserName: [
|
||||||
@@ -192,30 +192,30 @@ export default {
|
|||||||
choiceZRRS() {
|
choiceZRRS() {
|
||||||
this.nodeList2 = [];
|
this.nodeList2 = [];
|
||||||
if (this.roleForm.workPeople.length > 0) {
|
if (this.roleForm.workPeople.length > 0) {
|
||||||
this.nodeList2 = this.roleForm.workPeople.split(",");
|
this.nodeList2 = this.roleForm.workPeople.split(',');
|
||||||
}
|
}
|
||||||
this.modalshowflag2 = true;
|
this.modalshowflag2 = true;
|
||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
if (this.type === "dockUser") {
|
if (this.type === 'dockUser') {
|
||||||
this.roleForm.dockUser = this.roleRow.id;
|
this.roleForm.dockUser = this.roleRow.id;
|
||||||
this.roleForm.dockUserName = this.roleRow.name;
|
this.roleForm.dockUserName = this.roleRow.name;
|
||||||
} else if (this.type === "directorUser") {
|
} else if (this.type === 'directorUser') {
|
||||||
this.roleForm.directorUser = data[0].id;
|
this.roleForm.directorUser = data[0].id;
|
||||||
this.roleForm.directorUserName = data[0].name;
|
this.roleForm.directorUserName = data[0].name;
|
||||||
} else if(this.type === "workPeople"){
|
} else if(this.type === 'workPeople'){
|
||||||
this.roleForm.workPeople = data[0].id;
|
this.roleForm.workPeople = data[0].id;
|
||||||
this.roleForm.workPeopleName = data[0].name;
|
this.roleForm.workPeopleName = data[0].name;
|
||||||
}
|
}
|
||||||
this.modalshowflag = false;
|
this.modalshowflag = false;
|
||||||
},
|
},
|
||||||
checkedRole2(data) {
|
checkedRole2(data) {
|
||||||
var idList = "";
|
let idList = '';
|
||||||
var nameList = "";
|
let nameList = '';
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
if (nameList.length > 0) {
|
if (nameList.length > 0) {
|
||||||
nameList += ",";
|
nameList += ',';
|
||||||
idList += ",";
|
idList += ',';
|
||||||
}
|
}
|
||||||
idList += item.id;
|
idList += item.id;
|
||||||
nameList += item.name;
|
nameList += item.name;
|
||||||
@@ -225,11 +225,11 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
if(this.roleForm.workPeople !== undefined){
|
if(this.roleForm.workPeople !== undefined){
|
||||||
let json = this.roleForm
|
const json = this.roleForm
|
||||||
this.$refs["Form"].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -239,13 +239,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning('请完善人员信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -207,14 +207,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneCywbbzzxdStep4",
|
name: 'phoneCywbbzzxdStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
//切换tab
|
//切换tab
|
||||||
active: "1",
|
active: '1',
|
||||||
foldFormFlag: true,
|
foldFormFlag: true,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
recordLoading: false,
|
recordLoading: false,
|
||||||
@@ -239,20 +239,20 @@ export default {
|
|||||||
detailData: [], //审批历史信息
|
detailData: [], //审批历史信息
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
wbbzform: {
|
wbbzform: {
|
||||||
reportingUnit: "",
|
reportingUnit: '',
|
||||||
standNumber: "",
|
standNumber: '',
|
||||||
hostOrTask: "",
|
hostOrTask: '',
|
||||||
participants: "",
|
participants: '',
|
||||||
standMechanism: "",
|
standMechanism: '',
|
||||||
partakeTime: "",
|
partakeTime: '',
|
||||||
standName: "",
|
standName: '',
|
||||||
standType: "",
|
standType: '',
|
||||||
standRevise: "",
|
standRevise: '',
|
||||||
releaseTime: ""
|
releaseTime: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
reportingUnit: [
|
reportingUnit: [
|
||||||
{ required: true, message: "请输入提报单位", trigger: "change" }
|
{ required: true, message: '请输入提报单位', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
participantsData: [],
|
participantsData: [],
|
||||||
@@ -263,14 +263,14 @@ export default {
|
|||||||
// costBudget:'',
|
// costBudget:'',
|
||||||
// }], //参与人表格信息
|
// }], //参与人表格信息
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "选项1",
|
value: '选项1',
|
||||||
label: "1"
|
label: '1'
|
||||||
}, {
|
}, {
|
||||||
value: "选项2",
|
value: '选项2',
|
||||||
label: "2"
|
label: '2'
|
||||||
}, {
|
}, {
|
||||||
value: "选项3",
|
value: '选项3',
|
||||||
label: "3"
|
label: '3'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -317,15 +317,15 @@ export default {
|
|||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
signFlag: '2',
|
signFlag: '2',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -335,36 +335,37 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning('项目信息不能为空');
|
||||||
} else {
|
} else {
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
if (item.projectNumber === undefined) {
|
if (item.projectNumber === undefined) {
|
||||||
this.$message.warning("请完善项目信息");
|
this.$message.warning('请完善项目信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
signFlag: '1',
|
signFlag: '1',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -374,13 +375,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -407,7 +409,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -420,7 +423,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -207,14 +207,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneCywbbzzxdStep5",
|
name: 'phoneCywbbzzxdStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
//切换tab
|
//切换tab
|
||||||
active: "1",
|
active: '1',
|
||||||
foldFormFlag: true,
|
foldFormFlag: true,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
recordLoading: false,
|
recordLoading: false,
|
||||||
@@ -239,20 +239,20 @@ export default {
|
|||||||
detailData: [], //审批历史信息
|
detailData: [], //审批历史信息
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
wbbzform: {
|
wbbzform: {
|
||||||
reportingUnit: "",
|
reportingUnit: '',
|
||||||
standNumber: "",
|
standNumber: '',
|
||||||
hostOrTask: "",
|
hostOrTask: '',
|
||||||
participants: "",
|
participants: '',
|
||||||
standMechanism: "",
|
standMechanism: '',
|
||||||
partakeTime: "",
|
partakeTime: '',
|
||||||
standName: "",
|
standName: '',
|
||||||
standType: "",
|
standType: '',
|
||||||
standRevise: "",
|
standRevise: '',
|
||||||
releaseTime: ""
|
releaseTime: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
reportingUnit: [
|
reportingUnit: [
|
||||||
{ required: true, message: "请输入提报单位", trigger: "change" }
|
{ required: true, message: '请输入提报单位', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
participantsData: [],
|
participantsData: [],
|
||||||
@@ -263,14 +263,14 @@ export default {
|
|||||||
// costBudget:'',
|
// costBudget:'',
|
||||||
// }], //参与人表格信息
|
// }], //参与人表格信息
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "选项1",
|
value: '选项1',
|
||||||
label: "1"
|
label: '1'
|
||||||
}, {
|
}, {
|
||||||
value: "选项2",
|
value: '选项2',
|
||||||
label: "2"
|
label: '2'
|
||||||
}, {
|
}, {
|
||||||
value: "选项3",
|
value: '选项3',
|
||||||
label: "3"
|
label: '3'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -317,15 +317,15 @@ export default {
|
|||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else {
|
}else {
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
signFlag: '2',
|
signFlag: '2',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -335,36 +335,37 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning('项目信息不能为空');
|
||||||
} else {
|
} else {
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
if (item.projectNumber === undefined) {
|
if (item.projectNumber === undefined) {
|
||||||
this.$message.warning("请完善项目信息");
|
this.$message.warning('请完善项目信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
signFlag: '1',
|
signFlag: '1',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -374,13 +375,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -407,7 +409,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -420,7 +423,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -207,14 +207,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneCywbbzzxdStep6",
|
name: 'phoneCywbbzzxdStep6',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -227,7 +227,7 @@ export default {
|
|||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
//切换tab
|
//切换tab
|
||||||
active: "1",
|
active: '1',
|
||||||
foldFormFlag: true,
|
foldFormFlag: true,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
recordLoading: false,
|
recordLoading: false,
|
||||||
@@ -239,20 +239,20 @@ export default {
|
|||||||
detailData: [], //审批历史信息
|
detailData: [], //审批历史信息
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
wbbzform: {
|
wbbzform: {
|
||||||
reportingUnit: "",
|
reportingUnit: '',
|
||||||
standNumber: "",
|
standNumber: '',
|
||||||
hostOrTask: "",
|
hostOrTask: '',
|
||||||
participants: "",
|
participants: '',
|
||||||
standMechanism: "",
|
standMechanism: '',
|
||||||
partakeTime: "",
|
partakeTime: '',
|
||||||
standName: "",
|
standName: '',
|
||||||
standType: "",
|
standType: '',
|
||||||
standRevise: "",
|
standRevise: '',
|
||||||
releaseTime: ""
|
releaseTime: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
reportingUnit: [
|
reportingUnit: [
|
||||||
{ required: true, message: "请输入提报单位", trigger: "change" }
|
{ required: true, message: '请输入提报单位', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
participantsData: [],
|
participantsData: [],
|
||||||
@@ -263,14 +263,14 @@ export default {
|
|||||||
// costBudget:'',
|
// costBudget:'',
|
||||||
// }], //参与人表格信息
|
// }], //参与人表格信息
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "选项1",
|
value: '选项1',
|
||||||
label: "1"
|
label: '1'
|
||||||
}, {
|
}, {
|
||||||
value: "选项2",
|
value: '选项2',
|
||||||
label: "2"
|
label: '2'
|
||||||
}, {
|
}, {
|
||||||
value: "选项3",
|
value: '选项3',
|
||||||
label: "3"
|
label: '3'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -317,15 +317,15 @@ export default {
|
|||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
bzFlag: '2',
|
bzFlag: '2',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -335,36 +335,37 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning('项目信息不能为空');
|
||||||
} else {
|
} else {
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
if (item.projectNumber === undefined) {
|
if (item.projectNumber === undefined) {
|
||||||
this.$message.warning("请完善项目信息");
|
this.$message.warning('请完善项目信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
let json = {
|
const json = {
|
||||||
participantsData: this.participantsData,
|
participantsData: this.participantsData,
|
||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
bzFlag: '1',
|
bzFlag: '1',
|
||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs['wbbzForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
@@ -374,13 +375,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning('请完善基础信息');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -407,7 +409,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -420,7 +423,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -246,15 +246,15 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone';
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew, inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew, inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneJrbzhxhStep3",
|
name: 'phoneJrbzhxhStep3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -265,9 +265,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
phoneshowflag: false,
|
phoneshowflag: false,
|
||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: "",
|
phoneDrawerTitle: '',
|
||||||
//切换tab
|
//切换tab
|
||||||
active: "1",
|
active: '1',
|
||||||
foldFormFlag: true,
|
foldFormFlag: true,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
@@ -275,11 +275,11 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
modalshowflag: false,
|
modalshowflag: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "",
|
drawerTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList:[],
|
fileList:[],
|
||||||
commentText: '',
|
commentText: '',
|
||||||
uploadFileListPath: "api/att/attFile/uploadNew", // 上传的地址
|
uploadFileListPath: 'api/att/attFile/uploadNew', // 上传的地址
|
||||||
fileInfoList: [], // 上传的附件
|
fileInfoList: [], // 上传的附件
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
@@ -315,7 +315,7 @@ export default {
|
|||||||
participantsData: [], //参与人表格信息
|
participantsData: [], //参与人表格信息
|
||||||
associationData: [], //协会表格信息
|
associationData: [], //协会表格信息
|
||||||
detailData: [], //审批历史信息
|
detailData: [], //审批历史信息
|
||||||
selectedId: "",
|
selectedId: '',
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: '选项1',
|
value: '选项1',
|
||||||
label: '1'
|
label: '1'
|
||||||
@@ -343,7 +343,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -354,7 +355,7 @@ export default {
|
|||||||
|
|
||||||
choiceZRRS(row, index) {
|
choiceZRRS(row, index) {
|
||||||
this.selectedId = index;
|
this.selectedId = index;
|
||||||
this.drawerTitle = "选择责任人";
|
this.drawerTitle = '选择责任人';
|
||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
this.zrIndex = index;
|
this.zrIndex = index;
|
||||||
this.nodeList.push(row);
|
this.nodeList.push(row);
|
||||||
@@ -362,7 +363,7 @@ export default {
|
|||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
if (this.participantsData.length > 1) {
|
if (this.participantsData.length > 1) {
|
||||||
let parList = data
|
const parList = data
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
parList.forEach(items => {
|
parList.forEach(items => {
|
||||||
if (items.name === item.workPeople) {
|
if (items.name === item.workPeople) {
|
||||||
@@ -376,7 +377,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.participantsData = data
|
this.participantsData = data
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
this.$set(item, "workPeople", item.name)
|
this.$set(item, 'workPeople', item.name)
|
||||||
});
|
});
|
||||||
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
||||||
}
|
}
|
||||||
@@ -438,7 +439,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo() {
|
getFileInfo() {
|
||||||
this.$http.get("att/attFile/getMultiFileInfos", {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.fileIds
|
fileIds: this.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -461,17 +462,17 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//转办按钮
|
//转办按钮
|
||||||
handleTransfer() {
|
handleTransfer() {
|
||||||
this.phoneshowflag = true;
|
this.phoneshowflag = true;
|
||||||
this.phoneRoleList = this.roleTransfer;
|
this.phoneRoleList = this.roleTransfer;
|
||||||
this.phoneDrawerTitle = "转办处理人";
|
this.phoneDrawerTitle = '转办处理人';
|
||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
drawerCheck(data) {
|
drawerCheck(data) {
|
||||||
@@ -487,9 +488,10 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false;
|
this.turnLoading = false;
|
||||||
this.$message.success("调整成功");
|
this.$message.success('调整成功');
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
@@ -502,13 +504,13 @@ export default {
|
|||||||
//流程提交
|
//流程提交
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.wbbzform.signFlag = "1"
|
this.wbbzform.signFlag = '1'
|
||||||
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
this.wbbzform.participantsData = this.participantsData;
|
this.wbbzform.participantsData = this.participantsData;
|
||||||
this.wbbzform.associationData = this.associationData;
|
this.wbbzform.associationData = this.associationData;
|
||||||
var json = JSON.stringify(this.wbbzform);
|
const json = JSON.stringify(this.wbbzform);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -518,7 +520,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -529,16 +532,16 @@ export default {
|
|||||||
//流程驳回
|
//流程驳回
|
||||||
beforeBack() {
|
beforeBack() {
|
||||||
if (!this.commentText) {
|
if (!this.commentText) {
|
||||||
this.$message.warning("请填写审批意见");
|
this.$message.warning('请填写审批意见');
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.wbbzform.signFlag = "0"
|
this.wbbzform.signFlag = '0'
|
||||||
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
this.wbbzform.participantsData = this.participantsData;
|
this.wbbzform.participantsData = this.participantsData;
|
||||||
this.wbbzform.associationData = this.associationData;
|
this.wbbzform.associationData = this.associationData;
|
||||||
var json = JSON.stringify(this.wbbzform);
|
const json = JSON.stringify(this.wbbzform);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -548,7 +551,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -563,7 +567,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -248,14 +248,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneJrbzhxhStep4",
|
name: 'phoneJrbzhxhStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -268,7 +268,7 @@ export default {
|
|||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
//切换tab
|
//切换tab
|
||||||
active: "1",
|
active: '1',
|
||||||
foldFormFlag: true,
|
foldFormFlag: true,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
@@ -280,7 +280,7 @@ export default {
|
|||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList:[],
|
fileList:[],
|
||||||
commentText: '',
|
commentText: '',
|
||||||
uploadFileListPath: "api/att/attFile/uploadNew", // 上传的地址
|
uploadFileListPath: 'api/att/attFile/uploadNew', // 上传的地址
|
||||||
fileInfoList: [], // 上传的附件
|
fileInfoList: [], // 上传的附件
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
@@ -316,7 +316,7 @@ export default {
|
|||||||
participantsData: [], //参与人表格信息
|
participantsData: [], //参与人表格信息
|
||||||
associationData: [], //协会表格信息
|
associationData: [], //协会表格信息
|
||||||
detailData: [], //审批历史信息
|
detailData: [], //审批历史信息
|
||||||
selectedId: "",
|
selectedId: '',
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: '选项1',
|
value: '选项1',
|
||||||
label: '1'
|
label: '1'
|
||||||
@@ -344,7 +344,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -355,7 +356,7 @@ export default {
|
|||||||
|
|
||||||
choiceZRRS(row, index) {
|
choiceZRRS(row, index) {
|
||||||
this.selectedId = index;
|
this.selectedId = index;
|
||||||
this.drawerTitle = "选择责任人";
|
this.drawerTitle = '选择责任人';
|
||||||
this.nodeList = [];
|
this.nodeList = [];
|
||||||
this.zrIndex = index;
|
this.zrIndex = index;
|
||||||
this.nodeList.push(row);
|
this.nodeList.push(row);
|
||||||
@@ -363,7 +364,7 @@ export default {
|
|||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
if (this.participantsData.length > 1) {
|
if (this.participantsData.length > 1) {
|
||||||
let parList = data
|
const parList = data
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
parList.forEach(items => {
|
parList.forEach(items => {
|
||||||
if (items.name === item.workPeople) {
|
if (items.name === item.workPeople) {
|
||||||
@@ -377,7 +378,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.participantsData = data
|
this.participantsData = data
|
||||||
this.participantsData.forEach(item => {
|
this.participantsData.forEach(item => {
|
||||||
this.$set(item, "workPeople", item.name)
|
this.$set(item, 'workPeople', item.name)
|
||||||
});
|
});
|
||||||
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
this.participantsData = JSON.parse(JSON.stringify(this.participantsData));
|
||||||
}
|
}
|
||||||
@@ -424,7 +425,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 请求上传的文件信息
|
// 请求上传的文件信息
|
||||||
getFileInfo() {
|
getFileInfo() {
|
||||||
this.$http.get("att/attFile/getMultiFileInfos", {
|
this.$http.get('att/attFile/getMultiFileInfos', {
|
||||||
fileIds: this.fileIds
|
fileIds: this.fileIds
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -447,10 +448,10 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//转办按钮
|
//转办按钮
|
||||||
@@ -475,7 +476,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -489,12 +491,12 @@ export default {
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.wbbzform.bzFlag = '1',
|
this.wbbzform.bzFlag = '1',
|
||||||
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
this.wbbzform.participantsData = this.participantsData
|
this.wbbzform.participantsData = this.participantsData
|
||||||
this.wbbzform.associationData = this.associationData
|
this.wbbzform.associationData = this.associationData
|
||||||
var json = JSON.stringify( this.wbbzform)
|
const json = JSON.stringify( this.wbbzform)
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -504,7 +506,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -516,12 +519,12 @@ export default {
|
|||||||
beforeBack(){
|
beforeBack(){
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.wbbzform.bzFlag = '2'
|
this.wbbzform.bzFlag = '2'
|
||||||
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
this.wbbzform.passUser = this.$store.getters.userInfo.account
|
||||||
this.wbbzform.commentText = this.commentText;
|
this.wbbzform.commentText = this.commentText;
|
||||||
this.wbbzform.participantsData = this.participantsData
|
this.wbbzform.participantsData = this.participantsData
|
||||||
this.wbbzform.associationData = this.associationData
|
this.wbbzform.associationData = this.associationData
|
||||||
var json = JSON.stringify( this.wbbzform)
|
const json = JSON.stringify( this.wbbzform)
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -531,7 +534,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -545,7 +549,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -617,7 +617,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
} else {
|
} else {
|
||||||
this.submitLoading = false
|
this.submitLoading = false
|
||||||
@@ -725,7 +726,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -81,14 +81,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbfzStep2",
|
name: 'phoneQbfzStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -110,7 +110,7 @@ export default {
|
|||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
// 调整处理人抽屉状态
|
// 调整处理人抽屉状态
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "", //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
modalshowflag: false, // drawer开关
|
modalshowflag: false, // drawer开关
|
||||||
loading: false,
|
loading: false,
|
||||||
qbfsForm:{
|
qbfsForm:{
|
||||||
@@ -128,11 +128,11 @@ export default {
|
|||||||
jgUserId: '',
|
jgUserId: '',
|
||||||
},
|
},
|
||||||
roleForm: {
|
roleForm: {
|
||||||
jgUser: ""
|
jgUser: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
jgUser: [
|
jgUser: [
|
||||||
{required: true, message: "请选择工作组成员", trigger: "change"}
|
{required: true, message: '请选择工作组成员', trigger: 'change'}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -143,12 +143,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -188,7 +188,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.passFlag = '1'
|
this.qbfsForm.passFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -199,7 +199,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -212,7 +213,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.passFlag = '0'
|
this.qbfsForm.passFlag = '0'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -223,7 +224,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -252,7 +254,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -288,12 +291,12 @@ export default {
|
|||||||
this.modalshowflag = true;
|
this.modalshowflag = true;
|
||||||
},
|
},
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
var idList = "";
|
let idList = '';
|
||||||
var nameList = "";
|
let nameList = '';
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
if (nameList.length > 0) {
|
if (nameList.length > 0) {
|
||||||
nameList += ",";
|
nameList += ',';
|
||||||
idList += ",";
|
idList += ',';
|
||||||
}
|
}
|
||||||
idList += item.id;
|
idList += item.id;
|
||||||
nameList += item.name;
|
nameList += item.name;
|
||||||
@@ -304,7 +307,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -116,13 +116,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbfzStep5",
|
name: 'phoneQbfzStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -134,45 +134,45 @@ export default {
|
|||||||
phoneshowflag: false,
|
phoneshowflag: false,
|
||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
active: "1",
|
active: '1',
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "",
|
drawerTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
commentText: "",
|
commentText: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
qbfsForm: {
|
qbfsForm: {
|
||||||
entNumber: "",
|
entNumber: '',
|
||||||
cnName: "",
|
cnName: '',
|
||||||
enName: "",
|
enName: '',
|
||||||
entCategory: "",
|
entCategory: '',
|
||||||
replaceNumber: "",
|
replaceNumber: '',
|
||||||
replacedNumber: "",
|
replacedNumber: '',
|
||||||
releaseDate: "",
|
releaseDate: '',
|
||||||
implementDate: "",
|
implementDate: '',
|
||||||
reviewDate: "",
|
reviewDate: '',
|
||||||
nextStatus: ""
|
nextStatus: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
nextStatus: [
|
nextStatus: [
|
||||||
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
{ required: true, message: '请选择下一步状态', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "修订",
|
value: '修订',
|
||||||
label: "修订"
|
label: '修订'
|
||||||
}, {
|
}, {
|
||||||
value: "废止",
|
value: '废止',
|
||||||
label: "废止"
|
label: '废止'
|
||||||
}, {
|
}, {
|
||||||
value: "有效",
|
value: '有效',
|
||||||
label: "有效"
|
label: '有效'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -182,12 +182,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res;
|
this.detailData = res;
|
||||||
@@ -215,13 +215,13 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
|
||||||
res = res.split(",");
|
res = res.split(',');
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
this.dataList.push({
|
this.dataList.push({
|
||||||
opinion: item.split("-")[1],
|
opinion: item.split('-')[1],
|
||||||
people: item.split("-")[0]
|
people: item.split('-')[0]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -273,7 +273,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -286,9 +287,9 @@ export default {
|
|||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
axios.request({
|
axios.request({
|
||||||
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
responseType: "blob",
|
responseType: 'blob',
|
||||||
method: "get",
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}
|
}
|
||||||
@@ -302,16 +303,16 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbfzStep5",
|
name: 'phoneQbfzStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -132,45 +132,45 @@ export default {
|
|||||||
phoneshowflag: false,
|
phoneshowflag: false,
|
||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
active: "1",
|
active: '1',
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "",
|
drawerTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
commentText: "",
|
commentText: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
qbfsForm: {
|
qbfsForm: {
|
||||||
entNumber: "",
|
entNumber: '',
|
||||||
cnName: "",
|
cnName: '',
|
||||||
enName: "",
|
enName: '',
|
||||||
entCategory: "",
|
entCategory: '',
|
||||||
replaceNumber: "",
|
replaceNumber: '',
|
||||||
replacedNumber: "",
|
replacedNumber: '',
|
||||||
releaseDate: "",
|
releaseDate: '',
|
||||||
implementDate: "",
|
implementDate: '',
|
||||||
reviewDate: "",
|
reviewDate: '',
|
||||||
nextStatus: ""
|
nextStatus: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
nextStatus: [
|
nextStatus: [
|
||||||
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
{ required: true, message: '请选择下一步状态', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "修订",
|
value: '修订',
|
||||||
label: "修订"
|
label: '修订'
|
||||||
}, {
|
}, {
|
||||||
value: "废止",
|
value: '废止',
|
||||||
label: "废止"
|
label: '废止'
|
||||||
}, {
|
}, {
|
||||||
value: "有效",
|
value: '有效',
|
||||||
label: "有效"
|
label: '有效'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -180,12 +180,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res;
|
this.detailData = res;
|
||||||
@@ -213,13 +213,13 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
|
||||||
res = res.split(",");
|
res = res.split(',');
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
this.dataList.push({
|
this.dataList.push({
|
||||||
opinion: item.split("-")[1],
|
opinion: item.split('-')[1],
|
||||||
people: item.split("-")[0]
|
people: item.split('-')[0]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -233,8 +233,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.bzFlag = '1'
|
this.qbfsForm.bzFlag = '1'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -244,7 +244,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -260,8 +261,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.bzFlag = '0'
|
this.qbfsForm.bzFlag = '0'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -271,7 +272,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -311,7 +313,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -324,9 +327,9 @@ export default {
|
|||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
axios.request({
|
axios.request({
|
||||||
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
responseType: "blob",
|
responseType: 'blob',
|
||||||
method: "get",
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}
|
}
|
||||||
@@ -340,16 +343,16 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbfzStep5",
|
name: 'phoneQbfzStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -132,45 +132,45 @@ export default {
|
|||||||
phoneshowflag: false,
|
phoneshowflag: false,
|
||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
active: "1",
|
active: '1',
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "",
|
drawerTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
commentText: "",
|
commentText: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
qbfsForm: {
|
qbfsForm: {
|
||||||
entNumber: "",
|
entNumber: '',
|
||||||
cnName: "",
|
cnName: '',
|
||||||
enName: "",
|
enName: '',
|
||||||
entCategory: "",
|
entCategory: '',
|
||||||
replaceNumber: "",
|
replaceNumber: '',
|
||||||
replacedNumber: "",
|
replacedNumber: '',
|
||||||
releaseDate: "",
|
releaseDate: '',
|
||||||
implementDate: "",
|
implementDate: '',
|
||||||
reviewDate: "",
|
reviewDate: '',
|
||||||
nextStatus: ""
|
nextStatus: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
nextStatus: [
|
nextStatus: [
|
||||||
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
{ required: true, message: '请选择下一步状态', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "修订",
|
value: '修订',
|
||||||
label: "修订"
|
label: '修订'
|
||||||
}, {
|
}, {
|
||||||
value: "废止",
|
value: '废止',
|
||||||
label: "废止"
|
label: '废止'
|
||||||
}, {
|
}, {
|
||||||
value: "有效",
|
value: '有效',
|
||||||
label: "有效"
|
label: '有效'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -180,12 +180,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res;
|
this.detailData = res;
|
||||||
@@ -213,13 +213,13 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
|
||||||
res = res.split(",");
|
res = res.split(',');
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
this.dataList.push({
|
this.dataList.push({
|
||||||
opinion: item.split("-")[1],
|
opinion: item.split('-')[1],
|
||||||
people: item.split("-")[0]
|
people: item.split('-')[0]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -233,8 +233,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.sdFlag = '1'
|
this.qbfsForm.sdFlag = '1'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -244,7 +244,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -258,8 +259,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.sdFlag = '0'
|
this.qbfsForm.sdFlag = '0'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -269,7 +270,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -305,7 +307,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -318,9 +321,9 @@ export default {
|
|||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
axios.request({
|
axios.request({
|
||||||
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
responseType: "blob",
|
responseType: 'blob',
|
||||||
method: "get",
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}
|
}
|
||||||
@@ -334,16 +337,16 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -114,13 +114,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbfzStep7",
|
name: 'phoneQbfzStep7',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -132,45 +132,45 @@ export default {
|
|||||||
phoneshowflag: false,
|
phoneshowflag: false,
|
||||||
phoneRoleList: [],
|
phoneRoleList: [],
|
||||||
phoneDrawerTitle: '',
|
phoneDrawerTitle: '',
|
||||||
active: "1",
|
active: '1',
|
||||||
isTransfer: false,
|
isTransfer: false,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
saveLoading: false,
|
saveLoading: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
drawerTitle: "",
|
drawerTitle: '',
|
||||||
nodeList: [],
|
nodeList: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
commentText: "",
|
commentText: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
detailData: [],
|
detailData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
qbfsForm: {
|
qbfsForm: {
|
||||||
entNumber: "",
|
entNumber: '',
|
||||||
cnName: "",
|
cnName: '',
|
||||||
enName: "",
|
enName: '',
|
||||||
entCategory: "",
|
entCategory: '',
|
||||||
replaceNumber: "",
|
replaceNumber: '',
|
||||||
replacedNumber: "",
|
replacedNumber: '',
|
||||||
releaseDate: "",
|
releaseDate: '',
|
||||||
implementDate: "",
|
implementDate: '',
|
||||||
reviewDate: "",
|
reviewDate: '',
|
||||||
nextStatus: ""
|
nextStatus: ''
|
||||||
},
|
},
|
||||||
formRules: {
|
formRules: {
|
||||||
nextStatus: [
|
nextStatus: [
|
||||||
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
{ required: true, message: '请选择下一步状态', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
associationOptions: [{
|
associationOptions: [{
|
||||||
value: "修订",
|
value: '修订',
|
||||||
label: "修订"
|
label: '修订'
|
||||||
}, {
|
}, {
|
||||||
value: "废止",
|
value: '废止',
|
||||||
label: "废止"
|
label: '废止'
|
||||||
}, {
|
}, {
|
||||||
value: "有效",
|
value: '有效',
|
||||||
label: "有效"
|
label: '有效'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -180,12 +180,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res;
|
this.detailData = res;
|
||||||
@@ -213,13 +213,13 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||||
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
let res = item.res ? item.res.substring(1, item.res.lastIndexOf(']')) : '';
|
||||||
res = res.split(",");
|
res = res.split(',');
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
this.dataList.push({
|
this.dataList.push({
|
||||||
opinion: item.split("-")[1],
|
opinion: item.split('-')[1],
|
||||||
people: item.split("-")[0]
|
people: item.split('-')[0]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -233,8 +233,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.bafzFlag = '1'
|
this.qbfsForm.bafzFlag = '1'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -244,7 +244,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -260,8 +261,8 @@ export default {
|
|||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.bafzFlag = '0'
|
this.qbfsForm.bafzFlag = '0'
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
json: json
|
json: json
|
||||||
@@ -271,7 +272,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
@@ -311,7 +313,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -324,9 +327,9 @@ export default {
|
|||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
axios.request({
|
axios.request({
|
||||||
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
responseType: "blob",
|
responseType: 'blob',
|
||||||
method: "get",
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
prcNum: this.$route.query.prcNum
|
prcNum: this.$route.query.prcNum
|
||||||
}
|
}
|
||||||
@@ -340,16 +343,16 @@ export default {
|
|||||||
* @Description: 点击下载
|
* @Description: 点击下载
|
||||||
*/
|
*/
|
||||||
downloadFile(attId) {
|
downloadFile(attId) {
|
||||||
if (attId != null && attId !== "") {
|
if (attId != null && attId !== '') {
|
||||||
window.location.href = "/api/att/attFile/downloadFileForSarNew?fileId=" + attId;
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId;
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("请选择要下载的文件");
|
this.$message.error('请选择要下载的文件');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -235,27 +235,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk-product/common/formList";
|
import formList from 'process/phone/qbrk-product/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibraryProduct10",
|
name: 'phoneBussLibraryProduct10',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -685,21 +685,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -708,7 +708,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -737,8 +737,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -769,10 +769,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -780,8 +780,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -810,10 +810,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -835,10 +835,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -852,7 +852,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -910,7 +910,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -967,7 +968,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1033,96 +1034,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1133,17 +1134,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1211,8 +1212,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1243,7 +1244,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1255,15 +1256,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1323,8 +1324,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1332,8 +1333,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1341,8 +1342,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1462,7 +1463,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1520,10 +1521,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1595,22 +1596,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1630,22 +1631,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1653,29 +1654,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1687,7 +1688,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1701,8 +1702,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1717,8 +1718,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1733,8 +1734,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1751,7 +1752,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1771,7 +1772,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1800,20 +1801,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1833,7 +1834,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1841,7 +1842,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1858,19 +1859,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1930,13 +1931,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1991,16 +1993,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2037,12 +2039,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
|
|||||||
@@ -235,27 +235,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk-product/common/formList";
|
import formList from 'process/phone/qbrk-product/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibraryProduct12",
|
name: 'phoneBussLibraryProduct12',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -685,21 +685,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -708,7 +708,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -737,8 +737,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -769,10 +769,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -780,8 +780,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -810,10 +810,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -835,10 +835,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -852,7 +852,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -910,7 +910,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -967,7 +968,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1033,96 +1034,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1133,17 +1134,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1211,8 +1212,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1243,7 +1244,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1255,15 +1256,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1323,8 +1324,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1332,8 +1333,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1341,8 +1342,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1462,7 +1463,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1520,10 +1521,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1595,22 +1596,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1630,22 +1631,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1653,29 +1654,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1687,7 +1688,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1701,8 +1702,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1717,8 +1718,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1733,8 +1734,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1751,7 +1752,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1771,7 +1772,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1800,20 +1801,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1833,7 +1834,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1841,7 +1842,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1858,19 +1859,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1930,13 +1931,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1991,16 +1993,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2037,12 +2039,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
|
|||||||
@@ -158,7 +158,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -164,7 +164,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -233,17 +233,17 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk-product/common/formList";
|
import formList from 'process/phone/qbrk-product/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
@@ -252,7 +252,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
|
|||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibraryProduct4",
|
name: 'phoneBussLibraryProduct4',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -683,21 +683,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -706,7 +706,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -735,8 +735,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -767,10 +767,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -778,8 +778,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -808,10 +808,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -833,10 +833,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -850,7 +850,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -908,7 +908,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -965,7 +966,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1031,96 +1032,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1131,17 +1132,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1209,8 +1210,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1241,7 +1242,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1253,15 +1254,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1321,8 +1322,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1330,8 +1331,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1339,8 +1340,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1460,7 +1461,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1518,10 +1519,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1593,22 +1594,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1628,22 +1629,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1651,29 +1652,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1685,7 +1686,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1699,8 +1700,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1715,8 +1716,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1731,8 +1732,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1749,7 +1750,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1769,7 +1770,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1798,20 +1799,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1831,7 +1832,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1839,7 +1840,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1856,19 +1857,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1928,13 +1929,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1989,16 +1991,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2035,12 +2037,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
|
|||||||
@@ -171,7 +171,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -235,27 +235,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk-product/common/formList";
|
import formList from 'process/phone/qbrk-product/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibraryProduct7",
|
name: 'phoneBussLibraryProduct7',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
const numberCodeNot = (rule, value, callback) => {
|
const numberCodeNot = (rule, value, callback) => {
|
||||||
let pattern = /^[1]*$/
|
const pattern = /^[1]*$/
|
||||||
if (!pattern.test(value)) {
|
if (!pattern.test(value)) {
|
||||||
return callback(new Error('评分分值只可为1分'))
|
return callback(new Error('评分分值只可为1分'))
|
||||||
} else {
|
} else {
|
||||||
@@ -277,7 +277,7 @@ export default {
|
|||||||
if(value === undefined || value === ''){
|
if(value === undefined || value === ''){
|
||||||
return callback(new Error('评分分值不可为空'))
|
return callback(new Error('评分分值不可为空'))
|
||||||
}
|
}
|
||||||
let pattern = /^[0-9]*$/
|
const pattern = /^[0-9]*$/
|
||||||
if (!pattern.test(value)) {
|
if (!pattern.test(value)) {
|
||||||
return callback(new Error('只能输入数字'))
|
return callback(new Error('只能输入数字'))
|
||||||
} else {
|
} else {
|
||||||
@@ -714,21 +714,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -737,7 +737,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -760,7 +760,7 @@ export default {
|
|||||||
this.dataLoading = boo
|
this.dataLoading = boo
|
||||||
},
|
},
|
||||||
filterData2(){
|
filterData2(){
|
||||||
let spanOneArr = []
|
const spanOneArr = []
|
||||||
let concatOne = 0
|
let concatOne = 0
|
||||||
this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata)
|
this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata)
|
||||||
if(index === 0){
|
if(index === 0){
|
||||||
@@ -809,7 +809,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
sums[index] = '';
|
sums[index] = '';
|
||||||
}
|
}
|
||||||
if(sums[index] !== '' && sums[index].indexOf(".") !== -1){
|
if(sums[index] !== '' && sums[index].indexOf('.') !== -1){
|
||||||
sums[index] = parseFloat(sums[index]).toFixed(1);
|
sums[index] = parseFloat(sums[index]).toFixed(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -844,8 +844,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -876,10 +876,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -887,8 +887,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -917,10 +917,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -942,10 +942,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -959,7 +959,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -1036,7 +1036,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
|
this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
|
||||||
@@ -1108,96 +1108,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1208,17 +1208,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1286,8 +1286,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1318,7 +1318,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1330,15 +1330,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1398,8 +1398,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1407,8 +1407,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1416,8 +1416,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1537,7 +1537,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1595,10 +1595,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1670,22 +1670,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1705,22 +1705,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1728,29 +1728,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1762,7 +1762,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1792,8 +1792,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1808,8 +1808,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1826,7 +1826,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1846,7 +1846,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1869,20 +1869,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1902,7 +1902,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1910,7 +1910,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1927,19 +1927,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1973,7 +1973,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -2025,7 +2026,8 @@ export default {
|
|||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// if(this.formTongGuo.approvalOpinion === '1'){
|
// if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
// this.$message.warning("驳回成功")
|
// this.$message.warning("驳回成功")
|
||||||
@@ -2087,10 +2089,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2153,18 +2155,18 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
|
|||||||
@@ -235,27 +235,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk-product/common/formList";
|
import formList from 'process/phone/qbrk-product/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibraryProduct8",
|
name: 'phoneBussLibraryProduct8',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -685,21 +685,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -708,7 +708,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -737,8 +737,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -769,10 +769,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -780,8 +780,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -810,10 +810,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -835,10 +835,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -852,7 +852,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -910,7 +910,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -967,7 +968,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1033,96 +1034,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1133,17 +1134,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1211,8 +1212,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1243,7 +1244,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1255,15 +1256,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1323,8 +1324,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1332,8 +1333,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1341,8 +1342,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1462,7 +1463,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1520,10 +1521,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1595,22 +1596,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1630,22 +1631,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1653,29 +1654,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1687,7 +1688,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1701,8 +1702,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1717,8 +1718,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1733,8 +1734,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1751,7 +1752,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1771,7 +1772,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1800,20 +1801,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1833,7 +1834,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1841,7 +1842,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1858,19 +1859,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1930,13 +1931,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1990,16 +1992,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2036,12 +2038,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
|
|||||||
@@ -164,27 +164,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk/common/formList";
|
import formList from 'process/phone/qbrk/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibrary8",
|
name: 'phoneBussLibrary8',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
const numberCodeNot = (rule, value, callback) => {
|
const numberCodeNot = (rule, value, callback) => {
|
||||||
let pattern = /^[1]*$/
|
const pattern = /^[1]*$/
|
||||||
if (!pattern.test(value)) {
|
if (!pattern.test(value)) {
|
||||||
return callback(new Error('评分分值只可为1分'))
|
return callback(new Error('评分分值只可为1分'))
|
||||||
} else {
|
} else {
|
||||||
@@ -206,7 +206,7 @@ export default {
|
|||||||
if(value === undefined || value === ''){
|
if(value === undefined || value === ''){
|
||||||
return callback(new Error('评分分值不可为空'))
|
return callback(new Error('评分分值不可为空'))
|
||||||
}
|
}
|
||||||
let pattern = /^[0-9]*$/
|
const pattern = /^[0-9]*$/
|
||||||
if (!pattern.test(value)) {
|
if (!pattern.test(value)) {
|
||||||
return callback(new Error('只能输入数字'))
|
return callback(new Error('只能输入数字'))
|
||||||
} else {
|
} else {
|
||||||
@@ -650,21 +650,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -673,7 +673,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -696,7 +696,7 @@ export default {
|
|||||||
this.dataLoading = boo
|
this.dataLoading = boo
|
||||||
},
|
},
|
||||||
filterData2(){
|
filterData2(){
|
||||||
let spanOneArr = []
|
const spanOneArr = []
|
||||||
let concatOne = 0
|
let concatOne = 0
|
||||||
this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata)
|
this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata)
|
||||||
if(index === 0){
|
if(index === 0){
|
||||||
@@ -745,7 +745,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
sums[index] = '';
|
sums[index] = '';
|
||||||
}
|
}
|
||||||
if(sums[index] !== '' && sums[index].indexOf(".") !== -1){
|
if(sums[index] !== '' && sums[index].indexOf('.') !== -1){
|
||||||
sums[index] = parseFloat(sums[index]).toFixed(1);
|
sums[index] = parseFloat(sums[index]).toFixed(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -780,8 +780,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -812,10 +812,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -823,8 +823,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -853,10 +853,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -878,10 +878,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -895,7 +895,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -938,7 +938,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -995,7 +996,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS'])
|
this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS'])
|
||||||
@@ -1070,96 +1071,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1170,17 +1171,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1248,8 +1249,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1280,7 +1281,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1292,15 +1293,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1360,8 +1361,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1369,8 +1370,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1378,8 +1379,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1499,7 +1500,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1557,10 +1558,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1632,22 +1633,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1667,22 +1668,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1690,29 +1691,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1724,7 +1725,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1738,8 +1739,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1754,8 +1755,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1770,8 +1771,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1788,7 +1789,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1808,7 +1809,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1832,20 +1833,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1865,7 +1866,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1873,7 +1874,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1890,19 +1891,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1965,13 +1966,14 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -2027,16 +2029,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2098,7 +2100,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
Promise.all([this.getTaskId()]).then((value) => {
|
Promise.all([this.getTaskId()]).then((value) => {
|
||||||
if(value[0] &&value.length > 0){
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.taskIds = mes.taskIds;
|
this.taskIds = mes.taskIds;
|
||||||
|
|||||||
@@ -216,7 +216,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -243,27 +243,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk/common/formList";
|
import formList from 'process/phone/qbrk/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibrary10",
|
name: 'phoneBussLibrary10',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -699,21 +699,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -722,7 +722,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -751,8 +751,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -783,10 +783,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -794,8 +794,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -824,10 +824,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -849,10 +849,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -866,7 +866,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -909,7 +909,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
this.processNum()
|
this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -966,7 +967,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1032,96 +1033,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1132,17 +1133,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1210,8 +1211,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1242,7 +1243,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1254,15 +1255,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1322,8 +1323,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1331,8 +1332,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1340,8 +1341,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1461,7 +1462,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1519,10 +1520,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1594,22 +1595,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1629,22 +1630,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1652,29 +1653,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1686,7 +1687,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1700,8 +1701,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1716,8 +1717,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1732,8 +1733,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1750,7 +1751,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1770,7 +1771,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('id', this.bpnId || '')
|
_formData.append('id', this.bpnId || '')
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1799,20 +1800,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1832,7 +1833,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1840,7 +1841,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1857,19 +1858,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1928,13 +1929,14 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1988,16 +1990,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2037,7 +2039,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
Promise.all([this.getTaskId()]).then((value) => {
|
Promise.all([this.getTaskId()]).then((value) => {
|
||||||
if(value[0] &&value.length > 0){
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.taskIds = mes.taskIds;
|
this.taskIds = mes.taskIds;
|
||||||
|
|||||||
@@ -243,27 +243,27 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk/common/formList";
|
import formList from 'process/phone/qbrk/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
import { getEvaluationIndex } from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibrary11",
|
name: 'phoneBussLibrary11',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -698,21 +698,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -721,7 +721,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -750,8 +750,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -782,10 +782,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -793,8 +793,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -823,10 +823,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -848,10 +848,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -865,7 +865,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -908,7 +908,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -965,7 +966,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1031,96 +1032,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1131,17 +1132,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1209,8 +1210,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1241,7 +1242,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1253,15 +1254,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1321,8 +1322,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1330,8 +1331,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1339,8 +1340,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1460,7 +1461,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1518,10 +1519,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1593,22 +1594,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1628,22 +1629,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1651,29 +1652,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -1685,7 +1686,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -1699,8 +1700,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -1715,8 +1716,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -1731,8 +1732,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -1749,7 +1750,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -1769,7 +1770,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -1798,20 +1799,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -1831,7 +1832,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -1839,7 +1840,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -1856,19 +1857,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -1927,13 +1928,14 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -1987,16 +1989,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2036,7 +2038,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
Promise.all([this.getTaskId()]).then((value) => {
|
Promise.all([this.getTaskId()]).then((value) => {
|
||||||
if(value[0] &&value.length > 0){
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.taskIds = mes.taskIds;
|
this.taskIds = mes.taskIds;
|
||||||
|
|||||||
@@ -10,31 +10,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form
|
<el-form
|
||||||
v-if="reloadForm"
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="label-input-form phoneForm"
|
class="label-input-form phoneForm"
|
||||||
label-width="112px"
|
label-width="112px"
|
||||||
>
|
>
|
||||||
<template v-if="active === '1'">
|
<template v-if="active === '1'">
|
||||||
<div>
|
<div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -42,97 +42,95 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
prop="summaryFileName"
|
prop="summaryFileName"
|
||||||
:ids.sync="form.summaryFile"
|
:ids.sync="form.summaryFile"
|
||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">培训文件</template>
|
<template slot="title">培训文件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="培训文件"
|
label="培训文件"
|
||||||
prop="madelSubName"
|
prop="madelSubName"
|
||||||
:ids.sync="form.madelSub"
|
:ids.sync="form.madelSub"
|
||||||
:names.sync="form.madelSubName"
|
:names.sync="form.madelSubName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit2
|
show-submit2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
:node-list="nodeList"
|
||||||
:nodeList="nodeList"
|
@checkedRole="checkedRole"
|
||||||
></phoneRoleTree>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -169,12 +167,12 @@ export default {
|
|||||||
nodeList: []
|
nodeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(name) {
|
handleTabs (name) {
|
||||||
this.active = name;
|
this.active = name;
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
@@ -219,7 +217,7 @@ export default {
|
|||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.addRule()
|
this.addRule()
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -227,19 +225,20 @@ export default {
|
|||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
const query = {
|
const query = {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$route.query.userId,
|
userId: this.$route.query.userId,
|
||||||
json: json
|
json: json
|
||||||
}
|
}
|
||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1){
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
|
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
} else {
|
} else {
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
@@ -250,7 +249,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addRule() {
|
addRule () {
|
||||||
if (this.form.approvalOpinion === 0) {
|
if (this.form.approvalOpinion === 0) {
|
||||||
this.rules.commentText = [
|
this.rules.commentText = [
|
||||||
{ required: false }
|
{ required: false }
|
||||||
@@ -280,7 +279,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -294,14 +294,14 @@ export default {
|
|||||||
this.dict = { ...res.data }
|
this.dict = { ...res.data }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEvaluation() {
|
getEvaluation () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getEvaluationIndex({
|
getEvaluationIndex({
|
||||||
indexType: 'quality'
|
indexType: 'quality'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const evalList = []
|
const evalList = []
|
||||||
res.data.forEach(item =>{
|
res.data.forEach(item => {
|
||||||
item.score = ''
|
item.score = ''
|
||||||
item.scoreMin = ''
|
item.scoreMin = ''
|
||||||
item.reason = ''
|
item.reason = ''
|
||||||
|
|||||||
@@ -10,31 +10,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form
|
<el-form
|
||||||
v-if="reloadForm"
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="label-input-form phoneForm"
|
class="label-input-form phoneForm"
|
||||||
label-width="112px"
|
label-width="112px"
|
||||||
>
|
>
|
||||||
<template v-if="active === '1'">
|
<template v-if="active === '1'">
|
||||||
<div>
|
<div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -42,97 +42,95 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
prop="summaryFileName"
|
prop="summaryFileName"
|
||||||
:ids.sync="form.summaryFile"
|
:ids.sync="form.summaryFile"
|
||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">培训文件</template>
|
<template slot="title">培训文件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="培训文件"
|
label="培训文件"
|
||||||
prop="madelSubName"
|
prop="madelSubName"
|
||||||
:ids.sync="form.madelSub"
|
:ids.sync="form.madelSub"
|
||||||
:names.sync="form.madelSubName"
|
:names.sync="form.madelSubName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit2
|
show-submit2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
:node-list="nodeList"
|
||||||
:nodeList="nodeList"
|
@checkedRole="checkedRole"
|
||||||
></phoneRoleTree>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -169,12 +167,12 @@ export default {
|
|||||||
nodeList: []
|
nodeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(name) {
|
handleTabs (name) {
|
||||||
this.active = name;
|
this.active = name;
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
@@ -202,112 +200,109 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getStandInfoByReviseStatus() {
|
getStandInfoByReviseStatus () {
|
||||||
let date = new Date();
|
const date = new Date();
|
||||||
let year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
if(this.form.reviseStatus === '2'){
|
if(this.form.reviseStatus === '2') {
|
||||||
let index1 = this.form.DTQBBHBUSS.split(',')[0].lastIndexOf('-') // 7
|
const index1 = this.form.DTQBBHBUSS.split(',')[0].lastIndexOf('-') // 7
|
||||||
this.standYear = this.form.DTQBBHBUSS.split(',')[0].slice(index1 + 1) // 2023 x
|
this.standYear = this.form.DTQBBHBUSS.split(',')[0].slice(index1 + 1) // 2023 x
|
||||||
if(this.standYear.indexOf(' ')>0){
|
if(this.standYear.indexOf(' ') > 0) {
|
||||||
const _index = this.standYear.indexOf(' ')
|
const _index = this.standYear.indexOf(' ')
|
||||||
this.standYear = this.standYear.slice(0,_index)
|
this.standYear = this.standYear.slice(0, _index)
|
||||||
}else if(this.standYear.indexOf(' X')>0){
|
}else if(this.standYear.indexOf(' X') > 0) {
|
||||||
const _index = this.standYear.indexOf(' X') // 4
|
const _index = this.standYear.indexOf(' X') // 4
|
||||||
this.standYear = this.standYear.slice(0,_index) // 2023
|
this.standYear = this.standYear.slice(0, _index) // 2023
|
||||||
}
|
}
|
||||||
|
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
if((this.standYear+'').slice(0,4) != year){
|
if((`${ this.standYear }`).slice(0, 4) != year) {
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
}else{
|
}else{
|
||||||
if((this.standYear+'').slice(0,4) == (this.form.standYear + '').slice(0,4)){
|
if((`${ this.standYear }`).slice(0, 4) == (`${ this.form.standYear }`).slice(0, 4)) {
|
||||||
this.form.standYear = this.standYear + ' X'
|
this.form.standYear = `${ this.standYear } X`
|
||||||
}else{
|
}else{
|
||||||
this.form.standYear = this.standYear
|
this.form.standYear = this.standYear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.form.standYear == this.standYear){
|
if(this.form.standYear == this.standYear) {
|
||||||
this.form.standYear = this.form.standYear + ' X'
|
this.form.standYear = `${ this.form.standYear } X`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.form.standNum.includes(',')) {
|
if (this.form.standNum.includes(',')) {
|
||||||
// 多个代替企标编号 调接口获取企标顺序号
|
// 多个代替企标编号 调接口获取企标顺序号
|
||||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus', { reviseStatus: `buss1_${ this.form.reviseStatus }`, standSort: this.form.standSort, taskId: this.taskIds }, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.form.standNum = res.data + ''
|
this.form.standNum = `${ res.data }`
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3,'0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
this.standNum = this.form.standNum // 保存初始顺序号
|
this.standNum = this.form.standNum // 保存初始顺序号
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3,'0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.standNum = this.form.standNum // 保存初始顺序号
|
this.standNum = this.form.standNum // 保存初始顺序号
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
|
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}
|
}
|
||||||
|
} else if (this.form.reviseStatus === '3') {
|
||||||
} else if (this.form.reviseStatus === '3'){
|
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
// ---
|
// ---
|
||||||
let index1 = this.form.standCode.lastIndexOf('-') // 7
|
const index1 = this.form.standCode.lastIndexOf('-') // 7
|
||||||
this.standYear = this.form.standCode.slice(index1 + 1) // 2023 x
|
this.standYear = this.form.standCode.slice(index1 + 1) // 2023 x
|
||||||
if(this.standYear.indexOf(' ')>0){
|
if(this.standYear.indexOf(' ') > 0) {
|
||||||
const _index = this.standYear.indexOf(' ')
|
const _index = this.standYear.indexOf(' ')
|
||||||
this.standYear = this.standYear.slice(0,_index)
|
this.standYear = this.standYear.slice(0, _index)
|
||||||
}else if(this.standYear.indexOf(' X')>0){
|
}else if(this.standYear.indexOf(' X') > 0) {
|
||||||
const _index = this.standYear.indexOf(' X') // 4
|
const _index = this.standYear.indexOf(' X') // 4
|
||||||
this.standYear = this.standYear.slice(0,_index) // 2023
|
this.standYear = this.standYear.slice(0, _index) // 2023
|
||||||
}
|
}
|
||||||
|
|
||||||
let noYearStand = this.form.standCode.slice(0, index1) // 'Q-F 101'
|
const noYearStand = this.form.standCode.slice(0, index1) // 'Q-F 101'
|
||||||
this.standNum = noYearStand.replace(this.form.standSort,'').trim() // '101'
|
this.standNum = noYearStand.replace(this.form.standSort, '').trim() // '101'
|
||||||
|
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
|
|
||||||
this.standNum = this.standNum.replace(/^0+/,"")
|
this.standNum = this.standNum.replace(/^0+/, '')
|
||||||
this.standNum = this.standNum.padStart(3,'0')
|
this.standNum = this.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.form.standNum = this.standNum
|
this.form.standNum = this.standNum
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
this.form.standYear = this.standYear
|
this.form.standYear = this.standYear
|
||||||
|
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
} else {
|
} else {
|
||||||
this.form.standYear = year
|
this.form.standYear = year
|
||||||
|
|
||||||
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus',{reviseStatus:'buss1_'+this.form.reviseStatus,standSort:this.form.standSort,taskId: this.taskIds}, {
|
this.$http.get('lawss/sarBussionessStand/getStandInfoByReviseStatus', { reviseStatus: `buss1_${ this.form.reviseStatus }`, standSort: this.form.standSort, taskId: this.taskIds }, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
const standSn = res.data
|
const standSn = res.data
|
||||||
this.form.standSn = standSn
|
this.form.standSn = standSn
|
||||||
this.form.standNumber = standSn
|
this.form.standNumber = standSn
|
||||||
this.form.standNum = standSn + ''
|
this.form.standNum = `${ standSn }`
|
||||||
|
|
||||||
this.form.standNum = this.form.standNum.replace(/^0+/,"")
|
this.form.standNum = this.form.standNum.replace(/^0+/, '')
|
||||||
this.form.standNum = this.form.standNum.padStart(3,'0')
|
this.form.standNum = this.form.standNum.padStart(3, '0')
|
||||||
|
|
||||||
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : '-' + this.form.standYear )
|
this.form.standCode = this.form.standSort + this.form.standNum + ( this.form.standYear === '' ? '' : `-${ this.form.standYear }` )
|
||||||
this.standSort = this.form.standSort
|
this.standSort = this.form.standSort
|
||||||
this.standCode = this.form.standCode
|
this.standCode = this.form.standCode
|
||||||
|
|
||||||
|
|
||||||
this.formKey++
|
this.formKey++
|
||||||
}, e => {
|
}, e => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handle2 () {
|
handle2 () {
|
||||||
this.$message({
|
this.$message({
|
||||||
@@ -328,7 +323,7 @@ export default {
|
|||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.addRule()
|
this.addRule()
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -336,19 +331,20 @@ export default {
|
|||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
const query = {
|
const query = {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$route.query.userId,
|
userId: this.$route.query.userId,
|
||||||
json: json
|
json: json
|
||||||
}
|
}
|
||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1){
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
|
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
} else {
|
} else {
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
@@ -359,7 +355,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addRule() {
|
addRule () {
|
||||||
if (this.form.approvalOpinion === 0) {
|
if (this.form.approvalOpinion === 0) {
|
||||||
this.rules.commentText = [
|
this.rules.commentText = [
|
||||||
{ required: false }
|
{ required: false }
|
||||||
@@ -389,7 +385,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -403,14 +400,14 @@ export default {
|
|||||||
this.dict = { ...res.data }
|
this.dict = { ...res.data }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEvaluation() {
|
getEvaluation () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getEvaluationIndex({
|
getEvaluationIndex({
|
||||||
indexType: 'quality'
|
indexType: 'quality'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const evalList = []
|
const evalList = []
|
||||||
res.data.forEach(item =>{
|
res.data.forEach(item => {
|
||||||
item.score = ''
|
item.score = ''
|
||||||
item.scoreMin = ''
|
item.scoreMin = ''
|
||||||
item.reason = ''
|
item.reason = ''
|
||||||
|
|||||||
@@ -165,7 +165,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -171,7 +171,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -158,17 +158,17 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import formList from "process/phone/qbrk/common/formList";
|
import formList from 'process/phone/qbrk/common/formList';
|
||||||
import {
|
import {
|
||||||
inboundLiaisonDetail,
|
inboundLiaisonDetail,
|
||||||
processCreateStand,
|
processCreateStand,
|
||||||
changeAssigneeNew,
|
changeAssigneeNew,
|
||||||
queryTaskFirst,
|
queryTaskFirst,
|
||||||
getBusStandFileByAttId, saveTaskFirst
|
getBusStandFileByAttId, saveTaskFirst
|
||||||
} from "api/process";
|
} from 'api/process';
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import CusTomDataPickerGroup
|
import CusTomDataPickerGroup
|
||||||
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
|
from '@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup';
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { Form } from 'vant';
|
import { Form } from 'vant';
|
||||||
import { Field } from 'vant';
|
import { Field } from 'vant';
|
||||||
@@ -177,7 +177,7 @@ import hwh5 from '@/api/hwh5-cloudonline.js'
|
|||||||
Vue.use(Form);
|
Vue.use(Form);
|
||||||
Vue.use(Field);
|
Vue.use(Field);
|
||||||
export default {
|
export default {
|
||||||
name: "phoneBussLibrary4",
|
name: 'phoneBussLibrary4',
|
||||||
components: {
|
components: {
|
||||||
CusTomDataPickerGroup,
|
CusTomDataPickerGroup,
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
@@ -1029,21 +1029,21 @@ export default {
|
|||||||
'form.issueTime': {
|
'form.issueTime': {
|
||||||
handler: function() {
|
handler: function() {
|
||||||
if(this.form.issueTime !== undefined && this.form.issueTime !== null && this.form.issueTime !== ''){
|
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()
|
// const FSRQBUSS = date.getFullYear()+ 5 + '-' + date.getMonth() + '-' + date.getDate()
|
||||||
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
// this.sarBussionessStandEO["FSRQBUSS"] = FSRQBUSS
|
||||||
|
|
||||||
let year = date.getFullYear()+5;
|
const year = date.getFullYear()+5;
|
||||||
let month =(date.getMonth() + 1).toString();
|
let month =(date.getMonth() + 1).toString();
|
||||||
let day = (date.getDate()).toString();
|
let day = (date.getDate()).toString();
|
||||||
if (month.length == 1) {
|
if (month.length == 1) {
|
||||||
month = "0" + month;
|
month = '0' + month;
|
||||||
}
|
}
|
||||||
if (day.length == 1) {
|
if (day.length == 1) {
|
||||||
day = "0" + day;
|
day = '0' + day;
|
||||||
}
|
}
|
||||||
const FSRQBUSS = year + "-" + month + "-" + day;
|
const FSRQBUSS = year + '-' + month + '-' + day;
|
||||||
this.form["FSRQBUSS"] = FSRQBUSS
|
this.form['FSRQBUSS'] = FSRQBUSS
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1052,7 +1052,7 @@ export default {
|
|||||||
handler (val) {
|
handler (val) {
|
||||||
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
if (val !== '' && val !== null && typeof (val) !== 'undefined') {
|
||||||
if (val instanceof Array) {
|
if (val instanceof Array) {
|
||||||
this.countryArr = val.join(",");
|
this.countryArr = val.join(',');
|
||||||
} else {
|
} else {
|
||||||
this.countryArr = val
|
this.countryArr = val
|
||||||
}
|
}
|
||||||
@@ -1081,8 +1081,8 @@ export default {
|
|||||||
console.log('modelData.' + index + '.modelName')
|
console.log('modelData.' + index + '.modelName')
|
||||||
return 'modelData.' + index + '.modelName';
|
return 'modelData.' + index + '.modelName';
|
||||||
}else {
|
}else {
|
||||||
let propStr = "";
|
let propStr = '';
|
||||||
const indexList = row.modelIndex.split(",");
|
const indexList = row.modelIndex.split(',');
|
||||||
for (let i = 0; i < indexList.length; i++) {
|
for (let i = 0; i < indexList.length; i++) {
|
||||||
if(i === 0){
|
if(i === 0){
|
||||||
propStr += 'modelData.' + indexList[i]
|
propStr += 'modelData.' + indexList[i]
|
||||||
@@ -1113,10 +1113,10 @@ export default {
|
|||||||
console.log(row)
|
console.log(row)
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
// 模态框删除按钮
|
// 模态框删除按钮
|
||||||
this.$confirm("是否确认删除本条数据?", "提示", {
|
this.$confirm('是否确认删除本条数据?', '提示', {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: '取消',
|
||||||
type: "info"
|
type: 'info'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
// 此为假删除,只是删除了模态框中当前行的数据,并没有真正删除表格数据
|
||||||
const ids = []
|
const ids = []
|
||||||
@@ -1124,8 +1124,8 @@ export default {
|
|||||||
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
this.form.modelData = this.changeRestTree(this.deletedId(this.form.modelData,ids))
|
||||||
console.log(this.form.modelData)
|
console.log(this.form.modelData)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: "删除成功",
|
message: '删除成功',
|
||||||
type: "success",
|
type: 'success',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -1154,10 +1154,10 @@ export default {
|
|||||||
pid: '0',
|
pid: '0',
|
||||||
modelIndex: this.form.modelData.length,
|
modelIndex: this.form.modelData.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
this.form.modelData.push(list);
|
this.form.modelData.push(list);
|
||||||
@@ -1179,10 +1179,10 @@ export default {
|
|||||||
pid: row.modelNum,
|
pid: row.modelNum,
|
||||||
modelIndex: row.children.length,
|
modelIndex: row.children.length,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
modelName: "",
|
modelName: '',
|
||||||
modelContent: "",
|
modelContent: '',
|
||||||
zrUserId:"",
|
zrUserId:'',
|
||||||
zrUserIdName:"",
|
zrUserIdName:'',
|
||||||
children:[],
|
children:[],
|
||||||
};
|
};
|
||||||
row.children.push(list)
|
row.children.push(list)
|
||||||
@@ -1196,7 +1196,7 @@ export default {
|
|||||||
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
const hour = d.getHours()<10 ? '0'+d.getHours() : d.getHours();//得到时
|
||||||
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
const minute = d.getMinutes()<10 ? '0'+d.getMinutes() : d.getMinutes();//得到分
|
||||||
const second = d.getSeconds()<10 ? '0'+d.getSeconds() : d.getSeconds();//得到秒
|
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 () {
|
// choiceZRRS () {
|
||||||
// if (this.userType === 'zrUserId') {
|
// if (this.userType === 'zrUserId') {
|
||||||
@@ -1254,7 +1254,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
this.processNum()
|
this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -1311,7 +1312,7 @@ export default {
|
|||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
@@ -1377,96 +1378,96 @@ export default {
|
|||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
case 2:
|
case 2:
|
||||||
if (this.standardCheckedList.length === 1) {
|
if (this.standardCheckedList.length === 1) {
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if(res && res.data){
|
if(res && res.data){
|
||||||
const bringData = res.data
|
const bringData = res.data
|
||||||
|
|
||||||
const json = Object.assign(bringData, bringData.attrInfoMap);
|
const json = Object.assign(bringData, bringData.attrInfoMap);
|
||||||
this.form = JSON.parse(JSON.stringify(json))
|
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.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.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.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.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.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.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.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
this.verifySarStandard = true
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
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) {
|
console.log('res',res);
|
||||||
if (typeof (this.form[p ]) != "function") {
|
})
|
||||||
this.initializeFileList(p,this.form[p]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
console.log("res",res);
|
|
||||||
})
|
|
||||||
|
|
||||||
} else if (this.standardCheckedList.length > 1) {
|
} else if (this.standardCheckedList.length > 1) {
|
||||||
this.$message.warning('最多可以带入一条政策信息')
|
this.$message.warning('最多可以带入一条政策信息')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请选择要带入的政策信息')
|
this.$message.warning('请选择要带入的政策信息')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// 取消
|
// 取消
|
||||||
case 3:
|
case 3:
|
||||||
this.selectedList = []
|
this.selectedList = []
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
initializeFileList(property ,value){
|
initializeFileList(property ,value){
|
||||||
switch (property){
|
switch (property){
|
||||||
case 'xgd':
|
case 'xgd':
|
||||||
this.getFileList(value,this.xgdFileList);
|
this.getFileList(value,this.xgdFileList);
|
||||||
break;
|
break;
|
||||||
case 'fbgbjbd':
|
case 'fbgbjbd':
|
||||||
this.getFileList(value,this.FBGBJBDFileList);
|
this.getFileList(value,this.FBGBJBDFileList);
|
||||||
break;
|
break;
|
||||||
case 'ssg':
|
case 'ssg':
|
||||||
this.getFileList(value,this.ssgFileList);
|
this.getFileList(value,this.ssgFileList);
|
||||||
break;
|
break;
|
||||||
case 'ca':
|
case 'ca':
|
||||||
this.getFileList(value,this.caFileList);
|
this.getFileList(value,this.caFileList);
|
||||||
break;
|
break;
|
||||||
case 'zbjbd':
|
case 'zbjbd':
|
||||||
this.getFileList(value,this.zbjbdFileList);
|
this.getFileList(value,this.zbjbdFileList);
|
||||||
break;
|
break;
|
||||||
case 'kwj':
|
case 'kwj':
|
||||||
this.getFileList(value,this.kwjFileList);
|
this.getFileList(value,this.kwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'jdwj':
|
case 'jdwj':
|
||||||
this.getFileList(value,this.jdwjFileList);
|
this.getFileList(value,this.jdwjFileList);
|
||||||
break;
|
break;
|
||||||
case 'bpg':
|
case 'bpg':
|
||||||
this.getFileList(value,this.bpgFileList);
|
this.getFileList(value,this.bpgFileList);
|
||||||
break;
|
break;
|
||||||
case 'zqyjg':
|
case 'zqyjg':
|
||||||
this.getFileList(value,this.zqyjgFileList);
|
this.getFileList(value,this.zqyjgFileList);
|
||||||
break;
|
break;
|
||||||
case 'glwj':
|
case 'glwj':
|
||||||
this.getFileList(value,this.glwjFileList);
|
this.getFileList(value,this.glwjFileList);
|
||||||
break;
|
break;
|
||||||
default: ;
|
default:
|
||||||
}
|
}
|
||||||
},getFileList(fileIds,defaultFileList){
|
},getFileList(fileIds,defaultFileList){
|
||||||
|
|
||||||
@@ -1477,17 +1478,17 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|
||||||
let fileList = res.data
|
const fileList = res.data
|
||||||
if (fileList != null && fileList.length > 0) {
|
if (fileList != null && fileList.length > 0) {
|
||||||
for (let i = 0; i < fileList.length; i++) {
|
for (let i = 0; i < fileList.length; i++) {
|
||||||
let obj = {name: '', response: {}}
|
const obj = {name: '', response: {}}
|
||||||
obj.name = fileList[i].oldFileName
|
obj.name = fileList[i].oldFileName
|
||||||
obj.response.data = fileList[i]
|
obj.response.data = fileList[i]
|
||||||
|
|
||||||
|
|
||||||
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
//根据以‘,’分割的id查询到的文件信息,放入对应的文件list中
|
||||||
defaultFileList.push(obj)
|
defaultFileList.push(obj)
|
||||||
console.log("defaultFileList",defaultFileList);
|
console.log('defaultFileList',defaultFileList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -1555,8 +1556,8 @@ export default {
|
|||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
if (this.userType === 'zrUserId') {
|
if (this.userType === 'zrUserId') {
|
||||||
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(",")
|
this.roleForm.zrUserId = this.zrUserIds.map(item => item.id).join(',')
|
||||||
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(",")
|
this.roleForm.zrUserName = this.zrUserIds.map(item => item.name).join(',')
|
||||||
} else if (this.userType === 'jlUserId') {
|
} else if (this.userType === 'jlUserId') {
|
||||||
this.roleForm.jlUserId = this.roleRow.id
|
this.roleForm.jlUserId = this.roleRow.id
|
||||||
this.roleForm.jlUserName = this.roleRow.name
|
this.roleForm.jlUserName = this.roleRow.name
|
||||||
@@ -1587,7 +1588,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}else {
|
}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) {
|
if(getlist.length == 1) {
|
||||||
this.roleRow = getlist[0]
|
this.roleRow = getlist[0]
|
||||||
}else {
|
}else {
|
||||||
@@ -1599,15 +1600,15 @@ export default {
|
|||||||
// 更多
|
// 更多
|
||||||
handleCommand (command) {
|
handleCommand (command) {
|
||||||
switch (command[2]) {
|
switch (command[2]) {
|
||||||
case '新增':
|
case '新增':
|
||||||
this.createChildRow(command[0],command[1])
|
this.createChildRow(command[0],command[1])
|
||||||
break
|
break
|
||||||
case '维护':
|
case '维护':
|
||||||
command[1].disabled = false
|
command[1].disabled = false
|
||||||
break
|
break
|
||||||
case '删除':
|
case '删除':
|
||||||
this.handleDelete(command[0],command[1])
|
this.handleDelete(command[0],command[1])
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
choiceZRRList (type, title, id) {
|
choiceZRRList (type, title, id) {
|
||||||
@@ -1667,8 +1668,8 @@ export default {
|
|||||||
this.modalShowFlag2 = true
|
this.modalShowFlag2 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key1++
|
this.key1++
|
||||||
},
|
},
|
||||||
choiceZRR3 (type, title, id) {
|
choiceZRR3 (type, title, id) {
|
||||||
@@ -1676,8 +1677,8 @@ export default {
|
|||||||
this.modalShowFlag3 = true
|
this.modalShowFlag3 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarVppsTree/list"
|
this.url='sarVppsTree/list'
|
||||||
this.urlChild="sarVppsTree/childByList"
|
this.urlChild='sarVppsTree/childByList'
|
||||||
this.key2++
|
this.key2++
|
||||||
},
|
},
|
||||||
choiceZRR4 (type, title, id) {
|
choiceZRR4 (type, title, id) {
|
||||||
@@ -1685,8 +1686,8 @@ export default {
|
|||||||
this.modalShowFlag4 = true
|
this.modalShowFlag4 = true
|
||||||
this.url = ''
|
this.url = ''
|
||||||
this.urlChild = ''
|
this.urlChild = ''
|
||||||
this.url="sarModelTree/list"
|
this.url='sarModelTree/list'
|
||||||
this.urlChild="sarModelTree/childByList"
|
this.urlChild='sarModelTree/childByList'
|
||||||
this.key3++
|
this.key3++
|
||||||
},
|
},
|
||||||
getTree () {
|
getTree () {
|
||||||
@@ -1806,7 +1807,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherLawsStandDetails',
|
name: 'OtherLawsStandDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.id,
|
id: item.id,
|
||||||
@@ -1864,10 +1865,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
beginImportFile (file) {
|
beginImportFile (file) {
|
||||||
var filename = file.name
|
const filename = file.name
|
||||||
var index1 = filename.lastIndexOf('.')
|
const index1 = filename.lastIndexOf('.')
|
||||||
var index2 = filename.length
|
const index2 = filename.length
|
||||||
var fileSuffix = filename.substring(index1, index2)
|
const fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// 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') {
|
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 => {
|
}).catch(e => {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.$message.warning('文件不存在,预览失败')
|
this.$message.warning('文件不存在,预览失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
@@ -1939,22 +1940,22 @@ export default {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJLAWS':
|
case 'GLWJLAWS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
// showClose: true,
|
// showClose: true,
|
||||||
@@ -1974,22 +1975,22 @@ export default {
|
|||||||
this.fileType = type;
|
this.fileType = type;
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.fileList=this.FBGBUSSFileList
|
this.fileList=this.FBGBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.fileList=this.BZSMBUSSFileList
|
this.fileList=this.BZSMBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.fileList=this.LSBBBUSSFileList
|
this.fileList=this.LSBBBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.fileList=this.QTWJBUSSFileList
|
this.fileList=this.QTWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.fileList=this.GLWJBUSSFileList
|
this.fileList=this.GLWJBUSSFileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
this.fileMadel = true;
|
this.fileMadel = true;
|
||||||
|
|
||||||
@@ -1997,29 +1998,29 @@ export default {
|
|||||||
removeOneFile(file, fileList) {
|
removeOneFile(file, fileList) {
|
||||||
|
|
||||||
switch (this.fileType){
|
switch (this.fileType){
|
||||||
case 'FBGBUSS':
|
case 'FBGBUSS':
|
||||||
this.FBGBUSSFileList = fileList
|
this.FBGBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'BZSMBUSS' :
|
case 'BZSMBUSS' :
|
||||||
this.BZSMBUSSFileList = fileList
|
this.BZSMBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'LSBBBUSS':
|
case 'LSBBBUSS':
|
||||||
this.LSBBBUSSFileList = fileList
|
this.LSBBBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'QTWJBUSS':
|
case 'QTWJBUSS':
|
||||||
this.QTWJBUSSFileList = fileList
|
this.QTWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
case 'GLWJBUSS':
|
case 'GLWJBUSS':
|
||||||
this.GLWJBUSSFileList = fileList
|
this.GLWJBUSSFileList = fileList
|
||||||
break;
|
break;
|
||||||
default : ;
|
default :
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(",")
|
this.form.VPPSBMBUSS = checkedData.map(item => item.code).join(',')
|
||||||
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(",")
|
this.form.VPPSCNBUSS = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.VPPSBMBUSS = checkedData.code
|
this.form.VPPSBMBUSS = checkedData.code
|
||||||
this.form.VPPSCNBUSS = checkedData.chineseName
|
this.form.VPPSCNBUSS = checkedData.chineseName
|
||||||
@@ -2031,7 +2032,7 @@ export default {
|
|||||||
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData) {
|
if(checkedData) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(",")
|
this.form.TXLBBUSS = checkedData.map(item => item.menuName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.TXLBBUSS = checkedData.menuName
|
this.form.TXLBBUSS = checkedData.menuName
|
||||||
}
|
}
|
||||||
@@ -2045,8 +2046,8 @@ export default {
|
|||||||
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0 && checkedData.length != 0){
|
if(checkedData.length > 0 && checkedData.length != 0){
|
||||||
this.form.cycvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.cycvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.cycvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.cycvppsbm = checkedData.code
|
this.form.cycvppsbm = checkedData.code
|
||||||
this.form.cycvppscn = checkedData.chineseName
|
this.form.cycvppscn = checkedData.chineseName
|
||||||
@@ -2061,8 +2062,8 @@ export default {
|
|||||||
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.kccvppsbm = checkedData.map(item => item.code).join(",")
|
this.form.kccvppsbm = checkedData.map(item => item.code).join(',')
|
||||||
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",")
|
this.form.kccvppscn = checkedData.map(item => item.chineseName).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.kccvppsbm = checkedData.code
|
this.form.kccvppsbm = checkedData.code
|
||||||
this.form.kccvppscn = checkedData.chineseName
|
this.form.kccvppscn = checkedData.chineseName
|
||||||
@@ -2077,8 +2078,8 @@ export default {
|
|||||||
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) {
|
||||||
if(checkedData && checkedData.length != 0) {
|
if(checkedData && checkedData.length != 0) {
|
||||||
if(checkedData.length > 0){
|
if(checkedData.length > 0){
|
||||||
this.form.dybxh = checkedData.map(item => item.model).join(",")
|
this.form.dybxh = checkedData.map(item => item.model).join(',')
|
||||||
this.form.dymc = checkedData.map(item => item.name).join(",")
|
this.form.dymc = checkedData.map(item => item.name).join(',')
|
||||||
}else {
|
}else {
|
||||||
this.form.dybxh = checkedData.model
|
this.form.dybxh = checkedData.model
|
||||||
this.form.dymc = checkedData.name
|
this.form.dymc = checkedData.name
|
||||||
@@ -2095,7 +2096,7 @@ export default {
|
|||||||
},
|
},
|
||||||
OkDrawer() {
|
OkDrawer() {
|
||||||
this.ListModel = false
|
this.ListModel = false
|
||||||
var item = {
|
const item = {
|
||||||
remarks: '123'
|
remarks: '123'
|
||||||
}
|
}
|
||||||
this.data.push(item)
|
this.data.push(item)
|
||||||
@@ -2115,7 +2116,7 @@ export default {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
// _formData.append('id', this.bpnId)
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.account)
|
_formData.append('createUser', this.$store.getters.userInfo.account)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
@@ -2144,20 +2145,20 @@ export default {
|
|||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
|
|
||||||
//拼接文件名和id 提交到流程Activity
|
//拼接文件名和id 提交到流程Activity
|
||||||
this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).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.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).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.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).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.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).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.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).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.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(',')
|
||||||
|
|
||||||
},
|
},
|
||||||
// 删除方法
|
// 删除方法
|
||||||
@@ -2177,7 +2178,7 @@ export default {
|
|||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
changeRestTree(val) {
|
changeRestTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
@@ -2185,7 +2186,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(item.pid === '0'){
|
if(item.pid === '0'){
|
||||||
item.id = arr.length + 1,
|
item.id = arr.length + 1,
|
||||||
item.modelNum = arr.length + 1+''
|
item.modelNum = arr.length + 1+''
|
||||||
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
item.orderNum = arr.length + 1 // orderNum为新创建行的索引
|
||||||
item.modelIndex = arr.length
|
item.modelIndex = arr.length
|
||||||
}else {
|
}else {
|
||||||
@@ -2202,19 +2203,19 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
changeTree(val) {
|
changeTree(val) {
|
||||||
let arr = [];
|
const arr = [];
|
||||||
this.modelDataNameVerify = []
|
this.modelDataNameVerify = []
|
||||||
this.modelDataZrUserVerify = []
|
this.modelDataZrUserVerify = []
|
||||||
if (val.length !== 0) {
|
if (val.length !== 0) {
|
||||||
val.forEach(item => {
|
val.forEach(item => {
|
||||||
let obj = {};
|
const obj = {};
|
||||||
obj.modelName = item.modelName;
|
obj.modelName = item.modelName;
|
||||||
obj.zrUserIdName = item.zrUserIdName;
|
obj.zrUserIdName = item.zrUserIdName;
|
||||||
if(!obj.modelName || obj.modelName === ''){
|
if(!obj.modelName || obj.modelName === ''){
|
||||||
this.modelDataNameVerify.push("1")
|
this.modelDataNameVerify.push('1')
|
||||||
}
|
}
|
||||||
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
if(item.pid === '0' && (!obj.zrUserIdName || obj.zrUserIdName === '')){
|
||||||
this.modelDataZrUserVerify.push("1")
|
this.modelDataZrUserVerify.push('1')
|
||||||
}
|
}
|
||||||
if (item.children.length >= 1) {
|
if (item.children.length >= 1) {
|
||||||
item.children = this.changeTree(item.children);
|
item.children = this.changeTree(item.children);
|
||||||
@@ -2274,13 +2275,14 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
if(this.formTongGuo.approvalOpinion === '1'){
|
if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
@@ -2334,16 +2336,16 @@ export default {
|
|||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
return obj;
|
return obj;
|
||||||
}else {
|
}else {
|
||||||
return obj.split(",")
|
return obj.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return '';
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
const list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -2382,7 +2384,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
Promise.all([this.getTaskId()]).then((value) => {
|
Promise.all([this.getTaskId()]).then((value) => {
|
||||||
if(value[0] &&value.length > 0){
|
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'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.taskIds = mes.taskIds;
|
this.taskIds = mes.taskIds;
|
||||||
|
|||||||
@@ -194,7 +194,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -209,7 +209,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -11,31 +11,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form
|
<el-form
|
||||||
v-if="reloadForm"
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="label-input-form phoneForm"
|
class="label-input-form phoneForm"
|
||||||
label-width="112px"
|
label-width="112px"
|
||||||
>
|
>
|
||||||
<template v-if="active === '1'">
|
<template v-if="active === '1'">
|
||||||
<div>
|
<div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -43,85 +43,83 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
prop="summaryFileName"
|
prop="summaryFileName"
|
||||||
:ids.sync="form.summaryFile"
|
:ids.sync="form.summaryFile"
|
||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
show-over2
|
show-over2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit="handle2"
|
@submit="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
:node-list="nodeList"
|
||||||
:nodeList="nodeList"
|
@checkedRole="checkedRole"
|
||||||
></phoneRoleTree>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -158,12 +156,12 @@ export default {
|
|||||||
nodeList: []
|
nodeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(name) {
|
handleTabs (name) {
|
||||||
this.active = name;
|
this.active = name;
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
@@ -201,7 +199,7 @@ export default {
|
|||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.addRule()
|
this.addRule()
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -209,19 +207,20 @@ export default {
|
|||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
const query = {
|
const query = {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$route.query.userId,
|
userId: this.$route.query.userId,
|
||||||
json: json
|
json: json
|
||||||
}
|
}
|
||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1){
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
|
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
} else {
|
} else {
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
@@ -232,7 +231,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addRule() {
|
addRule () {
|
||||||
if (this.form.approvalOpinion === 0) {
|
if (this.form.approvalOpinion === 0) {
|
||||||
this.rules.commentText = [
|
this.rules.commentText = [
|
||||||
{ required: false }
|
{ required: false }
|
||||||
@@ -262,7 +261,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -276,14 +276,14 @@ export default {
|
|||||||
this.dict = { ...res.data }
|
this.dict = { ...res.data }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEvaluation() {
|
getEvaluation () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getEvaluationIndex({
|
getEvaluationIndex({
|
||||||
indexType: 'quality'
|
indexType: 'quality'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const evalList = []
|
const evalList = []
|
||||||
res.data.forEach(item =>{
|
res.data.forEach(item => {
|
||||||
item.score = ''
|
item.score = ''
|
||||||
item.scoreMin = ''
|
item.scoreMin = ''
|
||||||
item.reason = ''
|
item.reason = ''
|
||||||
|
|||||||
@@ -227,7 +227,8 @@ export default {
|
|||||||
}
|
}
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
|
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
} else {
|
} else {
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
@@ -268,7 +269,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -11,31 +11,31 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form
|
<el-form
|
||||||
v-if="reloadForm"
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
class="label-input-form phoneForm"
|
class="label-input-form phoneForm"
|
||||||
label-width="112px"
|
label-width="112px"
|
||||||
>
|
>
|
||||||
<template v-if="active === '1'">
|
<template v-if="active === '1'">
|
||||||
<div>
|
<div>
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">过程稿件</template>
|
<template slot="title">过程稿件</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<ProcessFile :form="form" :disabled="disabled"></ProcessFile>
|
<ProcessFile :form="form" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">适用范围</template>
|
<template slot="title">适用范围</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Range :form="form" :dict="dict" :disabled="disabled"></Range>
|
<Range :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">关联信息</template>
|
<template slot="title">关联信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Info :form="form" :dict="dict" :disabled="disabled"></Info>
|
<Info :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<!--<ProcessTitle>-->
|
<!--<ProcessTitle>-->
|
||||||
<!-- <template slot="title">文件汇总</template>-->
|
<!-- <template slot="title">文件汇总</template>-->
|
||||||
<!--</ProcessTitle>-->
|
<!--</ProcessTitle>-->
|
||||||
@@ -43,85 +43,83 @@
|
|||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">意见信息</template>
|
<template slot="title">意见信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.infoList"></TermInfo>
|
<TermInfo :data="form.infoList" />
|
||||||
<div class="prc-content-border">
|
<div class="prc-content-border">
|
||||||
<UploadFormItem
|
<UploadFormItem
|
||||||
label="汇总评审意见文件"
|
label="汇总评审意见文件"
|
||||||
prop="summaryFileName"
|
prop="summaryFileName"
|
||||||
:ids.sync="form.summaryFile"
|
:ids.sync="form.summaryFile"
|
||||||
:names.sync="form.summaryFileName"
|
:names.sync="form.summaryFileName"
|
||||||
view
|
view
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
></UploadFormItem>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" prop="commentText" title="回执说明" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '2'">
|
<template v-if="active === '2'">
|
||||||
<RoleInfo :roleForm="roleForm"></RoleInfo>
|
<RoleInfo :role-form="roleForm" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '3'">
|
<template v-if="active === '3'">
|
||||||
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
<PhoneHistortTable :prc-num="this.$route.query.prcNum" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '4'">
|
<template v-if="active === '4'">
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">条款信息</template>
|
<template slot="title">条款信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<TermInfo :data="form.modelData"></TermInfo>
|
<TermInfo :data="form.modelData" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="active === '5'">
|
<template v-if="active === '5'">
|
||||||
<Score :form="form" :standSort="form.standSort" :standName="form.standName"></Score>
|
<Score :form="form" :stand-sort="form.standSort" :stand-name="form.standName" />
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit2
|
show-submit2
|
||||||
show-over2
|
show-over2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submit-loading="footerLoading"
|
||||||
@submit2="handle2"
|
@submit2="handle2"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@over2="handle1"
|
@over2="handle2"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<phoneRoleTree
|
<phoneRoleTree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
:node-list="nodeList"
|
||||||
:nodeList="nodeList"
|
@checkedRole="checkedRole"
|
||||||
></phoneRoleTree>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from 'api/process'
|
||||||
import {getEvaluationIndex} from "api/businessApi";
|
import { getEvaluationIndex } from 'api/businessApi';
|
||||||
|
|
||||||
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
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 phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import ProcessFile from "./components/ProcessFile";
|
import ProcessFile from './components/ProcessFile';
|
||||||
import Range from "./components/Range";
|
import Range from './components/Range';
|
||||||
import Info from "./components/Info";
|
import Info from './components/Info';
|
||||||
import RoleInfo from "./components/RoleInfo";
|
import RoleInfo from './components/RoleInfo';
|
||||||
import FileSummary from "./components/FileSummary";
|
import FileSummary from './components/FileSummary';
|
||||||
import TermInfo from "./components/TermInfo";
|
import TermInfo from './components/TermInfo';
|
||||||
import Score from "./components/Score";
|
import Score from './components/Score';
|
||||||
|
|
||||||
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
import UploadFormItem from '@/components/hzwlComponents/UploadFormItem'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "step2",
|
name: 'Step2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeaderPhone,
|
ProcessHeaderPhone,
|
||||||
PhoneHistortTable,
|
PhoneHistortTable,
|
||||||
@@ -158,12 +156,12 @@ export default {
|
|||||||
nodeList: []
|
nodeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(name) {
|
handleTabs (name) {
|
||||||
this.active = name;
|
this.active = name;
|
||||||
},
|
},
|
||||||
getData () {
|
getData () {
|
||||||
@@ -208,7 +206,7 @@ export default {
|
|||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.addRule()
|
this.addRule()
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -216,19 +214,20 @@ export default {
|
|||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
const query = {
|
const query = {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$route.query.userId,
|
userId: this.$route.query.userId,
|
||||||
json: json
|
json: json
|
||||||
}
|
}
|
||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1){
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
}else{
|
}else{
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
}
|
}
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
|
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
} else {
|
} else {
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
@@ -239,7 +238,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addRule() {
|
addRule () {
|
||||||
if (this.form.approvalOpinion === 0) {
|
if (this.form.approvalOpinion === 0) {
|
||||||
this.rules.commentText = [
|
this.rules.commentText = [
|
||||||
{ required: false }
|
{ required: false }
|
||||||
@@ -269,7 +268,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -283,14 +283,14 @@ export default {
|
|||||||
this.dict = { ...res.data }
|
this.dict = { ...res.data }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEvaluation() {
|
getEvaluation () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getEvaluationIndex({
|
getEvaluationIndex({
|
||||||
indexType: 'quality'
|
indexType: 'quality'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const evalList = []
|
const evalList = []
|
||||||
res.data.forEach(item =>{
|
res.data.forEach(item => {
|
||||||
item.score = ''
|
item.score = ''
|
||||||
item.scoreMin = ''
|
item.scoreMin = ''
|
||||||
item.reason = ''
|
item.reason = ''
|
||||||
|
|||||||
@@ -105,14 +105,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbzxdjhgkStep2",
|
name: 'phoneQbzxdjhgkStep2',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -158,8 +158,8 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
// 文件预览及下载
|
// 文件预览及下载
|
||||||
handleFilePreview(file,type) {
|
handleFilePreview(file,type) {
|
||||||
let id = ""
|
let id = ''
|
||||||
let fileName = ""
|
let fileName = ''
|
||||||
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
||||||
fileName = this.qbfsForm.esName+'-立项单.docx'
|
fileName = this.qbfsForm.esName+'-立项单.docx'
|
||||||
}else {
|
}else {
|
||||||
@@ -183,12 +183,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -222,10 +222,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= [];
|
const list= [];
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -257,7 +257,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -286,7 +287,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.passFlag = '0'
|
this.qbfsForm.passFlag = '0'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -297,7 +298,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -311,7 +313,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.passFlag = '1'
|
this.qbfsForm.passFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -322,7 +324,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -105,14 +105,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbzxdjhgkStep3",
|
name: 'phoneQbzxdjhgkStep3',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -158,8 +158,8 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
// 文件预览及下载
|
// 文件预览及下载
|
||||||
handleFilePreview(file,type) {
|
handleFilePreview(file,type) {
|
||||||
let id = ""
|
let id = ''
|
||||||
let fileName = ""
|
let fileName = ''
|
||||||
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
||||||
fileName = this.qbfsForm.esName+'-立项单.docx'
|
fileName = this.qbfsForm.esName+'-立项单.docx'
|
||||||
}else {
|
}else {
|
||||||
@@ -183,12 +183,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -222,10 +222,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= [];
|
const list= [];
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -257,7 +257,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -286,7 +287,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.deptCenterFlag = '0'
|
this.qbfsForm.deptCenterFlag = '0'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -297,7 +298,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -311,7 +313,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.deptCenterFlag = '1'
|
this.qbfsForm.deptCenterFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -322,7 +324,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -105,14 +105,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbzxdjhgkStep4",
|
name: 'phoneQbzxdjhgkStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -158,8 +158,8 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
// 文件预览及下载
|
// 文件预览及下载
|
||||||
handleFilePreview(file,type) {
|
handleFilePreview(file,type) {
|
||||||
let id = ""
|
let id = ''
|
||||||
let fileName = ""
|
let fileName = ''
|
||||||
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
||||||
fileName = this.qbfsForm.esName+'-立项单.docx'
|
fileName = this.qbfsForm.esName+'-立项单.docx'
|
||||||
}else {
|
}else {
|
||||||
@@ -183,12 +183,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -221,10 +221,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= [];
|
const list= [];
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -256,7 +256,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -285,7 +286,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.bzFlag = '0'
|
this.qbfsForm.bzFlag = '0'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -296,7 +297,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -310,7 +312,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.bzFlag = '1'
|
this.qbfsForm.bzFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -321,7 +323,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -105,14 +105,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Dialog } from 'vant';
|
import { Dialog } from 'vant';
|
||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from '../../components/ProcessHeader';
|
||||||
import ProcessTitle from "process/components/ProcessTitle";
|
import ProcessTitle from 'process/components/ProcessTitle';
|
||||||
import ProcessFooter from "process/components/ProcessFooter";
|
import ProcessFooter from 'process/components/ProcessFooter';
|
||||||
import { changeAssigneeNew,inboundLiaisonDetail } from "api/process";
|
import { changeAssigneeNew,inboundLiaisonDetail } from 'api/process';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneQbzxdjhgkStep5",
|
name: 'phoneQbzxdjhgkStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
@@ -158,8 +158,8 @@ export default {
|
|||||||
methods:{
|
methods:{
|
||||||
// 文件预览及下载
|
// 文件预览及下载
|
||||||
handleFilePreview(file,type) {
|
handleFilePreview(file,type) {
|
||||||
let id = ""
|
let id = ''
|
||||||
let fileName = ""
|
let fileName = ''
|
||||||
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){
|
||||||
fileName = this.qbfsForm.esName+'-立项单.docx'
|
fileName = this.qbfsForm.esName+'-立项单.docx'
|
||||||
}else {
|
}else {
|
||||||
@@ -183,12 +183,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -221,10 +221,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= [];
|
const list= [];
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
const idArray=ids.split(',');
|
||||||
let nameArray=names.split(',');
|
const nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
}
|
}
|
||||||
@@ -256,7 +256,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -289,7 +290,7 @@ export default {
|
|||||||
this.qbfsForm.area = this.qbfsForm.area.join(',')
|
this.qbfsForm.area = this.qbfsForm.area.join(',')
|
||||||
}
|
}
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -300,7 +301,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -314,7 +316,7 @@ export default {
|
|||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.bzfgbzFlag = '1'
|
this.qbfsForm.bzfgbzFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
const json = JSON.stringify(this.qbfsForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.account,
|
userId: this.$store.getters.userInfo.account,
|
||||||
@@ -325,7 +327,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
|||||||
@@ -162,7 +162,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
@@ -97,13 +97,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneWbsmStep3",
|
name: 'phoneWbsmStep3',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -174,7 +174,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -197,7 +197,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -206,12 +207,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -245,7 +246,7 @@ export default {
|
|||||||
// 批量选择分发责任人
|
// 批量选择分发责任人
|
||||||
dutyEngineerList(id) {
|
dutyEngineerList(id) {
|
||||||
if (this.multipleSelection.length === 0) {
|
if (this.multipleSelection.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning('请选择至少一条数据进行分发责任人');
|
||||||
} else {
|
} else {
|
||||||
this.nodeList = []
|
this.nodeList = []
|
||||||
this.nodeList.push(id)
|
this.nodeList.push(id)
|
||||||
@@ -276,7 +277,7 @@ export default {
|
|||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// roleForm: this.roleForm,
|
// roleForm: this.roleForm,
|
||||||
@@ -293,14 +294,14 @@ export default {
|
|||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let son = {
|
const son = {
|
||||||
signFlag: '1',
|
signFlag: '1',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -310,7 +311,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -322,15 +324,15 @@ export default {
|
|||||||
if(!this.commentText){
|
if(!this.commentText){
|
||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
let son = {
|
const son = {
|
||||||
signFlag: '2',
|
signFlag: '2',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -340,7 +342,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -370,7 +373,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -390,7 +394,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
|
|||||||
@@ -103,13 +103,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneWbsmStep4",
|
name: 'phoneWbsmStep4',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -180,7 +180,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -203,7 +203,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -212,12 +213,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -251,7 +252,7 @@ export default {
|
|||||||
// 批量选择分发责任人
|
// 批量选择分发责任人
|
||||||
dutyEngineerList(id) {
|
dutyEngineerList(id) {
|
||||||
if (this.multipleSelection.length === 0) {
|
if (this.multipleSelection.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning('请选择至少一条数据进行分发责任人');
|
||||||
} else {
|
} else {
|
||||||
this.nodeList = []
|
this.nodeList = []
|
||||||
this.nodeList.push(id)
|
this.nodeList.push(id)
|
||||||
@@ -282,7 +283,7 @@ export default {
|
|||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// roleForm: this.roleForm,
|
// roleForm: this.roleForm,
|
||||||
@@ -299,14 +300,14 @@ export default {
|
|||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let son = {
|
const son = {
|
||||||
signFlag: '1',
|
signFlag: '1',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -316,7 +317,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -328,15 +330,15 @@ export default {
|
|||||||
if(!this.commentText){
|
if(!this.commentText){
|
||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
let son = {
|
const son = {
|
||||||
signFlag: '2',
|
signFlag: '2',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -346,7 +348,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -376,7 +379,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -396,7 +400,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
|
|||||||
@@ -103,13 +103,13 @@ import { Dialog } from 'vant';
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from "api/process";
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew, execTask, saveTaskForPub } from 'api/process';
|
||||||
import axios from "axios";
|
import axios from 'axios';
|
||||||
import ProcessHeader from "process/components/ProcessHeader";
|
import ProcessHeader from 'process/components/ProcessHeader';
|
||||||
import hwh5 from '@/api/hwh5-cloudonline.js'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneWbsmStep5",
|
name: 'phoneWbsmStep5',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -180,7 +180,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
listNoDataText() {
|
listNoDataText() {
|
||||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -203,7 +203,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
// this.processNum()
|
// this.processNum()
|
||||||
} else {
|
} else {
|
||||||
@@ -212,12 +213,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
processTable() {
|
processTable() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
prcNum: this.$route.query.prcNum,
|
prcNum: this.$route.query.prcNum,
|
||||||
sortWord: this.shunxu ? this.paixu : "",
|
sortWord: this.shunxu ? this.paixu : '',
|
||||||
shunxu: this.shunxu
|
shunxu: this.shunxu
|
||||||
}, {
|
}, {
|
||||||
loading: "loading",
|
loading: 'loading',
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.detailData = res
|
this.detailData = res
|
||||||
@@ -251,7 +252,7 @@ export default {
|
|||||||
// 批量选择分发责任人
|
// 批量选择分发责任人
|
||||||
dutyEngineerList(id) {
|
dutyEngineerList(id) {
|
||||||
if (this.multipleSelection.length === 0) {
|
if (this.multipleSelection.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning('请选择至少一条数据进行分发责任人');
|
||||||
} else {
|
} else {
|
||||||
this.nodeList = []
|
this.nodeList = []
|
||||||
this.nodeList.push(id)
|
this.nodeList.push(id)
|
||||||
@@ -282,7 +283,7 @@ export default {
|
|||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// roleForm: this.roleForm,
|
// roleForm: this.roleForm,
|
||||||
@@ -299,14 +300,14 @@ export default {
|
|||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let son = {
|
const son = {
|
||||||
yzFlag: '1',
|
yzFlag: '1',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -316,7 +317,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -328,15 +330,15 @@ export default {
|
|||||||
if(!this.commentText){
|
if(!this.commentText){
|
||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
let son = {
|
const son = {
|
||||||
yzFlag: '2',
|
yzFlag: '2',
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
roleForm: this.roleForm
|
roleForm: this.roleForm
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(son)
|
const json = JSON.stringify(son)
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
json: json
|
json: json
|
||||||
@@ -346,7 +348,8 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -376,7 +379,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -396,7 +400,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
|
|||||||
@@ -113,10 +113,10 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
export default {
|
export default {
|
||||||
name: "phoneWfhxzgStep2",
|
name: 'phoneWfhxzgStep2',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
passInfo: 0,
|
passInfo: 0,
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
// 批量选择分发责任人
|
// 批量选择分发责任人
|
||||||
dutyEngineerList(id) {
|
dutyEngineerList(id) {
|
||||||
if (this.multipleSelection.length === 0) {
|
if (this.multipleSelection.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning('请选择至少一条数据进行分发责任人');
|
||||||
} else {
|
} else {
|
||||||
this.phoneRoleList = []
|
this.phoneRoleList = []
|
||||||
if (this.multipleSelection[0].dutyPeopleInfoId.length > 0) {
|
if (this.multipleSelection[0].dutyPeopleInfoId.length > 0) {
|
||||||
@@ -251,7 +251,7 @@ export default {
|
|||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// roleForm: this.roleForm,
|
// roleForm: this.roleForm,
|
||||||
@@ -270,8 +270,8 @@ export default {
|
|||||||
if(!this.commentInfo){
|
if(!this.commentInfo){
|
||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
let zqa = new Map();
|
const zqa = new Map();
|
||||||
for (let lastDataListElement of this.dataList) {
|
for (const lastDataListElement of this.dataList) {
|
||||||
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
if( a == null){
|
if( a == null){
|
||||||
a = {
|
a = {
|
||||||
@@ -283,11 +283,11 @@ export default {
|
|||||||
a.standardInfoList.push(lastDataListElement);
|
a.standardInfoList.push(lastDataListElement);
|
||||||
zqa.set(a.id, a);
|
zqa.set(a.id, a);
|
||||||
}
|
}
|
||||||
let list = [];
|
const list = [];
|
||||||
for(let item of zqa) {
|
for(const item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
let json = {
|
const json = {
|
||||||
dockUserList: list,
|
dockUserList: list,
|
||||||
passInfo: this.passInfo,
|
passInfo: this.passInfo,
|
||||||
passFlag: '1',
|
passFlag: '1',
|
||||||
@@ -302,7 +302,8 @@ export default {
|
|||||||
if(res.success === true) {
|
if(res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -314,8 +315,8 @@ export default {
|
|||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let zqa = new Map();
|
const zqa = new Map();
|
||||||
for (let lastDataListElement of this.dataList) {
|
for (const lastDataListElement of this.dataList) {
|
||||||
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
if( a == null){
|
if( a == null){
|
||||||
a = {
|
a = {
|
||||||
@@ -327,11 +328,11 @@ export default {
|
|||||||
a.standardInfoList.push(lastDataListElement);
|
a.standardInfoList.push(lastDataListElement);
|
||||||
zqa.set(a.id, a);
|
zqa.set(a.id, a);
|
||||||
}
|
}
|
||||||
let list = [];
|
const list = [];
|
||||||
for(let item of zqa) {
|
for(const item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
let json = {
|
const json = {
|
||||||
dockUserList: list,
|
dockUserList: list,
|
||||||
passInfo: this.passInfo,
|
passInfo: this.passInfo,
|
||||||
passFlag: '0',
|
passFlag: '0',
|
||||||
@@ -353,7 +354,8 @@ export default {
|
|||||||
if(res.success === true) {
|
if(res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -376,7 +378,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter")
|
// this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
@@ -409,7 +412,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
|
|||||||
@@ -116,11 +116,11 @@
|
|||||||
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
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'
|
import hwh5 from '@/api/hwh5-cloudonline.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "phoneWfhxzgStep3",
|
name: 'phoneWfhxzgStep3',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
passInfo: 0,
|
passInfo: 0,
|
||||||
@@ -187,7 +187,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (item.passInfo !== 0) {
|
if (item.passInfo !== 0) {
|
||||||
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
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++) {
|
for (let i = 0; i<fileData.length; i++) {
|
||||||
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||||
this.dataList = fileData[0].standardInfoList
|
this.dataList = fileData[0].standardInfoList
|
||||||
@@ -196,7 +196,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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++) {
|
for (let i = 0; i<fileData.length; i++) {
|
||||||
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
|
||||||
this.dataList = fileData[i].standardInfoList
|
this.dataList = fileData[i].standardInfoList
|
||||||
@@ -219,7 +219,7 @@ export default {
|
|||||||
// 批量选择分发责任人
|
// 批量选择分发责任人
|
||||||
dutyPeopleList(id) {
|
dutyPeopleList(id) {
|
||||||
if (this.selectTableMore.length === 0) {
|
if (this.selectTableMore.length === 0) {
|
||||||
this.$message.warning("请选择至少一条数据进行分发责任人");
|
this.$message.warning('请选择至少一条数据进行分发责任人');
|
||||||
} else {
|
} else {
|
||||||
this.phoneRoleList = []
|
this.phoneRoleList = []
|
||||||
if (this.selectTableMore[0].dutyPeopleId.length > 0) {
|
if (this.selectTableMore[0].dutyPeopleId.length > 0) {
|
||||||
@@ -243,7 +243,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
const routeUrl = this.$router.resolve({
|
||||||
name: 'OtherStandardDetails',
|
name: 'OtherStandardDetails',
|
||||||
params: {
|
params: {
|
||||||
id: item.standId,
|
id: item.standId,
|
||||||
@@ -255,8 +255,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
let zqa = new Map();
|
const zqa = new Map();
|
||||||
for (let lastDataListElement of this.dataList) {
|
for (const lastDataListElement of this.dataList) {
|
||||||
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
if( a == null){
|
if( a == null){
|
||||||
a = {
|
a = {
|
||||||
@@ -268,12 +268,12 @@ export default {
|
|||||||
a.standardInfoList.push(lastDataListElement);
|
a.standardInfoList.push(lastDataListElement);
|
||||||
zqa.set(a.id, a);
|
zqa.set(a.id, a);
|
||||||
}
|
}
|
||||||
let list = [];
|
const list = [];
|
||||||
for(let item of zqa) {
|
for(const item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// roleForm: this.roleForm,
|
// roleForm: this.roleForm,
|
||||||
@@ -298,8 +298,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag)return this.$message.warning('请选择负责人填入')
|
if(flag)return this.$message.warning('请选择负责人填入')
|
||||||
let zqa = new Map();
|
const zqa = new Map();
|
||||||
for (let lastDataListElement of this.dataList) {
|
for (const lastDataListElement of this.dataList) {
|
||||||
let a = zqa.get(lastDataListElement.dutyPeopleId)
|
let a = zqa.get(lastDataListElement.dutyPeopleId)
|
||||||
if( a == null){
|
if( a == null){
|
||||||
a = {
|
a = {
|
||||||
@@ -311,11 +311,11 @@ export default {
|
|||||||
a.standardInfoList.push(lastDataListElement);
|
a.standardInfoList.push(lastDataListElement);
|
||||||
zqa.set(a.id, a);
|
zqa.set(a.id, a);
|
||||||
}
|
}
|
||||||
let list = [];
|
const list = [];
|
||||||
for(let item of zqa) {
|
for(const item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
let json = {
|
const json = {
|
||||||
passInfo: this.passInfo,
|
passInfo: this.passInfo,
|
||||||
responUserList: list,
|
responUserList: list,
|
||||||
commentText: this.textarea,
|
commentText: this.textarea,
|
||||||
@@ -330,7 +330,8 @@ export default {
|
|||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push("/processCenter");
|
// this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
@@ -352,7 +353,8 @@ export default {
|
|||||||
this.turnLoading = false
|
this.turnLoading = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
// hwh5.close()
|
// hwh5.close()
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
// this.$router.push({
|
// this.$router.push({
|
||||||
// name: "processCenter"
|
// name: "processCenter"
|
||||||
// })
|
// })
|
||||||
|
|||||||
@@ -186,7 +186,8 @@ export default {
|
|||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.go(-2)
|
// this.$router.go(-2)
|
||||||
|
this.$close()
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user