1 line
87 KiB
JavaScript
1 line
87 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b5457b4"],{"0b37":function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"f",(function(){return s})),a.d(e,"e",(function(){return l}));a("8dee"),a("e680"),a("4057"),a("fc02");function r(t,e){var a,r,o,n;try{a=t.toString().split(".")[1].length}catch(s){a=0}try{r=e.toString().split(".")[1].length}catch(s){r=0}if(n=Math.abs(a-r),o=Math.pow(10,Math.max(a,r)),n>0){var i=Math.pow(10,n);a>r?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*i):(t=Number(t.toString().replace(".",""))*i,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/o}function o(t,e){var a,r,o=0,n=0;try{o=t.toString().split(".")[1].length}catch(i){}try{n=e.toString().split(".")[1].length}catch(i){}return a=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".","")),a/r*Math.pow(10,n-o)}function n(t,e){var a=0,r=t.toString(),o=e.toString();try{a+=r.split(".")[1].length}catch(n){}try{a+=o.split(".")[1].length}catch(n){}return Number(r.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,a)}function i(t,e){var a,r,o,n;try{a=t.toString().split(".")[1].length}catch(i){a=0}try{r=e.toString().split(".")[1].length}catch(i){r=0}return o=Math.pow(10,Math.max(a,r)),n=a>=r?a:r,(Math.round(t*o-e*o)/o).toFixed(n)}function s(t,e){if(0==t&&(t=0),/[^[\-|0-9][0-9]*]/.test(t))return"0";if(null==t||""===t)return"";t=t.toString().replace(/^(-\d*)$/,"$1."),t=t.toString().replace(/^(\d*)$/,"$1."),t=(t+"00").replace(/(\d*\.\d\d)\d*/,"$1"),t=t.replace(".",",");var a=/(\d)(\d{3},)/;while(a.test(t))t=t.replace(a,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var r=t.split(".");"00"==r[1]&&(t=r[0])}return t}function l(t,e){t=t.toString();var a=t.indexOf(".");return t=-1!==a?t.substring(0,e+a+1):t.substring(0),parseFloat(t).toFixed(e)}},"0eb7":function(t,e,a){},"127f":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("4057");var r=function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(+new Date,"_").concat(t()).concat(t())}},"1eb5":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ac67"),core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("32ea"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("4057"),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("e680"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("fc02"),core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("a450"),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("1bc7"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_6__),_data_jenkins_home_jenkins_workspace_sqy_pro_hakopc_company_v2_beui_node_modules_babel_runtime_corejs2_7_29_2_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("5821"),_api_roleManage__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("67d5"),_api_contract__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("35ad"),_components_contractInfor__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("99d6"),_utils_cul__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("0b37"),_api_supplier__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("a6b9"),_utils_dataDict__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("dce5");function ownKeys(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(a),!0).forEach((function(e){Object(_data_jenkins_home_jenkins_workspace_sqy_pro_hakopc_company_v2_beui_node_modules_babel_runtime_corejs2_7_29_2_babel_runtime_corejs2_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}__webpack_exports__["a"]={components:{contractInfor:_components_contractInfor__WEBPACK_IMPORTED_MODULE_10__["a"]},data:function(){return{is_show:!0,height:220,type:"",pageTotal:0,viewInfo:!1,infoList:!0,projectList:[],contractTypeList:_utils_dataDict__WEBPACK_IMPORTED_MODULE_13__["y"],statusList:[{name:"未发布",value:1},{name:"已发布",value:2},{name:"已结束",value:3}],contractStatusList:[{label:"履约",value:1},{label:"过期",value:2},{label:"作废",value:3}],payStatusList:[{label:"未支付",value:1},{label:"部分支付",value:2},{label:"已支付",value:3}],query:{contractNo:"",type:"",name:"",companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,projectUuid:"",firstDelegateName:"",firstName:"",secondDelegateName:"",secondName:"",category:"",pageNumber:1,pageSize:10,payStatus:"",method:"",contractStatus:"",payStartTime:"",payEndTime:"",startTime:"",endTime:""},contractTime:"",payTime:"",tableData:[],ascriptionList:_utils_dataDict__WEBPACK_IMPORTED_MODULE_13__["j"],totalInfo:[{title:"合同类型",infoList:[{label:"物业合同",value:0},{label:"外委合同",value:0},{label:"租赁合同",value:0},{label:"多经合同",value:0}],column:1},{title:"合同归属",infoList:[{label:"设备",value:0},{label:"车场",value:0},{label:"电梯",value:0},{label:"清洁",value:0},{label:"绿化",value:0},{label:"安防",value:0},{label:"租赁",value:0}],column:2},{title:"合同金额",column:1,infoList:[{label:"应付金额",value:0},{label:"已付金额",value:0},{label:"应收金额",value:0},{label:"已收金额",value:0}]},{title:"合同亮灯",column:3,infoList:[{label:"到期时间",value1:0,value2:0,value3:0},{label:"付款时间",value1:0,value2:0,value3:0}]},{title:"合同到期",column:1,infoList:[{label:"近一个月到期数量",value:0},{label:"近15天到期数量",value:0}]}]}},mounted:function(){this.headClass(),this.getProjectInfo(),this.getlistData(),this.getTotal()},beforeRouteLeave:function(t,e,a){this.viewInfo=!1,this.infoList=!0,a()},methods:{getTotal:function getTotal(){var payTime=this.payTime,contractTime=this.contractTime,query=this.query,totalInfo=this.totalInfo;query.payStartTime=payTime?"".concat(payTime[0]," 00:00:00"):"",query.payEndTime=payTime?"".concat(payTime[1]," 23:59:59"):"",query.startTime=contractTime?"".concat(contractTime[0]," 00:00:00"):"",query.endTime=contractTime?"".concat(contractTime[1]," 23:59:59"):"";var params=_objectSpread({},query);Object(_api_contract__WEBPACK_IMPORTED_MODULE_9__["c"])(params).then((function(res){if(0===res.code&&res.data){var _res$data=res.data,type1=_res$data.type1,type2=_res$data.type2,type3=_res$data.type3,type4=_res$data.type4,category1=_res$data.category1,category2=_res$data.category2,category3=_res$data.category3,category4=_res$data.category4,category5=_res$data.category5,category6=_res$data.category6,category7=_res$data.category7,amount=_res$data.amount,paidAmount=_res$data.paidAmount,receivableAmount=_res$data.receivableAmount,receivedAmount=_res$data.receivedAmount,endTimeLight1=_res$data.endTimeLight1,endTimeLight2=_res$data.endTimeLight2,endTimeLight3=_res$data.endTimeLight3,payTimeLight1=_res$data.payTimeLight1,payTimeLight2=_res$data.payTimeLight2,payTimeLight3=_res$data.payTimeLight3,residue1=_res$data.residue1,residue2=_res$data.residue2;totalInfo[0].infoList.slice(0,4).forEach((function(item,index){return item.value=eval("type".concat(index+1))})),totalInfo[1].infoList.slice(0,7).forEach((function(item,index){return item.value=eval("category".concat(index+1))})),totalInfo[2].infoList.forEach((function(item,index){return item.value=Object(_utils_cul__WEBPACK_IMPORTED_MODULE_11__["f"])(eval(["amount","paidAmount","receivableAmount","receivedAmount"][index]))})),totalInfo[3].infoList[0].value1=endTimeLight1,totalInfo[3].infoList[0].value2=endTimeLight2,totalInfo[3].infoList[0].value3=endTimeLight3,totalInfo[3].infoList[1].value1=payTimeLight1,totalInfo[3].infoList[1].value2=payTimeLight2,totalInfo[3].infoList[1].value3=payTimeLight3,totalInfo[4].infoList.forEach((function(item,index){return item.value=eval("residue".concat(index+1))}))}}))},upAndDown:function(){this.is_show?this.height="80":this.height="240",this.is_show=!this.is_show},filterPayStatus:function(t){var e={0:{1:"未支付",2:"部分支付",3:"已支付"},1:{1:"未收款",2:"部分收款",3:"已收款"}};return e[t.method]&&e[t.method][t.payStatus]?e[t.method][t.payStatus]:"-"},confirm:function(t){var e=this;t.status=2,t.opName=JSON.parse(window.localStorage.getItem("memberInfor")).name,Object(_api_contract__WEBPACK_IMPORTED_MODULE_9__["g"])(t).then((function(t){0==t.code&&(e.$message({message:"修改成功",type:"success"}),e.getlistData())}))},getTime:function(){this.payTime?(this.query.payStartTime=this.payTime[0]+" 00:00:00",this.query.payEndTime=this.payTime[1]+" 23:59:59"):(this.query.payStartTime="",this.query.payEndTime=""),this.contractTime?(this.query.startTime=this.contractTime[0]+" 00:00:00",this.query.endTime=this.contractTime[1]+" 23:59:59"):(this.query.startTime="",this.query.endTime="")},getProjectInfo:function(){var t=this,e=JSON.parse(window.localStorage.getItem("companyInfo")).osId;Object(_api_roleManage__WEBPACK_IMPORTED_MODULE_8__["j"])({id:e,attribute:1}).then((function(e){0===e.code&&e.data?t.projectList=e.data:t.projectList=[]}))},categoryArr:function(t){var e=[],a=t.split(",");return this.ascriptionList.forEach((function(t){a.forEach((function(a){t.value===Number(a)&&e.push(t.name)}))})),e.join(",")},reviewProjectName:function(t){var e=this.projectList;if(e.length>0){if(t.indexOf(",")>0){var a=t.split(","),r=[];return e.map((function(t){a.map((function(e){t.uuid===e&&r.push(t.name)}))})),r.join(",")}if(null!=t&&""!=t&&void 0!=t){var o=e.filter((function(e){return e.uuid==t}));return o.length>0?o[0].name:"-"}return"-"}return"-"},reViewPartyInfor:function(t,e){if(t.contractInfo){var a=JSON.parse(t.contractInfo);return a[e]}return"-"},deleteClick:function(t){var e=this;this.$confirm("确定作废该数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){Object(_api_contract__WEBPACK_IMPORTED_MODULE_9__["d"])({id:t.id}).then((function(t){0===t.code&&(e.$message({type:"success",message:"作废成功"}),e.getlistData())}))})).catch((function(){}))},detailsClick:function(t,e){var a=t;this.querySupplierList(a,e)},addRuleGroup:function(){this.querySupplierList("","add")},querySupplierList:function(t,e){var a=this;Object(_api_supplier__WEBPACK_IMPORTED_MODULE_12__["c"])({pageSize:-1,pageNumber:-1,type:2,companyId:this.query.companyId}).then((function(t){if(0===t.code&&t.data){var e=t.data.records;a.$store.dispatch("user/setAllSupplierList",e)}})),Object(_api_supplier__WEBPACK_IMPORTED_MODULE_12__["c"])({pageSize:-1,pageNumber:-1,type:1,companyId:this.query.companyId}).then((function(t){if(0===t.code&&t.data){var e=t.data.records;a.$store.dispatch("user/setAllSupplierList2",e)}})),this.openEditView(t,e)},openEditView:function(t,e){var a=this;console.log(t,"obj",e,"status"),this.type=e,this.viewInfo=!0,this.infoList=!1,this.$nextTick((function(){"add"===e?a.$refs.contractInfor.getInfoLst():a.$refs.contractInfor.getInfoLst(t)}))},onSearch:function(){this.query.pageNumber=1,this.query.category.toString(),this.getlistData(),this.getTotal()},getlistData:function(){var t=this;this.payTime?(this.query.payStartTime=this.payTime[0]+" 00:00:00",this.query.payEndTime=this.payTime[1]+" 23:59:59"):(this.query.payStartTime="",this.query.payEndTime=""),this.contractTime?(this.query.startTime=this.contractTime[0]+" 00:00:00",this.query.endTime=this.contractTime[1]+" 23:59:59"):(this.query.startTime="",this.query.endTime="");var e=Object.assign({},this.query);Object(_api_contract__WEBPACK_IMPORTED_MODULE_9__["b"])(e).then((function(e){0===e.code&&e.data?(t.tableData=e.data.records,t.pageTotal=e.data.rowsCount):t.tableData=[]}))},formatNum:function(t){var e=t||0;return"¥ "+Object(_utils_cul__WEBPACK_IMPORTED_MODULE_11__["f"])(e,2)},goBack:function(){this.viewInfo=!1,this.infoList=!0,this.getlistData()},handleSizeChange:function(t){this.query.pageSize=t,this.getlistData()},handleCurrentChange:function(t){this.query.pageNumber=t,this.getlistData()},resetForm:function(){this.query.pageNumber=1,this.$refs.query.resetFields(),this.contractTime="",this.payTime="",this.getTime(),this.getlistData(),this.getTotal()},headClass:function(){return"text-align:center;background:#FAFAFA;"}}}},2124:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAEvElEQVRIS5WVa2wUVRTH/+fOY2e39EWBLQYNQQTsloIpJMqj2zUxRrAKwiJtaUIkAqJBHomJmKCfEPWbicEEYkDoQyYRFCNprN0uBeoHIKZ0oSBgokVaDRTa0n3N3GNmoE0fauv9NJl7zm/+59z/PUMYx5p2NuzNkeoSJ/SusE53LDLjY6XRWAHO/pOn1k0Vgvc7z1LS65dLjtwaK88FF5/bqHV3d/tunDF78QHkyKRAJJwPTT/AkolsfUMsdLBzZIzDSPR25ykpo7f1+cP3XXBBdO1TpCjlxPR9ovd2y7VlJ5NDE2f8EM72GfpSW7LUEkrUSRy6/8i5Mt/E5IRXpBSVsPHppeAT9QQGBaIVpVDoMzD6bMaG9mD1RRwNK4UT1Umsi5mSMB/EfsG4D+ZrSUX+nO3pv3V+wYn+QWFC7CeQx5K0qT145Kyr2FHkMfRKQSix2drdc7e/Iyc3K0jMWxiYBxATYD9UqRHhrgTXqmn6sjVUfTMQCftZVdezpNYcLR1pWWTGBw9vemS9kaXbWX39iaTu1aoEsJOYNAluZkGNSkr+ziplElAMpmVMmAqgKS2t3b90yatF2YbRei+RwBrTFTDcFUfDSoFfXQVFfExM96Rlv88+rTlDMXoye69yU2mpnP3thQw7N/NRQ9AOyRxmwklI2j7SKcPA8yNrp6cVUQOifDC/EetMN2CNKR+Prp1mkFgskYheLvnatdqM5vBjBvQPAX6OCe+KP9KHY2vM1MChDoIdu9xP9lUKSXtAOEjp1J5YyOybffqlTBWZu8Aog5RbY8HaxoHkQFPlQlJQx+DrpHFV29O1XaPA8yMrctK67yO28YJU+NX2xbUtTqvmRCsLVQGTGT0JO1VxvdS8AXrg9TkNK/OEx/c5gIVsWS9eDn3VNgpcVL9yiuXzHiDQTEumll8Jmr+6amnCO5C0g4EohDTZoi5VoOXi0pruovqqDCvD3gWmdWC8dqmk+sdR4MKfyv3Soi+IxZQ4kqtuLDV/KzpTNSXN9j4CBSGRBlgloj/ttNzSHqo9VfxdmTeenbkNRBuF5B1tJTXH4NyMoa4YBEuaHKfUagcciIV16vQssD12AUEEwVhNwHlLpqqciopPlPniuVlvg7GJWO6MNdYeGxgJg4c3CAZNjvMD8EBZsxoqZmgG7WNGIbHcGuu0jjt+dcFDFUdqjo8ffDSsBPLVFSDxCRHqWaTeiy0y77jD63+BmSYpFla1hqo7XMUMmhWtXKBqvMxOirorzx65MlCJc1t9anIbIDa7Pf5PxQx/XKI8paU7/LcTpOcZ3JOEAg/0e0DceeeAu/IMzu6BFxP0t5ixQUje/s/ghnI/63SIieYR+JAUdIdsViGIwZIFKbZkWwGTcBUTSyLSGAgRU4CAzW1Lqo+PcsXc5opcCbEX4OVMnBYMyaB//cMQgZndWaOD8BfZ9pttwbqzw33MYWXmtXxV6eqertqYzYABIV0/jrWIHeXK7UQvX5jmvdnfVDqZQaZNBY3lAVJprq3AUAHbYhKaO37HvywJCQUgmxViirPFFylwpmIvJF5mIi/ATEzjUjrysww4vXc61A+Bb2hOZF2p0PgZAnv54XAZv9bhkcQQDIrLNLX8DVTOZnn5H6BhAAAAAElFTkSuQmCC"},"35ad":function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"a",(function(){return n})),a.d(e,"g",(function(){return i})),a.d(e,"d",(function(){return s})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return c})),a.d(e,"c",(function(){return u}));var r=a("b775");function o(t){return Object(r["a"])({url:"/hakocompany/Contract/pageList",method:"POST",data:t})}function n(t){return Object(r["a"])({url:"/hakocompany/Contract/create",method:"POST",data:t})}function i(t){return Object(r["a"])({url:"/hakocompany/Contract/update",method:"POST",data:t})}function s(t){return Object(r["a"])({url:"/hakocompany/Contract/delete",method:"POST",data:t})}function l(t){return Object(r["a"])({url:"/hakocompany/Contract/findById",method:"POST",data:t})}function c(t){return Object(r["a"])({url:"/hakocompany/Contract/deletePaymentInfo",method:"POST",data:t})}function u(t){return Object(r["a"])({url:"/hakocompany/Contract/total",method:"POST",data:t})}},"416e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAEK0lEQVRIS5WVXWwUVRTHf2dmtt1tt7tLCy0kfhCDMREMGuHBz9ICgoDRCNYgNjESAdEglMRETNAnRH0zMZhAjGiiBB4Am6hNV9ZSoT6gMaIPGpREqwX7sdt227q7M/eY27LQUkLLJDOZ3Dnnd//3nP+9I0zj0tNE+od50IbGy/hW7mdkqjSZKsB+7/6KOV4p++27n+OFWSvpmipvFKxnCKXTlM04xaC8ibk6KZtidkE5ICCesDFax4WrYyxjaJCqbJ7B2SsYGgWnW7lHXNZrwBc9BTpuX0VufGJfK3FPeEgdzEiBNps4/rs2U5aO8qSjbBDlvVg9LaIgmSRLHJf3FbKez8bocs4ePoxbW8nMkMM8V7gbpUaFIXzO4fBjPE6XLGJ4nLD9CqWusjm2lNOjiq0i12UDwsMSsDs7Qmd5GbUGtoqwUBUVh2C0bEpIIAN8FggfV9bx91CKGh+eE+WnWJiUbe7l5mmKcDZPrOCQcz0aVdmpEBKhHeFE4POXK1TgcK8aVokwB+Eb32d3VZrfiBM+0s9/DQ1jAia4Qg/j9s9kLfAO0K+GN1xor0gwwCDKEkzP55SHy7k5cGlCeQr4spBnx9VOmQBOp5grhk9xmC3Ki7EekjRg+lq4yXN5IO/TVgT0tXKL4/IWwnLgtXg3n0gD+WJTr5TiDKHMIBtQ9gh8lBf2VNeR7T5ORSjGLlEeU2VbYiknisn9SRarwyGE372AxugyLk4Cp4+SkDhvKzzqGp6OLaPDOibdygLH5QjCgOR4JvYdfxS93pmkKip8gLDYFFhTuYKfJ4EvtFAdKeGAGubhszqxgvNWrRfjVVGaENpUOOIYLmaG6bh1DWltobw/xC7gWeD5RD1fTwJnk9QEHh+qUm181lYu58/BFqqDEPuAWqAAeAr/4rM18Qgnu5qJhMvZLrCJgKbEMo6KoBNcMQ48y/iss2D9hZK+CyxyHe5UqBVlncL3UqDRruifZsrKKngFw2YCdsZPcbRYpsvNuxa4uKxMkttw2CewwIFt0R6OSQOBBVvFDmxyoSl6kmPTBl/y9hMI7wItkuP1+Er67KQ3BjbMDIS1VXV0XtrCMtDGIpRVeeXQrHp+La7kfIpwHLaLssWbUrGhRnzWD0TpdHuROVVodw63NEdJLMZIV+/YbrXjAwNEKOFlo2z0hB3XLMXFJDWlDgcFFqpwEKHPGDzHQQlQ3LGnURwLdgQjQkiVOpT5qmxJ1HNskisy7cygwF6F1TJmLXvgX+8PY20lqpSIQ7djeMkelxN8bBt0LopXE2ZuAHdIQBirdDqXwSj0mgI/VEYYphu1jpHeE8z3DHcZlzBC4AoO5rpKJ01n/yx20Ciu4zPiO5yVTIq9KI8DEXuOX7qno/VKjC3YWO3t2zDCcXvILBGX+xQitiE3RpwYbRsrMKIBHf8D26HYH5lKFAcAAAAASUVORK5CYII="},4513:function(t,e,a){"use strict";a.d(e,"v",(function(){return o})),a.d(e,"w",(function(){return n})),a.d(e,"x",(function(){return i})),a.d(e,"l",(function(){return s})),a.d(e,"t",(function(){return l})),a.d(e,"j",(function(){return c})),a.d(e,"o",(function(){return u})),a.d(e,"u",(function(){return p})),a.d(e,"b",(function(){return d})),a.d(e,"p",(function(){return m})),a.d(e,"D",(function(){return f})),a.d(e,"B",(function(){return _})),a.d(e,"q",(function(){return y})),a.d(e,"c",(function(){return g})),a.d(e,"s",(function(){return h})),a.d(e,"i",(function(){return b})),a.d(e,"n",(function(){return v})),a.d(e,"a",(function(){return I})),a.d(e,"g",(function(){return T})),a.d(e,"d",(function(){return k})),a.d(e,"f",(function(){return w})),a.d(e,"C",(function(){return C})),a.d(e,"m",(function(){return O})),a.d(e,"y",(function(){return S})),a.d(e,"r",(function(){return P})),a.d(e,"e",(function(){return F})),a.d(e,"z",(function(){return L})),a.d(e,"A",(function(){return A})),a.d(e,"h",(function(){return B})),a.d(e,"k",(function(){return j}));var r=a("b775");function o(){return Object(r["a"])({url:"/company/organizationalStructure/updateOrgnization",method:"post"})}function n(t){return Object(r["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/company/organizationalStructure/findOsTreeV2",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/company/OrganizationRoleRel/findProjectByRoleIdAndParent",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/company/member/pageListByCompanyId",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/company/member/findByProjectUuidAndJobUuid",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/company/member/getList",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/company/organizationalStructure/findOsPathList",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/company/member/create",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/company/member/findById",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/company/member/update",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/company/member/suspendMember",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/enterprise/os/memberQuit/".concat(t.memberUuid),method:"post"})}function g(t){return Object(r["a"])({url:"/company/organizationalStructure/create",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/company/organizationalStructure/update",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/company/member/findByProjectUuid",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/hakocompany/Job/getJobList",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/company/member/ChangeDepartment",method:"post",data:t})}function T(t){return Object(r["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function k(t){return Object(r["a"])({url:"/hakocompany/MemberRoleRel/create",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/hakocompany/MemberRoleRel/findByMemberId",method:"post",data:t})}function C(t){return Object(r["a"])({url:"/hakocompany/MemberRoleRel/update",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/company/member/getList",method:"POST",data:t})}function S(t){return Object(r["a"])({url:"/company/member/queryByStaff",method:"POST",data:t})}function P(t){return Object(r["a"])({url:"/company/member/memberQuit",method:"POST",data:t})}function F(t){return Object(r["a"])({url:"/company/organizationalStructure/delete",method:"POST",data:t})}function L(t){return Object(r["a"])({url:"/hakocompany/Space/queryInitData",method:"POST",data:t})}function A(t){return Object(r["a"])({url:"/hakocompany/Space/queryList",method:"POST",data:t})}function B(t){return Object(r["a"])({url:"/hakocompany/Space/findByProId",method:"POST",data:t})}function j(t){return Object(r["a"])({url:"/company/organizationalStructure/findOSListByRoleId",method:"POST",data:t})}},5766:function(t,e,a){},"67d5":function(t,e,a){"use strict";a.d(e,"i",(function(){return o})),a.d(e,"j",(function(){return n})),a.d(e,"f",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return l})),a.d(e,"k",(function(){return c})),a.d(e,"e",(function(){return u})),a.d(e,"d",(function(){return p})),a.d(e,"h",(function(){return d})),a.d(e,"a",(function(){return m})),a.d(e,"g",(function(){return f}));var r=a("b775");function o(t){return Object(r["a"])({url:"/hakocompany/Role/pageList",method:"post",data:t})}function n(t){return Object(r["a"])({url:"/company/organizationalStructure/selectOsList",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/company/organizationalStructure/findOsTree",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/hakocompany/Role/create",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/hakocompany/Role/delete",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/hakocompany/Role/update",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/hakocompany/RoleMenuRel/findByRoleIdAndClienId",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/hakocompany/OrganizationRoleRel/findByRoleId",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/company/member/pageListForRole",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/company/MemberRoleRel/batchDelete",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/hakocompany/account/findProjectByRole",method:"post",data:t})}},"90e7":function(t,e,a){"use strict";a.d(e,"g",(function(){return o})),a.d(e,"m",(function(){return n})),a.d(e,"f",(function(){return i})),a.d(e,"l",(function(){return s})),a.d(e,"h",(function(){return l})),a.d(e,"n",(function(){return c})),a.d(e,"a",(function(){return u})),a.d(e,"b",(function(){return p})),a.d(e,"c",(function(){return d})),a.d(e,"e",(function(){return m})),a.d(e,"d",(function(){return f})),a.d(e,"i",(function(){return _})),a.d(e,"j",(function(){return y})),a.d(e,"o",(function(){return g})),a.d(e,"k",(function(){return h}));var r=a("b775");function o(t){return Object(r["a"])({url:"/hakocompany/DeductionInfo/findById",method:"post",data:t})}function n(t){return Object(r["a"])({url:"/hakocompany/DeductionInfo/update",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/hakocompany/CollectionInfoApi/findById",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/hakocompany/CollectionInfoApi/update",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/hakocompany/ChargePushConfigApi/findById",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/hakocompany/ChargePushConfigApi/update",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/company/ProjectSatisfactionConfig/pageList",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/company/ProjectSatisfactionConfig/update",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/hakocompany/CockpitConfig/create",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/hakocompany/CockpitConfig/findByCompanyIdAndType",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/hakocompany/CockpitConfig/sceneMenuList",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/hakocompany/ProjectConfig/pageList",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/hakocompany/ProjectConfig/updateExponentByProjectUuid",method:"post",data:t})}function g(t,e){return Object(r["a"])({url:"/oss/upload",isFile:!0,isReturnResponse:!0,headers:{"Content-Type":"multipart/form-data;charset=UTF-8"},method:"post",data:t,onUploadProgress:e&&e.onUploadProgress})}function h(t){return Object(r["a"])({url:"/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid",method:"post",data:t})}},"99d6":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ruleGroupInfo"},[a("el-card",{staticClass:"box-card"},[a("el-page-header",{attrs:{content:t.content},on:{back:t.goBack}}),t._v(" "),"view"===t.type?a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"editBtn",attrs:{type:"primary",plain:"",size:"small"},on:{click:function(e){return t.editBusiness()}}},[t._v("编辑")]):t._e(),t._v(" "),a("el-form",{ref:"ontractForm",staticClass:"demo-ontractForm",attrs:{model:t.ontractForm,rules:t.rules,"label-width":"130px"}},[a("div",{staticClass:"rule typeface"},[t._v(t._s(t.classifyTitle)+"基本信息")]),t._v(" "),a("div",{staticClass:"vote-form"},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"合同编号",prop:"contractNo"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入合同编号",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.contractNo,callback:function(e){t.$set(t.ontractForm,"contractNo","string"===typeof e?e.trim():e)},expression:"ontractForm.contractNo"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"合同类型",prop:"type"}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,clearable:"",placeholder:"请选择合同类型"},on:{change:t.contractTypeChange},model:{value:t.ontractForm.type,callback:function(e){t.$set(t.ontractForm,"type",e)},expression:"ontractForm.type"}},t._l(t.contractTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"合同名称",prop:"name"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入合同名称",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.name,callback:function(e){t.$set(t.ontractForm,"name","string"===typeof e?e.trim():e)},expression:"ontractForm.name"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"合同金额",prop:"amount"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入合同金额",maxlength:"13","show-word-limit":""},on:{input:function(e){return t.priceInput(e,"amount")}},model:{value:t.ontractForm.amount,callback:function(e){t.$set(t.ontractForm,"amount","string"===typeof e?e.trim():e)},expression:"ontractForm.amount"}},[a("template",{slot:"append"},[t._v("元")])],2)],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"覆盖项目",prop:"projectUuid"}},[a("el-cascader",{ref:"projectCascader",staticClass:"select-dom",attrs:{clearable:"",disabled:t.disabled,placeholder:"请选择项目/部门",options:t.orgList,filterable:"",props:{label:"nameTxt",value:"uuid",children:"childs",checkStrictly:!0,emitPath:!1,multiple:!0}},model:{value:t.ontractForm.projectUuid,callback:function(e){t.$set(t.ontractForm,"projectUuid",e)},expression:"ontractForm.projectUuid"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"合同归属",prop:"category"}},[a("el-select",{staticClass:"select-dom",attrs:{multiple:"",disabled:t.disabled,"collapse-tags":"",clearable:"",placeholder:"请选择合同归属"},model:{value:t.ontractForm.category,callback:function(e){t.$set(t.ontractForm,"category",e)},expression:"ontractForm.category"}},t._l(t.ascriptionList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"合同签订时间",prop:"signTime"}},[a("el-date-picker",{staticClass:"select-dom",attrs:{disabled:t.disabled,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd 23:59:59",type:"date",placeholder:"选择日期"},model:{value:t.ontractForm.signTime,callback:function(e){t.$set(t.ontractForm,"signTime",e)},expression:"ontractForm.signTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"合同开始时间",prop:"startTime"}},[a("el-date-picker",{staticClass:"select-dom",attrs:{disabled:t.disabled,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd 23:59:59",type:"date",placeholder:"选择日期"},model:{value:t.ontractForm.startTime,callback:function(e){t.$set(t.ontractForm,"startTime",e)},expression:"ontractForm.startTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"合同结束时间",prop:"endTime"}},[a("el-date-picker",{staticClass:"select-dom",attrs:{disabled:t.disabled,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd 23:59:59",type:"date",placeholder:"选择日期"},model:{value:t.ontractForm.endTime,callback:function(e){t.$set(t.ontractForm,"endTime",e)},expression:"ontractForm.endTime"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"款项方向",prop:"method"}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,"collapse-tags":"",placeholder:"请选择款项方向"},model:{value:t.ontractForm.method,callback:function(e){t.$set(t.ontractForm,"method",e)},expression:"ontractForm.method"}},[a("el-option",{attrs:{label:"付款",value:0}}),t._v(" "),a("el-option",{attrs:{label:"收款",value:1}})],1)],1)],1)],1)],1),t._v(" "),4===t.ontractForm.type?a("div",[a("div",{staticClass:"rule typeface"},[t._v("租赁信息")]),t._v(" "),a("div",{staticClass:"vote-questions"},t._l(t.ontractForm.targetInfo,(function(e,r){return a("el-row",{key:r},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"资源类型",prop:"targetInfo["+r+"].leaseType",rules:{required:!0,message:"请选择租赁资源类型",trigger:"change"}}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,placeholder:"请选择租赁资源类型"},model:{value:e.leaseType,callback:function(a){t.$set(e,"leaseType",a)},expression:"item.leaseType"}},t._l(t.leaseTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{staticClass:"is-required",attrs:{label:t.setThisleaseType(t.ontractForm.targetInfo[r].leaseType)+"编号",prop:"targetInfo["+r+"].target",rules:{required:!0,message:"请输入租赁类型信息",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入"+t.setThisleaseType(t.ontractForm.targetInfo[r].leaseType)+"编号",maxlength:"120","show-word-limit":""},model:{value:e.target,callback:function(a){t.$set(e,"target","string"===typeof a?a.trim():a)},expression:"item.target"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:1,span:4}},[r===t.ontractForm.targetInfo.length-1?a("el-button",{staticClass:"payTypeOptBtn",attrs:{disabled:t.disabled,type:"primary",icon:"el-icon-circle-plus-outline",size:"mini"},on:{click:function(e){return t.addcontracttargetInfoList(r)}}}):t._e(),t._v(" "),r<t.ontractForm.targetInfo.length-1?a("el-button",{staticClass:"payTypeOptBtn",attrs:{disabled:t.disabled,type:"primary",icon:"el-icon-delete",size:"mini"},on:{click:function(e){return t.deletecontracttargetInfoList(r)}}}):t._e()],1)],1)})),1)]):t._e(),t._v(" "),4!=t.ontractForm.type?a("div",[a("div",{staticClass:"rule typeface"},[t._v(t._s(t.classifyTitle)+"甲方信息")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"甲方名称",prop:"firstSupplierId"}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,placeholder:"请选择甲方"},on:{change:t.selectChangefirstSupplier},model:{value:t.ontractForm.firstSupplierId,callback:function(e){t.$set(t.ontractForm,"firstSupplierId",e)},expression:"ontractForm.firstSupplierId"}},t._l(t.firstSupplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:2}},[a("el-select",{staticClass:"select-type-dom",attrs:{disabled:t.disabled},on:{change:function(e){return t.supplierTypeChange(e,1)}},model:{value:t.firstSupplierType,callback:function(e){t.firstSupplierType=e},expression:"firstSupplierType"}},t._l(t.supplierType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),t._v(" "),a("el-col",{attrs:{offset:0,span:6}},[a("el-form-item",{attrs:{label:"甲方代表姓名",prop:"firstDelegateName"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方代表姓名",maxlength:"6","show-word-limit":""},model:{value:t.ontractForm.firstDelegateName,callback:function(e){t.$set(t.ontractForm,"firstDelegateName","string"===typeof e?e.trim():e)},expression:"ontractForm.firstDelegateName"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"联系方式",prop:"firstContactPhone"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方代表联系方式",oninput:"value=value.replace(/\\D/g,'')",maxlength:"11","show-word-limit":""},nativeOn:{input:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updataInputChanges(e,"ontractForm","firstContactPhone")}},model:{value:t.ontractForm.firstContactPhone,callback:function(e){t.$set(t.ontractForm,"firstContactPhone","string"===typeof e?e.trim():e)},expression:"ontractForm.firstContactPhone"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"开户银行",prop:"firstBank"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方开户银行",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.firstBank,callback:function(e){t.$set(t.ontractForm,"firstBank","string"===typeof e?e.trim():e)},expression:"ontractForm.firstBank"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"甲方银行账号",prop:"firstBankAccount"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方银行账号",oninput:"value=value.replace(/\\D/g,'')",maxlength:"25","show-word-limit":""},nativeOn:{input:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updataInputChanges(e,"ontractForm","firstBankAccount")}},model:{value:t.ontractForm.firstBankAccount,callback:function(e){t.$set(t.ontractForm,"firstBankAccount","string"===typeof e?e.trim():e)},expression:"ontractForm.firstBankAccount"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"甲方电话",prop:"firstContactPhone2"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方电话",oninput:"value=value.replace(/\\D/g,'')","show-word-limit":""},model:{value:t.ontractForm.firstContactPhone2,callback:function(e){t.$set(t.ontractForm,"firstContactPhone2","string"===typeof e?e.trim():e)},expression:"ontractForm.firstContactPhone2"}})],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"rule typeface"},[t._v(t._s(t.classifyTitle)+"乙方信息")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"乙方名称",prop:"secondSupplierId"}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,placeholder:"请选择乙方"},on:{change:t.selectChangeSecondSupplier},model:{value:t.ontractForm.secondSupplierId,callback:function(e){t.$set(t.ontractForm,"secondSupplierId",e)},expression:"ontractForm.secondSupplierId"}},t._l(t.secondSupplierList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:2}},[a("el-select",{staticClass:"select-type-dom",attrs:{disabled:t.disabled},on:{change:function(e){return t.supplierTypeChange(e,2)}},model:{value:t.secondSupplierType,callback:function(e){t.secondSupplierType=e},expression:"secondSupplierType"}},t._l(t.supplierType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),t._v(" "),a("el-col",{attrs:{offset:0,span:6}},[a("el-form-item",{attrs:{label:"乙方代表姓名",prop:"secondDelegateName"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方代表姓名",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.secondDelegateName,callback:function(e){t.$set(t.ontractForm,"secondDelegateName","string"===typeof e?e.trim():e)},expression:"ontractForm.secondDelegateName"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"联系方式",prop:"secondContactPhone"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方代表联系方式",oninput:"value=value.replace(/\\D/g,'')",maxlength:"11","show-word-limit":""},nativeOn:{input:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updataInputChanges(e,"ontractForm","secondContactPhone")}},model:{value:t.ontractForm.secondContactPhone,callback:function(e){t.$set(t.ontractForm,"secondContactPhone","string"===typeof e?e.trim():e)},expression:"ontractForm.secondContactPhone"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"开户银行",prop:"secondBank"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方开户银行",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.secondBank,callback:function(e){t.$set(t.ontractForm,"secondBank","string"===typeof e?e.trim():e)},expression:"ontractForm.secondBank"}})],1)],1),t._v(" "),a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"乙方银行账号",prop:"secondBankAccount"}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方银行账号",oninput:"value=value.replace(/\\D/g,'')",maxlength:"25","show-word-limit":""},nativeOn:{input:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updataInputChanges(e,"ontractForm","secondBankAccount")}},model:{value:t.ontractForm.secondBankAccount,callback:function(e){t.$set(t.ontractForm,"secondBankAccount","string"===typeof e?e.trim():e)},expression:"ontractForm.secondBankAccount"}})],1)],1)],1)],1)]):a("div",[a("div",{staticClass:"rule typeface"},[t._v("甲方信息")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:6}},[1===t.ontractForm.contractInfo.partyAType?a("el-form-item",{attrs:{label:"甲方名称",prop:"contractInfo.partyAName",rules:{required:!0,message:"请输入甲方名称",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方名称",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAName,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAName","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAName"}})],1):a("el-form-item",{attrs:{label:"甲方姓名",prop:"contractInfo.partyAPerson",rules:{required:!0,message:"请输入甲方姓名",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方姓名",maxlength:"6","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAPerson,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAPerson","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAPerson"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:2}},[a("el-select",{staticClass:"select-type-dom",attrs:{disabled:t.disabled},model:{value:t.ontractForm.contractInfo.partyAType,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAType",e)},expression:"ontractForm.contractInfo.partyAType"}},t._l(t.contractInfoPartyTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.ontractForm.contractInfo.partyAType?a("el-form-item",{attrs:{label:"公司社会信用代码",prop:"contractInfo.partyAIdCard",rules:{required:!0,message:"请输入公司统一社会信用代码",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入公司统一社会信用代码",maxlength:"32","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAIdCard,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAIdCard","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAIdCard"}})],1):a("el-form-item",{attrs:{label:"身份证号码",prop:"contractInfo.partyAIdCard",rules:t.contractInfoRules.partyBIdCard}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方身份证号码",maxlength:"18","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAIdCard,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAIdCard","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAIdCard"}})],1)],1),t._v(" "),1===t.ontractForm.contractInfo.partyAType?a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"企业法人",prop:"contractInfo.partyAPerson",rules:{required:!0,message:"请输入甲方企业法人",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方企业法人",maxlength:"6","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAPerson,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAPerson","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAPerson"}})],1)],1):a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"联系方式",prop:"contractInfo.partyAPhone",rules:t.contractInfoRules.partyBPhone}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入甲方联系方式",oninput:"value=value.replace(/\\D/g,'')",maxlength:"11","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyAPhone,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyAPhone","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyAPhone"}})],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"rule typeface"},[t._v("乙方信息")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:6}},[1===t.ontractForm.contractInfo.partyBType?a("el-form-item",{attrs:{label:"乙方名称",prop:"contractInfo.partyBName",rules:{required:!0,message:"请输入乙方名称",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方名称",maxlength:"64","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBName,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBName","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBName"}})],1):a("el-form-item",{attrs:{label:"乙方姓名",prop:"contractInfo.partyBPerson",rules:{required:!0,message:"请输入乙方姓名",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方姓名",maxlength:"6","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBPerson,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBPerson","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBPerson"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:2}},[a("el-select",{staticClass:"select-type-dom",attrs:{disabled:t.disabled},model:{value:t.ontractForm.contractInfo.partyBType,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBType",e)},expression:"ontractForm.contractInfo.partyBType"}},t._l(t.contractInfoPartyTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.ontractForm.contractInfo.partyBType?a("el-form-item",{attrs:{label:"公司社会信用代码",prop:"contractInfo.partyBIdCard",rules:{required:!0,message:"请输入公司统一社会信用代码",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入公司统一社会信用代码",maxlength:"32","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBIdCard,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBIdCard","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBIdCard"}})],1):a("el-form-item",{attrs:{label:"身份证号码",prop:"contractInfo.partyBIdCard",rules:t.contractInfoRules.partyBIdCard}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方身份证号码",maxlength:"18","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBIdCard,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBIdCard","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBIdCard"}})],1)],1),t._v(" "),1===t.ontractForm.contractInfo.partyBType?a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"企业法人",prop:"contractInfo.partyBPerson",rules:{required:!0,message:"请输入乙方企业法人",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方企业法人",maxlength:"6","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBPerson,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBPerson","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBPerson"}})],1)],1):a("el-col",{attrs:{offset:2,span:6}},[a("el-form-item",{attrs:{label:"联系方式",prop:"contractInfo.partyBPhone",rules:t.contractInfoRules.partyBPhone}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入乙方代表联系方式",oninput:"value=value.replace(/\\D/g,'')",maxlength:"11","show-word-limit":""},model:{value:t.ontractForm.contractInfo.partyBPhone,callback:function(e){t.$set(t.ontractForm.contractInfo,"partyBPhone","string"===typeof e?e.trim():e)},expression:"ontractForm.contractInfo.partyBPhone"}})],1)],1)],1)],1)]),t._v(" "),a("div",{staticClass:"rule typeface"},[t._v("\n "+t._s(t.classifyTitle)+t._s(0==t.ontractForm.method?"付款":"收款")+"信息\n ")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:0==t.ontractForm.method?"付款方式":"收款方式",prop:"payType"}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,placeholder:0==t.ontractForm.method?"请选择付款方式":"请选择收款方式"},on:{change:t.payTypeChange},model:{value:t.payType,callback:function(e){t.payType=e},expression:"payType"}},[a("el-option",{attrs:{value:2,label:0==t.ontractForm.method?"付款金额":"收款金额"}})],1)],1)],1)],1),t._v(" "),t._l(t.ontractForm.contractPaymentInfoList,(function(e,r){return a("el-row",{key:r},[a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:0==t.ontractForm.method?"付款时间":"收款时间",prop:"contractPaymentInfoList["+r+"].paymentTime",rules:{required:!0,message:"请选择应收/付款时间",trigger:"change"}}},[a("el-date-picker",{staticClass:"select-dom",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd 23:59:59",disabled:t.disabled,type:"date",placeholder:"选择日期"},on:{change:function(e){return t.paymentTimeChange(e,r)}},model:{value:e.paymentTime,callback:function(a){t.$set(e,"paymentTime",a)},expression:"item.paymentTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[1===t.payType?a("el-form-item",{key:"ratio"+r,staticClass:"is-required",attrs:{label:"付款比例",prop:"contractPaymentInfoList["+r+"].ratio",rules:{required:!0,message:"请输入付款比例",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入付款比例",maxlength:"5","show-word-limit":""},on:{input:function(e){return t.priceInput(e,"ratio",1,r)},blur:function(e){return t.paymentValueChange(e,r,1)}},model:{value:e.ratio,callback:function(a){t.$set(e,"ratio",a)},expression:"item.ratio"}},[a("template",{slot:"append"},[t._v("%")])],2)],1):a("el-form-item",{key:"amount"+r,staticClass:"is-required",attrs:{label:0==t.ontractForm.method?"付款金额":"收款金额",prop:"contractPaymentInfoList["+r+"].amount",rules:{required:!0,message:"请输入收/付款金额",trigger:"blur"}}},[a("el-input",{attrs:{disabled:t.disabled,placeholder:"请输入收/付款金额",maxlength:"13","show-word-limit":""},on:{input:function(e){return t.priceInput(e,"amount",1,r)},blur:function(e){return t.paymentValueChange(e,r,2)}},model:{value:e.amount,callback:function(a){t.$set(e,"amount",a)},expression:"item.amount"}},[a("template",{slot:"append"},[t._v("元")])],2)],1)],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{key:"amount"+r,staticClass:"is-required",attrs:{label:0==t.ontractForm.method?"付款状态":"收款状态",prop:"contractPaymentInfoList["+r+"].payStatus",rules:{required:!0,message:"请选择收/付款状态",trigger:"change"}}},[a("el-select",{staticClass:"select-dom",attrs:{disabled:t.disabled,placeholder:"请选择收/付款状态"},model:{value:e.payStatus,callback:function(a){t.$set(e,"payStatus",a)},expression:"item.payStatus"}},[a("el-option",{attrs:{label:0==t.ontractForm.method?"已付款":"已收款",value:1}}),t._v(" "),a("el-option",{attrs:{label:0==t.ontractForm.method?"未付款":"未收款",value:0}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{offset:1,span:4}},[r===t.ontractForm.contractPaymentInfoList.length-1?a("el-button",{staticClass:"payTypeOptBtn",attrs:{disabled:t.disabled,type:"primary",icon:"el-icon-circle-plus-outline",size:"mini"},on:{click:function(e){return t.addcontractPaymentInfoList(r)}}}):t._e(),t._v(" "),r<t.ontractForm.contractPaymentInfoList.length-1?a("el-button",{staticClass:"payTypeOptBtn",attrs:{disabled:t.disabled,type:"primary",icon:"el-icon-delete",size:"mini"},on:{click:function(e){return t.deletecontractPaymentInfoList(r)}}}):t._e()],1)],1)}))],2),t._v(" "),a("div",{staticClass:"rule typeface"},[t._v(t._s(t.classifyTitle)+"文件资料")]),t._v(" "),a("div",{staticClass:"vote-questions"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticClass:"is-required",attrs:{label:"上传附件:",prop:"fileUrl"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"支持扩展名: .doc .docx .xls .xlsx .pdf ",placement:"top"}},[a("span",{staticClass:"el-icon-info"})]),t._v(" "),"view"!==t.type?a("span",{staticClass:"imagvVdeo"},[a("AliOSSUpload",{attrs:{limit:6,disabled:t.disabled,isShowClose:t.disabled,accept:t.accept,allowFileType:t.allowFileType2,fileList:t.fileListInfo,isChangeFileName:!1,showFileList:!0,listType:"text"},on:{getUploadData:t.getUploadData2},scopedSlots:t._u([{key:"uploadButton",fn:function(){return[a("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"el-icon-upload",attrs:{type:"primary",disabled:t.disabled,plain:"",size:"small"}},[t._v("选择附件")])]},proxy:!0}],null,!1,3736315497)})],1):a("div",{staticClass:"file-list"},t._l(t.fileListInfo,(function(e,r){return a("div",{key:r,staticClass:"file-name",on:{click:function(a){return t.fileViewS(e.url)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),0)],1)],1)],1)],1)]),t._v(" "),a("div",{staticClass:"vote-submit-options"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:t.disabled,loading:t.isPost},on:{click:function(e){return t.save("ontractForm")}}},[t._v("保存")])],1)],1)],1)},o=[],n=(a("9f60"),a("94f0"),a("0c84"),a("2843"),a("4057"),a("8dee"),a("32ea"),a("1bc7"),a("e5b4"),a("fc02"),a("e680"),a("a450"),a("4513")),i=a("e211"),s=a("61f7"),l=a("67d5"),c=a("8988"),u=a("35ad"),p=a("a6b9"),d=a("0b37"),m=a("dce5");function f(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=_(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i=!0,s=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return i=t.done,t},e:function(t){s=!0,n=t},f:function(){try{i||null==a.return||a.return()}finally{if(s)throw n}}}}function _(t,e){if(t){if("string"==typeof t)return y(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=Array(e);a<e;a++)r[a]=t[a];return r}var g={components:{AliOSSUpload:c["a"]},props:{type:{type:String,default:"add"}},data:function(){var t=function(t,e,a){e.length<11?a(new Error("联系电话不能少于11位")):a()},e=function(t,e,a){var r=Object(s["a"])(e);r[0]?a(new Error(r[1])):a()};return{options:i["c"],allowFileType2:["file"],accept:".pdf",fileListInfo:[],content:"新建",classifyTitle:"合同",disabled:!1,projectList:[],ontractForm:{companyId:JSON.parse(window.localStorage.getItem("companyInfo")).osId,amount:"",contractNo:"",firstBank:"",firstBankAccount:"",firstContactPhone:"",firstContactPhone2:"",firstDelegateName:"",firstSupplierId:"",name:"",secondSupplierId:"",secondBank:"",secondBankAccount:"",secondContactPhone:"",secondDelegateName:"",endTime:"",signTime:"",startTime:"",method:0,type:1,projectUuid:[],fileUrl:"",contractPaymentInfoList:[{paymentTime:"",amount:"",ratio:"",payStatus:0,type:2}],category:[],targetInfo:[{leaseType:1,target:""}],contractInfo:{partyAType:1,partyAId:"",partyAName:"",partyAIdCard:"",partyAPerson:"",partyAPhone:"",partyBType:2,partyBId:"",partyBName:"",partyBIdCard:"",partyBPerson:"",partyBPhone:""}},isPost:!1,payType:2,firstSupplierType:2,firstSupplierList:[],secondSupplierType:2,secondSupplierList:[],rules:{contractNo:[{required:!0,message:"请填写合同金额",trigger:"blur"}],name:[{required:!0,message:"请填写合同名称",trigger:"blur"}],amount:[{required:!0,message:"请填写金额",trigger:"blur"}],projectUuid:[{required:!0,message:"请选择覆盖项目",trigger:"change"}],type:[{required:!0,message:"请选择合同类型",trigger:"change"}],endTime:[{required:!0,message:"请选择合同结束时间",trigger:"change"}],method:[{required:!0,message:"请选择款项方向",trigger:"change"}],signTime:[{required:!0,message:"请选择合同签订时间",trigger:"change"}],startTime:[{required:!0,message:"请选择合同开始时间",trigger:"change"}],firstSupplierId:[{required:!0,message:"请选择甲方名称",trigger:"change"}],firstDelegateName:[{required:!0,message:"请输入甲方代表姓名",trigger:"blur"}],firstContactPhone:[{required:!0,message:"请填写甲方代表联系方式",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}],firstBank:[{required:!0,message:"请填写甲方开户银行",trigger:"blur"}],firstBankAccount:[{required:!0,message:"请填写甲方开户银行",trigger:"blur"}],secondSupplierId:[{required:!0,message:"请选择乙方名称",trigger:"change"}],secondDelegateName:[{required:!0,message:"请输入乙方代表姓名",trigger:"blur"}],secondContactPhone:[{required:!0,message:"请填写乙方代表联系方式",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}],secondBank:[{required:!0,message:"请填写乙方开户银行",trigger:"blur"}],secondBankAccount:[{required:!0,message:"请填写乙方开户银行",trigger:"blur"}],category:[{required:!0,message:"请选择合同归属",trigger:"change"}]},contractInfoRules:{partyBPhone:[{required:!0,message:"请输入乙方代表联系方式",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}],partyBIdCard:[{required:!0,message:"请输入身份证号码",trigger:"blur"},{required:!0,validator:e,trigger:"blur"}]},payTypeList:[{name:"付款比例",value:1},{name:"付款金额",value:2},{name:"按月付款",value:3}],supplierType:[{name:"供应商",value:1},{name:"分公司",value:2}],contractTypeList:m["y"],ascriptionList:m["j"],leaseTypeList:m["T"],contractInfoPartyTypeList:[{name:"公司",value:1},{name:"个人",value:2}],orgList:[],fullscreenLoading:!1}},computed:{allSupplierList:function(){return this.$store.state.user.allSupplierList},allSupplierList2:function(){return this.$store.state.user.allSupplierList2}},mounted:function(){this.getOrganizeList()},methods:{getTreeData:function(t){for(var e=0;e<t.length;e++)t[e].corpUuid&&(t[e].uid=t[e].corpUuid,t[e].nameTxt=t[e].name),t[e].childs.map((function(t){t.uid=t.uuid,t.nameTxt=1==t.attribute?"".concat(t.name,"(组织)"):"".concat(t.name,"(部门)")})),t[e].childs.length<1?t[e].childs=void 0:this.getTreeData(t[e].childs);return t},getOrganizeList:function(){var t=this,e=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),a={id:JSON.parse(localStorage.getItem("companyInfo")).osId,roleId:Number(localStorage.getItem("roleId"))};Object(n["w"])(a).then((function(a){a&&a.data.length>0?(t.orgList=t.getTreeData(a.data),e.close()):e.close()})).catch((function(){e.close()}))},getInfoLst:function(t){if(this.ontractForm.companyId=JSON.parse(window.localStorage.getItem("companyInfo")).osId,this.getProjectInfo(),void 0!=t&&t.id&&this.getContractById(t.id),"view"===this.type||"edit"===this.type)"view"===this.type?(this.content="查看".concat(this.classifyTitle),this.disabled=!0):(this.content="编辑".concat(this.classifyTitle),this.disabled=!1);else if("add"===this.type){var e=this.groupArr(this.allSupplierList,(function(t){return[t.type]}));this.firstSupplierList=e[0],this.secondSupplierList=e[0],this.content="新建".concat(this.classifyTitle)}},getContractById:function(t){var e=this,a={id:t};Object(u["f"])(a).then((function(t){0===t.code&&t.data&&(e.ontractForm=Object.assign({},t.data),t.data.category.indexOf(",")>0?e.ontractForm.category=t.data.category.split(",").map((function(t){return Number(t)})):t.data.category?e.ontractForm.category=[Number(t.data.category)]:e.ontractForm.category=[],t.data.projectUuid.indexOf(",")>0?e.ontractForm.projectUuid=t.data.projectUuid.split(","):e.ontractForm.projectUuid=[t.data.projectUuid],e.payType=t.data.contractPaymentInfoRespDTOList[0].type,e.ontractForm.contractPaymentInfoList=t.data.contractPaymentInfoRespDTOList,4===t.data.type&&(e.ontractForm.targetInfo=JSON.parse(t.data.targetInfo),e.ontractForm.contractInfo=JSON.parse(t.data.contractInfo)),e.reviewSupplierType(),e.getfFile())}))},reviewSupplierType:function(){var t=this;"view"!==this.type&&"edit"!==this.type||(this.$nextTick((function(){var e=t.allSupplierList2.concat(t.allSupplierList),a=e.filter((function(e){return e.id===t.ontractForm.firstSupplierId})),r=e.filter((function(e){return e.id===t.ontractForm.secondSupplierId}));a.length>0?(t.firstSupplierType=a[0].type,t.querySupplierList(1,t.firstSupplierType)):t.firstSupplierType=1,r.length>0?(t.secondSupplierType=r[0].type,t.querySupplierList(2,t.secondSupplierType)):t.secondSupplierType=1})),this.$forceUpdate())},setThisleaseType:function(t){var e=this.leaseTypeList.find((function(e){return e.value===t}));return e.name},querySupplierList:function(t,e){var a=this,r={pageSize:-1,pageNumber:-1,type:e,companyId:this.ontractForm.companyId};Object(p["c"])(r).then((function(r){if(0===r.code&&r.data){var o=r.data.records;if(0===e){a.allSupplierList=o;var n=a.groupArr(o,(function(t){return[t.type]}));a.firstSupplierList=n[0],a.secondSupplierList=n[0]}else 1===t?a.firstSupplierList=o:a.secondSupplierList=o}}))},groupArr:function(t,e){var a={};return t.forEach((function(t){var r=JSON.stringify(e(t));a[r]=a[r]||[],a[r].push(t)})),Object.keys(a).map((function(t){return a[t]}))},getProjectInfo:function(){var t=this,e=JSON.parse(window.localStorage.getItem("companyInfo")).osId;Object(l["j"])({id:e,attribute:1}).then((function(e){0===e.code&&e.data?t.projectList=e.data:t.projectList=[],setTimeout((function(){t.$nextTick((function(){t.$refs.ontractForm.clearValidate("projectUuid")})),t.$forceUpdate()}),200)}))},contractTypeChange:function(t){4===t?(this.ontractForm.category=[7],this.payType=3,this.$set(this.ontractForm.contractPaymentInfoList[0],"type",3)):(this.payType=1,this.$set(this.ontractForm.contractPaymentInfoList[0],"type",1))},supplierTypeChange:function(t,e){1===e?(this.ontractForm.firstSupplierId="",this.ontractForm.firstBank="",this.ontractForm.firstBankAccount="",this.ontractForm.firstContactPhone="",this.ontractForm.firstDelegateName="",this.ontractForm.firstName="",this.querySupplierList(e,t)):(this.ontractForm.secondBank="",this.ontractForm.secondBankAccount="",this.ontractForm.secondContactPhone="",this.ontractForm.secondDelegateName="",this.ontractForm.secondName="",this.ontractForm.secondSupplierId="",this.querySupplierList(e,t))},save:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var a,r=e.ontractForm.contractPaymentInfoList,o=0,n=f(r);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(""===i.paymentTime)return e.$message({type:"error",message:"付款时间为空,请输入付款时间"}),!1;if(1===e.payType){if(""===i.ratio)return e.$message({type:"error",message:"付款比例为空,请输入分期付款比例"}),!1;o=Object(d["a"])(o,i.ratio)}else{if(""===i.amount)return e.$message({type:"error",message:"付款金额为空,请输入分期付款金额"}),!1;o=Object(d["a"])(o,i.amount)}}}catch(l){n.e(l)}finally{n.f()}if(1===e.payType&&100!==o)return e.$message({type:"error",message:"付款比例之和不等于100%,请重新输入付款比例"}),!1;if(2===e.payType&&o!==Number(e.ontractForm.amount))return e.$message({type:"error",message:"分期付款之和不等于合同金额,请重新输入分期付款金额"}),!1;if(""===e.ontractForm.fileUrl)return e.$message({type:"error",message:"请选择合同文件资料上传"}),!1;var s=Object.assign({},e.ontractForm);s.category=e.ontractForm.category.join(","),s.projectUuid=e.ontractForm.projectUuid.join(","),4===e.ontractForm.type&&e.ontractForm.targetInfo.length>0?(s.targetInfo=JSON.stringify(e.ontractForm.targetInfo),s.contractInfo=JSON.stringify(e.ontractForm.contractInfo),s.firstDelegateName=e.ontractForm.contractInfo.partyAPerson,s.secondDelegateName=e.ontractForm.contractInfo.partyBPerson):(s.targetInfo="",s.contractInfo=""),console.log("contractSubmit",s),e.isPost=!0,"edit"===e.type?(s.opName=JSON.parse(window.localStorage.getItem("memberInfor")).name,e.updataForm(s)):(s.createName=JSON.parse(window.localStorage.getItem("memberInfor")).name,Object(u["a"])(s).then((function(t){e.$message({message:"添加成功",type:"success"}),e.isPost=!1,e.goBack()})).catch((function(){e.isPost=!1})))}}))},updataForm:function(t){var e=this;Object(u["g"])(t).then((function(t){e.$message({message:"修改成功",type:"success"}),e.isPost=!1,e.goBack()})).catch((function(){e.isPost=!1}))},editBusiness:function(){this.type="edit",this.content="编辑合同",this.disabled=!1},cancel:function(){this.goBack()},selectChangefirstSupplier:function(t){this.getAIAlearmType(t,1)},selectChangeSecondSupplier:function(t){this.getAIAlearmType(t,2)},getAIAlearmType:function(t,e){var a=1===e?this.firstSupplierList:this.secondSupplierList;if(null!=t&&""!=t&&void 0!=t){var r=a.filter((function(e){return e.id==t}));r.length>0&&(1===e?(this.ontractForm.firstBank=r[0].bankName,this.ontractForm.firstBankAccount=r[0].bankAccount):(this.ontractForm.secondBank=r[0].bankName,this.ontractForm.secondBankAccount=r[0].bankAccount))}},paymentTimeChange:function(t,e){},paymentValueChange:function(t,e,a){},payTypeChange:function(t){var e=this,a=this.ontractForm.contractPaymentInfoList;a.map((function(a,r){e.$set(e.ontractForm.contractPaymentInfoList[r],"type",e.payType),1===t?e.$set(e.ontractForm.contractPaymentInfoList[r],"ratio",""):e.$set(e.ontractForm.contractPaymentInfoList[r],"amount","")}))},addcontractPaymentInfoList:function(t){var e=this,a={paymentTime:"",amount:"",ratio:"",payStatus:0,type:this.payType},r="add"===this.type?a:Object.assign({contractId:this.ontractForm.id},a),o="paymentTime".concat(t+1),n="value".concat(t+1),i={};i[o]=[{required:!0,message:"请选择付款时间",trigger:"change"}],i[n]=[{required:!0,message:"请输入",trigger:"blur"}],this.$nextTick((function(){e.ontractForm.contractPaymentInfoList.push(r)})),this.$forceUpdate()},deletecontractPaymentInfoList:function(t){var e=this;this.$confirm("确定该选项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){var a=e.ontractForm.contractPaymentInfoList,r=a[t];void 0!=r.id?Object(u["e"])({id:r.id}).then((function(r){0===r.code?(a.splice(t,1),e.$nextTick((function(){e.$set(e.ontractForm,"contractPaymentInfoList",a)})),e.$forceUpdate(),e.$message({type:"success",message:"删除成功"})):e.$message({type:"error",message:"删除失败"})})):(a.splice(t,1),e.$nextTick((function(){e.$set(e.ontractForm,"contractPaymentInfoList",a)})),e.$forceUpdate())})).catch((function(){}))},addcontracttargetInfoList:function(t){var e=this,a={leaseType:1,target:""};this.$nextTick((function(){e.ontractForm.targetInfo.push(a)})),this.$forceUpdate()},deletecontracttargetInfoList:function(t){var e=this;this.$confirm("确定删除该信息吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",center:!0}).then((function(){var a=e.ontractForm.targetInfo;a[t];a.splice(t,1),e.$nextTick((function(){e.$set(e.ontractForm,"targetInfo",a)})),e.$forceUpdate()})).catch((function(){}))},getfFile:function(){var t=this,e=this.ontractForm.fileUrl;e?e.indexOf(",")>0?this.fileListInfo=e.split(",").map((function(e){return{url:e,name:t.getFileName(e)}})):e.indexOf(";")>0?this.fileListInfo=e.split(";").map((function(e){return{url:e,name:t.getFileName(e)}})):this.fileListInfo.push({url:e,name:this.getFileName(e)}):this.fileListInfo=[]},getFileName:function(t){var e=t.lastIndexOf("/");return-1!==e?decodeURI(t.slice(e+1)):""},getUploadData2:function(t){var e=[];t&&t.length>0&&t.forEach((function(t){e.push(t.filePath)})),this.ontractForm.fileUrl=e.join(",")},setData:function(t){i["textToCode"][t.province],i["textToCode"][t.province][t.city],i["textToCode"][t.province][t.city][t.area]},updataInputChanges:function(t,e,a){this.$refs[e]["model"][a]=t.target.value},priceInput:function(t,e,a,r){var o=this;a=a||0,t=t.replace(/[^\d\.]/g,""),t=t.replace(/^\./g,""),t=t.replace(/^0\d[0-9]*/g,""),t=t.replace(/\.{2,}/g,"."),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),this.$nextTick((function(){0===a?o.ontractForm[e]=t:o.ontractForm.contractPaymentInfoList[r][e]=t}))},handleChange:function(t){this.ontractForm.province=i["a"][t[0]],this.ontractForm.city=i["a"][t[1]],this.ontractForm.area=i["a"][t[2]]},fileViewS:function(t){window.open(t)},goBack:function(){this.$emit("goBack")}}},h=g,b=(a("f807"),a("829d")),v=Object(b["a"])(h,r,o,!1,null,"71988bf0",null);e["a"]=v.exports},a295:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAEnUlEQVRIS5WVXWxURRTH/2dmd3t37y7tstsuLB+ptEWkKBDhwaiADz4IGo2gBpHESAREg1ASEzFBnxD1zcRgAjGiCRJ5AF80JIoCxr6AEhERbKlKKSxtd+l+3e3unXPM3bLlo9HCPN3cmfOb/8z5zzmE2xgXpiLoFO2HvKXBUOHHab1wxguj8RZ487+HQpMDIdrlfZeL8vLsYvHSeHFV8HHAH41GQzMymRwBfGvQadueZAWxWwDSDtbcVShcvnWNAP6/bDuWDYdzc1OpQhX8Z2PDfG3MSqPkawzkO9uA4RsDu6PRemj3YRBxXgWPeIE3zvclk6GsO/S0j9UqY+jDmZnsIfJUnG0IL/Fp9RFI8qR5TUuqcOpLQN9j2/FggFuN0vO0ICFEBRG3i3x80vbFLiX7+oojwvzzSaxdENRB3HWtaeenqmJPEavKKq3UIhHZlglEehuc/GLRZgOB5kIgRGS8tQLxk9BVBr6AuJ+1pZ2LPbadcC28qFj/GrCz33vJHU1eTzMsM4AJ5I8OizKrCbKFSfwK6phADrvMF7SmiGK6X4ClUJhMwA+GZdvJwfy5RYmEdTSVKj0LVAXc5AoBdFdjeLkSeh+EIWHztmUVj025iGxVLMBn43Fbc2maUtQhwDNg+cZX4s3NtzjlJnBPg9Vs/P69JJjETK+0prPfei7pmhicCqUfLBf5SM1q3VFrOmvfu0T0qBi8WU7nPm8HyrWkjoI9y02IRVZpwnYIPi0pa3t7f3/+j3g84pfhrQI84UI2zhrMH64Fd8dCC4X0PhHp1iVZPaNQSI0B/wI0ROLh9yB4TLR5ru2K0+ld1ZmoPSegab+AsiB6vqU/e77m9TNTEPOVIx8TY2GZ5fHZmfxvY8Bd4XATWbJbhFpd1102a6jU46n1UekNguoQwRFms1+LThUy2c77gMzlRMLOc3ErWF4gyEstg4XvxoDP23ZCgvoTAZrIlJe3ZEr/dIXRRHWRnaKwGIKKEHxguQKDDa1X80dPJJPB+kpuEwnWsrgdbYPOARpJ8nVXXAdLI5nKCg98GgioiZEFPmC2UlgsJCsAOuGWK6u9Ex1PJkP1w7nXFWGdYXfL3rRz4J1rJWE0eTUwgEaYchVcO9a5+voZ2md2CtEcYrXxRHrooOfXKriS26QEa424HXsHnYO3Dfae9rym4FOafR8Acqg0kH+rHUhXi9cdguPMleVtaad35AmDzsdCC5jUUgPaN2sgd7Z2kh7AcmP2JiK13rvj/1UsQKJMWBmpy/amOEkJpSQ73Ksn9COAqXC8fx44ofokCwQDpfBrBKxhMZv/E8wW7SGqFp09Ak6LUr5rT1lIlCFizYCqKmZmIfIr4BEQtRt2188cdA6OccXf0xGtFMM7BFhGQhUQ2LuG/+oUHmBkXgKKVL+YyqteubzJx9XiA/hMPNKsgbtBYl1TOl4HghjDxHoQKvBzazrt1WchwNDpieH2OoV7WcgizYYECqxuqxeO7qq52s7YVVopcYYZp6g7FtkByJMABb3dmEZezp0M79LFE0RCJCgC9BWdaQgvUZoe0EJBUWMb6Z1sQAxlSBw20vkvFPNbDgATQSEAAAAASUVORK5CYII="},a6b9:function(t,e,a){"use strict";a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"e",(function(){return s})),a.d(e,"b",(function(){return l}));var r=a("b775");function o(t){return Object(r["a"])({url:"/hakocompany/supplier/pageList",method:"POST",data:t})}function n(t){return Object(r["a"])({url:"/hakocompany/supplier/add",method:"POST",data:t})}function i(t){return Object(r["a"])({url:"/hakocompany/supplier/update",method:"POST",data:t})}function s(t){return Object(r["a"])({url:"/hakocompany/supplier/updateInvoiceStatus",method:"POST",data:t})}function l(t){return Object(r["a"])({url:"/hakocompany/supplier/delete",method:"post",data:t})}},bc2e:function(t,e,a){},bed4:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"workPointsManage"},[t.infoList?r("div",{staticClass:"workPointsRuleList"},[r("el-card",{ref:"box-card",staticClass:"box-card secarch-box",style:{height:t.height+"px"}},[r("el-form",{ref:"query",attrs:{model:t.query}},[r("el-row",[r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"contractNo"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"合同编号"},model:{value:t.query.contractNo,callback:function(e){t.$set(t.query,"contractNo","string"===typeof e?e.trim():e)},expression:"query.contractNo"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"type"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"请选择合同类型"},model:{value:t.query.type,callback:function(e){t.$set(t.query,"type",e)},expression:"query.type"}},t._l(t.contractTypeList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"name"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"合同名称"},model:{value:t.query.name,callback:function(e){t.$set(t.query,"name","string"===typeof e?e.trim():e)},expression:"query.name"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"projectUuid"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"请选择项目"},model:{value:t.query.projectUuid,callback:function(e){t.$set(t.query,"projectUuid",e)},expression:"query.projectUuid"}},t._l(t.projectList,(function(t){return r("el-option",{key:t.uuid,attrs:{label:t.name,value:t.uuid}})})),1)],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"firstName"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"甲方"},model:{value:t.query.firstName,callback:function(e){t.$set(t.query,"firstName","string"===typeof e?e.trim():e)},expression:"query.firstName"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("div",{staticStyle:{float:"right"}},[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],on:{click:function(e){return t.resetForm()}}},[t._v("重置")]),t._v(" "),r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),t.is_show?t._e():r("el-button",{attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("展开"),r("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),t.is_show?r("el-button",{attrs:{type:"text"},on:{click:t.upAndDown}},[t._v("收起"),r("i",{staticClass:"el-icon-arrow-up"})]):t._e()],1)])],1),t._v(" "),r("el-row",[r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"firstDelegateName"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"甲方代表"},model:{value:t.query.firstDelegateName,callback:function(e){t.$set(t.query,"firstDelegateName","string"===typeof e?e.trim():e)},expression:"query.firstDelegateName"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"secondName"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"乙方"},model:{value:t.query.secondName,callback:function(e){t.$set(t.query,"secondName","string"===typeof e?e.trim():e)},expression:"query.secondName"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"secondDelegateName"}},[r("el-input",{attrs:{type:"text",clearable:"",placeholder:"乙方代表"},model:{value:t.query.secondDelegateName,callback:function(e){t.$set(t.query,"secondDelegateName","string"===typeof e?e.trim():e)},expression:"query.secondDelegateName"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"category"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"请选择合同归属"},model:{value:t.query.category,callback:function(e){t.$set(t.query,"category",e)},expression:"query.category"}},t._l(t.ascriptionList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"payStatus"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"收/付款状态",multiple:"","collapse-tags":""},model:{value:t.query.payStatus,callback:function(e){t.$set(t.query,"payStatus",e)},expression:"query.payStatus"}},[r("el-option",{attrs:{value:1,label:"未支付/未收款"}}),t._v(" "),r("el-option",{attrs:{value:2,label:"部分支付/部分收款"}}),t._v(" "),r("el-option",{attrs:{value:3,label:"已支付/已收款"}})],1)],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"method"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"款项类型"},model:{value:t.query.method,callback:function(e){t.$set(t.query,"method",e)},expression:"query.method"}},[r("el-option",{attrs:{label:"付款",value:0}}),t._v(" "),r("el-option",{attrs:{label:"收款",value:1}})],1)],1)],1)],1),t._v(" "),r("el-row",[r("el-col",{staticClass:"elCol",attrs:{span:4}},[r("el-form-item",{attrs:{prop:"contractStatus"}},[r("el-select",{staticClass:"select-dom",attrs:{clearable:"",placeholder:"合同状态"},model:{value:t.query.contractStatus,callback:function(e){t.$set(t.query,"contractStatus",e)},expression:"query.contractStatus"}},t._l(t.contractStatusList,(function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:6}},[r("el-form-item",{attrs:{prop:"contractStatus"}},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"合同开始时间","end-placeholder":"合同到期时间"},on:{change:t.getTime},model:{value:t.contractTime,callback:function(e){t.contractTime=e},expression:"contractTime"}})],1)],1),t._v(" "),r("el-col",{staticClass:"elCol",attrs:{span:6}},[r("el-form-item",{attrs:{prop:"contractStatus"}},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"应收/付款开始时间","end-placeholder":"应收/付结束时间"},on:{change:t.getTime},model:{value:t.payTime,callback:function(e){t.payTime=e},expression:"payTime"}})],1)],1)],1)],1)],1),t._v(" "),r("div",{staticClass:"custom-card"},t._l(t.totalInfo,(function(e,a){return r("el-card",{key:a,staticClass:"box-card"},[r("div",{attrs:{slot:"header"},slot:"header"},[r("span",{staticStyle:{"font-size":"16px","font-weight":"700"}},[t._v(t._s(e.title))])]),t._v(" "),"合同亮灯"!==e.title?r("el-descriptions",{attrs:{column:e.column}},t._l(e.infoList,(function(e,a){return r("el-descriptions-item",{key:a,attrs:{label:e.label}},[t._v(t._s(e.value))])})),1):t._e(),t._v(" "),"合同亮灯"==e.title?r("el-descriptions",{attrs:{column:e.column}},[r("div",{staticStyle:{"font-weight":"500"},attrs:{slot:"title"},slot:"title"},[t._v("到期时间:")]),t._v(" "),r("el-descriptions-item",{attrs:{label:"红灯"}},[t._v(t._s(e.infoList[0].value1))]),t._v(" "),r("el-descriptions-item",{attrs:{label:"黄灯"}},[t._v(t._s(e.infoList[0].value2))]),t._v(" "),r("el-descriptions-item",{attrs:{label:"绿灯"}},[t._v(t._s(e.infoList[0].value3))])],1):t._e(),t._v(" "),"合同亮灯"==e.title?r("el-descriptions",{attrs:{column:e.column}},[r("div",{staticStyle:{"font-weight":"500"},attrs:{slot:"title"},slot:"title"},[t._v("收/付款时间:")]),t._v(" "),r("el-descriptions-item",{attrs:{label:"红灯"}},[t._v(t._s(e.infoList[1].value1))]),t._v(" "),r("el-descriptions-item",{attrs:{label:"黄灯"}},[t._v(t._s(e.infoList[1].value2))]),t._v(" "),r("el-descriptions-item",{attrs:{label:"绿灯"}},[t._v(t._s(e.infoList[1].value3))])],1):t._e()],1)})),1),t._v(" "),r("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"15px"}},[r("div",{staticClass:"planLst"},[r("span",{staticClass:"planTitle",staticStyle:{color:"#2f2c2c","font-size":"16px"}},[t._v("合同列表")]),t._v(" "),r("span",{staticClass:"add"},[r("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:t.addRuleGroup}},[t._v("新建合同")])],1)]),t._v(" "),r("el-table",{staticStyle:{width:"100%","margin-top":"15px"},attrs:{border:"",data:t.tableData,"header-cell-style":t.headClass}},[r("el-table-column",{attrs:{label:"#",align:"center","min-width":"50",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+(t.query.pageNumber-1)*t.query.pageSize+1)+"\n ")])]}}],null,!1,3311124033)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"category",label:"亮灯(到期时间)","min-width":"100",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.endTimeLight?r("span",[r("img",{attrs:{src:a("a295"),alt:""}})]):t._e(),t._v(" "),2==e.row.endTimeLight?r("span",[r("img",{attrs:{src:a("416e"),alt:""}})]):t._e(),t._v(" "),3==e.row.endTimeLight?r("span",[r("img",{attrs:{src:a("2124"),alt:""}})]):t._e(),t._v(" "),1!==e.row.endTimeLight&&2!==e.row.endTimeLight&&3!==e.row.endTimeLight?r("span",[t._v("-")]):t._e()]}}],null,!1,2291735406)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"category",label:"亮灯(收/付款时间)","min-width":"100",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.payTimeLight?r("span",[r("img",{attrs:{src:a("a295"),alt:""}})]):t._e(),t._v(" "),2==e.row.payTimeLight?r("span",[r("img",{attrs:{src:a("416e"),alt:""}})]):t._e(),t._v(" "),3==e.row.payTimeLight?r("span",[r("img",{attrs:{src:a("2124"),alt:""}})]):t._e(),t._v(" "),1!==e.row.payTimeLight&&2!==e.row.payTimeLight&&3!==e.row.payTimeLight?r("span",[t._v("-")]):t._e()]}}],null,!1,1043577038)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"category",label:"合同归属","min-width":"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.categoryArr(e.row.category)))])]}}],null,!1,748369958)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"contractNo",label:"合同编号","min-width":"180","show-overflow-tooltip":""}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"type",label:"合同类型","min-width":"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("getItemType")(e.row.type,t.contractTypeList,"value","name"))+"\n ")]}}],null,!1,2545986415)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"合同名称","min-width":"180","show-overflow-tooltip":""}}),t._v(" "),r("el-table-column",{attrs:{align:"right",prop:"amount",label:"合同金额","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.formatNum(e.row.amount))+"\n ")]}}],null,!1,4063420645)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"firstName",label:"甲方","min-width":"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[4!=e.row.type?r("span",[t._v(t._s(e.row.firstName))]):r("span",[t._v(t._s(t.reViewPartyInfor(e.row,"partyAName")))])]}}],null,!1,806657714)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"secondName",label:"乙方","min-width":"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[4!=e.row.type?r("span",[t._v(t._s(e.row.secondName))]):r("span",[t._v(t._s(t.reViewPartyInfor(e.row,"partyBPerson")))])]}}],null,!1,583470953)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"覆盖项目","min-width":"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.reviewProjectName(e.row.projectUuid)))])]}}],null,!1,4064877847)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"startTime",label:"合同开始日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("formatDate")(e.row.startTime,"Y-M-D")))])]}}],null,!1,725928705)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"endTime",label:"合同结束日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("formatDate")(e.row.endTime,"Y-M-D")))])]}}],null,!1,526696718)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"signTime",label:"合同签订日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("formatDate")(e.row.signTime,"Y-M-D")))])]}}],null,!1,1550077522)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"firstDelegateName",label:"甲方代表","min-width":"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.firstDelegateName))])]}}],null,!1,3406781956)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"secondDelegateName",label:"乙方代表","min-width":"160","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.secondDelegateName))])]}}],null,!1,4076204526)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"secondDelegateName",label:"款项方向","min-width":"80","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(0==e.row.method?"付款":"收款"))])]}}],null,!1,4087324578)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"contractStatus",label:"合同状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("getItemType")(e.row.contractStatus,t.contractStatusList)))])]}}],null,!1,584822922)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"payStatus",label:"收/付款状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t.filterPayStatus(e.row)))])]}}],null,!1,2729272341)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"tradeTime",label:"应收/付款时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.tradeTime?r("span",[t._v(t._s(t._f("formatDate")(e.row.tradeTime,"Y-M-D")))]):r("span",[t._v("-")])]}}],null,!1,514092846)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"创建时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.createTime||"-"))])]}}],null,!1,2164368602)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createName",label:"创建人","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.createName||"-"))])]}}],null,!1,1736682120)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"操作时间","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.updateTime||"-"))])]}}],null,!1,2423168815)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"opName",label:"操作人","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.opName||"-"))])]}}],null,!1,2711025203)}),t._v(" "),r("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[r("el-button",{attrs:{type:"text"},on:{click:function(a){return t.detailsClick(e.row,"view")}}},[t._v("查看")])],1),t._v(" "),3!==e.row.contractStatus?r("span",[r("el-button",{attrs:{disabled:2==e.row.status,type:"text"},on:{click:function(a){return t.detailsClick(e.row,"edit")}}},[t._v("编辑")])],1):t._e(),t._v(" "),3!==e.row.contractStatus?r("span",[r("el-button",{attrs:{type:"text"},on:{click:function(a){return t.deleteClick(e.row)}}},[t._v("作废")])],1):t._e(),t._v(" "),3!==e.row.contractStatus?r("span",[r("el-button",{attrs:{disabled:2==e.row.status,type:"text"},on:{click:function(a){return t.confirm(e.row)}}},[t._v(t._s(2==e.row.status?"已确认":"确认"))])],1):t._e()]}}],null,!1,1220516217)})],1),t._v(" "),r("div",{staticClass:"paginations"},[r("el-pagination",{attrs:{background:"","current-page":t.query.pageNumber,"page-sizes":[10,20,30,50],"page-size":t.query.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.pageTotal},on:{"update:currentPage":function(e){return t.$set(t.query,"pageNumber",e)},"update:current-page":function(e){return t.$set(t.query,"pageNumber",e)},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1):t._e(),t._v(" "),t.viewInfo?r("div",{staticClass:"viewDetails"},[r("contractInfor",{ref:"contractInfor",attrs:{type:t.type},on:{goBack:t.goBack}})],1):t._e()])},o=[],n=a("1eb5"),i=n["a"],s=(a("f850"),a("c32f"),a("829d")),l=Object(s["a"])(i,r,o,!1,null,"6559df30",null);e["default"]=l.exports},c32f:function(t,e,a){"use strict";a("0eb7")},f807:function(t,e,a){"use strict";a("bc2e")},f850:function(t,e,a){"use strict";a("5766")}}]); |