acceptor.js 4.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/acceptor/acceptor"],{"3c17":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"a8c2"))},uPopup:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(e.bind(null,"326d"))}},i=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.show=!0},t.e1=function(n){t.editall=!0})},a=[]},"46ad":function(t,n,e){"use strict";var o=e("8f16"),i=e.n(o);i.a},"47d5":function(t,n,e){"use strict";e.r(n);var o=e("3c17"),i=e("4d41");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("46ad");var c,l=e("f0c5"),s=Object(l["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=s.exports},"4d41":function(t,n,e){"use strict";e.r(n);var o=e("5c95"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"5c95":function(t,n,e){"use strict";(function(t){var o;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(){e.e("componet/tabbar/tabbar").then(function(){return resolve(e("378a"))}.bind(null,e)).catch(e.oe)},a={components:{tabar:i},data:function(){return{keywords:"",editall:!1,quan:!1,show:!1,contract_status:0,listall:[],pageIndex:1,total:"",nomore:!1,statusall:0,ctrstatus:[{title:"承兑人状态",list:[{name:"全部"},{name:"正常"},{name:"已删除"}]}]}},onLoad:function(){o=this},onShow:function(){o.pageIndex=1,o.nomore=!1,o.listall=[],this.init()},onReachBottom:function(){this.listall.length>=10*this.pageIndex?(this.pageIndex++,this.init()):this.nomore=!0},methods:{init:function(){var n=this;t.showLoading(),t.$u.http.post("/api/Acceptor/search",{pageIndex:this.pageIndex,pageSize:10,name:this.keywords,status:this.statusall},{custom:{auth:!0}}).then((function(e){t.hideLoading(),n.total=e.total;var i=e.result;i.length>0&&(i.forEach((function(t){t.checked=!1,n.listall.push(t)})),i.length<10&&(o.nomore=!0))})).catch((function(n){t.hideLoading(),console.log(n)}))},close:function(){this.show=!1},open:function(){},changeSeach:function(t){this.keywords=t.detail.value,o.pageIndex=1,o.nomore=!1,o.listall=[],this.init()},makeSureSelect:function(){o.pageIndex=1,o.nomore=!1,o.listall=[],this.init(),this.close()},restoreALL:function(){this.contract_status=0},choose:function(t,n){"承兑人状态"==t&&(this.contract_status=n,2==n?this.statusall=4:1==n?this.statusall=5:0==n&&(this.statusall=0))},selectDown:function(){this.editall=!1,this.quan=!1;var t=this.listall;t.forEach((function(t){t.checked=!1}))},checkBox:function(t){var n=this.listall;n.forEach((function(n){n.id==t&&(n.checked=!n.checked)})),this.listall=JSON.parse(JSON.stringify(n))},allSelect:function(){var t=this.listall;this.quan?t.forEach((function(t){t.checked=!0})):t.forEach((function(t){t.checked=!1})),this.listall=JSON.parse(JSON.stringify(t))},makeSureAll:function(){this.quan=!this.quan,this.allSelect()},closeEidt:function(){this.editall=!1},openEidt:function(){this.editall=!0},acpDetail:function(n){t.navigateTo({url:"/pages/alldeatil/acptdetail?id="+n})},addAcceptor:function(){t.navigateTo({url:"/pages/alldeatil/addnewacpt"})},deleteAcceptor:function(){var n=[];o.listall.forEach((function(t){t.checked&&n.push(t.id)})),0!=n.length?t.showModal({title:"提示",content:"是否批量删除?",success:function(e){e.confirm?(t.showLoading(),t.$u.http.post("/api/Acceptor/manager",{ids:n,operateType:1},{custom:{auth:!0}}).then((function(n){t.hideLoading(),o.editall=!1,o.quan=!1,o.$toast("操作成功"),setTimeout((function(){o.pageIndex=1,o.nomore=!1,o.listall=[],o.init()}),500)})).catch((function(n){t.hideLoading(),o.$toast(n.msg)}))):e.cancel}}):o.$toast("请选择合同")},backAcceptor:function(){var n=[];o.listall.forEach((function(t){t.checked&&n.push(t.id)})),0!=n.length?t.showModal({title:"提示",content:"是否批量复原?",success:function(e){e.confirm?(t.showLoading(),t.$u.http.post("/api/Acceptor/manager",{ids:n,operateType:2},{custom:{auth:!0}}).then((function(n){t.hideLoading(),o.editall=!1,o.quan=!1,o.$toast("操作成功"),setTimeout((function(){o.pageIndex=1,o.nomore=!1,o.listall=[],o.init()}),500)})).catch((function(n){t.hideLoading(),o.$toast(n.msg)}))):e.cancel}}):o.$toast("请选择合同")}}};n.default=a}).call(this,e("543d")["default"])},8182:function(t,n,e){"use strict";(function(t){e("5413");o(e("66fd"));var n=o(e("47d5"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},"8f16":function(t,n,e){}},[["8182","common/runtime","common/vendor"]]]);