(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06396d20"],{"24d2":function(e,t,r){"use strict";r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return u})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return f})),r.d(t,"e",(function(){return s}));var n=r("b775");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(n["a"])({url:"/applicantInfo/getProjectsPage",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/applicantInfo/getProjectsInfo/".concat(e),method:"post",data:{}})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(n["a"])({url:"/nmgInsure/getProjectsPage",method:"post",data:i({isNonbid:"1"},e)})}function f(e){return Object(n["a"])({url:"/nmgInsure/getProjectsInfo/".concat(e),method:"post"})}function s(e){return Object(n["a"])({url:"/project/guaApplyGuranteetype/".concat(e),method:"get"})}},"568c":function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return f})),r.d(t,"c",(function(){return s}));var n=r("2b0e"),o=r("4360");function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return""===e||null===e||void 0===e}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(o["b"])(),r=Object(n["ref"])(null),i=Object(n["ref"])(null),c=Object(n["ref"])(a({},e)),l=Object(n["ref"])(null),f=Object(n["computed"])((function(){var e=t.getters.allDict["IF_MANUAL_PROJECT"]||[],r=e.length>0?e[0].dataCode.split(","):[],n=t.getters.allDict["tradeCenter"]||[];return n.map((function(e){return a(a({},e),{},{manualInput:r.includes(e.dataCode)})}))}));function s(e){return!l.value||!u(l.value[e])}function p(){Object(n["nextTick"])((function(){r.value.clearValidate()}))}function d(){c.value=a({},e)}function h(){i.value.open()}function v(e){l.value=e,l.value.bidFileNo=e.prjCode,d(),b(e),p()}var y=function(){return c.value},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={bidFileNo:"prjCode"};Object.keys(c.value).forEach((function(r){var n=t.hasOwnProperty(r)?t[r]:r;e.hasOwnProperty(n)&&!u(e[r])&&(c.value[r]=e[n])}))};return{formRef:r,form:c,projectRef:i,selectedProject:l,tradeCenterOptions:f,isDisableByProject:s,handleProjectDialogOpen:h,handleProjectSelected:v,getValues:y,setValues:b}}function f(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"1"===e&&(t.find((function(e){return"mailPaperOriginal"===e.prop})).hidden=!1)}return{mailGuarantee:e}}function s(){var e=Object(o["b"])(),t=Object(n["ref"])(null),r=Object(n["ref"])({invoiceType:"1"}),i=Object(n["ref"])([{title:"发票信息",fields:[{prop:"invoiceType",label:"发票类型",type:"slot",span:24},{prop:"buyerBank",label:"纳税人银行",type:"input",required:!0,hidden:!0,attrs:{maxlength:50}},{prop:"buyerBankAccount",label:"纳税人银行账号",type:"bank-input",required:!0,hidden:!0},{prop:"buyerPhone",label:"纳税人电话",type:"phone",required:!0,hidden:!0},{prop:"buyerAddress",label:"纳税人地址",type:"input",required:!0,hidden:!0,attrs:{maxlength:50}},{prop:"invoiceMailAddress",label:"专票邮寄地址",type:"input",required:!0,hidden:!0,attrs:{maxlength:50}}]}]),a=Object(n["computed"])((function(){var t=e.getters.userInfo;return t.enterpriseName})),c=Object(n["computed"])((function(){var t=e.getters.userInfo;return t.enterpriseCreditCode}));function u(e){var t="1"===e;i.value[0].fields.find((function(e){return"buyerBank"===e.prop})).hidden=t,i.value[0].fields.find((function(e){return"buyerBankAccount"===e.prop})).hidden=t,i.value[0].fields.find((function(e){return"buyerPhone"===e.prop})).hidden=t,i.value[0].fields.find((function(e){return"buyerAddress"===e.prop})).hidden=t,i.value[0].fields.find((function(e){return"invoiceMailAddress"===e.prop})).hidden=t}function l(){var e=t.value.getForm(),r=e.invoiceType;return"1"===r?{invoiceType:r}:{invoiceType:r,buyerBank:e.buyerBank,buyerBankAccount:e.buyerBankAccount,buyerPhone:e.buyerPhone,buyerAddress:e.buyerAddress,mailAddress:e.invoiceMailAddress}}return{invoiceFormRef:t,invoiceForm:r,invoiceOptions:i,enterpriseName:a,enterpriseCreditCode:c,handleInvoiceTypeChange:u,getInvoiceData:l}}},5836:function(e,t,r){"use strict";r.d(t,"b",(function(){return O})),r.d(t,"a",(function(){return j})),r.d(t,"c",(function(){return w}));r("0fb7"),r("450d");var n=r("f529"),o=r.n(n),i=r("2b0e"),a=r("4360"),c=r("5a0c"),u=r.n(c),l=r("3fa5"),f=r("eaf7"),s=r("24d2");function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(S){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof s?t:s,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=w(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=u;var f={};function s(){}function h(){}function v(){}var y={};c(y,o,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(k([])));g&&g!==t&&r.call(g,o)&&(y=g);var m=v.prototype=s.prototype=Object.create(y);function O(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,i,a,c){var u=l(e[o],e,i);if("throw"!==u.type){var f=u.arg,s=f.value;return s&&"object"==p(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(s).then((function(e){f.value=e,a(f)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=v,c(m,"constructor",v),c(v,"constructor",h),h.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},O(j.prototype),c(j.prototype,i,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(m),c(m,a,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,c,"next",e)}function c(e){b(i,n,o,a,c,"throw",e)}a(void 0)}))}}function m(e){return!!e&&u()(e).isBefore(u()())}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bxApplyEndtime",t=Object(f["a"])(),r=t.center,n=Object(i["ref"])(""),o=Object(i["ref"])(!1),a=Object(i["reactive"])({pageNum:1,pageSize:10,total:0}),c=Object(i["ref"])([]),u=function(){var t=g(d().mark((function t(){var i,u;return d().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i={prjName:n.value,pageNum:a.pageNum,pageSize:a.pageSize,prjTradeCenter:r.value},t.prev=1,o.value=!0,t.next=5,Object(s["d"])(i);case 5:u=t.sent,c.value=u.data.list.map((function(t){return v(v({},t),{},{isBeforeNow:m(t[e])})})).sort((function(e,t){return e.isEndBuy&&!t.isEndBuy?1:!e.isEndBuy&&t.isEndBuy?-1:0})),a.total=u.data.total,t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](1),c.value=[],a.total=0;case 14:return t.prev=14,o.value=!1,t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,10,14,17]])})));return function(){return t.apply(this,arguments)}}();return{loading:o,searchKeyWord:n,page:a,tableData:c,getData:u}}function j(e,t,r){var n=Object(f["a"])(),i=n.center,a=function(){var n=g(d().mark((function n(i){var a,c,u,f,p;return d().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!i.isBeforeNow){n.next=3;break}return o.a.warning("当前已超过该项目的保函购买截止时间，无法购买。"),n.abrupt("return");case 3:if(!r||!["guoren","continent"].includes(r)){n.next=18;break}return n.next=6,Object(s["e"])(i.prjId);case 6:if(u=n.sent,"2"!==(null===u||void 0===u||null===(a=u.data)||void 0===a?void 0:a.opertype)){n.next=12;break}return Object(l["b"])(null===u||void 0===u?void 0:u.data.content,"提示",{confirmButtonText:"确定",showCancelButton:!1,overlayClass:"vant-zindex-height",className:"vant-zindex-height"}),n.abrupt("return");case 12:if("3"!==(null===u||void 0===u||null===(c=u.data)||void 0===c?void 0:c.opertype)){n.next=18;break}return n.next=15,Object(l["b"])(null===u||void 0===u?void 0:u.data.content,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",overlayClass:"vant-zindex-height",className:"vant-zindex-height"});case 15:if(f=n.sent,"cancel"!==f.action){n.next=18;break}return n.abrupt("return");case 18:if("haumei"!==r||i.guaranteeType&&i.guaranteeType.includes("32")){n.next=21;break}return o.a.warning("该项目不支持担保保函，请重新挑选项目。"),n.abrupt("return");case 21:return n.prev=21,n.next=24,Object(s["c"])(i.prjId);case 24:p=n.sent,e("selected",p.data),t&&t(),n.next=31;break;case 29:n.prev=29,n.t0=n["catch"](21);case 31:case"end":return n.stop()}}),n,null,[[21,29]])})));return function(e){return n.apply(this,arguments)}}(),c=function(){e("selected",{prjTradeCenter:"0"===i.value?"":i.value}),t&&t()};return{handleSelect:a,handleEmptySelect:c}}function w(){var e=Object(a["b"])(),t=Object(f["a"])(),r=t.center,n=Object(i["computed"])((function(){var t=e.getters.allDict["IF_MANUAL_PROJECT"]||[],n=t.length>0?t[0].dataCode.split(","):[];return n.includes(r.value)}));return{manualInput:n}}}}]);