(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/alldeatil/contractdetail"],{1096:function(t,e,n){"use strict";n.r(e);var i=n("ec2c"),a=n("c3bc");for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("c591");var o,s=n("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=r.exports},4951:function(t,e,n){},"6b11":function(t,e,n){"use strict";(function(t){n("0a4c");i(n("66fd"));var e=i(n("1096"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},c3bc:function(t,e,n){"use strict";n.r(e);var i=n("fa2d"),a=n.n(i);for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},c591:function(t,e,n){"use strict";var i=n("4951"),a=n.n(i);a.a},ec2c:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return i}));var i={uUpload:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-upload/u-upload")]).then(n.bind(null,"d82d"))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,"9b93"))}},a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.editall=!0})},c=[]},fa2d:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,a=o(n("a34a")),c=n("a282");function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e0?e.feedback=n.feedback:e.feedback="无":n.feedback.length>0?e.feedback=n.feedback:e.placehodertitle="请输入审核反馈"})).catch((function(e){t.hideLoading(),console.log(e)}))},openEidt:function(){this.editall=!0},checkBox:function(t){var e=this.msg.contractDraft.result;e.forEach((function(e){e.id==t&&(e.checked=!e.checked)})),this.msg.contractDraft.result=JSON.parse(JSON.stringify(e))},allSelect:function(){var t=this.msg.contractDraft.result;this.quan?t.forEach((function(t){t.checked=!0})):t.forEach((function(t){t.checked=!1})),this.msg.contractDraft.result=JSON.parse(JSON.stringify(t))},acpDetail:function(){t.navigateTo({url:"/pages/alldeatil/acptdetail"})},addBill:function(){var e={contractId:this.id};t.navigateTo({url:"/pages/alldeatil/addbill?obj="+JSON.stringify(e)})},billDetail:function(e,n){var i={id:e,index:n,contractId:this.id,statusText:this.msg.statusText};t.navigateTo({url:"/pages/alldeatil/billdetail?obj="+JSON.stringify(i)})},makeSureAll:function(){this.quan=!this.quan,this.allSelect()},selectDown:function(){this.editall=!1,this.quan=!0;var t=this.msg.contractDraft.result;t.forEach((function(t){t.checked=!1}))},tryAgain:function(){var e=this.msg;t.navigateTo({url:"/pages/alldeatil/upcontract?obj="+JSON.stringify(e)})},examineSuccess:function(){t.showModal({title:"提示",content:"是否审核成功?",success:function(e){if(e.confirm){var n={id:Number(i.id),approveStatus:1};if(i.fileList4.length>0){var a=[];i.fileList4.forEach((function(t){a.push(t.url)})),n.feedbackPicList=a}var c=i.feedback;c.length>0&&(n.feedback=c),t.showLoading(),t.$u.http.post("api/Contract/approveContract",n,{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))}else e.cancel}})},examineFail:function(){t.showModal({title:"提示",content:"是否审核失败?",success:function(e){if(e.confirm){var n={id:Number(i.id),approveStatus:2};if(i.fileList4.length>0){var a=[];i.fileList4.forEach((function(t){a.push(t.url)})),n.feedbackPicList=a}var c=i.feedback;c.length>0&&(n.feedback=c),t.showLoading(),t.$u.http.post("api/Contract/approveContract",n,{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))}else e.cancel}})},examineBillSuccess:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否批量审核成功?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:3},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel}}):i.$toast("请选择汇票")},examineBillFail:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否审核失败?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:4},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel&&console.log("用户点击取消")}}):this.$toast("请选择汇票")},dele:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否删除汇票?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:1},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel}}):i.$toast("请选择汇票")},restore:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否复原汇票?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:2},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel}}):i.$toast("请选择汇票")},deleContract:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否删除汇票?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:1},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel}}):i.$toast("请选择汇票")},restoreContract:function(){var e=[];this.msg.contractDraft.result.forEach((function(t){t.checked&&e.push(t.id)})),0!=e.length?t.showModal({title:"提示",content:"是否复原汇票?",success:function(n){n.confirm?(t.showLoading(),t.$u.http.post("/api/Contract/contractDraft/manager",{ids:e,operateType:2},{custom:{auth:!0}}).then((function(e){t.hideLoading(),i.editall=!1,i.quan=!1,i.$toast("操作成功"),setTimeout((function(){i.init()}),500)})).catch((function(e){t.hideLoading(),i.$toast(e.msg)}))):n.cancel}}):i.$toast("请选择汇票")},deletePic:function(t){this["fileList".concat(t.name)].splice(t.index,1)},afterRead:function(t){var e=this;return f(a.default.mark((function n(){var i,c,o,s,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=[].concat(t.file),c=e["fileList".concat(t.name)].length,i.map((function(n){e["fileList".concat(t.name)].push(r(r({},n),{},{status:"uploading",message:"上传中"}))})),o=0;case 4:if(!(o