12 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageIndex/contractDetail/contractDetail"],{344:function(n,e,t){"use strict";(function(n,e){var i=t(4);t(26);i(t(25));var o=i(t(345));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},345:function(n,e,t){"use strict";t.r(e);var i=t(346),o=t(348);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);t(350);var c,r=t(32),u=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);u.options.__file="pageIndex/contractDetail/contractDetail.vue",e["default"]=u.exports},346:function(n,e,t){"use strict";t.r(e);var i=t(347);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},347:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return a})),t.d(e,"components",(function(){return i}));try{i={uvSticky:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(t.bind(null,678))},uvTabs:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uv-tabs/components/uv-tabs/uv-tabs")]).then(t.bind(null,686))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,463))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.detail.id&&1===n.tab.id&&n.detail.data&&"[]"!=n.detail.data?JSON.parse(n.detail.data):null),i=n.detail.id&&2===n.tab.id?n.__map(n.detail.clauseList,(function(e,t){var i=n.__get_orig(e),o=n.clauseList.find((function(n){return n.id===e.type})),a=n.clauseList.find((function(n){return n.id===e.type})).size||26,c=n.clauseList.find((function(n){return n.id===e.type}));return{$orig:i,g0:o,g1:a,g2:c}})):null;n.$mp.data=Object.assign({},{$root:{l0:t,l1:i}})},a=!1,c=[];o._withStripped=!0},348:function(n,e,t){"use strict";t.r(e);var i=t(349),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);e["default"]=o.a},349:function(n,e,t){"use strict";var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(194),a=i(t(46)),c=function(){t.e("pageIndex/components/contract/clauseDetail").then(function(){return resolve(t(695))}.bind(null,t)).catch(t.oe)},r=function(){Promise.all([t.e("common/vendor"),t.e("components/common/upload")]).then(function(){return resolve(t(700))}.bind(null,t)).catch(t.oe)},u=function(){Promise.all([t.e("common/vendor"),t.e("components/contract/steps")]).then(function(){return resolve(t(706))}.bind(null,t)).catch(t.oe)},d={data:function(){return{list:[{id:1,name:"基本信息"},{id:2,name:"费用条款"},{id:3,name:"合同文本"},{id:4,name:"合同节点"}],tab:{id:1,name:"基本信息"},clauseList:[{id:1,name:"租期条款",iconfont:"icon-zulinguihuan_fu"},{id:2,name:"保证金条款",iconfont:"icon-baozhengjin",size:"22"},{id:3,name:"递增条款",iconfont:"icon-dengdaiwenjian"},{id:4,name:"优惠条款",iconfont:"icon-bianjiwenjian"}],detail:{},contractId:"",documentFileList:{document:[],attachment:[]}}},onLoad:function(n){n.contractId&&(this.contractId=n.contractId),this.init()},methods:{init:function(){var n=this;this.contractId&&(0,o.getContractDetailById)(this.contractId).then((function(e){200===e.code&&(n.detail=e.data,n.documentFileList={document:n.detail.document?JSON.parse(n.detail.document):[],attachment:n.detail.attachment?JSON.parse(n.detail.attachment):[]})}))},changeTab:function(n){this.tab=this.list[n.index]},openDocument:function(n){if(this.detail.status>1){var e=a.default.baseUrl+"/file/archived/"+n.id+"/pdf.pdf";this.$navigateTo("/pages/pdf/pdf?fileUrl="+e+"&titleName="+n.name)}else this.$navigateTo("/pages/webview/webview?id="+n.id+"&contractId="+this.detail.id)}},components:{clauseDetail:c,upload:r,steps:u}};e.default=d},350:function(n,e,t){"use strict";t.r(e);var i=t(351),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);e["default"]=o.a},351:function(n,e,t){}},[[344,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pageIndex/contractDetail/contractDetail.js.map
|