Commit 661f0b5e authored by 旭艳's avatar 旭艳

任务执行

parent aa66ff62
...@@ -10,8 +10,9 @@ ...@@ -10,8 +10,9 @@
"dependencies": { "dependencies": {
"axios": "^0.19.2", "axios": "^0.19.2",
"bpmn-js": "^7.0.0", "bpmn-js": "^7.0.0",
"csv-exportor": "^1.0.2",
"camunda-bpmn-moddle": "^4.4.0", "camunda-bpmn-moddle": "^4.4.0",
"csv-exportor": "^1.0.2",
"jquery": "^3.7.1",
"lodash.foreach": "^4.5.0", "lodash.foreach": "^4.5.0",
"moment": "^2.26.0", "moment": "^2.26.0",
"vue": "^2.6.10", "vue": "^2.6.10",
......
/* jquery gooey menu pluggins
* gooey menu v1.0.0 (http://http://dominicdomu.blogspot.in/p/gooy.html)
* source: //dreamidea.in
* Created on : Apr 6, 2016, 1:30:02 PM
Author : Dominic George
site : //dominicdomu.blospot.in
* */
import jQuery from 'jquery'
(function(g) {
g.gooeymenu = function(h, q) {
var k = g(h); k.addClass('navimenu'); var b = this; var a = b.options = g.extend({}, g.gooeymenu.defaults, q); b.els = { item: k.find('.gooey-menu-item'), checkbox: k.find('.menu-open'), button: k.find('.open-button') }; b.methods = { setup: function() {
var d = { small: 1.4, medium: 1.8, large: 2.1 }; var f = { small: 1.3, medium: 1.6, large: 2.1 }; var c; for (c in d)a.margin === c ? a.margin = d[c] : null; for (var e in f)a.bounceLength === e ? a.bounceLength = f[e] : null; b.methods.responsiveStyles(); b.els.item.hover(function() {
a.currentBg =
b.els.item.css('background-color'); g(this).css('background-color', a.hover)
}, function() { g(this).css('background-color', a.currentBg) }); !0 === a.bounce && b.methods.bounce()
}, setEvents: function() { ['open', 'close'].forEach(function(d, b) { k.on(d, function() { a[d] && a[d].apply(this, arguments) }) }) }, bounce: function() {
if (!0 === a.bounce) {
var d = b.els.item.css('transition-timing-function'); b.els.checkbox.on('change', function() {
g(this).is(':checked') ? b.els.item.css({ 'transition-timing-function': 'cubic-bezier(0.8, 0.84, 0.44, ' +
a.bounceLength + ')', '-o-transition-timing-function': 'cubic-bezier(0.8, 0.84, 0.44, ' + a.bounceLength + ')', '-moz-transition-timing-function': 'cubic-bezier(0.8, 0.84, 0.44, ' + a.bounceLength + ')', '-webkit-transition-timing-function': 'cubic-bezier(0.8, 0.84, 0.44, ' + a.bounceLength + ')', '-ms-transition-timing-function': 'cubic-bezier(0.8, 0.84, 0.44, ' + a.bounceLength + ')' }) : b.els.item.css({ 'transition-timing-function': d, '-moz-transition-timing-function': d, '-o-transition-timing-function': d, '-webkit-transition-timing-function': d })
})
}
},
circle: function() {
k.trigger('open'); var d; var f; var c; var e; var m; var h; var n; var r = b.els.item.length; var l = a.transitionStep; var q = Math.PI; var t = 360 / r; var p = t = 360 / r; f = a.circle.radius; b.els.item.each(function() {
b.els.checkbox.is(':checked') ? (d = q * p / 180, c = Math.abs(Math.cos(d)), e = f * c, m = Math.sqrt(f * f - e * e), h = b.methods.periodCalc(p).x, n = b.methods.periodCalc(p).y, g(this).css({ transform: 'translate3d(' + h + e + 'px,' + n + m + 'px,0)', '-o-transform': 'translate3d(' + h + e + 'px,' + n + m + 'px,0)', '-webkit-transform': 'translate3d(' + h + e + 'px,' + n + m + 'px,0)', '-moz-transform': 'translate3d(' +
h + e + 'px,' + n + m + 'px,0)', '-ms-transform': 'translate3d(' + h + e + 'px,' + n + m + 'px,0)', 'transition-duration': l + 'ms', '-o-transition-duration': l + 'ms', '-webkit-transition-duration': l + 'ms', '-moz-transition-duration': l + 'ms' }), p += t, l += a.transitionStep) : (b.els.item.css({ transform: 'translate3d(0, 0, 0)', '-moz-transform': 'translate3d(0, 0, 0)', '-webkit-transform': 'translate3d(0, 0, 0)', '-ms-transform': 'translate3d(0, 0, 0)', '-o-transform': 'translate3d(0, 0, 0)' }), p = 360 / r, l = a.transitionStep, k.trigger('close'))
})
}, periodCalc: function(a) {
return { x: a <
90 || a > 270 ? '' : '-', y: a > 180 ? '' : '-' }
}, linear: function(d) {
k.trigger('open'); var f = a.style === 'horizontal' ? a.horizontal.menuItemPosition : a.vertical.menuItemPosition; var c = d[f].init; var e = a.transitionStep; b.els.item.each(function() {
b.els.checkbox.is(':checked') ? a.style === 'horizontal' ? (g(this).css({ transform: 'translate3d(' + c + 'px, 0, 0)', '-ms-transform': 'translate3d(' + c + 'px, 0, 0)', '-o-transform': 'translate3d(' + c + 'px, 0, 0)', '-moz-transform': 'translate3d(' + c + 'px, 0, 0)', '-webkit-transform': 'translate3d(' + c + 'px, 0, 0)',
'transition-duration': e + 'ms', '-o-transition-duration': e + 'ms', '-webkit-transition-duration': e + 'ms', '-moz-transition-duration': e + 'ms' }), c += d[f].init, e += a.transitionStep) : a.style === 'vertical' && (g(this).css({ 'transition-duration': e + 'ms', '-moz-transition-duration': e + 'ms', '-o-transition-duration': e + 'ms', '-webkit-transition-duration': e + 'ms' }), a.vertical.direction === 'down' ? g(this).css({ transform: 'translate3d(0, ' + c + 'px, 0)', '-moz-transform': 'translate3d(0, ' + c + 'px, 0)', '-o-transform': 'translate3d(0, ' + c +
'px, 0)', '-webkit-transform': 'translate3d(0, ' + c + 'px, 0)', '-ms-transform': 'translate3d(0, ' + c + 'px, 0)' }) : a.vertical.direction === 'up' && g(this).css({ transform: 'translate3d(0,-' + c + 'px, 0)', '-moz-transform': 'translate3d(0,-' + c + 'px, 0)', '-webkit-transform': 'translate3d(0,-' + c + 'px, 0)', '-o-transform': 'translate3d(0,-' + c + 'px, 0)', '-ms-transform': 'translate3d(0,-' + c + 'px, 0)' }), c += d[f].init, e += a.transitionStep) : (b.els.item.css({ transform: 'translate3d(0, 0, 0)', '-moz-transform': 'translate3d(0, 0, 0)', '-webkit-transform': 'translate3d(0, 0, 0)',
'-ms-transform': 'translate3d(0, 0, 0)', '-o-transform': 'translate3d(0, 0, 0)' }), c = d[f].init, e = a.transitionStep, k.trigger('close'))
})
}, translate: function() { var d = { glue: { init: a.size }, spaced: { init: a.size * a.margin }}; b.els.checkbox.on('change', function() { b._callbacks[a.style](d) }) }, createOn: function(a, b, c, e) { b = document.createElementNS('http://www.w3.org/2000/svg', b); for (var g in c)c.hasOwnProperty(g) && b.setAttribute(g, c[g]); e && b.appendChild(document.createTextNode(e)); return a.appendChild(b) }, responsiveStyles: function() {
var d =
window.innerWidth > 0 ? window.innerWidth : screen.width; d >= 320 && d <= 480 ? (a.size /= 1.4, a.circle.radius /= 1.2) : d > 480 && d <= 768 ? a.size /= 1.2 : d > 780 && d <= 1024 && (a.circle.radius /= 1.2, a.size /= 1.1); b.els.item.css({ width: a.size + 'px', height: a.size + 'px', color: a.contentColor, 'background-color': a.bgColor, 'line-height': a.size + 'px' }); b.els.button.css({ width: a.size + 'px', height: a.size + 'px', 'background-color': a.bgColor, 'line-height': a.size + 'px' }); k.find('.burger').css({ 'font-size': '.8em', width: a.size / 2 + 'px', height: '3px', left: a.size /
4 + 'px' })
} }; b._callbacks = { vertical: b.methods.linear, horizontal: b.methods.linear, circle: b.methods.circle }; b.init = function() {
var a = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); var f = g('.navimenu').index(k); a.setAttribute('id', 'gooeySVG' + f); a.setAttribute('class', 'gooeySVG'); k.append(a); a = document.getElementById('gooeySVG' + f); b.methods.createOn(a, 'defs', { id: 'defs' + f }); a = document.getElementById('defs' + f); b.methods.setEvents(); b.methods.setup(); b.methods.translate.apply(this, arguments)
}; b.init()
}; g.gooeymenu.defaults = { style: 'horizontal', size: 70, margin: 'medium', bgColor: 'steelblue', contentColor: 'white', transitionStep: 100, bounce: !1, bounceLength: 'medium', hover: 'white', circle: { radius: 80 },
// eslint-disable-next-line new-cap
horizontal: { menuItemPosition: 'glue' }, vertical: { menuItemPosition: 'spaced', direction: 'up' }, open: function() {}, close: function() {} }; g.fn.gooeymenu = function(h) { void 0 === h && (h = {}); if (h && typeof h === 'object') return this.each(function() { new g.gooeymenu(this, h) }) }
})(jQuery)
import jQuery from 'jquery';
(function(window, document, $) {
'use strict'
// Get a regular interval for drawing to the screen
window.requestAnimFrame = (function(callback) {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimaitonFrame ||
function(callback) {
window.setTimeout(callback, 1000 / 60)
}
})()
/*
* Plugin Constructor
*/
var pluginName = 'jqSignature'
var defaults = {
lineColor: '#222222',
lineWidth: 1,
border: '1px dashed #AAAAAA',
background: '#FFFFFF',
width: 300,
height: 100,
autoFit: false
}
var canvasFixture = '<canvas></canvas>'
function Signature(element, options) {
// DOM elements/objects
this.element = element
this.$element = $(this.element)
this.canvas = false
this.$canvas = false
this.ctx = false
// Drawing state
this.drawing = false
this.currentPos = {
x: 0,
y: 0
}
this.lastPos = this.currentPos
// Determine plugin settings
this._data = this.$element.data()
this.settings = $.extend({}, defaults, options, this._data)
// Initialize the plugin
this.init()
}
Signature.prototype = {
// Initialize the signature canvas
init: function() {
// Set up the canvas
this.$canvas = $(canvasFixture).appendTo(this.$element)
this.$canvas.attr({
width: this.$element.width(), // this.settings.width,
height: this.$element.height() // this.settings.height
})
this.$canvas.css({
boxSizing: 'border-box',
width: this.$element.width() + 'px', // this.settings.width + 'px',
height: this.$element.height() + 'px', // this.settings.height + 'px',
// border: this.settings.border,
// background: this.settings.background,
cursor: 'crosshair'
})
// Fit canvas to width of parent
if (this.settings.autoFit === true) {
this._resizeCanvas()
// TO-DO - allow for dynamic canvas resizing
// (need to save canvas state before changing width to avoid getting cleared)
// var timeout = false;
// $(window).on('resize', $.proxy(function(e) {
// clearTimeout(timeout);
// timeout = setTimeout($.proxy(this._resizeCanvas, this), 250);
// }, this));
}
this.canvas = this.$canvas[0]
this._resetCanvas()
// Set up mouse events
this.$canvas.on('mousedown touchstart', $.proxy(function(e) {
this.drawing = true
this.$element.find($('p')).hide()
this.lastPos = this.currentPos = this._getPosition(e)
}, this))
this.$canvas.on('mousemove touchmove', $.proxy(function(e) {
this.currentPos = this._getPosition(e)
}, this))
this.$canvas.on('mouseup touchend', $.proxy(function(e) {
this.$element.find($('p')).show()
this.drawing = false
// Trigger a change event
var changedEvent = $.Event('jq.signature.changed')
this.$element.trigger(changedEvent)
}, this))
// Prevent document scrolling when touching canvas
$(document).on('touchstart touchmove touchend', $.proxy(function(e) {
if (e.target === this.canvas) {
e.preventDefault()
}
}, this))
// Start drawing
var that = this;
(function drawLoop() {
window.requestAnimFrame(drawLoop)
that._renderCanvas()
})()
},
// Clear the canvas
clearCanvas: function() {
this.canvas.width = this.canvas.width
this._resetCanvas()
},
// Get the content of the canvas as a base64 data URL
getDataURL: function() {
return this.canvas.toDataURL()
},
// Get the position of the mouse/touch
_getPosition: function(event) {
var xPos, yPos, rect
rect = this.canvas.getBoundingClientRect()
event = event.originalEvent
// Touch event
if (event.type.indexOf('touch') !== -1) { // event.constructor === TouchEvent
xPos = event.touches[0].clientX - rect.left
yPos = event.touches[0].clientY - rect.top
// eslint-disable-next-line brace-style
}
// Mouse event
else {
xPos = event.clientX - rect.left
yPos = event.clientY - rect.top
}
return {
x: xPos,
y: yPos
}
},
// Render the signature to the canvas
_renderCanvas: function() {
if (this.drawing) {
this.ctx.moveTo(this.lastPos.x, this.lastPos.y)
this.ctx.lineTo(this.currentPos.x, this.currentPos.y)
this.ctx.stroke()
this.lastPos = this.currentPos
}
},
// Reset the canvas context
_resetCanvas: function() {
this.ctx = this.canvas.getContext('2d')
this.ctx.strokeStyle = this.settings.lineColor
this.ctx.lineWidth = this.settings.lineWidth
},
// Resize the canvas element
_resizeCanvas: function() {
var width = this.$element.outerWidth()
this.$canvas.attr('width', width)
this.$canvas.css('width', width + 'px')
}
}
/*
* Plugin wrapper and initialization
*/
$.fn[pluginName] = function(options) {
var args = arguments
if (options === undefined || typeof options === 'object') {
return this.each(function() {
if (!$.data(this, 'plugin_' + pluginName)) {
$.data(this, 'plugin_' + pluginName, new Signature(this, options))
}
})
} else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {
var returns
this.each(function() {
var instance = $.data(this, 'plugin_' + pluginName)
if (instance instanceof Signature && typeof instance[options] === 'function') {
returns = instance[options].apply(instance, Array.prototype.slice.call(args, 1))
}
if (options === 'destroy') {
$.data(this, 'plugin_' + pluginName, null)
}
})
return returns !== undefined ? returns : this
}
}
})(window, document, jQuery)
import $ from 'jquery'
export function previewIMG(src) {
var dom = '<div class="preview-img"><img src="' + src + '"/></div>'
$('#app').append(dom)
// 退出图片预览事件
$('#app>.preview-img').on('click', function(event) {
// 阻止事件冒泡
event.stopPropagation()
this.remove()
})
}
This diff is collapsed.
This diff is collapsed.
{
"id": "2477814",
"name": "mes",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "8358226",
"name": "调试",
"font_class": "tiaoshi",
"unicode": "e661",
"unicode_decimal": 58977
},
{
"icon_id": "20438928",
"name": "状态说明",
"font_class": "zhuangtaishuoming",
"unicode": "e612",
"unicode_decimal": 58898
},
{
"icon_id": "9003199",
"name": "驳回",
"font_class": "bohui",
"unicode": "e692",
"unicode_decimal": 59026
},
{
"icon_id": "12911874",
"name": "完成",
"font_class": "wancheng",
"unicode": "e611",
"unicode_decimal": 58897
},
{
"icon_id": "14845076",
"name": "质量",
"font_class": "ziyuan145",
"unicode": "e6e9",
"unicode_decimal": 59113
},
{
"icon_id": "1013230",
"name": "工人",
"font_class": "gongren",
"unicode": "e6db",
"unicode_decimal": 59099
},
{
"icon_id": "1915197",
"name": "日报工时",
"font_class": "icon-test",
"unicode": "e601",
"unicode_decimal": 58881
},
{
"icon_id": "2767716",
"name": "设备",
"font_class": "icon-",
"unicode": "e64c",
"unicode_decimal": 58956
},
{
"icon_id": "2882748",
"name": "返回",
"font_class": "fanhui",
"unicode": "e65f",
"unicode_decimal": 58975
},
{
"icon_id": "4179136",
"name": "视图模式",
"font_class": "view-mode",
"unicode": "e69e",
"unicode_decimal": 59038
},
{
"icon_id": "5187018",
"name": "工具-油漆桶",
"font_class": "icon-test1",
"unicode": "e678",
"unicode_decimal": 59000
},
{
"icon_id": "8183869",
"name": "装配数据",
"font_class": "zhuangpeishuju",
"unicode": "e660",
"unicode_decimal": 58976
},
{
"icon_id": "8855833",
"name": "问题",
"font_class": "wenti",
"unicode": "e6eb",
"unicode_decimal": 59115
},
{
"icon_id": "9169975",
"name": "工人",
"font_class": "gongren1",
"unicode": "e694",
"unicode_decimal": 59028
},
{
"icon_id": "9646558",
"name": "试验2",
"font_class": "shiyan",
"unicode": "e8a0",
"unicode_decimal": 59552
},
{
"icon_id": "14421649",
"name": "油漆桶",
"font_class": "youqitong_huaban1",
"unicode": "e679",
"unicode_decimal": 59001
},
{
"icon_id": "17990797",
"name": "工时",
"font_class": "gongshi",
"unicode": "e613",
"unicode_decimal": 58899
},
{
"icon_id": "18177092",
"name": "技术",
"font_class": "crew_tech",
"unicode": "e602",
"unicode_decimal": 58882
},
{
"icon_id": "18298023",
"name": "物料",
"font_class": "wuliao",
"unicode": "e6fb",
"unicode_decimal": 59131
},
{
"icon_id": "18687439",
"name": "视图",
"font_class": "shitu",
"unicode": "e66f",
"unicode_decimal": 58991
},
{
"icon_id": "20438924",
"name": "已完工",
"font_class": "yiwangong",
"unicode": "e610",
"unicode_decimal": 58896
},
{
"icon_id": "9974761",
"name": "加",
"font_class": "jia",
"unicode": "e711",
"unicode_decimal": 59153
},
{
"icon_id": "4066489",
"name": "库房管理",
"font_class": "kufangguanli",
"unicode": "e628",
"unicode_decimal": 58920
},
{
"icon_id": "6607634",
"name": "ico_库房管理_采购计划",
"font_class": "ico_kufangguanli_caigoujihua",
"unicode": "e8ec",
"unicode_decimal": 59628
},
{
"icon_id": "6607635",
"name": "ico_库房管理_采购申请单",
"font_class": "ico_kufangguanli_caigoushenqingdan",
"unicode": "e8ed",
"unicode_decimal": 59629
},
{
"icon_id": "6607636",
"name": "ico_库房管理_采购申请单审核",
"font_class": "ico_kufangguanli_caigoushenqingdanshenhe",
"unicode": "e8ee",
"unicode_decimal": 59630
},
{
"icon_id": "6607638",
"name": "ico_库房管理_调拨出库",
"font_class": "ico_kufangguanli_tiaobochuku",
"unicode": "e8ef",
"unicode_decimal": 59631
},
{
"icon_id": "6607639",
"name": "ico_库房管理_记账管理",
"font_class": "ico_kufangguanli_jizhangguanli1",
"unicode": "e8f0",
"unicode_decimal": 59632
},
{
"icon_id": "6607640",
"name": "ico_库房管理_进出日记查询",
"font_class": "ico_kufangguanli_jinchurijichaxun",
"unicode": "e8f1",
"unicode_decimal": 59633
},
{
"icon_id": "6607641",
"name": "ico_库房管理_库存查询-68",
"font_class": "ico_kufangguanli_kucunchaxun-",
"unicode": "e8f2",
"unicode_decimal": 59634
},
{
"icon_id": "6607643",
"name": "ico_库房管理_挑拨入房",
"font_class": "ico_kufangguanli_tiaoborufang",
"unicode": "e8f3",
"unicode_decimal": 59635
},
{
"icon_id": "6607644",
"name": "ico_库房管理_请领出库",
"font_class": "ico_kufangguanli_qinglingchuku",
"unicode": "e8f4",
"unicode_decimal": 59636
},
{
"icon_id": "6607645",
"name": "ico_库房管理_库存点盘",
"font_class": "ico_kufangguanli_kucundianpan",
"unicode": "e8f5",
"unicode_decimal": 59637
},
{
"icon_id": "6607646",
"name": "ico_库房管理_请领单审核",
"font_class": "ico_kufangguanli_qinglingdanshenhe",
"unicode": "e8f6",
"unicode_decimal": 59638
},
{
"icon_id": "6607647",
"name": "ico_库房管理_物品出房",
"font_class": "ico_kufangguanli_wupinchufang",
"unicode": "e8f7",
"unicode_decimal": 59639
},
{
"icon_id": "6607648",
"name": "ico_库房管理_库存查询-136",
"font_class": "ico_kufangguanli_kucunchaxun-1",
"unicode": "e8f8",
"unicode_decimal": 59640
},
{
"icon_id": "6607649",
"name": "ico_库房管理_物品库存预警-70",
"font_class": "ico_kufangguanli_wupinkucunyujing-",
"unicode": "e8f9",
"unicode_decimal": 59641
},
{
"icon_id": "6607650",
"name": "ico_库房管理_物品出库",
"font_class": "ico_kufangguanli_wupinchuku",
"unicode": "e8fa",
"unicode_decimal": 59642
},
{
"icon_id": "6607651",
"name": "ico_库房管理_物品盘点",
"font_class": "ico_kufangguanli_wupinpandian",
"unicode": "e8fb",
"unicode_decimal": 59643
},
{
"icon_id": "6607652",
"name": "ico_库房管理_物品库存预警-139",
"font_class": "ico_kufangguanli_wupinkucunyujing-1",
"unicode": "e8fc",
"unicode_decimal": 59644
},
{
"icon_id": "6607653",
"name": "ico_库房管理_物品入房",
"font_class": "ico_kufangguanli_wupinrufang",
"unicode": "e8fd",
"unicode_decimal": 59645
},
{
"icon_id": "6607654",
"name": "ico_库房管理_物品请领",
"font_class": "ico_kufangguanli_wupinqingling",
"unicode": "e8fe",
"unicode_decimal": 59646
},
{
"icon_id": "6607655",
"name": "ico_库房管理_物品有效期预警",
"font_class": "ico_kufangguanli_wupinyouxiaoqiyujing",
"unicode": "e8ff",
"unicode_decimal": 59647
},
{
"icon_id": "6607656",
"name": "ico_库房管理_物品入库",
"font_class": "ico_kufangguanli_wupinruku",
"unicode": "e900",
"unicode_decimal": 59648
},
{
"icon_id": "6607657",
"name": "ico_库房管理_物品有效期预期",
"font_class": "ico_kufangguanli_wupinyouxiaoqiyuqi",
"unicode": "e901",
"unicode_decimal": 59649
},
{
"icon_id": "6607658",
"name": "ico_库房管理_物品转仓",
"font_class": "ico_kufangguanli_wupinzhuancang",
"unicode": "e902",
"unicode_decimal": 59650
},
{
"icon_id": "6607699",
"name": "ico_物品管理_二级库房日记查询",
"font_class": "ico_wupinguanli_erjikufangrijichaxun",
"unicode": "e903",
"unicode_decimal": 59651
},
{
"icon_id": "6607705",
"name": "ico_物品管理_一级库房日记查询",
"font_class": "ico_wupinguanli_yijikufangrijichaxun",
"unicode": "e904",
"unicode_decimal": 59652
},
{
"icon_id": "11450109",
"name": "库房",
"font_class": "kufang",
"unicode": "e641",
"unicode_decimal": 58945
},
{
"icon_id": "18517159",
"name": "库房",
"font_class": "0-21",
"unicode": "e604",
"unicode_decimal": 58884
}
]
}
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<svg width="67px" height="57px" viewBox="0 0 67 57" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
<title>文件</title>
<desc>Created with Sketch.</desc>
<defs>
<polygon id="path-1" points="0 0.20027027 66.7083977 0.20027027 66.7083977 57 0 57"></polygon>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="通用2" transform="translate(-1177.000000, -524.000000)">
<g id="文件" transform="translate(1177.000000, 524.000000)">
<g id="编组">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="Clip-2"></g>
<path d="M59.6748443,52.1858108 L7.03378182,52.1858108 C5.77715114,52.1858108 4.75844659,51.1551892 4.75844659,49.8838581 L4.75844659,26.3470946 L61.9425659,26.3470946 L61.9425659,49.8838581 C61.9425659,51.1478716 60.9238614,52.1858108 59.6748443,52.1858108 M7.03378182,5.01445946 L27.3911227,5.01445946 C28.3131341,5.01445946 29.1384523,5.57097973 29.4879182,6.42829054 L29.5400716,6.55615541 L31.9638727,10.9343716 C33.0865034,13.5143919 35.5997648,15.1693176 38.395492,15.1693176 L59.6672307,15.1693176 C60.9238614,15.1693176 61.9425659,16.1995541 61.9425659,17.4708851 L61.9425659,21.5329054 L4.75844659,21.5329054 L4.75844659,7.31602703 C4.75844659,6.04469595 5.77715114,5.01445946 7.03378182,5.01445946 M59.6748443,10.3551284 L38.395492,10.3551284 C37.4734807,10.3551284 36.6481625,9.79822297 36.2986966,8.94091216 L36.2465432,8.8130473 L33.822742,4.43521622 C32.7001114,1.85481081 30.18685,0.20027027 27.3911227,0.20027027 L7.03378182,0.20027027 C3.15996364,0.20027027 -7.61363636e-05,3.38957432 -7.61363636e-05,7.31602703 L-7.61363636e-05,49.8838581 C-7.61363636e-05,53.8029932 3.15235,57 7.03378182,57 L59.6748443,57 C63.5486625,57 66.7087023,53.8106959 66.7087023,49.8838581 L66.7087023,17.4708851 C66.7010886,13.5444324 63.5486625,10.3551284 59.6748443,10.3551284" id="Fill-1" fill="#000000" mask="url(#mask-2)"></path>
</g>
<line x1="4.75844659" y1="24" x2="62" y2="24" id="路径-3" stroke="#4A90E2" stroke-width="5" fill="#4A90E2"></line>
</g>
</g>
</g>
</svg>
\ No newline at end of file
<template>
<dee-dialog title="附件上传" :dialog-visible.sync="visible" width="90%" custom-class="mobile-dialog">
<div v-dee-loading="loading" class="storageExperiment-com">
<el-form
v-if="visible"
ref="form"
class="checkNo-container"
label-position="left"
>
<header class="header">
<span>工序号: </span>
<el-input v-model="process.serialNumber" clearable class="gongxv" disabled />
<span>工序名称: </span>
<el-input v-model="process.title" clearable disabled />
</header>
<el-form-item>
<DeeUploadTable
v-model="objFileLinks"
attr-key="objFileLinks"
:read-only="false"
:config-item="{}"
:table-columns="tableColumns"
:remove-check-fn="removeCheckFn"
:table-config="tableConfig"
@input="modifyed=true"
/>
<!-- <upload-files v-if="uploadVisble" ref="upload" v-model="objFileLinks" /> -->
</el-form-item>
<el-form-item class="btns">
<el-button
:disabled="disabled"
type="primary"
@click="onSubmit"
>保存</el-button>
<el-button size="medium" @click="visible = false">取消</el-button>
</el-form-item>
</el-form>
</div>
</dee-dialog>
</template>
<script>
export default {
name: 'StorageExperimentDialog',
data() {
return {
visible: false,
loading: false,
process: {},
processNumber: null,
processName: null,
objFileLinks: [],
disabled: false,
uploadVisble: false,
modifyed: false,
tableColumns: [
{
'title': '文件名',
'key': 'originalFileName',
'parentKey': 'target',
'headerAlign': 'center',
'align': 'left'
},
{
'title': '文件大小',
'key': 'fileSize',
'parentKey': 'target',
'level': 1,
'show': true,
'headerAlign': 'center',
'align': 'left',
formatter: (row) => {
return this.$utils.formatGMK(row.fileSize)
}
},
{
'title': '扩展名',
'key': 'fileExtension',
'parentKey': 'target',
'level': 1,
'show': true,
'headerAlign': 'center',
'align': 'left'
},
{
'title': '文件状态',
'key': 'fileStatus',
'fildProp': {
'id': 164,
'refId': null,
'type': 'DictDataVO',
'rule': {
'typeName': 'DictDataVO',
'comment': null,
'length': null,
'defaultValue': '',
'notNull': false,
'unique': false,
'scale': null,
'dictTypeCode': 'FileStatus'
}, 'attrType': 'BASE'
},
'parentKey': 'target',
'level': 1,
'show': true,
'headerAlign': 'center',
'align': 'left'
}
],
tableConfig: {
'filterKey': 'contentType',
'serverUrl': '',
'pageShow': true,
'taleType': 'single',
'url': '/dfs/fileManager/feign/uploadFile',
'showFileList': true,
// 'identFilter': ['FLOW_FILE'],
limit: 1,
isBigFileUpload: false,
isNeedBucket: false,
'uploadFilter': 'FLOW_FILE',
formatData: (val) => {
return [val]
}
}
}
},
computed: {},
created() {},
mounted() {},
methods: {
removeCheckFn(rows) {
this.objFileLinks = this.objFileLinks.filter(el => {
const findFlag = rows.find(item => {
return item.id === el.id
})
return !findFlag
})
return
},
// 打开弹出框
open(data) {
console.log(343434, data)
this.process = data
this.visible = true
},
// 保存
onSubmit() {
this.disabled = true
this.loading = true
// const params = {
// ...this.row
// }
// params.objFileLinks = this.objFileLinks
// params.operator = 'MODIFY'
// AttachmentPreservation(params)
// .then((res) => {
// this.$parent.getEnclosureFeil()
// this.$utils.showMessageSuccess('保存成功')
// // 关闭抽屉并刷新表格
// this.visible = false
// this.$emit('reload')
// })
// .catch((err) => {
// console.log(err)
// })
// .finally(() => {
// this.disabled = false
// this.visible = false
// this.uploadVisble = true
// this.loading = false
// })
}
}
}
</script>
<style lang="scss" >
.storageExperiment-com {
.checkNo-container {
.btns {
text-align: center;
}
}
header {
display: flex;
white-space: nowrap;
align-items: center;
margin-left: 30px;
> div {
width: 140px;
margin-left: 15px;
&.gongxv {
margin-right: 30px;
}
}
}
.el-row {
padding-right: 10px;
margin-top: 20px;
display: flex;
justify-content: flex-end;
}
}
</style>
<template>
<section>
<!-- 表格 -->
<dee-table
:loading="loading"
:index-row="indexRow"
:columns="tableColums"
:data="drawerTableData"
:options="tableOptions"
:pagination="tablePagination"
@pagination-size-change="paginationSizeChange"
@pagination-current-change="paginationCurrentChange"
/>
</section>
</template>
<script>
export default {
data() {
return {
// 加载中
loading: false,
// 搜索条件
form: [],
// 分页
tablePagination: {
currentPage: 1,
pageSize: 5,
total: 0,
pageSizes: [5, 10, 20, 50]
},
// 序号
indexRow: { title: '序号', align: 'center', width: '70' },
// 所有可动态配置的表格列
colums: [
{
title: '型号/件号',
show: true,
key: 'target.modelNo',
width: '120',
sortable: true,
align: 'center'
},
{
title: '名称',
show: true,
key: 'target.resName',
width: '120',
sortable: true,
align: 'center'
},
{
title: '物料编码',
show: true,
key: 'target.resCode',
width: '120',
sortable: true,
align: 'center'
},
{
title: '零件类型',
show: true,
key: 'target.resType2.typeName',
width: '120',
sortable: true,
align: 'center'
},
{
title: '数量',
show: true,
key: 'amount',
sortable: true,
align: 'center'
}
],
// 默认展示的表格列
tableColums: [],
// 表格数据
drawerTableData: [],
// 表格样式配置
tableOptions: {
stripe: true,
border: true
}
}
},
created() {
this.setDefaultColums()
},
mounted() {},
methods: {
// 设置默认展示列
setDefaultColums() {
this.tableColums = this.colums.filter((item) => item.show)
},
// 分页每页条数切换
paginationSizeChange(size) {
this.tablePagination.pageSize = size
this.getMatchData()
},
// 分页当前页切换
paginationCurrentChange(page) {
this.tablePagination.currentPage = page
this.getMatchData()
},
// 初始化数据
getMatchData() {
// 设置数据
this.loading = true
this.tableData = []
const params = {
indices: ['DxProcessPartLink'],
pageFrom: this.tablePagination.currentPage,
pageSize: this.tablePagination.pageSize,
searchItems: {
items: [
{
fieldName: 'sourceId',
operator: 'EQ',
value: this.$parent.$parent.editor.tableId
}
]
},
openProps: [
{
name: 'target',
openProps: [
{
name: 'resType2'
}
]
}
],
sortItem: [
{
fieldName: 'modifyTime',
sortOrder: 'desc'
}
]
}
// 发送请求
this.HttpRequest('DxProcessPartLink/find/recursion', params, 'post')
.then((res) => {
this.drawerTableData = res.items.content
this.tablePagination.total = res.items.totalElements
})
.catch((err) => console.log(err))
.finally(() => {
this.loading = false
})
}
}
}
</script>
This diff is collapsed.
...@@ -212,15 +212,26 @@ export default { ...@@ -212,15 +212,26 @@ export default {
// return // return
// } // }
this.$router.push({ this.$router.push({
name: 'assemblyPerform', path: '/dee-mes/taskExecution',
query: { query: {
id: item.id, id: item.id,
materNo: item.materNo, title: this.$route.query.title + '执行',
airModelId: item.airModelId, showMenu: false,
sortiesId: item.sortiesId, showTag: 'false',
isOK: item.isOK isOK: item.isOK
// materNo: item.materNo,
// airModelId: item.airModelId,
// sortiesId: item.sortiesId,
} }
}) })
this.$store.dispatch('menu/activeModel', {
appId: 'myTaskReceive',
pageInfo: {
title: this.$route.query.title + '执行',
path: '/dee-mes/taskExecution'
}
})
this.$store.dispatch('app/toggleSideBar')
}, },
getTaskAcceptance() { getTaskAcceptance() {
const that = this const that = this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment