Commit f3e55958 by liushikai

Merge branch 'master' of http://114.115.138.98:8900/fukai/vue-gjjs

# Conflicts:
#	src/views/Business/Trnrel/Inftrnps.vue
parents bc32f6b9 a313c613
{
"presets": ["vue-app"]
"presets": ["vue-app"],
"plugins": [
["transform-es2015-modules-commonjs", {
"allowTopLevelThis": true
}]
]
}
......@@ -865,7 +865,7 @@
},
"babel-plugin-transform-strict-mode": {
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz",
"resolved": "https://registry.npm.taobao.org/babel-plugin-transform-strict-mode/download/babel-plugin-transform-strict-mode-6.24.1.tgz",
"integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=",
"dev": true,
"requires": {
......
......@@ -29,6 +29,7 @@
"autoprefixer": "^6.6.0",
"babel-core": "^6.24.1",
"babel-loader": "^6.4.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-preset-vue-app": "^1.2.0",
"css-loader": "^0.27.0",
"file-loader": "^0.10.1",
......
<template>
<div class="bus-button">
<c-button type="primary" v-on:click="save">{{ $t('buttons.submit') }}</c-button>
<c-button type="primary" v-on:click="pedding">{{ $t('buttons.stash') }}</c-button>
<c-button type="primary" v-on:click="check">{{ $t('buttons.check') }}</c-button>
<c-button v-on:click="exit">{{ $t('buttons.quit') }}</c-button>
</div>
<div class="bus-button">
<c-button type="primary" v-on:click="save">{{
$t("buttons.submit")
}}</c-button>
<c-button type="primary" v-on:click="pedding">{{
$t("buttons.stash")
}}</c-button>
<c-button type="primary" v-on:click="check">{{
$t("buttons.check")
}}</c-button>
<c-button v-on:click="exit">{{ $t("buttons.quit") }}</c-button>
</div>
</template>
<script>
import commonApi from "~/mixin/commonApi"
import Utils from "~/utils"
import commonApi from "~/mixin/commonApi";
import Utils from "~/utils";
export default {
props:["$pntvm"],
data(){
return{
props: ["$pntvm"],
data() {
return {};
},
methods: {
async save() {
console.log(123);
let vm = this.getVM();
let result = await vm.save();
console.log(result);
// if (result.respCode == SUCCESS) {
// this.$notify({
// title: '成功',
// message: '保存成功',
// type: 'success'
// });
// this.$router.history.push("/business/trnrel")
// } else {
// }
if (
result.respCode == SUCCESS &&
Object.keys(result.fieldErrors).length == 0
) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
this.$store.dispatch("TagsView/delView", this.$route);
this.$router.history.push("/taskList", () => {
this.$store.commit("setTaskListTabVal", "trnrel");
});
} else if (
result.fieldErrors &&
Object.keys(result.fieldErrors).length > 0
) {
let errorMsg = "";
let errorMsgkey = "";
let errorMsgVal = "";
for (const key in result.fieldErrors) {
errorMsgkey = key;
errorMsgVal = result.fieldErrors[key];
errorMsg = errorMsg + errorMsgkey + ":" + errorMsgVal + ";";
}
this.$notify.error({
title: "失败",
message: "保存失败!错误信息[" + errorMsg + "]",
});
} else {
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
},
async pedding() {
let result = await this.getVM().pedding();
console.log(result);
if (result.respCode == SUCCESS) {
this.$notify({
title: "成功",
message: "暂存成功",
type: "success",
});
this.$router.history.push("/business/sptsel");
} else {
this.$notify({
title: "失败",
message: "暂存失败",
type: "error",
});
}
},
methods:{
async save(){
console.log(123)
let vm = this.getVM();
let result = await vm.save()
console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '保存成功',
type: 'success'
});
this.$router.history.push("/business/trnrel")
} else {
this.$notify({
title: '失败',
message: '保存失败',
type: 'error'
});
}
},
async pedding(){
let result = await this.getVM().pedding()
console.log(result)
if (result.respCode == SUCCESS) {
this.$notify({
title: '成功',
message: '暂存成功',
type: 'success'
});
this.$router.history.push("/business/sptsel")
} else {
this.$notify({
title: '失败',
message: '暂存失败',
type: 'error'
});
}
},
async check(){
let result = await this.getVM().checkAll()
if(result.respCode != SUCCESS) {
this.$notify.error({title: '错误',message: result.respMsg});
} else {
// 清除之前的校验状态
this.getVM().$refs.modelForm.clearValidate()
const fields = this.getVM().$refs.modelForm.fields
const fieldErrors = result.fieldErrors;
this.getVM().updateModel(result.data)
Utils.positioningErrorMsg(fieldErrors, fields)
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
if(tab) {
// tab切换之后,需出发tab-click的事件
this.getVM().tabClick(tab);
}
}
},
exit(){
this.$confirm('您有未保存的数据,确定退出吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(()=>{
this.$router.history.push("/home")
})
},
getVM(){
return this.$pntvm
async check() {
let result = await this.getVM().checkAll();
if (result.respCode != SUCCESS) {
this.$notify.error({ title: "错误", message: result.respMsg });
} else {
// 清除之前的校验状态
this.getVM().$refs.modelForm.clearValidate();
const fields = this.getVM().$refs.modelForm.fields;
const fieldErrors = result.fieldErrors;
this.getVM().updateModel(result.data);
Utils.positioningErrorMsg(fieldErrors, fields);
const tab = Utils.positioningErrorMsg(fieldErrors, fields);
if (tab) {
// tab切换之后,需出发tab-click的事件
this.getVM().tabClick(tab);
}
}
}
}
},
exit() {
this.$confirm("您有未保存的数据,确定退出吗, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
this.$router.history.push("/home");
});
},
getVM() {
return this.$pntvm;
},
},
};
</script>
<style>
.bus-button {
margin-bottom: 10px;
margin-bottom: 10px;
}
.bus-button :first-child {
margin-left: 0;
margin-left: 0;
}
</style>
\ No newline at end of file
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("GjCommon",[],e):"object"==typeof exports?exports.GjCommon=e():t.GjCommon=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=53)}([function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(27)("wks"),o=r(19),i=r(0).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(7);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){t.exports=!r(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(8),o=r(17);t.exports=r(4)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(3),o=r(34),i=r(29),a=Object.defineProperty;e.f=r(4)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(68),o=r(20);t.exports=function(t){return n(o(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(0),o=r(2),i=r(15),a=r(6),u=r(5),c=function(t,e,r){var s,f,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,m=t&c.B,y=t&c.W,g=h?o:o[e]||(o[e]={}),x=g.prototype,w=h?n:d?n[e]:(n[e]||{}).prototype;h&&(r=e);for(s in r)(f=!p&&w&&void 0!==w[s])&&u(g,s)||(l=f?w[s]:r[s],g[s]=h&&"function"!=typeof w[s]?r[s]:m&&f?i(l,n):y&&w[s]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[s]=l,t&c.R&&x&&!x[s]&&a(x,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(14);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(8).f,o=r(5),i=r(1)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(7),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=o(e),this.reject=o(r)}var o=r(14);t.exports.f=function(t){return new n(t)}},function(t,e,r){var n=r(39),o=r(22);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){var n=r(27)("keys"),o=r(19);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(2),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(13)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(7);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=r(2),i=r(13),a=r(31),u=r(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(1)},function(t,e,r){var n=r(10),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),o))?r:i?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},function(t,e,r){t.exports=!r(4)&&!r(16)(function(){return 7!=Object.defineProperty(r(21)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){"use strict";var n=r(13),o=r(11),i=r(42),a=r(6),u=r(12),c=r(72),s=r(18),f=r(80),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,d,v,m,y){c(r,e,d);var g,x,w,b=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=e+" Iterator",S="values"==v,O=!1,k=t.prototype,j=k[l]||k["@@iterator"]||v&&k[v],P=j||b(v),E=v?S?b("entries"):P:void 0,L="Array"==e?k.entries||j:j;if(L&&(w=f(L.call(new t)))!==Object.prototype&&w.next&&(s(w,_,!0),n||"function"==typeof w[l]||a(w,l,h)),S&&j&&"values"!==j.name&&(O=!0,P=function(){return j.call(this)}),n&&!y||!p&&!O&&k[l]||a(k,l,P),u[e]=P,u[_]=h,v)if(g={values:S?P:b("values"),keys:m?P:b("keys"),entries:E},y)for(x in g)x in k||i(k,x,g[x]);else o(o.P+o.F*(p||O),e,g);return g}},function(t,e,r){var n=r(3),o=r(77),i=r(22),a=r(26)("IE_PROTO"),u=function(){},c=function(){var t,e=r(21)("iframe"),n=i.length;for(e.style.display="none",r(33).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[i[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=c(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(39),o=r(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(5),o=r(9),i=r(64)(!1),a=r(26)("IE_PROTO");t.exports=function(t,e){var r,u=o(t),c=0,s=[];for(r in u)r!=a&&n(u,r)&&s.push(r);for(;e.length>c;)n(u,r=e[c++])&&(~i(s,r)||s.push(r));return s}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(3),o=r(7),i=r(23);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){t.exports=r(6)},function(t,e,r){var n=r(3),o=r(14),i=r(1)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},function(t,e,r){var n,o,i,a=r(15),u=r(67),c=r(33),s=r(21),f=r(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},x=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},n(m),m},h=function(t){delete y[t]},"process"==r(10)(l)?n=function(t){l.nextTick(a(g,t,1))}:v&&v.now?n=function(t){v.now(a(g,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=x,n=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):n="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,r){var n=r(28),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(20);t.exports=function(t){return Object(n(t))}},function(t,e){},function(t,e,r){"use strict";var n=r(83)(!0);r(35)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){r(87);for(var n=r(0),o=r(6),i=r(12),a=r(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],f=n[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(56),i=n(o),a=r(55),u=n(a),c="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,r){r(100);var n=r(98)(r(52),r(99),null,null);t.exports=n.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(58),i=n(o),a=r(57),u=n(a);e.default={name:"ReviewWrapper",components:{},data:function(){return{activeName:"remark",historyRemark:[],notShowError:!1,isHided:!1}},computed:{remark:{get:function(){return this.$store.state.Status.remark},set:function(t){this.$store.commit("setRemark",t)}}},mounted:function(){console.log(this),this.init()},methods:{init:function(){var t=this;return(0,u.default)(i.default.mark(function e(){var r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t.reset(),t.setDisplayMode(),t.getHistoryRemark(),t.remark="",console.log("进入复核界面"),r=t.$parent.$refs.business.$children[0];r.$children.length>0&&!r.loadData;)r=r.$children[0];case 7:case"end":return e.stop()}},e,t)}))()},setDisplayMode:function(){this.$store.commit("setMode","display")},getHistoryRemark:function(){},handlePass:function(){var t=this;return(0,u.default)(i.default.mark(function e(){var r,n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(console.log(t.remark),r={operateId:t.$route.query.operateId,idx:t.$route.query.idx,remark:t.remark,tips:[]},n=t.$parent.$refs.business.$children[0];n.$children.length>0&&!n.handlePass;)n=n.$children[0];if(!n||!n.handlePass){e.next=7;break}return e.next=7,n.handlePass(r);case 7:case"end":return e.stop()}},e,t)}))()},handleRefuse:function(){var t=this;return(0,u.default)(i.default.mark(function e(){var r,n,o,a,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=t.remark.trim()){e.next=3;break}return t.$message.error("请填写复核意见"),e.abrupt("return");case 3:if(!t.fromDeclare){e.next=10;break}for(r={remark:t.remark,tips:t.$store.state.Status.highlights},console.log(r),n=t.$parent.$refs.business.$children[0];n.$children.length>0&&!n.handleRefuse;)n=n.$children[0];return n&&n.handleRefuse&&n.handleRefuse(r),e.abrupt("return");case 10:o=t.indexCount+Math.floor(100*Math.random()).toString(),a=t.$createElement,u=a("m-refuse-node",{props:{txSriNo:t.txSriNo},key:o,ref:"refuseNode"},[]),t.$msgbox({title:"请选择需要打回的节点",message:u,showCancelButton:!1,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(e,r,n){if("confirm"===e){if(t.$refs.refuseNode){var o=t.$refs.refuseNode.check();if(o){var i={remark:t.remark,tips:t.$store.state.Status.highlights,taskDefKey:o};console.log(i);for(var a=t.$parent.$refs.business.$children[0];a.$children.length>0&&!a.handleRefuse;)a=a.$children[0];a&&a.handleRefuse&&a.handleRefuse(i),n()}}}else n()}});case 14:case"end":return e.stop()}},e,t)}))()},goBack:function(){var t=this;this.$confirm("确认退出?","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(function(e){for(var r=t.$parent.$refs.business.$children[0];r.$children.length>0&&!r.handleExit;)r=r.$children[0];r&&r.handleExit&&r.handleExit(),t.exit()}).catch(function(){})},exit:function(){var t=this;this.$store.dispatch("TagsView/delView",this.$route),this.$route.query&&this.$route.query.routeParams?setTimeout(function(){t.$router.back()},500):setTimeout(function(){t.$router.push("/business/home")},500)},reset:function(){this.$store.commit("setHighlightChanges",[]),this.$store.commit("setHighlights",[]),this.$store.commit("setMode","normal"),this.remark=""}},beforeDestroy:function(){-1==this.$route.path.indexOf("review")&&this.reset()}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ReviewWrapper=void 0;var o=r(50),i=n(o),a=r(51),u=n(a),c=(e.ReviewWrapper=u.default,{ReviewWrapper:u.default});e.default=c,void 0!==("undefined"==typeof window?"undefined":(0,i.default)(window))&&window.Vue&&window.Vue.component("ReviewWrapper",u.default)},function(t,e,r){t.exports={default:r(59),__esModule:!0}},function(t,e,r){t.exports={default:r(60),__esModule:!0}},function(t,e,r){t.exports={default:r(61),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(54),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){function n(i,a){try{var u=e[i](a),c=u.value}catch(t){return void r(t)}if(!u.done)return o.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}return n("next")})}}},function(t,e,r){t.exports=r(96)},function(t,e,r){r(47),r(48),r(49),r(88),r(90),r(91),t.exports=r(2).Promise},function(t,e,r){r(89),r(47),r(92),r(93),t.exports=r(2).Symbol},function(t,e,r){r(48),r(49),t.exports=r(31).f("iterator")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(9),o=r(45),i=r(84);t.exports=function(t){return function(e,r,a){var u,c=n(e),s=o(c.length),f=i(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(24),o=r(38),i=r(25);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var a,u=r(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,r){var n=r(15),o=r(71),i=r(69),a=r(3),u=r(45),c=r(86),s={},f={},e=t.exports=function(t,e,r,l,p){var h,d,v,m,y=p?function(){return t}:c(t),g=n(r,l,e?2:1),x=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=u(t.length);h>x;x++)if((m=e?g(a(d=t[x])[0],d[1]):g(t[x]))===s||m===f)return m}else for(v=y.call(t);!(d=v.next()).done;)if((m=o(v,g,d.value,e))===s||m===f)return m};e.BREAK=s,e.RETURN=f},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(10);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(12),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(10);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(3);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){"use strict";var n=r(36),o=r(17),i=r(18),a={};r(6)(a,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(1)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(19)("meta"),o=r(7),i=r(5),a=r(8).f,u=0,c=Object.isExtensible||function(){return!0},s=!r(16)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[n].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,n)&&f(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,r){var n=r(0),o=r(44).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,c="process"==r(10)(a);t.exports=function(){var t,e,r,s=function(){var n,o;for(c&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(s)};else if(!i||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);r=function(){f.then(s)}}else r=function(){o.call(n,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e,r){var n=r(8),o=r(3),i=r(24);t.exports=r(4)?Object.defineProperties:function(t,e){o(t);for(var r,a=i(e),u=a.length,c=0;u>c;)n.f(t,r=a[c++],e[r]);return t}},function(t,e,r){var n=r(25),o=r(17),i=r(9),a=r(29),u=r(5),c=r(34),s=Object.getOwnPropertyDescriptor;e.f=r(4)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){var n=r(9),o=r(37).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(n(t))}},function(t,e,r){var n=r(5),o=r(46),i=r(26)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(6);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){"use strict";var n=r(0),o=r(2),i=r(8),a=r(4),u=r(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(28),o=r(20);t.exports=function(t){return function(e,r){var i,a,u=String(o(e)),c=n(r),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,r){var n=r(28),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(0),o=n.navigator;t.exports=o&&o.userAgent||""},function(t,e,r){var n=r(32),o=r(1)("iterator"),i=r(12);t.exports=r(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){"use strict";var n=r(62),o=r(74),i=r(12),a=r(9);t.exports=r(35)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){"use strict";var n,o,i,a,u=r(13),c=r(0),s=r(15),f=r(32),l=r(11),p=r(7),h=r(14),d=r(63),v=r(66),m=r(43),y=r(44).set,g=r(76)(),x=r(23),w=r(40),b=r(85),_=r(41),S=c.TypeError,O=c.process,k=O&&O.versions,j=k&&k.v8||"",P=c.Promise,E="process"==f(O),L=function(){},M=o=x.f,T=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(L,L)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==j.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),$=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var n=t._v,o=1==t._s,i=0;r.length>i;)!function(e){var r,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(o||(2==t._h&&F(t),t._h=1),!0===u?r=n:(f&&f.enter(),r=u(n),f&&(f.exit(),a=!0)),r===e.promise?s(S("Promise-chain cycle")):(i=$(r))?i.call(r,c,s):c(r)):s(n)}catch(t){f&&!a&&f.exit(),s(t)}}(r[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){y.call(c,function(){var e,r,n,o=t._v,i=C(t);if(i&&(e=w(function(){E?O.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=E||C(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){y.call(c,function(){var e;E?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},G=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw S("Promise can't be resolved itself");(e=$(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,s(G,n,1),s(A,n,1))}catch(t){A.call(n,t)}}):(r._v=t,r._s=1,R(r,!1))}catch(t){A.call({_w:r,_d:!1},t)}}};T||(P=function(t){d(this,P,"Promise","_h"),h(t),n.call(this);try{t(s(G,this,1),s(A,this,1))}catch(t){A.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(81)(P.prototype,{then:function(t,e){var r=M(m(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=E?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=s(G,t,1),this.reject=s(A,t,1)},x.f=M=function(t){return t===P||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!T,{Promise:P}),r(18)(P,"Promise"),r(82)("Promise"),a=r(2).Promise,l(l.S+l.F*!T,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!T),"Promise",{resolve:function(t){return _(u&&this===a?P:this,t)}}),l(l.S+l.F*!(T&&r(73)(function(t){P.all(t).catch(L)})),"Promise",{all:function(t){var e=this,r=M(e),n=r.resolve,o=r.reject,i=w(function(){var r=[],i=0,a=1;v(t,!1,function(t){var u=i++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[u]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=M(e),n=r.reject,o=w(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(t,e,r){"use strict";var n=r(0),o=r(5),i=r(4),a=r(11),u=r(42),c=r(75).KEY,s=r(16),f=r(27),l=r(18),p=r(19),h=r(1),d=r(31),v=r(30),m=r(65),y=r(70),g=r(3),x=r(7),w=r(46),b=r(9),_=r(29),S=r(17),O=r(36),k=r(79),j=r(78),P=r(38),E=r(8),L=r(24),M=j.f,T=E.f,$=k.f,R=n.Symbol,N=n.JSON,C=N&&N.stringify,F=h("_hidden"),A=h("toPrimitive"),G={}.propertyIsEnumerable,I=f("symbol-registry"),D=f("symbols"),H=f("op-symbols"),B=Object.prototype,W="function"==typeof R&&!!P.f,z=n.QObject,V=!z||!z.prototype||!z.prototype.findChild,U=i&&s(function(){return 7!=O(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=M(B,e);n&&delete B[e],T(t,e,r),n&&t!==B&&T(B,e,n)}:T,q=function(t){var e=D[t]=O(R.prototype);return e._k=t,e},K=W&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},J=function(t,e,r){return t===B&&J(H,e,r),g(t),e=_(e,!0),g(r),o(D,e)?(r.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),r=O(r,{enumerable:S(0,!1)})):(o(t,F)||T(t,F,S(1,{})),t[F][e]=!0),U(t,e,r)):T(t,e,r)},Y=function(t,e){g(t);for(var r,n=m(e=b(e)),o=0,i=n.length;i>o;)J(t,r=n[o++],e[r]);return t},Q=function(t,e){return void 0===e?O(t):Y(O(t),e)},X=function(t){var e=G.call(this,t=_(t,!0));return!(this===B&&o(D,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,F)&&this[F][t])||e)},Z=function(t,e){if(t=b(t),e=_(e,!0),t!==B||!o(D,e)||o(H,e)){var r=M(t,e);return!r||!o(D,e)||o(t,F)&&t[F][e]||(r.enumerable=!0),r}},tt=function(t){for(var e,r=$(b(t)),n=[],i=0;r.length>i;)o(D,e=r[i++])||e==F||e==c||n.push(e);return n},et=function(t){for(var e,r=t===B,n=$(r?H:b(t)),i=[],a=0;n.length>a;)!o(D,e=n[a++])||r&&!o(B,e)||i.push(D[e]);return i};W||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===B&&e.call(H,r),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),U(this,t,S(1,r))};return i&&V&&U(B,t,{configurable:!0,set:e}),q(t)},u(R.prototype,"toString",function(){return this._k}),j.f=Z,E.f=J,r(37).f=k.f=tt,r(25).f=X,P.f=et,i&&!r(13)&&u(B,"propertyIsEnumerable",X,!0),d.f=function(t){return q(h(t))}),a(a.G+a.W+a.F*!W,{Symbol:R});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)h(rt[nt++]);for(var ot=L(h.store),it=0;ot.length>it;)v(ot[it++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=R(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!W,"Object",{create:Q,defineProperty:J,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=s(function(){P.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return P.f(w(t))}}),N&&a(a.S+a.F*(!W||s(function(){var t=R();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(x(e)||void 0!==t)&&!K(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,C.apply(N,n)}}),R.prototype[A]||r(6)(R.prototype,A,R.prototype.valueOf),l(R,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){"use strict";var n=r(11),o=r(2),i=r(0),a=r(43),u=r(41);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(11),o=r(23),i=r(40);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){r(30)("asyncIterator")},function(t,e,r){r(30)("observable")},function(t,e,r){e=t.exports=r(95)(),e.push([t.i,".m-review .eContainer-func{display:none}.m-review{width:100%;height:100%;overflow:hidden;position:static;box-sizing:border-box;display:flex;flex-direction:column}.m-review-main{flex:1;display:flex;display:-webkit-flex;flex-direction:row;justify-content:space-around}.m-review .business_container{position:static}.m-review-content{height:100%;flex:auto;position:static}.m-review-control{display:flex;box-sizing:border-box;border-left:1px solid #efefef;height:100%;flex:initial}.m-review-control .remark-display{display:flex;justify-content:center;align-items:center;margin:0 5px;cursor:pointer;width:25px}.m-review-control .remark-display:hover{background-color:#dfe4e9de}.m-review-control .el-tabs{height:100%;display:flex;flex-direction:column}.m-review-control .el-tabs .el-tabs__content{flex:1}.m-review-control .el-tabs .el-tabs__content .el-tab-pane{height:100%}.m-review-control-detail ul{padding:0}.m-review-control-detail .el-timeline-item{padding-right:20px}.m-review-action{width:100%;text-align:center;padding:10px;background:#fff;border-top:1px solid #efefef;z-index:10}.m-review-control-warning{font-size:14px}.m-review .highlight-change-formitem{border:1px solid #e6a23c}.m-review .highlight-formitem{border:1px solid red}.m-review .el-form-item{box-sizing:border-box}.m-review.m-review-no-error .el-form-item__error{display:none}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e];r[2]?t.push("@media "+r[2]+"{"+r[1]+"}"):t.push(r[1])}return t.join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(n[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),t.push(a))}},t}},function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(97),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new h(n||[]);return a._invoke=s(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(r,o,i,a){var u=n(t[r],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,o){e(t,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function s(t,e,r){var o=k;return function(i,a){if(o===P)throw new Error("Generator is already running");if(o===E){if("throw"===i)throw a;return v()}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=f(u,r);if(c){if(c===L)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===k)throw o=E,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var s=n(t,e,r);if("normal"===s.type){if(o=r.done?E:j,s.arg===L)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=E,r.method="throw",r.arg=s.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,f(t,e),"throw"===e.method))return L;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return L}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,L;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,L):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,L)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(g.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},w=x.iterator||"@@iterator",b=x.asyncIterator||"@@asyncIterator",_=x.toStringTag||"@@toStringTag",S="object"==typeof t,O=e.regeneratorRuntime;if(O)return void(S&&(t.exports=O));O=e.regeneratorRuntime=S?t.exports:{},O.wrap=r;var k="suspendedStart",j="suspendedYield",P="executing",E="completed",L={},M={};M[w]=function(){return this};var T=Object.getPrototypeOf,$=T&&T(T(d([])));$&&$!==y&&g.call($,w)&&(M=$);var R=a.prototype=o.prototype=Object.create(M);i.prototype=R.constructor=a,a.constructor=i,a[_]=i.displayName="GeneratorFunction",O.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},O.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(R),t},O.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[b]=function(){return this},O.AsyncIterator=c,O.async=function(t,e,n,o){var i=new c(r(t,e,n,o));return O.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(R),R[_]="Generator",R[w]=function(){return this},R.toString=function(){return"[object Generator]"},O.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},O.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,L):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),L},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),L}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;p(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),L}}}(function(){return this}()||Function("return this")())},function(t,e){t.exports=function(t,e,r,n){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),r&&(u._scopeId=r),n){var c=Object.create(u.computed||null);Object.keys(n).forEach(function(t){var e=n[t];c[t]=function(){return e}}),u.computed=c}return{esModule:o,exports:i,options:u}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:{"m-review":!0,"m-review-no-error":t.notShowError}},[r("div",{staticClass:"m-review-main"},[r("div",{staticClass:"m-review-content",staticStyle:{width:"50%"}},[t._t("default")],2),t._v(" "),r("div",{staticClass:"m-review-control"},[r("div",{staticClass:"remark-display",on:{click:function(e){t.isHided=!t.isHided}}},[r("i",{directives:[{name:"show",rawName:"v-show",value:!t.isHided,expression:"!isHided"}],staticClass:"el-icon-d-arrow-right"}),t._v(" "),r("i",{directives:[{name:"show",rawName:"v-show",value:t.isHided,expression:"isHided"}],staticClass:"el-icon-d-arrow-left"})]),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!t.isHided,expression:"!isHided"}],staticStyle:{height:"100%",flex:"1",width:"200px","margin-right":"10px"}},[r("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"复核意见",name:"remark"}},[r("div",{staticClass:"m-review-control-detail"},[r("el-input",{attrs:{type:"textarea",rows:25,maxlength:200},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1)]),t._v(" "),r("el-tab-pane",{attrs:{label:"历史复核意见",name:"history"}},[r("c-content",{staticClass:"m-review-control-detail",staticStyle:{height:"100%"}},[r("el-timeline",t._l(t.historyRemark,function(e,n){return r("el-timeline-item",{key:n,attrs:{timestamp:e.date,placement:"top"}},[r("div",[r("span",[t._v(t._s(e.role))])]),t._v(" "),r("p",[t._v("复核意见: "+t._s(e.remark||"无"))])])}),1)],1)],1)],1)],1)])]),t._v(" "),r("div",{staticClass:"m-review-action"},[r("el-button",{attrs:{type:"primary",size:"small",loading:t.$store.state.Status.loading.pass},on:{click:t.handlePass}},[t._v("复核")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"small",loading:t.$store.state.Status.loading.refuse},on:{click:t.handleRefuse}},[t._v("打回")]),t._v(" "),r("el-button",{attrs:{size:"small"},on:{click:t.goBack}},[t._v("退出")])],1)])},staticRenderFns:[]}},function(t,e,r){var n=r(94);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r(101)("771b47dc",n,!0)},function(t,e,r){function n(t){for(var e=0;e<t.length;e++){var r=t[e],n=f[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(i(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(i(r.parts[o]));f[r.id]={id:r.id,refs:1,parts:a}}}}function o(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function i(t){var e,r,n=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(n){if(d)return v;n.parentNode.removeChild(n)}if(m){var i=h++;n=p||(p=o()),e=a.bind(null,n,i,!1),r=a.bind(null,n,i,!0)}else n=o(),e=u.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}function a(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=y(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function u(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s=r(102),f={},l=c&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,d=!1,v=function(){},m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,r){d=r;var o=s(t,e);return n(o),function(e){for(var r=[],i=0;i<o.length;i++){var a=o[i],u=f[a.id];u.refs--,r.push(u)}e?(o=s(t,e),n(o)):o=[];for(var i=0;i<r.length;i++){var u=r[i];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete f[u.id]}}}};var y=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var r=[],n={},o=0;o<e.length;o++){var i=e[o],a=i[0],u=i[1],c=i[2],s=i[3],f={id:t+":"+o,css:u,media:c,sourceMap:s};n[a]?n[a].parts.push(f):r.push(n[a]={id:a,parts:[f]})}return r}}])});
//# sourceMappingURL=gj-common.min.js.map
\ No newline at end of file
......@@ -152,8 +152,9 @@ export default {
for (const key in rtnmsg.fieldErrors) {
errorMsgkey = key;
errorMsgVal = rtnmsg.fieldErrors[key];
errorMsg = errorMsg + errorMsgkey + ':' + errorMsgVal + ";";
}
errorMsg = errorMsgkey + ':' + errorMsgVal;
} else if (rtnmsg.respMsg) {
errorMsg = rtnmsg.respMsg;
}
......@@ -397,6 +398,7 @@ export default {
type: 'success'
});
}
Utils.positioningErrorMsg(res.fieldErrors, this.$refs.paramsForm.fields)
},
async handleReset() {
......
......@@ -91,6 +91,7 @@
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable"
import Bdtset from "~/model/Bdtset"
import CommonProcess from "~/mixin/CommonProcess"
......@@ -179,21 +180,26 @@ export default {
},
created:async function(){
console.log("进入bdtset交易");
console.log(new Bdtset().data)
let rtnmsg = await this.init({})
let that = this;
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
that.$refs.utlp.stmData.data=rtnmsg.data.liaall_tenstm.rows
//TODO 处理数据逻辑
console.log("进入bdtset交易");
let rtnmsg = await this.init(this.$route.query)
let that = this;
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data)
that.$refs.utlp.stmData.data=rtnmsg.data.liaall_tenstm.rows
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
......
......@@ -76,6 +76,7 @@ import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import Ditdck from "~/model/Ditdck";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
import Pattern from "~/model/Ditdck/Pattern";
import Default from "~/model/Ditdck/Default";
import Check from "~/model/Ditdck/Check";
......@@ -113,7 +114,7 @@ export default {
root: this,
};
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
mixins: [CommonProcess,CommonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
isShowDocpre:false,
......@@ -134,30 +135,30 @@ export default {
},
created: async function () {
// console.log("进入ditdck交易");
// let rtnmsg = await this.init(this.$route.query)
// if(rtnmsg.respCode == SUCCESS)
// {
// //TODO 处理数据逻辑
// console.log(rtnmsg)
// Utils.copyValueFromVO(this.model,rtnmsg.data)
// console.log(this.model);
// if(this.isInDisplay){
// this.restoreDisplay()
// }
// }
// else
// {
// this.$notify.error({title: '错误',message: '服务请求失败!'});
// }
console.log("进入ditdck交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
let rtnmsg = await this.init(this.$route.query)
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data)
console.log(this.model);
if(this.isInDisplay){
this.restoreDisplay()
}
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
// console.log("进入ditdck交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// Utils.copyValueFromVO(this.model, rtnmsg.data);
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
methods: {
changeShowDocpre(val) {
......
......@@ -28,7 +28,7 @@
</c-col>
<c-col :span="8">
<el-form-item label="创建时间" style="width: 100%">
<el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
<c-col :span="11">
<c-date-picker
type="date"
......
......@@ -27,7 +27,7 @@
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="创建时间" style="width: 100%">
<el-form-item label="创建时间" style="width: 100%" prop="trncorco.inidatfro">
<c-col :span="11">
<c-date-picker
type="date"
......
<template>
<div>
<el-radio-group v-model="model">
<el-radio v-for="item in nodelist" :key="item.value" :label="item.value">{{item.label}}</el-radio>
</el-radio-group>
<p v-if="errShow" style="color: red">{{errMsg}}</p>
</div>
</template>
<script>
import Request from '~/utils/request'
export default {
props: ['txSriNo'],
data: function () {
return {
nodelist: [],
model: '',
errShow: false,
errMsg: ''
}
},
mounted: function () {
console.log('mounted')
this.getList()
},
// watch: {
// 'dialogVisible': function() {
// // if (this.dialogVisible && this.nodelist.length == 0 && this.txSriNo) {
// // this.getList()
// // }
// if (!this.dialogVisible) {
// this.errShow = false
// this.errMsg = ''
// }
// }
// },
methods: {
getList: function () {
Request.get('/v1/pm/process/taskBackQry/'+ this.txSriNo).then(res => {
if (res.code == '000000' && res.data && res.data.length > 0) {
this.nodelist = []
res.data.forEach(item => {
if (item.taskName && item.returnNodeNo) {
this.nodelist.push(
{
label: item.taskName || item.taskDesc || '',
value: item.returnNodeNo || item.taskId || ''
}
)
}
return
})
}
})
},
check: function () {
if (this.model) {
this.errShow = false
this.errMsg = ''
return this.model
} else {
this.errShow = true
this.errMsg = '请选择需要打回的节点'
return false
}
}
}
}
</script>
\ No newline at end of file
export const TaskFlagStatusMap = {
'3': { // 未完成详情
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showRefuse: false,
showAccRefuse: false,
showPass: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'4': { // 已完成详情
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showRefuse: false,
showAccRefuse: false,
showPass: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'5': { // 草稿箱进入
showStart: true,
showSubmit: false,
showCheck: true,
showSave: true,
showPass: false,
showRefuse: false,
showAccRefuse: false,
showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
}
}
export const ProcessStatusMap = {
'0': { // 受理中心经办
showStart: false,
showSubmit: true,
showCheck: true,
showSave: true,
showPass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'1': { // 复核
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showPass: true,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
},
'2': { // 单证中心经办
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'3': { // 受理中心经办 打回
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'4': { // 单证中心经办 打回
showStart: false,
showSubmit: true,
showCheck: true,
showSave: false,
showPass: false,
showRefuse: true,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: true
},
'5': { // 人工确认
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
showPass: false,
showRefuse: false,
showAccRefuse: true,
// showReSubmit: true,
showReAcc: true,
showCheckAcc: true,
showEdit: false
}
}
export const NoSaveList = [
'public/refMessage/EleMessageReg'
]
\ No newline at end of file
<template>
<div :class="{'m-review': true, 'm-review-no-error': notShowError}">
<div class="m-review-main">
<div class="m-review-content" style="width:50%">
<businessContainer ref="business"></businessContainer>
</div>
<div class="m-review-control" v-if="process !== '0'">
<el-tabs v-model="activeName">
<el-tab-pane label="复核意见" name="remark">
<div class="m-review-control-detail">
<el-input v-model="remark" type="textarea" :rows="25" :disabled="process == '3'" :maxlength="200"></el-input>
</div>
</el-tab-pane>
<el-tab-pane label="历史复核意见" name="history">
<c-content class="m-review-control-detail" style="height: 100%">
<el-timeline>
<el-timeline-item v-for="(item, index) in historyRemark" :key="index" :timestamp="item.date" placement="top">
<div>
<span>{{item.role}}</span>
</div>
<p>复核意见: {{item.remark || '无'}}</p>
</el-timeline-item>
</el-timeline>
</c-content>
</el-tab-pane>
<!-- <el-tab-pane v-if="warning !== ''" label="提示信息" name="warning">
<div class="m-review-control-detail m-review-control-warning">
{{warning}}
</div>
</el-tab-pane> -->
</el-tabs>
</div>
</div>
<div class="m-review-action">
<el-button v-if="show.showEdit && commitFlag ==1" type="primary" size="small" @click="handleEdit" :disabled="showMode=='normal'">编辑</el-button>
<el-button v-if="show.showStart" type="primary" size="small" @click="handleStart" :loading="$store.state.Status.loading.start">提交</el-button>
<el-button v-if="show.showSubmit" type="primary" size="small" @click="handleSubmit" :loading="$store.state.Status.loading.submit">提交</el-button>
<el-button v-if="show.showCheck" size="small" @click="handleCheck" :loading="$store.state.Status.loading.check">检核</el-button>
<el-button v-if="show.showSave && !fromDeclare && !noSave" size="small" @click="handleSave" :loading="$store.state.Status.loading.save">暂存</el-button>
<el-button v-if="show.showPass" type="primary" size="small" @click="handlePass" :loading="$store.state.Status.loading.pass">复核</el-button>
<el-button v-if="show.showReAcc" type="primary" size="small" @click="handleReAcc" :loading="loading.reacc">提交</el-button>
<el-button v-if="show.showRefuse" type="primary" size="small" @click="handleRefuse" :loading="$store.state.Status.loading.refuse">打回</el-button>
<!-- 人工确认打回 -->
<el-button v-if="show.showAccRefuse" type="primary" size="small" @click="handleAccRefuse" :loading="loading.accRefuse">打回</el-button>
<!-- <el-button v-if="show.showReSubmit" type="primary" size="small" @click="handleReSubmit">再经办</el-button> -->
<!-- <el-button v-if="show.showCheckAcc" type="primary" size="small" @click="handleCheckAcc" :loading="loading.checkacc">勾兑</el-button> -->
<el-button size="small" v-if="showCancel" @click="handleCancel">删除</el-button>
<el-button size="small" @click="goBack">退出</el-button>
</div>
<!-- <el-dialog
title="请选择打回节点"
:visible.sync="dialogVisible"
@close="handleDialogClose"
>
<m-refuse-node ref="refuseNode" :txSriNo='txSriNo' :dialogVisible="dialogVisible"></m-refuse-node>
<div slot="footer" class="dialog-footer">
<el-button @click="handleDialogClose" size="small">取消</el-button>
<el-button type="primary" @click="handleRefuseSure" size="small"
>确定</el-button>
</div>
</el-dialog> -->
</div>
<ReviewWrapper>
<businessContainer ref="business"></businessContainer>
</ReviewWrapper>
</template>
<script>
// import {
// cancelTodo
// } from "~/service/public/taskList";
import businessContainer from "../Business";
import { mapMutations } from "vuex";
// import { listTodo, isRevise, todoOpend } from "~/service/public/taskList";
// import { postReFinish, postReRefuse } from "~/service/public/reFinish";
import { TaskFlagStatusMap, ProcessStatusMap, NoSaveList } from "./btnStatusConfig"
import RefuseNode from './RefuseNode'
import {
datetimeFormat
} from "~/utils/format"
import { ReviewWrapper } from "../../components/gj-common.min.js";
// import refresh from '~/mixin/refresh'
import Request from "~/utils/request";
export default {
name: "Review",
components: {
businessContainer, //复用业务容器
'm-refuse-node': RefuseNode
},
// mixins:[refresh],
data: function() {
return {
activeName: "remark",
historyRemark: [],
process: '0', // 0 经办 1 复核 2 经办 + 复核 3 受理中心经办更正 4-单证中心经办更正
commitFlag: 0, // 0 是第一次提交 1 非第一次
busiTempInfoSriNo: '',
// warning: '提示信息',
taskFlag: '0', // 任务标识 1-由待办任务列表进入 2-由未完成任务 修改列表进入 3-未完成 详情 4- 由已完成交易列表进入 5-由草稿箱进入
taskId: '',
txSriNo: '',
reqSource: '03',
showMode: "normal",
isSearchOrigin: false,
show: {
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
handlePass: false,
showRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showAccRefuse: false
},
noSave: false,
fromDeclare: false,
showCancel: false,
loading: {
reacc: false,
checkacc: false,
accRefuse: false,
},
key: 0,
oldTips: [], // 经办更正需要保留复核打回时的tips,用于经办更正撤回时使用
oldChanges: [], //经办更正撤回需要保留上次的changes, 提交的时候将这次的和上次的合并
notShowError: false, // 默认展示表单报错信息,进入详情时不展示报错信息
dialogVisible: false, // 打回时选择退回节点的选择框
indexCount: 0,
};
},
computed: {
remark: {
get: function () {
return this.$store.state.Status.remark
},
set: function (newValue) {
this.$store.commit('setRemark', newValue)
}
}
},
mounted: function() {
this.init()
},
watch: {
$route: function (to, from) {
this.init()
}
},
methods: {
async init () {
this.reset()
this.getRouteParams()
this.setDisplayMode()
this.getHistoryRemark()
this.updateShow()
this.handleOpend()
this.remark = ''
console.log("进入复核界面");
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.loadData) {
child = child.$children[0];
}
if (child && child.loadData && !this.isSearchOrigin) {
let data = await child.loadData({busiTempInfoSriNo: this.busiTempInfoSriNo})
console.log(data);
if ((this.process == '1' || this.process == '2') && data && typeof data.changes != "undefined" && data.changes != null ) {
// 具有复核功能的页面才展示changes
this.$store.commit('setHighlightChanges', data.changes)
}
// 经办展示 tips
if ((this.process == '0' || this.process == '3' || this.process == '2' || this.process == '4') &&
this.taskFlag == '1' && data && data.tips && data.tips.length > 0) {
// 具有经办功能的页面才展示 tips
this.$store.commit('setHighlights', data.tips)
}
// 经办更正 撤回修改
if ((this.process == '3' || this.process == '4') && this.taskFlag == '1' && data) {
// 经办更正正常展示 tips,但是在经办撤回的时候展示 oldTips
if (data.oldTips && data.oldTips.length > 0) {
this.$store.commit('setHighlights', data.oldTips)
this.oldTips = data.oldTips
} else if (data.tips && data.tips.length > 0) {
this.$store.commit('setHighlights', data.tips)
this.oldTips = data.tips
}
if(data.changes && data.changes.length > 0) {
this.oldChanges = data.changes
this.$store.commit('setHighlightChanges', data.changes)
}
}
// 只有经办更正需要展示复核意见
if (data && data.remark && this.taskFlag == '1' && (this.process == '3' || this.process == '4')) {
this.remark = data.remark
}
// debugger
if (data && data.historyRemark && this.$route.path.indexOf('declare') !== -1) {
// 申报页面通过loaddata获取历史复核意见
// this.historyRemark = data.historyRemark
let tempmark = []
// debugger
data.historyRemark.forEach(item => {
if((item.remark !== null) && (item.remark !== '')) {
let temp = {
role: item.role,
date: item.date,
remark: item.remark || ''
}
tempmark.push(temp)
}
});
this.historyRemark = tempmark
}
}
if (child && child.searchOrigin && this.isSearchOrigin) {
await child.searchOrigin()
}
},
getRouteParams () {
if (this.$route.query.routeParams) {
this.process = this.$route.query.routeParams.process || '0'
this.commitFlag = this.$route.query.routeParams.commitFlag || 0
this.taskFlag = this.$route.query.routeParams.taskFlag || '1'
this.isSearchOrigin = this.$route.query.routeParams.fromInfo == '1' || false
this.taskId = this.$route.query.routeParams.taskId || ''
this.txSriNo = this.$route.query.routeParams.txSriNo || ''
this.busiTempInfoSriNo = this.$route.query.routeParams.busiTempInfoSriNo || ''
this.reqSource = this.$route.query.routeParams.reqSource || '03'
}
this.fromDeclare = this.$route.path.indexOf('declare') !== -1
this.noSave = NoSaveList.some(item => {
return this.$route.path.indexOf(item) !== -1
})
if (this.taskFlag == '4' || this.taskFlag == '3') {
// 进入详情后,不展示表单校验的报错
this.notShowError = true
}
},
setDisplayMode () {
if (!this.canEdit()) {
this.$store.commit("setMode", "display");
this.showMode = 'display'
}
},
getHistoryRemark() {
if (this.process !== '0' && this.txSriNo && this.$route.path.indexOf('declare') == -1) {
// 获取历史复核意见, 申报页面不获取历史复核页面
let params = {
current: 0,
data: {
txSriNo: this.txSriNo
},
orders: [{asc: true, column: "allo_time"}],
size: 0
}
listTodo(params).then(res => {
if (res.code == '000000' && res.data && res.data.length > 0) {
// this.historyRemark = res.data.map(item => {
// return {
// role: item.taskDealTellerName || item.taskDealTellerNo,
// date: (item.finishTime && datetimeFormat(item.finishTime.substring(0, 14))) || '',
// remark: item.remark || ''
// }
// })
res.data.forEach(item => {
if(!((item.stepCode == '0' || item.stepCode == '1') && (item.taskDealInstType == '1' || item.taskDealInstType == '2'))) {
if(item.remark) {
let temp = {
role: item.taskDealTellerName || item.taskDealTellerNo,
date: (item.finishTime && datetimeFormat(item.finishTime.substring(0, 14))) || '',
remark: item.remark || ''
}
this.historyRemark.push(temp)
}
}
});
}
console.log(res)
}).catch(err => {})
}
},
updateShow () {
// 根据流程和来源判断按钮的展示和隐藏
// if (this.taskFlag == '3' || this.taskFlag == '4') {
// this.showMode = 'display'
// }
if (this.taskFlag =='3' || this.taskFlag == '4' || this.taskFlag == '5') {
// 未完成详情和已完成进入
this.show = TaskFlagStatusMap[this.taskFlag] ||{
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
handlePass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
}
// 从草稿箱进入需要判断 reqSource == '03' 从经办发起调 start 接口 否则调 submit 接口
if (this.taskFlag == '5' && (this.reqSource !== '03' || this.process !== '0')) {
this.show.showStart = false
this.show.showSubmit = true
}
} else {
this.show = ProcessStatusMap[this.process] || {
showStart: false,
showSubmit: false,
showCheck: false,
showSave: false,
handlePass: false,
showRefuse: false,
showAccRefuse: false,
// showReSubmit: false,
showReAcc: false,
showCheckAcc: false,
showEdit: false
}
}
if (this.taskFlag == '1') {
// 仅有一手经办有删除按钮
if (this.process == '0' || this.process == '3') {
this.showCancel = true
}
if (this.$route.path.indexOf('public/aml-approve') !== -1 || this.fromDeclare) {
// 反洗钱复核 申报 不能删除交易
this.showCancel = false
}
}
//结售汇不需要暂存按钮(特判)
if (this.$route.query && this.$route.query.routeParams && this.$route.query.routeParams.txCode && this.$route.query.routeParams.txCode == '010319') {
this.show.showSave = false
}
},
handleOpend () {
if (this.taskId) {
todoOpend(this.taskId)
}
},
async handlePass() {
console.log(this.remark)
let data = {}
if (this.process == '1' || this.process == '2' || this.process == '4') {
// 复核通过需要传递参数:复核意见和tips
// 通过 - 清空tips
data = {
// pageId: this.$route.query.pageId,
operateId: this.$route.query.operateId,
idx: this.$route.query.idx,
remark: this.remark,
tips: [] //this.$store.state.Status.highlights
}
}
// 接口
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handlePass) {
child = child.$children[0];
}
if (child && child.handlePass) {
await child.handlePass(data);
}
},
async handleRefuse() {
if (this.remark.trim() == '') {
this.$message.error('请填写复核意见')
return
}
if (this.fromDeclare) {
// 单独处理,不选择打回节点
let data = {
remark: this.remark,
tips: this.$store.state.Status.highlights,
};
console.log(data);
// 接口
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleRefuse) {
child = child.$children[0];
}
if (child && child.handleRefuse) {
child.handleRefuse(data);
}
return;
}
const randomKey = this.indexCount + Math.floor(Math.random() * 100).toString()
const h = this.$createElement
let node = h('m-refuse-node', {
props: {
txSriNo: this.txSriNo
},
key: randomKey,
ref: 'refuseNode'
}, [])
this.$msgbox({
title: '请选择需要打回的节点',
message: node,
showCancelButton: false,
confirmButtonText: '确定',
cancelButtonText: '取消',
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
if (this.$refs.refuseNode) {
let taskDefKey = this.$refs.refuseNode.check()
if (taskDefKey) {
let data = {
remark: this.remark,
tips: this.$store.state.Status.highlights,
taskDefKey: taskDefKey
};
console.log(data);
// 接口
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleRefuse) {
child = child.$children[0];
}
if (child && child.handleRefuse) {
child.handleRefuse(data);
}
done()
}
}
} else {
done()
}
}
})
},
async handleSubmit() {
let data = {}
if (this.process == '1' || this.process == '2' || this.process == '4') {
// 复核通过需要传递参数:复核意见
// 提交 - 清空 tips
data = {
remark: this.remark,
tips: [] //this.$store.state.Status.highlights
}
}
if ((this.process == '3' || this.process == '4') && this.oldTips.length > 0) {
data.oldTips = this.oldTips
}
if ((this.process == '3' || this.process == '4') && this.oldChanges.length > 0) {
data.oldChanges = this.oldChanges
}
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleSubmit) {
child = child.$children[0];
}
if (this.taskFlag == '2' || this.taskFlag == '3') {
// 已完成列表进来和未完成列表进来需要判断是否可以提交
if (this.taskId) {
isRevise({
data: {taskId: this.taskId}
}).then(async res => {
if (res.data === true) {
if (child && child.handleSubmit) {
await child.handleSubmit(data);
}
}
}).catch(error => {})
}
} else {
if (child && child.handleSubmit) {
await child.handleSubmit(data);
}
}
},
async handleStart() {
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleStart) {
child = child.$children[0];
}
if (child && child.handleStart) {
await child.handleStart();
}
return
// this.handleSubmit()
},
async handleCheck() {
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleCheck) {
child = child.$children[0];
}
if (child && child.handleCheck) {
await child.handleCheck();
}
},
async handleSave() {
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleSave) {
child = child.$children[0];
}
if (child && child.handleSave) {
await child.handleSave();
}
},
// handleCancel() {
// let child = this.$refs["business"].$children[0];
// while (child.$children.length > 0 && !child.handleCancel) {
// child = child.$children[0];
// }
// if (child && child.handleCancel) {
// child.handleCancel();
// }
// },
// handleReSubmit() {
// this.$store.commit("setMode", "normal");
// this.show = {
// showStart: false,
// showSubmit: true,
// showCheck: true,
// showSave: false,
// showPass: false,
// showRefuse: false,
// // showReSubmit: false,
// showReAcc: false,
// showCheckAcc: false,
// }
// },
handleReAcc() {
let child = this.$refs["business"].$children[0];
let header
while (child.$children.length > 0 && !child.genRequestHead) {
child = child.$children[0];
}
if (child && child.genRequestHead) {
header = child.genRequestHead();
}
this.loading.reacc = true
if (header) {
header.taskStatus = 1
postReFinish({head: header}).then(res => {
if (res.code == '000000') {
this.$message.success('重新记账成功')
this.$router.push('/business/home')
}
this.loading.reacc = false
}).catch(err => {
this.loading.reacc = false
})
}
},
handleCheckAcc() {
let child = this.$refs["business"].$children[0];
let header
while (child.$children.length > 0 && !child.genRequestHead) {
child = child.$children[0];
}
if (child && child.genRequestHead) {
header = child.genRequestHead();
}
if (header) {
header.taskStatus = 4
postReFinish({head: header}).then(res => {
if (res.code == '000000') {
this.$message.success('勾兑成功')
this.$router.push('/business/home')
}
})
}
},
handleAccRefuse() {
// 人工确认中的打回
// this.dialogVisible = true
const randomKey = this.indexCount + Math.floor(Math.random() * 100).toString()
const h = this.$createElement
let node = h('m-refuse-node', {
props: {
txSriNo: this.txSriNo
},
key: randomKey,
ref: 'refuseNode'
}, [])
this.$msgbox({
title: '请选择需要打回的节点',
message: node,
showCancelButton: false,
confirmButtonText: '确定',
cancelButtonText: '取消',
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
if (this.$refs.refuseNode) {
let taskDefKey = this.$refs.refuseNode.check()
if (taskDefKey) {
let child = this.$refs["business"].$children[0];
let header
while (child.$children.length > 0 && !child.genRequestHead) {
child = child.$children[0];
}
if (child && child.genRequestHead) {
header = child.genRequestHead();
}
if (header) {
header.taskStatus = 2
header.taskDefKey = taskDefKey
header.remark = this.remark || ''
postReRefuse({head: header}).then(res => {
if (res.code == '000000') {
this.$message.success('操作成功')
this.$router.push('/business/home')
this.dialogVisible = false
done()
}
})
}
}
}
} else {
done()
}
}
})
},
// handleDialogClose () {
// this.dialogVisible = false
// },
// handleRefuseSure () {
// debugger
// let taskDefKey = this.$refs.refuseNode.check()
// if (taskDefKey) {
// // 人工确认 打回
// let child = this.$refs["business"].$children[0];
// let header
// while (child.$children.length > 0 && !child.genRequestHead) {
// child = child.$children[0];
// }
// if (child && child.genRequestHead) {
// header = child.genRequestHead();
// }
// if (header) {
// header.taskStatus = 2
// header.taskDefKey = taskDefKey
// postReRefuse({head: header}).then(res => {
// if (res.code == '000000') {
// this.$message.success('操作成功')
// this.$router.push('/business/home')
// this.dialogVisible = false
// }
// })
// }
// }
// },
handleCancel() {
//删除该交易
this.$confirm('此操作将删除该交易,是否继续', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// 交易流水号
if (this.$route.query && this.$route.query.routeParams && this.$route.query.routeParams.txSriNo) {
cancelTodo(this.$route.query.routeParams.txSriNo).then(res => {
if (res.code == '000000') {
this.$message({
type: 'success',
message: '删除成功'
})
this.exit()
}
})
} else {
this.$message('此交易不存在交易流水号')
}
}).catch(() => {
})
},
goBack () {
//回到待办列表
this.$confirm('确认退出?', '', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
if (this.fromDeclare) {
let getid = this.$route.query.key;
Request.get("/v1/declare/releaseLock/" + getid);
}
let child = this.$refs["business"].$children[0];
while (child.$children.length > 0 && !child.handleExit) {
child = child.$children[0];
}
if (child && child.handleExit) {
child.handleExit();
}
this.exit()
}).catch(() => {})
},
canEdit() {
if (this.process == '1' || this.taskFlag == '3' || this.taskFlag == '4' || this.process == '5') {
return false
}
// 非第一次经办,默认进入不可编辑,出现编辑按钮,点击后方可编辑
if (this.commitFlag == 1) {
return false
}
return true
},
exit() {
this.$store.dispatch("TagsView/delView", this.$route);
if (this.$route.query && this.$route.query.routeParams) {
setTimeout(() => {
this.$router.back()
}, 500)
} else {
setTimeout(() => {
this.$router.push('/business/home')
}, 500)
}
},
reset() {
this.$store.commit('setHighlightChanges', [])
this.$store.commit('setHighlights', [])
this.$store.commit("setMode", "normal")
this.showMode = "normal"
this.remark = ''
this.$store.commit('setStartLoading', false)
this.$store.commit('setSubmitLoading', false)
this.$store.commit('setPassLoading', false)
this.$store.commit('setRefuseLoading', false)
this.$store.commit('setCheckLoading', false)
this.$store.commit('setSaveLoading', false)
this.loading.reacc = false
this.loading.checkacc = false
},
handleEdit() {
this.showMode = "normal"
this.$store.commit("setMode", "normal")
}
},
beforeDestroy: function() {
// 如果跳转还是 review 页面则不执行 reset 方法,因为destroy调用在下次 create 之后
if (this.$route.path.indexOf('review') == -1) {
this.reset()
}
}
components: { ReviewWrapper, businessContainer },
created() {},
mounted() {},
};
</script>
<style>
.m-review .eContainer-func {
display: none;
}
.m-review {
width: 100%;
height: 100%;
overflow: hidden;
position: static;
/* padding-bottom: 62px; */
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.m-review-main {
flex: 1;
display: flex;
/* height: 100%; */
display: -webkit-flex;
flex-direction: row;
justify-content: space-around;
}
.m-review .business_container{
position: static;
}
.m-review-content {
height: 100%;
flex: auto;
position: static;
}
.m-review-control {
box-sizing: border-box;
border-left: 1px solid #efefef;
padding: 0 20px;
height: 100%;
width: 250px;
flex: initial;
}
.m-review-control .el-tabs {
height: 100%;
display: flex;
flex-direction: column;
}
.m-review-control .el-tabs .el-tabs__content {
flex: 1;
}
.m-review-control .el-tabs .el-tabs__content .el-tab-pane {
height: 100%;
}
.m-review-control-detail ul {
padding: 0;
}
.m-review-control-detail .el-timeline-item {
padding-right: 20px;
}
.m-review-action {
/* position: fixed; */
/* bottom: 0; */
width: 100%;
/* height: 32px; */
text-align: center;
padding: 10px;
background: #fff;
border-top: 1px solid #efefef;
z-index: 10;
}
.m-review-control-warning {
font-size: 14px;
}
.m-review .highlight-change-formitem {
border: 1px solid #E6A23C;
}
.m-review .highlight-formitem {
border: 1px solid red;
}
.m-review .el-form-item {
box-sizing: border-box;
}
.m-review.m-review-no-error .el-form-item__error {
display: none;
}
</style>
<style></style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment