source-mySource-mySource.d86b02c5.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["source-mySource-mySource"],{"0b86":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){return o}));var o={uEmpty:e("4991").default},a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"page"},[t.info.id?[e("div",{staticClass:"info-head"},[e("div",{staticClass:"flex"},[e("v-uni-view",{staticClass:"font-w-600 u-font-30 flex-w-1 u-m-r-20 u-line-3"},[t._v(t._s(t.info.product_name)+","+t._s(t.info.batch_name)+"/"+t._s(t.info.batch_number))]),e("v-uni-view",{staticClass:"color-999 u-font-24",staticStyle:{"line-height":"40rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.get_historyPlus.apply(void 0,arguments)}}},[t._v("历史记录"),e("v-uni-text",{staticClass:"iconfont icon-arrow-right u-font-20"})],1)],1),e("div",{staticClass:"flex u-font-24 u-m-t-20 u-m-b-10 color-999"},[t._v("当前流程:"),e("v-uni-text",{staticClass:"font-w-600 color-333 u-m-r-24"},[t._v(t._s(t.info.product_batch_current_count+1)+"/"+t._s(t.info.product_batch_list[t.info.product_batch_current_count].process_name))]),t._v("溯源流程:"),e("v-uni-text",{staticClass:"font-w-600 color-333"},[t._v(t._s(t.info.product_batch_total_count))])],1),e("div",{staticClass:"flex u-font-24"},[t._v("我的任务:"),e("v-uni-text",{staticClass:"font-w-600 color-333"},[t._v(t._s(t.info.process_name))])],1),e("v-uni-scroll-view",{staticClass:"u-m-t-30 scroll-x",attrs:{"scroll-x":!0}},[e("div",{staticClass:"list"},t._l(t.info.product_batch_list,(function(i,o){return e("div",{key:o,class:["item",o<t.info.product_batch_current_count&&"active",t.info.product_batch_also_count+t.info.product_batch_current_count==o&&"my-active"]},[e("div",{staticClass:"text-box u-p-t-20"},[t._v(t._s(i.process_name))]),t.info.product_batch_also_count+t.info.product_batch_current_count==o?e("div",{staticClass:"iconfont icon-map-filling1"}):t._e(),e("div",{staticClass:"jiantou"})])})),0)])],1),e("List",{attrs:{list:t.list},on:{get_info:function(i){arguments[0]=i=t.$handleEvent(i),t.get_info.apply(void 0,arguments)},get_record:function(i){arguments[0]=i=t.$handleEvent(i),t.get_record.apply(void 0,arguments)}}}),e("div",{staticClass:"page-footer"},[e("v-uni-view",{staticClass:"mode_but_head"},[!t.info.product_batch_also_count&&t.info.process_name?e("v-uni-view",{staticClass:"mode_but",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.get_fillIn()}}},[t._v("填写溯源记录")]):e("v-uni-view",{staticClass:"mode_but",style:{backgroundColor:"#f2f2f2",color:"#8c8c8c"}},[t._v("暂无法填写溯源纪录")])],1)],1)]:e("u-empty",{attrs:{mode:"data"}})],2)},n=[]},"2f27":function(t,i,e){"use strict";e.r(i);var o=e("0b86"),a=e("93e8");for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);e("6800");var s=e("828b"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"f2365848",null,!1,o["a"],void 0);i["default"]=c.exports},"33b3":function(t,i,e){var o=e("c86c");i=o(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-f2365848] .u-form-item--right__content__slot > uni-view,[data-v-f2365848] .u-form-item--right__content__slot > div,[data-v-f2365848] .u-form-item--right__content__slot > span,[data-v-f2365848] .u-form-item--right__content__slot > uni-text{width:100%}.page .info-head[data-v-f2365848]{padding:%?30?% %?24?%;background:#fff}.page .info-head .scroll-x .list[data-v-f2365848]{padding:%?24?%;display:flex}.page .info-head .scroll-x .list .item[data-v-f2365848]{position:relative;min-width:%?152?%;width:%?152?%;border-top:%?12?% solid #f2f2f2}.page .info-head .scroll-x .list .item[data-v-f2365848]:nth-child(1)::after{content:"";position:absolute;top:%?-6?%;left:0;z-index:9;width:%?20?%;height:%?20?%;background:#f2f2f2;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.page .info-head .scroll-x .list .item[data-v-f2365848]:nth-last-child(1)::after{content:"";position:absolute;top:%?-6?%;left:0;z-index:100;width:%?20?%;height:%?20?%;background:#f2f2f2;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.page .info-head .scroll-x .list .item .text-box[data-v-f2365848]{margin-left:%?-20?%;width:%?40?%;color:#8c8c8c}.page .info-head .scroll-x .list .item .jiantou[data-v-f2365848]{position:absolute;top:%?-14?%;right:%?-2?%;z-index:9;border:%?6?% solid #fff;border-left-color:transparent;border-bottom-color:transparent;-webkit-transform:rotate(45deg);transform:rotate(45deg);width:%?18?%;height:%?18?%}.page .info-head .scroll-x .list .item .icon-map-filling1[data-v-f2365848]{position:absolute;top:0;left:0;z-index:100;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%);font-size:%?40?%;color:#333;background:#fff}.page .info-head .scroll-x .list .active[data-v-f2365848]{border-top-color:#f0250e}.page .info-head .scroll-x .list .active .text-box[data-v-f2365848]{color:#f0250e}.page .info-head .scroll-x .list .active[data-v-f2365848]:nth-child(1)::after{background:#f0250e}.page .info-head .scroll-x .list .active[data-v-f2365848]:nth-last-child(1)::after{background:#f0250e}.page .info-head .scroll-x .list .my-active .text-box[data-v-f2365848]{font-size:%?36?%;font-weight:600;color:#333}.page-footer[data-v-f2365848]{height:calc(%?100?% + env(safe-area-inset-bottom))}.page-footer .mode_but_head[data-v-f2365848]{width:100%;height:calc(%?100?% + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);position:fixed;right:0;bottom:0;background:#fff;display:flex;align-items:center;justify-content:center}.page-footer .mode_but_head .mode_but[data-v-f2365848]{width:90%;height:%?80?%;background:#f0250e;border-radius:%?90?%;display:flex;align-items:center;justify-content:center;color:#fff}.info_msgs_but[data-v-f2365848]{width:%?240?%;height:%?68?%;border-radius:%?90?%;background:#fcedeb;font-size:%?30?%;color:#f0250e;text-align:center;line-height:%?68?%;font-weight:600;margin-top:%?30?%}.info_msgs_[data-v-f2365848]{font-size:%?24?%;color:#8c8c8c;margin-top:%?8?%}\n/* 底部列表 */.scroll-box[data-v-f2365848]{display:flex}.uni-scroll-view-content[data-v-f2365848]{display:flex!important}.jian[data-v-f2365848]{width:%?12?%;height:%?12?%;position:absolute;left:%?0?%;top:%?0?%;color:#fff;font-weight:900;font-size:%?11?%}.item_contents[data-v-f2365848]{color:#8c8c8c;font-size:%?28?%;-webkit-writing-mode:tb-rl;writing-mode:tb-rl;margin-top:%?14?%;margin-left:%?-16?%}.item_content[data-v-f2365848]{color:#f0250e;font-size:%?28?%;-webkit-writing-mode:tb-rl;writing-mode:tb-rl;margin-top:%?14?%;margin-left:%?-16?%}.item_contents_pluss[data-v-f2365848]{color:#8c8c8c;font-size:%?28?%;-webkit-writing-mode:tb-rl;writing-mode:tb-rl;margin-top:%?14?%;margin-left:%?-8?%}.item_contents_plus[data-v-f2365848]{color:#f0250e;font-size:%?28?%;-webkit-writing-mode:tb-rl;writing-mode:tb-rl;margin-top:%?14?%;margin-left:%?-8?%}.qius_plus[data-v-f2365848]{width:%?22?%;height:%?22?%;border-radius:%?90?%;position:absolute;right:%?-2?%;top:%?-6?%;background:#f2f2f2}.qius[data-v-f2365848]{width:%?22?%;height:%?22?%;border-radius:%?90?%;position:absolute;right:%?-2?%;top:%?-6?%;background:#f0250e}.qiu_plus[data-v-f2365848]{width:%?22?%;height:%?22?%;border-radius:%?90?%;position:absolute;left:%?-2?%;top:%?-6?%;background:#f2f2f2}.qiu[data-v-f2365848]{width:%?22?%;height:%?22?%;border-radius:%?90?%;position:absolute;left:%?-2?%;top:%?-6?%;background:#f0250e}.h_xians[data-v-f2365848]{width:%?152?%;height:%?12?%;background:#f2f2f2;position:relative}.h_xian[data-v-f2365848]{width:%?152?%;height:%?12?%;background:#f0250e;position:relative}.scroll_item[data-v-f2365848]{display:inline-block;margin-top:%?20?%}.scorllView[data-v-f2365848]{width:100%;white-space:nowrap\n /* display: flex; */}.scorll_head[data-v-f2365848]{width:95%;margin:0 auto;margin-top:%?50?%}\n/* 步骤条 */.info_msgs_content[data-v-f2365848]{font-size:%?24?%;color:#8c8c8c}.info_msgs_titles[data-v-f2365848]{font-size:%?30?%;color:#262626;font-weight:600;margin-top:%?40?%}.info_msgs_title[data-v-f2365848]{font-size:%?30?%;color:#262626;font-weight:600;margin-top:%?20?%}.icon-shangchuanbeiandanzheng[data-v-f2365848]{\n /* width: 53rpx;\n height: 68rpx; */font-size:%?70?%;margin-top:%?68?%;background-image:linear-gradient(#fa9b6f,#fa8a89);-webkit-background-clip:text;-webkit-text-fill-color:transparent;color:transparent}.info_msgs[data-v-f2365848]{width:%?320?%;height:%?260?%;border-radius:%?25?%;background:#fff;box-shadow:0 0 %?10?% #c1c1c1;display:flex;flex-direction:column;align-items:center}.info_msg_name[data-v-f2365848]{padding-top:%?8?%;padding-left:%?24?%;font-size:%?26?%}.info_msg_content uni-view[data-v-f2365848]{padding-top:%?8?%;font-size:%?32?%;font-weight:600}.info_msg_content[data-v-f2365848]{padding-top:%?8?%;padding-left:%?24?%;font-size:%?44?%;font-weight:600;display:flex;align-items:center}.info_msg_title[data-v-f2365848]{padding-top:%?60?%;padding-left:%?24?%;font-size:%?36?%;font-weight:600}.info_msg[data-v-f2365848]{width:%?320?%;height:%?260?%;border-radius:%?25?%;background-image:linear-gradient(#f22407,#f84d17);box-shadow:0 0 %?10?% red;color:#fff}.info_msg_head[data-v-f2365848]{width:90%;display:flex;align-items:center;justify-content:space-between;margin:0 auto}.info_top[data-v-f2365848]{width:90%;display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:%?30?% 0;font-size:%?30?%;color:#000;font-weight:600}.info_head[data-v-f2365848]{width:100%;background:#fff;border-bottom-left-radius:%?25?%;padding-bottom:%?30?%;border-bottom-right-radius:%?25?%}.page[data-v-f2365848]{background:#f2f2f2;min-height:100vh;width:100%}',""]),t.exports=i},"4098a":function(t,i,e){var o=e("33b3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("967d").default;a("b783b4c4",o,!0,{sourceMap:!1,shadowMode:!1})},"43d0f":function(t,i,e){"use strict";e.r(i);var o=e("5bd1"),a=e("8e87");for(var n in a)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(n);e("504c");var s=e("828b"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"b65611fc",null,!1,o["a"],void 0);i["default"]=c.exports},4541:function(t,i,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=o(e("43d0f")),n=o(e("a4615")),s={components:{List:a.default},data:function(){return{show_type:!1,list:[],info:{},product_batch_process_id:0,product_batch_id:0}},created:function(t){},onShow:function(){this.get_my_product_batch_process()},methods:{get_record:function(){uni.navigateTo({url:"../record/record"})},get_historyPlus:function(){uni.navigateTo({url:"../historyPlus/historyPlus?product_batch_id="+this.product_batch_id})},get_fillIn:function(){uni.navigateTo({url:"../fillSource/fillSource?product_batch_process_id="+this.product_batch_process_id})},get_info:function(t){this.info=t,this.product_batch_process_id=t.product_batch_process_id,this.product_batch_id=t.product_batch_id},get_my_product_batch_process:function(){var t=this;n.default.my_product_batch_process().then((function(i){0==i.code?(t.list=i.data.list,t.info=i.data.list[0],t.product_batch_process_id=i.data.list[0].product_batch_process_id,t.product_batch_id=i.data.list[0].product_batch_id):uni.showToast({title:i.msg,icon:"none"})}))},get_null:function(){},get_show:function(){this.show_type=!this.show_type}}};i.default=s},"504c":function(t,i,e){"use strict";var o=e("f647"),a=e.n(o);a.a},"5bd1":function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"record-list"},[e("v-uni-view",{staticClass:"list_top"},[e("v-uni-view",{staticClass:"list_top_title"},[t._v("待处理溯源")]),e("v-uni-view",{staticClass:"list_top_msg",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$emit("get_record")}}},[t._v("我的记录"),e("v-uni-text",{staticClass:"iconfont icon-arrow-right",staticStyle:{"font-size":"20rpx"}})],1)],1),e("v-uni-view",{staticClass:"list_head"},[t._l(t.list,(function(i,o){return[e("v-uni-view",{key:o+"_0",staticClass:"list_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$emit("get_info",i)}}},[e("v-uni-view",{staticClass:"list_left"},[e("v-uni-text",{staticClass:"iconfont icon-integral list_left_icon"}),e("v-uni-view",{staticClass:"list_left_info"},[e("v-uni-view",{staticClass:"list_left_info_title"},[t._v(t._s(i.batch_name))]),e("v-uni-view",{staticClass:"list_left_info_content"},[t._v(t._s(i.batch_number)+" "+t._s(i.process_name))])],1)],1),e("v-uni-view",{staticClass:"list_right"},[0==i.product_batch_also_count?e("v-uni-view",{staticClass:"list_right_title"},[t._v("待填写")]):e("v-uni-view",{staticClass:"list_right_title"},[t._v("还有"+t._s(i.product_batch_also_count)+"步")]),e("v-uni-view",{staticClass:"list_right_content"},[t._v("当前 "+t._s(i.product_batch_current_count)+"步·共"+t._s(i.product_batch_total_count)+"步")])],1)],1)]})),0==t.list.length?e("v-uni-view",{staticClass:"list_items"},[t._v("暂无待处理溯源 ~")]):t._e()],2)],1)},a=[]},6800:function(t,i,e){"use strict";var o=e("4098a"),a=e.n(o);a.a},"8e87":function(t,i,e){"use strict";e.r(i);var o=e("f779"),a=e.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);i["default"]=a.a},"93e8":function(t,i,e){"use strict";e.r(i);var o=e("4541"),a=e.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(n);i["default"]=a.a},a227:function(t,i,e){var o=e("c86c");i=o(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-b65611fc] .u-form-item--right__content__slot > uni-view,[data-v-b65611fc] .u-form-item--right__content__slot > div,[data-v-b65611fc] .u-form-item--right__content__slot > span,[data-v-b65611fc] .u-form-item--right__content__slot > uni-text{width:100%}.list_top_msg[data-v-b65611fc]{font-size:%?24?%;color:#888}.list_top_title[data-v-b65611fc]{font-size:%?30?%;color:#000;font-weight:600}.list_top[data-v-b65611fc]{padding:%?30?% 2.5%;display:flex;align-items:center;justify-content:space-between}.list_head[data-v-b65611fc]{width:95%;background:#fff;border-radius:%?25?%;margin:0 auto}.list_head .list_items[data-v-b65611fc]{width:95%;margin:0 auto;display:flex;align-items:center;justify-content:center;padding:%?30?% 0;font-size:%?22?%;color:#c1c1c1}.list_head .list_item[data-v-b65611fc]{width:95%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:%?30?% 0}.list_head .list_left_info_content[data-v-b65611fc]{font-size:%?24?%;color:#8c8c8c;padding-top:%?2?%}.list_head .list_left_info_title[data-v-b65611fc]{font-size:%?30?%;color:#262626;font-weight:600}.list_head .list_left_info[data-v-b65611fc]{margin-left:%?22?%}.list_head .list_left_icon[data-v-b65611fc]{\n /* \twidth: 32rpx;\n height: 31rpx; */font-size:%?32?%}.list_head .list_left[data-v-b65611fc]{display:flex;align-items:center}.list_head .list_right_content[data-v-b65611fc]{font-size:%?24?%;color:#8c8c8c;padding-top:%?2?%}.list_head .list_right_title[data-v-b65611fc]{font-size:%?30?%;color:#f0250e;font-weight:600;text-align:end}',""]),t.exports=i},a4615:function(t,i,e){"use strict";e("6a54");var o=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=o(e("cc29")),n={my_product_batch_process:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/my-product-batch-process",t,i)},my_product_batch_process_sheet:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/my-product-batch-process-sheet",t,i)},product_batch_process_log_sheet_edit:function(t,i){return a.default.POST("/plugin/product_traceability/product-process/product-batch-process-log-sheet-edit",t,i)},product_batch_process_log_list:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-log-list",t,i)},product_batch_process_log_sheet_del:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-log-sheet-del",t,i)},product_batch_process_log_history:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-log-history",t,i)},product_batch_process_area:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-area",t,i)},product_batch_process_detail:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-detail",t,i)},product_batch_process_log_detail:function(t,i){return a.default.GET("/plugin/product_traceability/product-process/product-batch-process-log-detail",t,i)},product_batch_process_log_read:function(t,i){return a.default.POST("/plugin/product_traceability/product-process/product-batch-process-log-read",t,i)}};i.default=n},f647:function(t,i,e){var o=e("a227");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("967d").default;a("9fe4a370",o,!0,{sourceMap:!1,shadowMode:!1})},f779:function(t,i,e){"use strict";e("6a54"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o={props:{list:{type:Array,defautl:function(){return[]}}},methods:{}};i.default=o}}]);