Transfer
This commit is contained in:
1 parent
9da0582c2a
commit
3fafde6349
2 files changed
+584
-2
No files matched your search
+583
-1
@@ -1,2 +1,584 @@
|
||||
!function(){"use strict";var e={name:"ManufacturingOverviewRow",props:["qty","item_name","item_code","customer","delivery_date","status","link","reference","due_in"],methods:{pushRoute:function(e){frappe.router.push_state(e)}}},n=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("a",{staticClass:"row link-item ellipsis onbpoard-spotlight",attrs:{type:"Link"},on:{click:function(n){return e.pushRoute(e.link)}}},[t("div",{staticClass:"col col-xs-8"},[t("span",{staticClass:"indicator-pill no-margin",class:{red:"No Work Order"===e.status,blue:"Fully Delivered"===e.status,"light-blue":"Partially Delivered"===e.status,green:"In Warehouse"===e.status,orange:"To Produce"===e.status,grey:"Unknown"===e.status}}),e._v(" "),t("span",{staticClass:"widget-subtitle"},[e._v(e._s(e.qty))]),e._v(" -\n "),t("span",{staticClass:"widget-title"},[e._v(e._s(e.item_name))]),e._v(" "),t("div",[e.customer&&e.item_code?t("small",{staticClass:"color-secondary"},[e._v(e._s(e.customer)+" -\n "),t("a",{attrs:{type:"Link"},on:{click:function(n){return e.pushRoute("/app#Form/Item/"+e.item_code)}}},[e._v(e._s(e.item_code))])]):e.customer?t("small",{staticClass:"color-secondary"},[e._v(e._s(e.customer))]):e.item_code?t("small",{staticClass:"color-secondary"},[e._v(e._s(e.item_code))]):e._e()]),e._v(" "),t("div",[t("small",{staticClass:"color-secondary"},[e._v(e._s(e.reference))])])]),e._v(" "),e.due_in<0?t("div",{staticClass:"text-muted ellipsis color-secondary col col-xs-4 text-right"},[t("b",{staticStyle:{color:"red"}},[e._v(e._s(e.delivery_date))])]):0===e.due_in?t("div",{staticClass:"text-muted ellipsis color-secondary col col-xs-4 text-right"},[t("b",{staticStyle:{color:"black"}},[e._v(e._s(e.delivery_date))])]):t("div",{staticClass:"text-muted ellipsis color-secondary col col-xs-4 text-right"},[e._v("\n "+e._s(e.delivery_date)+"\n ")])])};n._withStripped=!0;var t={components:{ManufacturingOverviewRow:function(e,n,t,i,s,a,r,o){var l,c=("function"==typeof t?t.options:t)||{};if(c.__file="/Volumes/development/frappe/frappe-bench/apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_row.vue",c.render||(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),c._scopeId=i,n&&(l=function(e){n.call(this,r(e))}),void 0!==l)if(c.functional){var d=c.render;c.render=function(e,n){return l.call(n),d(e,n)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return c}({render:n,staticRenderFns:[]},function(e){e&&e("data-v-92599054_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"manufacturing_overview_row.vue"},media:void 0})},e,void 0,!1,0,function e(){var n=document.head||document.getElementsByTagName("head")[0],t=e.styles||(e.styles={}),i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,s){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var a=i?s.media||"default":e,r=t[a]||(t[a]={ids:[],parts:[],element:void 0});if(!r.ids.includes(e)){var o=s.source,l=r.ids.length;if(r.ids.push(e),i&&(r.element=r.element||document.querySelector("style[data-group="+a+"]")),!r.element){var c=r.element=document.createElement("style");c.type="text/css",s.media&&c.setAttribute("media",s.media),i&&(c.setAttribute("data-group",a),c.setAttribute("data-next-index","0")),n.appendChild(c)}if(i&&(l=parseInt(r.element.getAttribute("data-next-index")),r.element.setAttribute("data-next-index",l+1)),r.element.styleSheet)r.parts.push(o),r.element.styleSheet.cssText=r.parts.filter(Boolean).join("\n");else{var d=document.createTextNode(o),u=r.element.childNodes;u[l]&&r.element.removeChild(u[l]),u.length?r.element.insertBefore(d,u[l]):r.element.appendChild(d)}}}}})},data:function(){return{salesorderData:[{customer:"",delivery_date:"",link:"",name:"",item_name:"Loading...",item_code:"",qty:"",sales_order:"",status:"Unknown",due_in:0}],timer:"",origin:window.location.origin,userPermissions:{}}},created:function(){this.fetchEventsList(),this.timer=setInterval(this.fetchEventsList,3e4)},methods:{fetchEventsList:function(){var e=this;frappe.call({method:"manufacturing_overview.manufacturing_overview.api.getSalesorderOverviewList",async:!0,args:{},callback:function(n){n.message&&(e.salesorderData=n.message)}})},cancelAutoUpdate:function(){clearInterval(this.timer)},beforeDestroy:function(){clearInterval(this.timer)}}},i=function(){var e=this.$createElement,n=this._self._c||e;return n("div",{staticClass:"col-4 layout-main-section-wrapper"},[n("div",{staticClass:"widget links-widget-box",staticStyle:{height:"auto"}},[this._m(0),this._v(" "),n("div",{staticClass:"widget-body"},this._l(this.salesorderData,function(e){return n("manufacturing-overview-row",{key:e.name,attrs:{qty:e.qty,item_name:e.item_name,item_code:e.item_code,customer:e.custLine truncated
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var script = {
|
||||
name: "ManufacturingOverviewRow",
|
||||
props: [
|
||||
"qty",
|
||||
"item_name",
|
||||
"item_code",
|
||||
"customer",
|
||||
"delivery_date",
|
||||
"status",
|
||||
"link",
|
||||
"reference",
|
||||
"due_in" ],
|
||||
methods: {
|
||||
pushRoute: function pushRoute(link) {
|
||||
frappe.router.push_state(link);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/* script */
|
||||
var __vue_script__ = script;
|
||||
|
||||
/* template */
|
||||
var __vue_render__ = function() {
|
||||
var _vm = this;
|
||||
var _h = _vm.$createElement;
|
||||
var _c = _vm._self._c || _h;
|
||||
return _c(
|
||||
"a",
|
||||
{
|
||||
staticClass: "row link-item ellipsis onbpoard-spotlight",
|
||||
attrs: { type: "Link" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.pushRoute(_vm.link)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("div", { staticClass: "col col-xs-8" }, [
|
||||
_c("span", {
|
||||
staticClass: "indicator-pill no-margin",
|
||||
class: {
|
||||
red: _vm.status === "No Work Order",
|
||||
blue: _vm.status === "Fully Delivered",
|
||||
"light-blue": _vm.status === "Partially Delivered",
|
||||
green: _vm.status === "In Warehouse",
|
||||
orange: _vm.status === "To Produce",
|
||||
grey: _vm.status === "Unknown"
|
||||
}
|
||||
}),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "widget-subtitle" }, [
|
||||
_vm._v(_vm._s(_vm.qty))
|
||||
]),
|
||||
_vm._v(" -\n "),
|
||||
_c("span", { staticClass: "widget-title" }, [
|
||||
_vm._v(_vm._s(_vm.item_name))
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("div", [
|
||||
_vm.customer && _vm.item_code
|
||||
? _c("small", { staticClass: "color-secondary" }, [
|
||||
_vm._v(_vm._s(_vm.customer) + " -\n "),
|
||||
_c(
|
||||
"a",
|
||||
{
|
||||
attrs: { type: "Link" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.pushRoute("/app#Form/Item/" + _vm.item_code)
|
||||
}
|
||||
}
|
||||
},
|
||||
[_vm._v(_vm._s(_vm.item_code))]
|
||||
)
|
||||
])
|
||||
: _vm.customer
|
||||
? _c("small", { staticClass: "color-secondary" }, [
|
||||
_vm._v(_vm._s(_vm.customer))
|
||||
])
|
||||
: _vm.item_code
|
||||
? _c("small", { staticClass: "color-secondary" }, [
|
||||
_vm._v(_vm._s(_vm.item_code))
|
||||
])
|
||||
: _vm._e()
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("div", [
|
||||
_c("small", { staticClass: "color-secondary" }, [
|
||||
_vm._v(_vm._s(_vm.reference))
|
||||
])
|
||||
])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_vm.due_in < 0
|
||||
? _c(
|
||||
"div",
|
||||
{
|
||||
staticClass:
|
||||
"text-muted ellipsis color-secondary col col-xs-4 text-right"
|
||||
},
|
||||
[
|
||||
_c("b", { staticStyle: { color: "red" } }, [
|
||||
_vm._v(_vm._s(_vm.delivery_date))
|
||||
])
|
||||
]
|
||||
)
|
||||
: _vm.due_in === 0
|
||||
? _c(
|
||||
"div",
|
||||
{
|
||||
staticClass:
|
||||
"text-muted ellipsis color-secondary col col-xs-4 text-right"
|
||||
},
|
||||
[
|
||||
_c("b", { staticStyle: { color: "black" } }, [
|
||||
_vm._v(_vm._s(_vm.delivery_date))
|
||||
])
|
||||
]
|
||||
)
|
||||
: _c(
|
||||
"div",
|
||||
{
|
||||
staticClass:
|
||||
"text-muted ellipsis color-secondary col col-xs-4 text-right"
|
||||
},
|
||||
[_vm._v("\n " + _vm._s(_vm.delivery_date) + "\n ")]
|
||||
)
|
||||
]
|
||||
)
|
||||
};
|
||||
var __vue_staticRenderFns__ = [];
|
||||
__vue_render__._withStripped = true;
|
||||
|
||||
/* style */
|
||||
var __vue_inject_styles__ = function (inject) {
|
||||
if (!inject) { return }
|
||||
inject("data-v-92599054_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"manufacturing_overview_row.vue"}, media: undefined });
|
||||
|
||||
};
|
||||
/* scoped */
|
||||
var __vue_scope_id__ = undefined;
|
||||
/* module identifier */
|
||||
var __vue_module_identifier__ = undefined;
|
||||
/* functional template */
|
||||
var __vue_is_functional_template__ = false;
|
||||
/* component normalizer */
|
||||
function __vue_normalize__(
|
||||
template, style, script,
|
||||
scope, functional, moduleIdentifier,
|
||||
createInjector, createInjectorSSR
|
||||
) {
|
||||
var component = (typeof script === 'function' ? script.options : script) || {};
|
||||
|
||||
// For security concerns, we use only base name in production mode.
|
||||
component.__file = "/Volumes/development/frappe/frappe-bench/apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_row.vue";
|
||||
|
||||
if (!component.render) {
|
||||
component.render = template.render;
|
||||
component.staticRenderFns = template.staticRenderFns;
|
||||
component._compiled = true;
|
||||
|
||||
if (functional) { component.functional = true; }
|
||||
}
|
||||
|
||||
component._scopeId = scope;
|
||||
|
||||
{
|
||||
var hook;
|
||||
if (style) {
|
||||
hook = function(context) {
|
||||
style.call(this, createInjector(context));
|
||||
};
|
||||
}
|
||||
|
||||
if (hook !== undefined) {
|
||||
if (component.functional) {
|
||||
// register for functional component in vue file
|
||||
var originalRender = component.render;
|
||||
component.render = function renderWithStyleInjection(h, context) {
|
||||
hook.call(context);
|
||||
return originalRender(h, context)
|
||||
};
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = component.beforeCreate;
|
||||
component.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return component
|
||||
}
|
||||
/* style inject */
|
||||
function __vue_create_injector__() {
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var styles = __vue_create_injector__.styles || (__vue_create_injector__.styles = {});
|
||||
var isOldIE =
|
||||
typeof navigator !== 'undefined' &&
|
||||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
||||
|
||||
return function addStyle(id, css) {
|
||||
if (document.querySelector('style[data-vue-ssr-id~="' + id + '"]')) { return } // SSR styles are present.
|
||||
|
||||
var group = isOldIE ? css.media || 'default' : id;
|
||||
var style = styles[group] || (styles[group] = { ids: [], parts: [], element: undefined });
|
||||
|
||||
if (!style.ids.includes(id)) {
|
||||
var code = css.source;
|
||||
var index = style.ids.length;
|
||||
|
||||
style.ids.push(id);
|
||||
|
||||
if (isOldIE) {
|
||||
style.element = style.element || document.querySelector('style[data-group=' + group + ']');
|
||||
}
|
||||
|
||||
if (!style.element) {
|
||||
var el = style.element = document.createElement('style');
|
||||
el.type = 'text/css';
|
||||
|
||||
if (css.media) { el.setAttribute('media', css.media); }
|
||||
if (isOldIE) {
|
||||
el.setAttribute('data-group', group);
|
||||
el.setAttribute('data-next-index', '0');
|
||||
}
|
||||
|
||||
head.appendChild(el);
|
||||
}
|
||||
|
||||
if (isOldIE) {
|
||||
index = parseInt(style.element.getAttribute('data-next-index'));
|
||||
style.element.setAttribute('data-next-index', index + 1);
|
||||
}
|
||||
|
||||
if (style.element.styleSheet) {
|
||||
style.parts.push(code);
|
||||
style.element.styleSheet.cssText = style.parts
|
||||
.filter(Boolean)
|
||||
.join('\n');
|
||||
} else {
|
||||
var textNode = document.createTextNode(code);
|
||||
var nodes = style.element.childNodes;
|
||||
if (nodes[index]) { style.element.removeChild(nodes[index]); }
|
||||
if (nodes.length) { style.element.insertBefore(textNode, nodes[index]); }
|
||||
else { style.element.appendChild(textNode); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* style inject SSR */
|
||||
|
||||
|
||||
|
||||
var ManufacturingOverviewRow = __vue_normalize__(
|
||||
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
||||
__vue_inject_styles__,
|
||||
__vue_script__,
|
||||
__vue_scope_id__,
|
||||
__vue_is_functional_template__,
|
||||
__vue_module_identifier__,
|
||||
__vue_create_injector__,
|
||||
undefined
|
||||
);
|
||||
|
||||
//
|
||||
|
||||
var script$1 = {
|
||||
components: {
|
||||
ManufacturingOverviewRow: ManufacturingOverviewRow,
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
salesorderData: [
|
||||
{
|
||||
customer: "",
|
||||
delivery_date: "",
|
||||
link: "",
|
||||
name: "",
|
||||
item_name: "Loading...",
|
||||
item_code: "",
|
||||
qty: "",
|
||||
sales_order: "",
|
||||
status: "Unknown",
|
||||
due_in: 0,
|
||||
} ],
|
||||
timer: "",
|
||||
origin: window.location.origin,
|
||||
userPermissions: {},
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
this.fetchEventsList();
|
||||
this.timer = setInterval(this.fetchEventsList, 30000);
|
||||
},
|
||||
methods: {
|
||||
fetchEventsList: function fetchEventsList() {
|
||||
var self = this;
|
||||
frappe.call({
|
||||
method:
|
||||
"manufacturing_overview.manufacturing_overview.api.getSalesorderOverviewList",
|
||||
async: true,
|
||||
args: {},
|
||||
callback: function (r) {
|
||||
if (r.message) {
|
||||
self.salesorderData = r.message;
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
cancelAutoUpdate: function cancelAutoUpdate() {
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
clearInterval(this.timer);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/* script */
|
||||
var __vue_script__$1 = script$1;
|
||||
|
||||
/* template */
|
||||
var __vue_render__$1 = function() {
|
||||
var _vm = this;
|
||||
var _h = _vm.$createElement;
|
||||
var _c = _vm._self._c || _h;
|
||||
return _c("div", { staticClass: "col-4 layout-main-section-wrapper" }, [
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "widget links-widget-box",
|
||||
staticStyle: { height: "auto" }
|
||||
},
|
||||
[
|
||||
_vm._m(0),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"div",
|
||||
{ staticClass: "widget-body" },
|
||||
_vm._l(_vm.salesorderData, function(so) {
|
||||
return _c("manufacturing-overview-row", {
|
||||
key: so.name,
|
||||
attrs: {
|
||||
qty: so.qty,
|
||||
item_name: so.item_name,
|
||||
item_code: so.item_code,
|
||||
customer: so.customer,
|
||||
delivery_date: so.delivery_date,
|
||||
status: so.status,
|
||||
link: so.link,
|
||||
reference: so.parent,
|
||||
due_in: so.due_in
|
||||
}
|
||||
})
|
||||
}),
|
||||
1
|
||||
)
|
||||
]
|
||||
)
|
||||
])
|
||||
};
|
||||
var __vue_staticRenderFns__$1 = [
|
||||
function() {
|
||||
var _vm = this;
|
||||
var _h = _vm.$createElement;
|
||||
var _c = _vm._self._c || _h;
|
||||
return _c("div", { staticClass: "widget-head" }, [
|
||||
_c("div", [_c("div", { staticClass: "widget-subtitle" })]),
|
||||
_vm._v(" "),
|
||||
_c("div", { staticClass: "widget-control" })
|
||||
])
|
||||
}
|
||||
];
|
||||
__vue_render__$1._withStripped = true;
|
||||
|
||||
/* style */
|
||||
var __vue_inject_styles__$1 = function (inject) {
|
||||
if (!inject) { return }
|
||||
inject("data-v-2672a3f1_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"manufacturing_overview_desk.vue"}, media: undefined });
|
||||
|
||||
};
|
||||
/* scoped */
|
||||
var __vue_scope_id__$1 = undefined;
|
||||
/* module identifier */
|
||||
var __vue_module_identifier__$1 = undefined;
|
||||
/* functional template */
|
||||
var __vue_is_functional_template__$1 = false;
|
||||
/* component normalizer */
|
||||
function __vue_normalize__$1(
|
||||
template, style, script,
|
||||
scope, functional, moduleIdentifier,
|
||||
createInjector, createInjectorSSR
|
||||
) {
|
||||
var component = (typeof script === 'function' ? script.options : script) || {};
|
||||
|
||||
// For security concerns, we use only base name in production mode.
|
||||
component.__file = "/Volumes/development/frappe/frappe-bench/apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_desk.vue";
|
||||
|
||||
if (!component.render) {
|
||||
component.render = template.render;
|
||||
component.staticRenderFns = template.staticRenderFns;
|
||||
component._compiled = true;
|
||||
|
||||
if (functional) { component.functional = true; }
|
||||
}
|
||||
|
||||
component._scopeId = scope;
|
||||
|
||||
{
|
||||
var hook;
|
||||
if (style) {
|
||||
hook = function(context) {
|
||||
style.call(this, createInjector(context));
|
||||
};
|
||||
}
|
||||
|
||||
if (hook !== undefined) {
|
||||
if (component.functional) {
|
||||
// register for functional component in vue file
|
||||
var originalRender = component.render;
|
||||
component.render = function renderWithStyleInjection(h, context) {
|
||||
hook.call(context);
|
||||
return originalRender(h, context)
|
||||
};
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = component.beforeCreate;
|
||||
component.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return component
|
||||
}
|
||||
/* style inject */
|
||||
function __vue_create_injector__$1() {
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var styles = __vue_create_injector__$1.styles || (__vue_create_injector__$1.styles = {});
|
||||
var isOldIE =
|
||||
typeof navigator !== 'undefined' &&
|
||||
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
||||
|
||||
return function addStyle(id, css) {
|
||||
if (document.querySelector('style[data-vue-ssr-id~="' + id + '"]')) { return } // SSR styles are present.
|
||||
|
||||
var group = isOldIE ? css.media || 'default' : id;
|
||||
var style = styles[group] || (styles[group] = { ids: [], parts: [], element: undefined });
|
||||
|
||||
if (!style.ids.includes(id)) {
|
||||
var code = css.source;
|
||||
var index = style.ids.length;
|
||||
|
||||
style.ids.push(id);
|
||||
|
||||
if (isOldIE) {
|
||||
style.element = style.element || document.querySelector('style[data-group=' + group + ']');
|
||||
}
|
||||
|
||||
if (!style.element) {
|
||||
var el = style.element = document.createElement('style');
|
||||
el.type = 'text/css';
|
||||
|
||||
if (css.media) { el.setAttribute('media', css.media); }
|
||||
if (isOldIE) {
|
||||
el.setAttribute('data-group', group);
|
||||
el.setAttribute('data-next-index', '0');
|
||||
}
|
||||
|
||||
head.appendChild(el);
|
||||
}
|
||||
|
||||
if (isOldIE) {
|
||||
index = parseInt(style.element.getAttribute('data-next-index'));
|
||||
style.element.setAttribute('data-next-index', index + 1);
|
||||
}
|
||||
|
||||
if (style.element.styleSheet) {
|
||||
style.parts.push(code);
|
||||
style.element.styleSheet.cssText = style.parts
|
||||
.filter(Boolean)
|
||||
.join('\n');
|
||||
} else {
|
||||
var textNode = document.createTextNode(code);
|
||||
var nodes = style.element.childNodes;
|
||||
if (nodes[index]) { style.element.removeChild(nodes[index]); }
|
||||
if (nodes.length) { style.element.insertBefore(textNode, nodes[index]); }
|
||||
else { style.element.appendChild(textNode); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* style inject SSR */
|
||||
|
||||
|
||||
|
||||
var ManufacturingOverviewDesk = __vue_normalize__$1(
|
||||
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
||||
__vue_inject_styles__$1,
|
||||
__vue_script__$1,
|
||||
__vue_scope_id__$1,
|
||||
__vue_is_functional_template__$1,
|
||||
__vue_module_identifier__$1,
|
||||
__vue_create_injector__$1,
|
||||
undefined
|
||||
);
|
||||
|
||||
$(document).ready(function () {
|
||||
$(".layout-main-section-wrapper").after('<div class="col-4 layout-main-section-wrapper" id="manufacturing-overview-body"></div>');
|
||||
var pod = new Vue({
|
||||
el: "#manufacturing-overview-body",
|
||||
render: function render(h) {
|
||||
return h(ManufacturingOverviewDesk, {});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}());
|
||||
//# sourceMappingURL=manufacturing_overview.min.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"manufacturing_overview.min.js","sources":["../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_row.vue?rollup-plugin-vue=script.js","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_desk.vue?rollup-plugin-vue=script.js","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_page.js"],"sourcesContent":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n name: \"ManufacturingOverviewRow\",\n props: [\n \"qty\",\n \"item_name\",\n \"item_code\",\n \"customer\",\n \"delivery_date\",\n \"status\",\n \"link\",\n \"reference\",\n \"due_in\",\n ],\n methods: {\n pushRoute(link) {\n frappe.router.push_state(link);\n },\n },\n};\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport ManufacturingOverviewRow from \"./manufacturing_overview_row.vue\";\n\nexport default {\n components: {\n ManufacturingOverviewRow,\n },\n data() {\n return {\n salesorderData: [\n {\n customer: \"\",\n delivery_date: \"\",\n link: \"\",\n name: \"\",\n item_name: \"Loading...\",\n item_code: \"\",\n qty: \"\",\n sales_order: \"\",\n status: \"Unknown\",\n due_in: 0,\n },\n ],\n timer: \"\",\n origin: window.location.origin,\n userPermissions: {},\n };\n },\n created() {\n this.fetchEventsList();\n this.timer = setInterval(this.fetchEventsList, 30000);\n },\n methods: {\n fetchEventsList() {\n let self = this;\n frappe.call({\n method:\n \"manufacturing_overview.manufacturing_overview.api.getSalesorderOverviewList\",\n async: true,\n args: {},\n callback: function (r) {\n if (r.message) {\n self.salesorderData = r.message;\n }\n },\n });\n },\n cancelAutoUpdate() {\n clearInterval(this.timer);\n },\n beforeDestroy() {\n clearInterval(this.timer);\n },\n },\n};\n","import ManufacturingOverviewDesk from \"./manufacturing_overview_desk.vue\";\n\n$(document).ready(function () {\n $(\".layout-main-section-wrapper\").after('<div class=\"col-4 layout-main-section-wrapper\" id=\"manufacturing-overview-body\"></div>');\n var pod = new Vue({\n el: \"#manufacturing-overview-body\",\n render(h) {\n return h(ManufacturingOverviewDesk, {});\n }\n });\n});"],"names":["name","props","methods","pushRoute","link","frappe","router","push_state","components","data","salesorderData","customer","delivery_date","item_name","item_code","qty","sales_order","status","due_in","timer","origin","window","location","userPermissions","created","this","fetchEventsList","setInterval","let","self","call","method","async","args","callback","r","message","cancelAutoUpdate","clearInterval","beforeDestroy","$","document","ready","after","Vue","el","render","h","ManufacturingOverviewDesk"],"mappings":"+BA6De,CACbA,KAAM,2BACNC,MAAO,CACL,MACA,YACA,YACA,WACA,gBACA,SACA,OACA,YACA,UAEFC,QAAS,CACPC,mBAAUC,GACRC,OAAOC,OAAOC,WAAWH,0oDC5ChB,CACbI,WAAY,q9DAGZC,gBACE,MAAO,CACLC,eAAgB,CACd,CACEC,SAAU,GACVC,cAAe,GACfR,KAAM,GACNJ,KAAM,GACNa,UAAW,aACXC,UAAW,GACXC,IAAK,GACLC,YAAa,GACbC,OAAQ,UACRC,OAAQ,IAGZC,MAAO,GACPC,OAAQC,OAAOC,SAASF,OACxBG,gBAAiB,KAGrBC,mBACEC,KAAKC,kBACLD,KAAKN,MAAQQ,YAAYF,KAAKC,gBAAiB,MAEjDxB,QAAS,CACPwB,2BACEE,IAAIC,EAAOJ,KACXpB,OAAOyB,KAAK,CACVC,OACE,8EACFC,OAAO,EACPC,KAAM,GACNC,SAAU,SAAUC,GACdA,EAAEC,UACJP,EAAKnB,eAAiByB,EAAEC,aAKhCC,4BACEC,cAAcb,KAAKN,QAErBoB,yBACED,cAAcb,KAAKN,gtFC9EzBqB,EAAEC,UAAUC,MAAM,WACdF,EAAE,gCAAgCG,MAAM,0FAC9B,IAAIC,IAAI,CACdC,GAAI,+BACJC,gBAAOC,GACH,OAAOA,EAAEC,EAA2B"}
|
||||
{"version":3,"file":"manufacturing_overview.min.js","sources":["../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_row.vue?rollup-plugin-vue=script.js","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_row.vue","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_desk.vue?rollup-plugin-vue=script.js","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_desk.vue","../../../../apps/manufacturing_overview/manufacturing_overview/public/js/manufacturing_overview_page.js"],"sourcesContent":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n name: \"ManufacturingOverviewRow\",\n props: [\n \"qty\",\n \"item_name\",\n \"item_code\",\n \"customer\",\n \"delivery_date\",\n \"status\",\n \"link\",\n \"reference\",\n \"due_in\",\n ],\n methods: {\n pushRoute(link) {\n frappe.router.push_state(link);\n },\n },\n};\n","<template>\n <a\n @click=\"pushRoute(link)\"\n class=\"row link-item ellipsis onbpoard-spotlight\"\n type=\"Link\"\n >\n <div class=\"col col-xs-8\">\n <span\n class=\"indicator-pill no-margin\"\n v-bind:class=\"{\n red: status === 'No Work Order',\n blue: status === 'Fully Delivered',\n 'light-blue': status === 'Partially Delivered',\n green: status === 'In Warehouse',\n orange: status === 'To Produce',\n grey: status === 'Unknown',\n }\"\n ></span>\n <span class=\"widget-subtitle\">{{ qty }}</span> -\n <span class=\"widget-title\">{{ item_name }}</span>\n <div>\n <small v-if=\"customer && item_code\" class=\"color-secondary\"\n >{{ customer }} -\n <a @click=\"pushRoute('/app#Form/Item/' + item_code)\" type=\"Link\">{{\n item_code\n }}</a></small\n >\n <small v-else-if=\"customer\" class=\"color-secondary\">{{\n customer\n }}</small>\n <small v-else-if=\"item_code\" class=\"color-secondary\">{{\n item_code\n }}</small>\n </div>\n <div>\n <small class=\"color-secondary\">{{ reference }}</small>\n </div>\n </div>\n\n <div\n v-if=\"due_in < 0\"\n class=\"text-muted ellipsis color-secondary col col-xs-4 text-right\"\n >\n <b style=\"color: red\">{{ delivery_date }}</b>\n </div>\n <div\n v-else-if=\"due_in === 0\"\n class=\"text-muted ellipsis color-secondary col col-xs-4 text-right\"\n >\n <b style=\"color: black\">{{ delivery_date }}</b>\n </div>\n <div\n v-else\n class=\"text-muted ellipsis color-secondary col col-xs-4 text-right\"\n >\n {{ delivery_date }}\n </div>\n </a>\n</template>\n\n<script>\nexport default {\n name: \"ManufacturingOverviewRow\",\n props: [\n \"qty\",\n \"item_name\",\n \"item_code\",\n \"customer\",\n \"delivery_date\",\n \"status\",\n \"link\",\n \"reference\",\n \"due_in\",\n ],\n methods: {\n pushRoute(link) {\n frappe.router.push_state(link);\n },\n },\n};\n</script>\n\n<style>\n</style>","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport ManufacturingOverviewRow from \"./manufacturing_overview_row.vue\";\n\nexport default {\n components: {\n ManufacturingOverviewRow,\n },\n data() {\n return {\n salesorderData: [\n {\n customer: \"\",\n delivery_date: \"\",\n link: \"\",\n name: \"\",\n item_name: \"Loading...\",\n item_code: \"\",\n qty: \"\",\n sales_order: \"\",\n status: \"Unknown\",\n due_in: 0,\n },\n ],\n timer: \"\",\n origin: window.location.origin,\n userPermissions: {},\n };\n },\n created() {\n this.fetchEventsList();\n this.timer = setInterval(this.fetchEventsList, 30000);\n },\n methods: {\n fetchEventsList() {\n let self = this;\n frappe.call({\n method:\n \"manufacturing_overview.manufacturing_overview.api.getSalesorderOverviewList\",\n async: true,\n args: {},\n callback: function (r) {\n if (r.message) {\n self.salesorderData = r.message;\n }\n },\n });\n },\n cancelAutoUpdate() {\n clearInterval(this.timer);\n },\n beforeDestroy() {\n clearInterval(this.timer);\n },\n },\n};\n","<template>\n <div class=\"col-4 layout-main-section-wrapper\">\n <div class=\"widget links-widget-box\" style=\"height: auto\">\n <div class=\"widget-head\">\n Line truncated
|
||||
Reference in new issue
Block a user