(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/alldeatil/addacceptbind"],{"3a3b":function(t,e,n){"use strict";(function(t){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{number:"",supplierId:"",id:"",range1:[],range2:[],acceptor:"",seacept:"",acceptorName:"",name:"",acceptorIds:[],form:{name:"",supplierId:"",contractDrafts:[{acceptorName:"",acceptor:""}]}}},onLoad:function(t){n=this,t.id&&(this.number=t.id)},onShow:function(){this.getAcceptors()},methods:{searchAcceptor:function(e){var n=this;if(""!=e){var a=e;t.showLoading(),t.$u.http.get("/api/Acceptor/search?name=".concat(a)).then((function(e){t.hideLoading(),n.range1=e.result,console.log(n.range1),n.range1.forEach((function(t,e){n.range1[e].value=e,n.range1[e].text=t.name}))}))}else this.getAcceptors()},changeacPerson:function(t){var e={acceptorName:this.range1[t].name,id:this.range1[t].id};this.range2.push(e),console.log(this.range2)},getAcceptors:function(){var e=this;t.showLoading(),t.$u.http.get("/api/Acceptor/search?pageSize=-1&status=5").then((function(n){t.hideLoading(),e.range1=n.result,console.log(e.range1),e.range1.forEach((function(t,n){e.range1[n].value=n,e.range1[n].text=t.name}))}))},checkacptIndex:function(t){console.log(t),this.acptIndex=t},deletData:function(t){this.range2.splice(t,1)},makeNewAcept:function(){var e=this;0!=this.range2.length?(this.range2.forEach((function(t){e.acceptorIds.push(t.id)})),t.showLoading(),t.$u.http.post("/api/SupplierAcceptor",{supplierId:this.number,acceptorIds:this.acceptorIds},{custom:{auth:!0}}).then((function(e){t.hideLoading(),n.$toast("提交成功"),setTimeout((function(){t.navigateBack({delta:1})}),500)})).catch((function(e){t.hideLoading(),n.$toast(e.msg)}))):n.$toast("请输入承兑人名称")}}};e.default=a}).call(this,n("543d")["default"])},"70fe":function(t,e,n){},"7f86":function(t,e,n){"use strict";var a=n("70fe"),c=n.n(a);c.a},b9f4:function(t,e,n){"use strict";n.r(e);var a=n("ba4d"),c=n("c274");for(var o in c)"default"!==o&&function(t){n.d(e,t,(function(){return c[t]}))}(o);n("7f86");var r,i=n("f0c5"),u=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,"6b807014",null,!1,a["a"],r);e["default"]=u.exports},ba4d:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniDataSelect:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(n.bind(null,"a7ba"))}},c=function(){var t=this,e=t.$createElement;t._self._c},o=[]},c274:function(t,e,n){"use strict";n.r(e);var a=n("3a3b"),c=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=c.a},c444:function(t,e,n){"use strict";(function(t){n("0a4c");a(n("66fd"));var e=a(n("b9f4"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["c444","common/runtime","common/vendor"]]]);