lanan-old/detection-user/unpackage/dist/build/mp-weixin/pages/detection/ordermanage.js
愉快的大福 7dc28dc701 init
2024-07-17 14:16:22 +08:00

1 line
4.0 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/detection/ordermanage"],{4488:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"a086"))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"1f11"))},tabBar:function(){return n.e("components/tabBar/tabBar").then(n.bind(null,"f8e0"))}},o=function(){var e=this.$createElement;this._self._c},i=[]},"70ab":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("2eee")),i=a(n("c973")),r=(a(n("4cb2")),a(n("46fb"))),u=n("ebb9"),c={data:function(){return{baseUrl:this.$baseUrl,imgurl:this.$imgeUrl,infoDatas:[],partnerId:e.getStorageSync("partnerId"),goodsTitle:"",gfFlag:!1,tapindex:0,msg:"2",carNum:"",pageNum:1,pageSize:20,totalPages:0,tapList:[{text:"进行中",value:"0"},{text:"已完成",value:"1"}]}},onShow:function(){this.getList()},onReachBottom:function(){console.log("分页"),this.pageNum>=this.totalPages?e.showToast({title:"没有下一页数据",icon:"none"}):(this.pageNum++,console.log(222),this.getList())},components:{tabBar:function(){n.e("components/detection/tabBar").then(function(){return resolve(n("1614"))}.bind(null,n)).catch(n.oe)}},methods:{search:function(){this.infoDatas=[],this.getList()},callUser:function(t){e.makePhoneCall({phoneNumber:t})},getfan:function(){e.navigateBack()},godetails:function(t){console.log("111"),e.navigateTo({url:"/pages/detection/orderdetais?inspectionInfoId="+t})},tapqh:function(e){this.tapindex=e,this.infoDatas=[],this.getList()},getList:function(){var t=this;return(0,i.default)(o.default.mark((function n(){var a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if((0,u.getToken)()){n.next=2;break}return n.abrupt("return");case 2:a=e.getStorageSync("role"),t.gfFlag=!1,a&&a.forEach((function(e){"jcgf"==e&&(t.gfFlag=!0)})),t.gfFlag?t.ntwo():t.none();case 6:case"end":return n.stop()}}),n)})))()},none:function(){var e=this;return(0,i.default)(o.default.mark((function t(){var n,a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.default)({url:"/appInspection/order/inspectionList",method:"get",params:{status:e.tapindex,carNum:e.carNum,pageSize:e.pageSize,pageNum:e.pageNum}});case 2:n=t.sent,1!=e.pageNum?e.infoDatas=e.infoDatas.concat(n.rows):e.infoDatas=n.rows,a=n.total,e.totalPages=Math.ceil(a/e.pageSize);case 6:case"end":return t.stop()}}),t)})))()},ntwo:function(){var e=this;return(0,i.default)(o.default.mark((function t(){var n,a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,r.default)({url:"/appInspection/order/governmentInspectionList",method:"get",params:{status:e.tapindex,carNum:e.carNum,pageSize:e.pageSize,pageNum:e.pageNum}});case 2:n=t.sent,1!=e.pageNum?e.infoDatas=e.infoDatas.concat(n.rows):e.infoDatas=n.rows,a=n.total,e.totalPages=Math.ceil(a/e.pageSize);case 6:case"end":return t.stop()}}),t)})))()}}};t.default=c}).call(this,n("543d")["default"])},a4e1:function(e,t,n){"use strict";n.r(t);var a=n("4488"),o=n("e816");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("fc06");var r=n("f0c5"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"524c4978",null,!1,a["a"],void 0);t["default"]=u.exports},b289:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("fbc1");a(n("66fd"));var o=a(n("a4e1"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},e450:function(e,t,n){},e816:function(e,t,n){"use strict";n.r(t);var a=n("70ab"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},fc06:function(e,t,n){"use strict";var a=n("e450"),o=n.n(a);o.a}},[["b289","common/runtime","common/vendor"]]]);