NotRun.js.map 15 KB

1
  1. {"version":3,"sources":["webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?ea07","webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?ecd1","webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?5a69","webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?5960","uni-app:///pages/production/NotRun.vue","webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?e460","webpack:///D:/company/RedDragonfly/pages/production/NotRun.vue?7ba6"],"names":["data","onLoad","created","uni","title","accessToken","account","res","methods","goBack","url","getTime","month","day","getJob"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AACgN;AAChN,gBAAgB,0NAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,gQAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAo0B,CAAgB,i1BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;ACkDx1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA;EACAA;IACA;MACAA;IACA;EACA;EACAC,2BAEA;EACAC;IAAA;IAAA;MAAA;MAAA;QAAA;UAAA;YAAA;cACAC;gBACAC;cACA;cAAA;cAAA,OACA;gBACA;gBACAC;gBACAC;cACA;YAAA;cAJAC;cAKAJ;cACA;gBAAA;cAAA;YAAA;YAAA;cAAA;UAAA;QAAA;MAAA;IAAA;EACA;EACAK;IACAC;MACAN;QACAO;MACA;IACA;IACA;IACAC;MAAA;MACA;MACA;MACA;MACA;MACA;MACA;MACAC;MACAC;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACxGA;AAAA;AAAA;AAAA;AAAmiD,CAAgB,o/CAAG,EAAC,C;;;;;;;;;;;ACAvjD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/production/NotRun.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./NotRun.vue?vue&type=template&id=2a330ac5&\"\nvar renderjs\nimport script from \"./NotRun.vue?vue&type=script&lang=js&\"\nexport * from \"./NotRun.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NotRun.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/production/NotRun.vue\"\nexport default component.exports","export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NotRun.vue?vue&type=template&id=2a330ac5&\"","var components\ntry {\n components = {\n uniBadge: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uni-badge/components/uni-badge/uni-badge\" */ \"@/uni_modules/uni-badge/components/uni-badge/uni-badge.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.data, function (v, i) {\n var $orig = _vm.__get_orig(v)\n var m0 = _vm.getTime(v.startTime)\n var m1 = v.endTime ? _vm.getTime(v.endTime) : null\n var m2 = _vm.getJob(v.endTime, v.startTime)\n return {\n $orig: $orig,\n m0: m0,\n m1: m1,\n m2: m2,\n }\n })\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NotRun.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NotRun.vue?vue&type=script&lang=js&\"","<template>\n<view class=\"not-run\">\n\t\t<view class=\"card\" v-for=\"(v , i) in data\" :key=\"i\">\r\n\t\t\t<uni-badge class=\"uni-badge-left-margin\" :text=\"i+1\" />\r\n\t\t\t<view class=\"text service\">\r\n\t\t\t\t<text>产线名称</text>\r\n\t\t\t\t<text class=\"content\">{{v.name}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次生产油品</text>\r\n\t\t\t\t<text class=\"content product\">{{v.typeName}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次产线负责人</text>\r\n\t\t\t\t<text class=\"content\">{{v.charger}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次作业工人</text>\r\n\t\t\t\t<text class=\"content\">{{v.member}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次开始时间</text>\r\n\t\t\t\t<text class=\"content\">{{getTime(v.startTime)}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次结束时间</text>\r\n\t\t\t\t<text class=\"content\">{{v.endTime ? getTime(v.endTime) : '未结束'}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次作业时长</text>\r\n\t\t\t\t<text class=\"content\">{{getJob(v.endTime,v.startTime)}}</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>上班次产量</text>\r\n\t\t\t\t<view class=\"yield\">\r\n\t\t\t\t\t\t<text class=\"content quantity\">{{v.number}}箱</text>\r\n\t\t\t\t\t\t<button class=\"mini-btn\" type=\"warn\" size=\"mini\" @click=\"goBack(v.name)\">历史记录</button>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"text\">\r\n\t\t\t\t<text>状态</text>\r\n\t\t\t\t<view class=\"state\">\r\n\t\t\t\t<button class=\"mini-btn\" size=\"mini\">{{v.status == 0 ? '正在生产' : v.status == 1 ? '停止生产' : '暂停生产,整型'}}</button>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\n\t</view>\n</template>\n\n<script>\r\n\timport { production } from '../../api/production.js'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdata: ''\n\t\t\t};\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\t\r\n\t\t},\r\n\t\tasync created() {\r\n\t\t\tuni.showLoading({\r\n\t\t\t\ttitle: '加载中'\r\n\t\t\t});\r\n\t\t\tconst res = await production({\r\n\t\t\t\t// name: '' // 不传参加载全部\r\n\t\t\t\taccessToken: uni.getStorageSync('tokenInfo'),\r\n\t\t\t\taccount: uni.getStorageSync('account')\r\n\t\t\t})\r\n\t\t\tuni.hideLoading();\r\n\t\t\tthis.data = res.data.list.filter(v => v.status !== 0)\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tgoBack(name){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t url: '/pages/production/history?name='+ name\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t// 获取时间\r\n\t\t\tgetTime(time = new Date()) {\r\n\t\t\t\tlet date = new Date(time);\r\n\t\t\t\tlet\tyear = date.getFullYear();\r\n\t\t\t\tlet\tmonth = date.getMonth() + 1;\r\n\t\t\t\tlet\tday = date.getDate();\r\n\t\t\t\tlet hour = date.getHours() < 10 ? \"0\" + date.getHours() : date.getHours()\r\n\t\t\t\tlet minute = date.getMinutes() < 10 ? \"0\" + date.getMinutes() : date.getMinutes()\r\n\t\t\t\t\tmonth >= 1 && month <= 9 ? (month = \"0\" + month) : \"\";\r\n\t\t\t\t\tday >= 0 && day <= 9 ? (day = \"0\" + day) : \"\";\r\n\t\t\t\tlet timer = year + '-' + month + '-' + day + ' ' + hour + ':'+ minute;\r\n\t\t\t\treturn timer;\r\n\t\t\t},\r\n\t\t\t// 作业时间\r\n\t\t\tgetJob(endTime,startTime){\r\n\t\t\t\t\tlet EndTIME = endTime ? new Date(endTime).getTime() : new Date().getTime(); // 截止时间\r\n\t\t\t\t let NowTime = new Date(startTime).getTime(); // 开始时间\r\n\t\t\t\t let usedTime = EndTIME - NowTime; // 相差的毫秒数\r\n\t\t\t\t let days = Math.floor(usedTime / (24 * 3600 * 1000)); // 计算出天数\r\n\t\t\t\t let leavel = usedTime % (24 * 3600 * 1000); // 计算天数后剩余的时间\r\n\t\t\t\t let hours = Math.floor(leavel / (3600 * 1000)); // 计算剩余的小时数\r\n\t\t\t\t let leavel2 = leavel % (3600 * 1000); // 计算剩余小时后剩余的毫秒数\r\n\t\t\t\t let minutes = Math.floor(leavel2 / (60 * 1000)); // 计算剩余的分钟数\r\n\t\t\t\t return days + '天' + hours + '小时' + minutes + '分钟';\r\n\t\t\t}\r\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\">\n.not-run{\r\n\tpadding: 0 20rpx;\r\n\t.card{\r\n\t\tpadding-top: 10rpx;\r\n\t\tborder-bottom: 15rpx solid #ebebeb;\r\n\t\t.text{\r\n\t\t\tpadding: 25rpx 0;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tborder-bottom: 1px solid #d9d9d9;\r\n\t\t\t&.service{\r\n\t\t\t\tpadding-top: 0;\r\n\t\t\t}\r\n\t\t\t&:last-child{\r\n\t\t\t\tborder-bottom: 0;\r\n\t\t\t}\r\n\t\t\t.content{\r\n\t\t\t\tcolor: #737373;\r\n\t\t\t}\r\n\t\t\t.product{\r\n\t\t\t\tcolor: #2d76c9;\r\n\t\t\t\twidth: 50%;\r\n\t\t\t\ttext-align: right;\r\n\t\t\t}\r\n\t\t\t.quantity{\r\n\t\t\t\tcolor: #e40315;\r\n\t\t\t}\r\n\t\t\t.yield{\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\t.mini-btn{\r\n\t\t\t\t\tmargin-left: 20rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.state{\r\n\t\t\t\t.mini-btn{\r\n\t\t\t\t\tbackground-color: #e56482;\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\n</style>\n","import mod from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NotRun.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NotRun.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1693280596619\n var cssReload = require(\"D:/Install the package/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}