supplierdetail.js 4.4 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/alldeatil/supplierdetail"],{2100:function(n,t,o){"use strict";var e=o("d8e6"),i=o.n(e);i.a},"7c9c":function(n,t,o){"use strict";(function(n){var o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{form:{},pwd:{password:""},show:!1}},onLoad:function(n){o=this,n.id&&(this.id=n.id),this.init()},methods:{close:function(){this.show=!1},open:function(){this.show=!0},tryAgain:function(){},init:function(){var t=this;n.showLoading(),n.$u.http.get("/api/Supplier/".concat(this.id),{custom:{auth:!0}}).then((function(o){n.hideLoading(),t.form=o})).catch((function(t){n.hideLoading(),console.log(t)}))},prviewPic:function(t){var o=[];o.push(t),n.previewImage({urls:o})},makeSurePwd:function(){var t=this;n.showLoading();var o={password:this.pwd.password,supplierId:this.form.id};n.$u.http.post("/api/Account/password/resetSupplier",o,{custom:{auth:!0}}).then((function(o){n.hideLoading(),t.$toast("重置成功"),t.show=!1})).catch((function(o){console.log(o),n.hideLoading(),t.$toast(o.msg)}))},resert:function(){var t=[];t.push(this.id),n.showModal({title:"提示",content:"是否认复原?",success:function(e){e.confirm?(n.showLoading(),n.$u.http.post("/api/Supplier/manage",{ids:t,operateType:2},{custom:{auth:!0}}).then((function(t){n.hideLoading(),o.$toast("操作成功"),setTimeout((function(){o.init()}),500)})).catch((function(t){n.hideLoading(),o.$toast(t.msg)}))):e.cancel}})},forbidden:function(){var t=[];t.push(this.id),n.showModal({title:"提示",content:"是否认禁用?",success:function(e){e.confirm?(n.showLoading(),n.$u.http.post("/api/Supplier/manage",{ids:t,operateType:1},{custom:{auth:!0}}).then((function(t){n.hideLoading(),o.$toast("操作成功"),setTimeout((function(){o.init()}),500)})).catch((function(t){n.hideLoading(),o.$toast(t.msg)}))):e.cancel}})},examineSuccess:function(){var t=[];t.push(this.id),n.showModal({title:"提示",content:"是否认证成功?",success:function(e){e.confirm?(n.showLoading(),n.$u.http.post("/api/Supplier/manage",{ids:t,operateType:3},{custom:{auth:!0}}).then((function(t){n.hideLoading(),o.$toast("操作成功"),setTimeout((function(){o.init()}),500)})).catch((function(t){n.hideLoading(),o.$toast(t.msg)}))):e.cancel}})},examineFail:function(){var t=[];t.push(this.id),n.showModal({title:"提示",content:"是否认证失败?",success:function(e){e.confirm?(n.showLoading(),n.$u.http.post("/api/Supplier/manage",{ids:t,operateType:4},{custom:{auth:!0}}).then((function(t){n.hideLoading(),o.$toast("操作成功"),setTimeout((function(){o.init()}),500)})).catch((function(t){n.hideLoading(),o.$toast(t.msg)}))):e.cancel}})}}};t.default=e}).call(this,o("543d")["default"])},"8de4":function(n,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return u})),o.d(t,"a",(function(){return e}));var e={uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,"2acb"))},uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,"9b93"))},"u-Form":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--form/u--form")]).then(o.bind(null,"0030"))},uFormItem:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(o.bind(null,"3702"))},"u-Input":function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u--input/u--input")]).then(o.bind(null,"c1cf"))}},i=function(){var n=this,t=n.$createElement;n._self._c;n._isMounted||(n.e0=function(t){n.show=!0})},u=[]},a5ef:function(n,t,o){"use strict";o.r(t);var e=o("7c9c"),i=o.n(e);for(var u in e)"default"!==u&&function(n){o.d(t,n,(function(){return e[n]}))}(u);t["default"]=i.a},d8e6:function(n,t,o){},ec3b:function(n,t,o){"use strict";(function(n){o("0a4c");e(o("66fd"));var t=e(o("f41c"));function e(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=o,n(t.default)}).call(this,o("543d")["createPage"])},f41c:function(n,t,o){"use strict";o.r(t);var e=o("8de4"),i=o("a5ef");for(var u in i)"default"!==u&&function(n){o.d(t,n,(function(){return i[n]}))}(u);o("2100");var c,a=o("f0c5"),s=Object(a["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],c);t["default"]=s.exports}},[["ec3b","common/runtime","common/vendor"]]]);