diff --git a/git 创建仓库.txt b/git 创建仓库.txt new file mode 100644 index 0000000..aefe6f7 --- /dev/null +++ b/git 创建仓库.txt @@ -0,0 +1,7 @@ +1.ÔÚÄãµÄĿ¼ÖнøÈëÃüÁîÐÐÊäÈë £ºgit init +2.git remote add origin £¨ÕâÀïΪÄãÂëÔÆÉϵÄhttps/SSHµØÖ·£© +3.µÚÒ»´ÎÀ­È¡£ºgit pull origin master ÔÚ±¾µØ¸ùĿ¼À­È¡Ô¶³Ì²Ö¿âµÄÎļþ +4.µÚÒ»´ÎÌá½»£º + 1) git add . + 2) git commit -m "±¸×¢" + 3) git push -u origin master \ No newline at end of file diff --git a/java/luckysheet/创建在线表格.vue b/java/luckysheet/创建在线表格.vue new file mode 100644 index 0000000..0abed07 --- /dev/null +++ b/java/luckysheet/创建在线表格.vue @@ -0,0 +1,84 @@ + + + + + + diff --git a/java/webSoket.txt b/java/webSoket.txt new file mode 100644 index 0000000..608c61e --- /dev/null +++ b/java/webSoket.txt @@ -0,0 +1,40 @@ +mounted() { + this.init() + }, + methods: { + init: function() { + if (typeof (WebSocket) === 'undefined') { + alert('ÄúµÄä¯ÀÀÆ÷²»Ö§³Ösocket') + } else { + // ʵÀý»¯socket + this.socket = new WebSocket(this.path) + // ¼àÌýsocketÁ¬½Ó + this.socket.onopen = this.open + // ¼àÌýsocket´íÎóÐÅÏ¢ + this.socket.onerror = this.error + // ¼àÌýsocketÏûÏ¢ + this.socket.onmessage = this.getMessage + } + }, + open: function() { + console.log('socketÁ¬½Ó³É¹¦') + }, + error: function() { + console.log('Á¬½Ó´íÎó') + }, + getMessage: function(msg) { + debugger + this.allJson = JSON.parse(msg.data) + this.crueList = this.allJson.msg.cureJson + this.ovenList = this.allJson.msg.ovenJson + this.empList = this.allJson.msg.empJson + this.allTaskList = this.allJson.msg.allTask + this.unDoneTask = this.allJson.msg.unTask + }, + send: function() { + // eslint-disable-next-line no-undef + this.socket.send(params) + }, + close: function() { + console.log('socketÒѾ­¹Ø±Õ') + }, \ No newline at end of file diff --git a/vue/Lodop技术手册6.2.2.6.doc b/vue/Lodop技术手册6.2.2.6.doc new file mode 100644 index 0000000..a1878c2 Binary files /dev/null and b/vue/Lodop技术手册6.2.2.6.doc differ diff --git a/vue/js/js原型,原型链,闭包.txt b/vue/js/js原型,原型链,闭包.txt new file mode 100644 index 0000000..f7bcafe --- /dev/null +++ b/vue/js/js原型,原型链,闭包.txt @@ -0,0 +1,15 @@ +Ô­ÐÍ£º +1.¹¹Ô캯Êý£ºÔÚes6֮ǰûÓÐÀàµÄ¸ÅÄͨ¹ý¹¹Ô캯Êý·â×°¹«¹²ÊôÐÔ¡¢³ÉÔ±£¬²¢´´½¨¶ÔÏó +2.Ô­ÐÍÊÇʲô£ºÃ¿Ò»¸ö¹¹Ô캯Êý¶¼ÓÐÒ»¸öprototypeÊôÐÔ£¬Ö¸ÏòÁíÒ»¸ö¶ÔÏó£¬Õâ¸öprototype¾ÍÊÇÒ»¸ö¶ÔÏó£¬Õâ¸ö¶ÔÏóµÄËùÓÐÊôÐԺͷ½·¨¶¼»á±»¹¹Ôì º¯ÊýËùÓµÓС£ +3.Ô­Ð͵Ä×÷Ó㺿ÉÒÔ°ÑÄÇЩ²»±äµÄ·½·¨£¬Ö±½Ó¶¨ÒåÔÚprototype¶ÔÏóÉÏ£¬ÕâÑùËùÓжÔÏóµÄʵÀý¶¼¿ÉÒÔ¹²ÏíÕâЩ·½·¨£¬½ÚÔ¼ÄÚ´æ×ÊÔ´ +4.¶ÔÏóÔ­ÐÍ_proto_£ºÃ¿¸ö¶ÔÏó¶¼ÓÐÒ»¸öÊôÐÔ_proto_£¬ËûÖ¸ÏòµÄÊǹ¹Ô캯ÊýprototypeÔ­ÐͶÔÏó£¬ËùÒÔ¶ÔÏó¿ÉÒÔʹÓù¹Ô캯ÊýµÄÔ­ÐͶÔÏóÖеÄÊô ÐԺͷ½·¨ +5.·ÃÎʶÔÏó³ÉÔ±µÄ¹æÔò£ºÊ×ÏÈ»á²éÕÒÕâ¸ö¶ÔÏó±¾ÉíÓÐûÓÐÕâ¸öÊôÐÔ»òÕß·½·¨£¬Èç¹ûÓоÍÖ±½Óµ÷Óã¬Èç¹ûûÓоÍͨ¹ý¡ª¡ªproto¡ª¡ªÈ¥¹¹Ô캯ÊýÔ­ÐͶÔÏó µ±ÖвéÕÒ +6.Ô­ÐͶÔÏóµÄÓ¦ÓãºÀ©Õ¹ÄÚÖöÔÏóµÄ·½·¨ + +Ô­ÐÍÁ´£º + ¿´Í¼ + +ÀàµÄ±¾ÖÊ»¹Êǹ¹Ô캯Êý £¨Óï·¨ÌÇ£© + +±Õ°ü£º + 1.Ò»¸ö×÷ÓÃÓò¿ÉÒÔ·ÃÎÊÒ»¸öº¯ÊýµÄÄÚ²¿µÄ¾Ö²¿±äÁ¿£¬ÑÓÉìÁ˾ֲ¿±äÁ¿µÄ×÷Ó÷¶Î§ \ No newline at end of file diff --git a/vue/js/未命å��文件.jpg b/vue/js/未命å��文件.jpg new file mode 100644 index 0000000..51602cf Binary files /dev/null and b/vue/js/未命å��文件.jpg differ diff --git a/vue/vue相关.txt b/vue/vue相关.txt new file mode 100644 index 0000000..5995af4 --- /dev/null +++ b/vue/vue相关.txt @@ -0,0 +1,147 @@ +1.ÐÂÔö°´Å¥ + + ·ÖÅä + +2.Òþ²Ø°´Å¥£ºÎ»ÖÃreturn CRUD + optShow: { + add: false, + edit: true, + del: true, + download: true, + reset: true + } +3.»ñȡö¾Ù£º + formatName(row, column) { + for (const item of this.qualityStatusList) { + if (item.code === row.quality_status) { + return item.name + } + } + } +3.»ñÈ¡¹´Ñ¡µÄµ±Ç°ÐеÄÊý¾Ý + const _selectData = this.$refs.table.selection + +4.ʵÏÖ±í¸ñÉÏÒÆÏÂÒÆºËÐÄ´úÂ룺 + //ÉÏÒÆ + moveUp(item, index) { + if (index > 0) { + const upDate = this.popFrom[index - 1] + this.popFrom.splice(index - 1, 1) + this.popFrom.splice(index, 0, upDate) + } else { + this.$message.error('ÒѾ­ÊǵÚÒ»Ìõ£¬²»¿ÉÉÏÒÆ') + } + }, + //ÏÂÒÆ + moveDown(item, index) { + if ((index + 1) === this.popFrom.length) { + this.$message.error('ÒѾ­ÊÇ×îºóÒ»Ìõ£¬²»¿ÉÏÂÒÆ') + } else { + console.log(index) + const downDate = this.popFrom[index + 1] + this.popFrom.splice(index + 1, 1) + this.popFrom.splice(index, 0, downDate) + } + }, + +5.½«±íµ¥ÖÃΪ¿Õ + this.longForm = { brand_right: 0 } + +6.´òÓ¡ÌõÂë + import { getLodop } from '@/assets/js/lodop/LodopFuncs' + + print() { + const _selectData = this.$refs.table.selection + if (!_selectData || _selectData.length !== 1) { + this.crud.notify('ÇëÑ¡ÔñÒ»Ìõ¼Ç¼', CRUD.NOTIFICATION_TYPE.INFO) + return + } + const code = _selectData[0].vehicle_code + const LODOP = getLodop() + LODOP.SET_SHOW_MODE('HIDE_DISBUTTIN_SETUP', 1)// Òþ²ØÄÇЩÎÞЧ°´Å¥ + // ´òÓ¡Ö½ÕÅ´óСÉèÖÃhttps://www.it610.com/article/2094844.html + LODOP.SET_PRINT_PAGESIZE(1, '80mm', '60mm', '1') + LODOP.ADD_PRINT_RECT('0mm', '0mm', '87.01mm', '60.01mm', 0, 1) + LODOP.ADD_PRINT_BARCODE('11.96mm', '12.96mm', '65.74mm', '31.75mm', '128Auto', code) + // LODOP.PREVIEW()// Ô¤ÀÀ + LODOP.PRINT()// ´òÓ¡ + this.crud.notify('´òÓ¡³É¹¦', CRUD.NOTIFICATION_TYPE.SUCCESS) + } + +7.¹Ø±Õ´°¿Ú + this.crud.status.add = CRUD.STATUS.NORMAL + +8.ºáÏß + + +9.×ֶθñʽ»¯ + formatName(row, column) { + for (const item of this.isProcList) { + if (item.code === row.is_proc) { + return item.name + } + } + }, +10.ɾ³ý±íµ¥ÖеÄÒ»ÐÐÊý¾Ý + ɾ³ýµÚÒ»ÐУºthis.tableData.splice(this.tableData.indexOf(), 1) + ɾ³ý×îºóÒ»ÐУºthis.tableData.splice(scope.$index, 1) + +11.±à¼­µÄʱºòÈçºÎ´ò¿ªÒ³Ãæ²¢»ñÈ¡µ±Ç°ÐеÄÊý¾Ý£º + [CRUD.HOOK.beforeToEdit](v1, v2) { + this.openParam = { + optRow: v2.material_id, + workprocedure_code: this.workprocedure_code + } // v2´ú±íµ±Ç°ÐÐÊý¾Ý£¬¿ÉÒÔ½«µ±Ç°ÐÐÊý¾Ý´æµ½openParamÖУ¬È»ºó´«µ½´ò¿ªÒ³ÃæÖÐ + this.setShow = true + return false + }, + +12.¸ñʽ»¯»ñÈ¡×Öµä±í + this.dict.label.ST_INV_TYPE_RC[row.source_bill_type] + +13.¸¸Ò³Ãæ¸ø×ÓÒ³ÃæÇ¿ÖÆ´«Öµ + ¸¸Ò³Ã棺this.$refs.child.setForm(this.form.workprocedure_id Òª´«µÄÖµ) + ×ÓÒ³Ãæ£º + setForm(row) { + this.workprocedure_id = row + }, + ×ÓÒ³ÃæµÄ·½·¨Òª¸ú¸¸Ò³ÃæµÄ·½·¨Ò»Ö + +14.µ¯´°ÎïÁ϶àÑ¡·µ»Ø½á¹û´¦Àí: + tableChanged2(row) { + const arr = row + const data = this.form.tableData + arr.forEach((item) => { + if (this.form.tableData.length !== 0) { + this.fla = false + for (let i = 0; i < data.length; i++) { + if (data[i].material_id === item.material_id) { + this.fla = true + } + } + if (this.fla === false) { + this.form.tableData.push(item) + } + } else { + this.form.tableData.push(item) + } + }) + }, + +15.µ¥ÐÐɾ³ý´¦Àí£º + // °´Å¥ + @click.native.prevent="delRow(scope.$index, form.tableData)" + // js + delRow(index, rows) { + rows.splice(index, 1) + } + +16.ɾ³ýÊý×éÖеÄΏöÔªËØ£º + delete rows[i] diff --git a/vue/弹出窗/Dialog.vue b/vue/弹出窗/Dialog.vue new file mode 100644 index 0000000..93177e4 --- /dev/null +++ b/vue/弹出窗/Dialog.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/vue/弹出窗/原生弹出框/主页é�¢.txt b/vue/弹出窗/原生弹出框/主页é�¢.txt new file mode 100644 index 0000000..fa8dd6a --- /dev/null +++ b/vue/弹出窗/原生弹出框/主页é�¢.txt @@ -0,0 +1,7 @@ +1.Òý°ü£º + import AddDialog from '@/views/wms/pf/productbom/AddDialog' +2.×é¼þ£º + + λÖãºÔÚ×îºóÒ»¸ödivÇ°Ãæ +3.ÒýÈëÄ£°å£º + components: { AddDialog }, diff --git a/vue/弹出窗/原生弹出框/å­�页é�¢AddDialog.vue b/vue/弹出窗/原生弹出框/å­�页é�¢AddDialog.vue new file mode 100644 index 0000000..91f346c --- /dev/null +++ b/vue/弹出窗/原生弹出框/å­�页é�¢AddDialog.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/vue/弹出窗/弹出窗vue.txt b/vue/弹出窗/弹出窗vue.txt new file mode 100644 index 0000000..24fc03d --- /dev/null +++ b/vue/弹出窗/弹出窗vue.txt @@ -0,0 +1,41 @@ +°´Å¥£º + + »ã×Ü + +·½·¨£º + sumShow() { + const data = this.form + this.openParam = { + optType: 'sum'£¬ + optRow: data + } + this.sumShowDialog = true + } + +¼à¿Ø£º + watch: { + sumShowDialog: { + handler(newValue, oldValue) { + this.sumShowDialog = newValue + if (!newValue) { + this.crud.toQuery() + } + } + } + }, + +data£º + sumShowDialog: false, + +Òý°ü£º + import SumShowDialog from '@/views/wms/pcs/productplansum/SumShowDialog' + +×é¼þ£º + \ No newline at end of file