From a7f77e0c75461f03e038e5f7608db4994c451d3b Mon Sep 17 00:00:00 2001
From: hou <1601990943@qq.com>
Date: Wed, 13 Apr 2022 14:24:05 +0800
Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E8=A1=A5=E6=96=99=E5=88=9B?=
=?UTF-8?q?=E5=BB=BA=20=E6=96=B0=E5=A2=9E=E5=88=86=E9=A1=B5=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/wyb-pagination/iconfont.css | 20 +
.../wyb-pagination/wyb-pagination.vue | 424 ++++++++++++++++++
src/i18n/lang/cn.ts | 4 +
src/i18n/lang/en.ts | 4 +
src/pages/raw/handover/feeding/create.vue | 27 +-
5 files changed, 475 insertions(+), 4 deletions(-)
create mode 100644 src/components/wyb-pagination/iconfont.css
create mode 100644 src/components/wyb-pagination/wyb-pagination.vue
diff --git a/src/components/wyb-pagination/iconfont.css b/src/components/wyb-pagination/iconfont.css
new file mode 100644
index 0000000..206fd7e
--- /dev/null
+++ b/src/components/wyb-pagination/iconfont.css
@@ -0,0 +1,20 @@
+@font-face {font-family: "iconfont";
+ src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAALUAAsAAAAABtwAAAKFAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCfgqBQIE1ATYCJAMMCwgABCAFhG0HRBsBBhEVjCOyrw7sYPj4I0QqzNq3zfnzDrGGnxGGLSGIJLifI6jWsJ7dDaIDIM/lo6IIVFyEAVaJdC8Ma5KsX18DIvAAvNrML65E6KwwVPnjwadURdk9jquzLCnj43Q3FiERMuvuW6CtkLIwkLa2RJ8WB1673A9cYIWJ1mV/lpeyxOTL57kc310BZdH8QIGltvZ+PiZgggWyN0aRFViUecPYBS/wPoFG/WbFduUD1CvsZYG41DlCfSGsKCxXL9Q27C3iTY369JLe4zX6fPyzHJHUZPZDOxcuwfrP5M0rFXuZ6+WcYIfImEUhdhvTO7JgjKwxXYxyrGnBz/RX/EwCqzgqMxF/nVvdDCahKj2RxFN7NAk8IIEMapPsCjYQvTsQUof9hYqOoxqqWHWbqJ9LAh/W3Mq8UOvnzz9Gr1/8fZwsnhvGHNLy5fPH0Q1H/TAu1g7uN/MIVHJPFhG/fhEIau4W/277/5oK+Govv4JgpdC81J/RE/w9ycCuYshsSy6a2BNb3mx4ojMBhdynmu3v9GO6tmdwNaFeT4akTh+yeqNEoc+iRpNV1KonXkOjGfXhJl3YXpQGTPsACO0+kbR6h6zdQhT6ihq9/lGrPfZotBtdZzYZD33YYmwEe2jfQXfBk2uTQ1x7hWq2DedlEesOedIxKNK8nKvRIy+xYXpRpQgBcXBQgcfQ2gCRw4idpINIPGcZNb0o7YLbHGxhqCFQD7TeAa0TeBQMFofK+68gZWY1uKOuzn8HsYkeHhRS+QCiVvtBdY/yzOSFUhKCAMICB1RgFrKsAMTmWSPUEalhQjI6y5x+NFSdbq91P1DEmrDX5EiRo2g8a/yovQUS5ourYW68Kpg2GwAAAA==') format('woff2')
+}
+
+.iconfont {
+ font-family: "iconfont" !important;
+ font-size: 16px;
+ font-style: normal;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.icon-danjiantou:before {
+ content: "\e62d";
+}
+
+.icon-shuangjiantou:before {
+ content: "\e62e";
+}
+
diff --git a/src/components/wyb-pagination/wyb-pagination.vue b/src/components/wyb-pagination/wyb-pagination.vue
new file mode 100644
index 0000000..67434b8
--- /dev/null
+++ b/src/components/wyb-pagination/wyb-pagination.vue
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts
index b48d908..ec8e33c 100644
--- a/src/i18n/lang/cn.ts
+++ b/src/i18n/lang/cn.ts
@@ -149,6 +149,10 @@ export default {
time: '请先选择时间',
scrapForm: '请先扫描报废单',
materialName: '物料名称',
+ previousPage: '上一页',
+ nextPage: '下一页',
+ HomePage: '首页',
+ TailPage: '尾页',
finishedProduct: '请先选择成品编码',
Pi_InputMrp: '请输入MRP',
Pi_InputFactory: '请输入工厂代码',
diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts
index d585702..8cdd663 100644
--- a/src/i18n/lang/en.ts
+++ b/src/i18n/lang/en.ts
@@ -260,6 +260,10 @@ export default {
Closerepository: 'The memory function is disabled',
quantityNum: 'Qty',
recommended: 'Lock',
+ previousPage: 'prev',
+ nextPage: 'next',
+ HomePage: 'first',
+ TailPage: 'last',
materialCode: 'Please enter the material number',
receive: 'receiveLoc',
Production: 'Order',
diff --git a/src/pages/raw/handover/feeding/create.vue b/src/pages/raw/handover/feeding/create.vue
index fbd0f73..00a6d6d 100644
--- a/src/pages/raw/handover/feeding/create.vue
+++ b/src/pages/raw/handover/feeding/create.vue
@@ -75,11 +75,12 @@
{{ $t('message.Query') }}
-
+
-
+
+
{{ $t('message.workArea_Confirm') }}
@@ -118,9 +119,12 @@ export default class RawReceiptDetail extends BasePage {
model = model;
border = true;
show = false;
+ PageShow = true;
List: any = [];
some: any = {};
qty: any = '';
+ PopupList: any = [];
+ obj: any;
//生产订单号
prdOrder: any = '';
//物料号
@@ -130,15 +134,30 @@ export default class RawReceiptDetail extends BasePage {
await this.query();
}
async query() {
+ this.PageShow = false;
let params = {
prdOrder: this.prdOrder,
materialCode: this.materialCode,
};
await this.model.queryMaterialList(params);
+ this.obj = this.group(this.model.MaterialList, 10);
+ this.PopupList = this.obj[0];
+ this.PageShow = true;
+ }
+ group(array: any, subGroupLength: number) {
+ let index = 0;
+ let newArray = [];
+ while (index < array.length) {
+ newArray.push(array.slice(index, (index += subGroupLength)));
+ }
+ return newArray;
+ }
+ Change(e: any) {
+ this.PopupList = this.obj[e.current - 1];
}
selectItem(e: any) {
console.log(e);
- this.model.MaterialList.forEach((item: any) => {
+ this.PopupList.forEach((item: any) => {
if (item.checked) {
this.some = item;
}
@@ -146,7 +165,7 @@ export default class RawReceiptDetail extends BasePage {
}
onOk() {
let flag = false;
- this.model.MaterialList.forEach((item: any) => {
+ this.PopupList.forEach((item: any) => {
if (item.checked) {
flag = true;
}