From 116a5598ce9838e9af966dde484efb71773bab56 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 9 Sep 2024 09:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=8F=91=E6=96=99=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E7=89=A9=E6=96=992024/7/15=2015:45:50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/qty/numberBox.vue | 205 ++++++++++ src/mycomponents/scan/winComScanFg.vue | 4 +- src/pages.json | 26 ++ src/pages/fg/coms/comReceiptPopup.vue | 369 ++++++++++++++++++ src/pages/fg/receiptByPlan.vue | 10 +- .../inventoryMove/job/inventoryMoveDetail.vue | 4 + .../inventoryMove/job/nokToHoldMoveJob.vue | 28 ++ .../package/record/splitPackageRecord.vue | 89 +++-- src/pages/point/index.vue | 4 +- .../record/directRepleinshRecord.vue | 1 + .../components/uni-combox/uni-combox.vue | 7 +- src/uni_modules/wz-select-popup/readme.md | 132 +++++++ 12 files changed, 829 insertions(+), 50 deletions(-) create mode 100644 src/mycomponents/qty/numberBox.vue create mode 100644 src/pages/fg/coms/comReceiptPopup.vue create mode 100644 src/pages/inventoryMove/job/nokToHoldMoveJob.vue create mode 100644 src/uni_modules/wz-select-popup/readme.md diff --git a/src/mycomponents/qty/numberBox.vue b/src/mycomponents/qty/numberBox.vue new file mode 100644 index 00000000..527ab08c --- /dev/null +++ b/src/mycomponents/qty/numberBox.vue @@ -0,0 +1,205 @@ + + + diff --git a/src/mycomponents/scan/winComScanFg.vue b/src/mycomponents/scan/winComScanFg.vue index 179a8621..c45dc21a 100644 --- a/src/mycomponents/scan/winComScanFg.vue +++ b/src/mycomponents/scan/winComScanFg.vue @@ -175,8 +175,8 @@ const handelScanMsg = () => { const { partNumber } = result // 客户物料号 const { lengthMat } = result const { lengthBc } = result - // 因为Q5的客户物料进行了加密,没有解析规格,在生产条码配置中的Type配置成Q5 - if (result.Type == 'P') { + // 因为Q5的客户物料进行了加密,没有解析规格,在生产条码配置中的type配置成Q5 + if (result.type == 'P') { const scanPartNumber = content.substr(0, lengthMat) // 扫描的客户物料号 // const productDate = content.substr(lengthMat, 8) // const batch = content.substr(lengthMat + 8, 3) diff --git a/src/pages.json b/src/pages.json index 008f82d7..3877c7d9 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1558,6 +1558,32 @@ } } }, + { + "path": "pages/inventoryMove/job/nokToHoldMoveJob", + "style": { + "navigationBarTitleText": "不合格转隔离", + "enablePullDownRefresh": true, + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, { "path": "pages/inventoryMove/job/holdToOkMoveJob", "style": { diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue new file mode 100644 index 00000000..212edaec --- /dev/null +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index dd0a098b..96be3eaa 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -1,14 +1,22 @@ diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index 8e062fc9..41c137b8 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -132,6 +132,10 @@ const initData = () => { name = '合格转隔离' toLocationCode.value = 'HOLD' toInventoryStatus.value = 'HOLD' + } else if (businessTypeCode.value == 'NokToHold') { + name = '不合格转隔离' + toLocationCode.value = 'HOLD' + toInventoryStatus.value = 'HOLD' } else if (businessTypeCode.value == 'OktoScrap') { name = '合格转报废' toLocationCode.value = 'SCRAP' diff --git a/src/pages/inventoryMove/job/nokToHoldMoveJob.vue b/src/pages/inventoryMove/job/nokToHoldMoveJob.vue new file mode 100644 index 00000000..25580992 --- /dev/null +++ b/src/pages/inventoryMove/job/nokToHoldMoveJob.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/pages/package/record/splitPackageRecord.vue b/src/pages/package/record/splitPackageRecord.vue index c088a2dc..c9ad3d43 100644 --- a/src/pages/package/record/splitPackageRecord.vue +++ b/src/pages/package/record/splitPackageRecord.vue @@ -14,7 +14,7 @@ 拆出数量 : - + @@ -38,7 +38,8 @@ diff --git a/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue b/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue index 1d2ba10c..8f2a10cf 100644 --- a/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue +++ b/src/uni_modules/uni-combox/components/uni-combox/uni-combox.vue @@ -164,7 +164,7 @@ export default { } - +``` + +## 属性props + +| 属性 | 类型 | 默认值 | 说明 | +| ------- | ------ | ------ | ------------------------------------------------------------ | +| scrollH | String | 50vh | 滚动内容的高度,不包含搜索框和多选时的底部按钮栏。需要带单位 | + + +## 方法methods + +| 方法名 | 说明 | 参数 | +| ------ | -------- | ----------------------------- | +| open | 打开弹窗 | [configs](#open方法的configs) | +| close | 关闭弹窗 | | + +### open方法的configs + +| 参数名 | 说明 | 类型 | 默认值 | +| ----------- | ------------------------------------------------------------ | ------------- | -------------------------- | +| mode | 选择模式radio单选 ,checkbox多选 | String | radio | +| selected | 已选中的value, 单选传字符串,多选传数组 | String\|Array | [] | +| dataList | 传入了数组,则直接使用传入的数组渲染,无需再配置proxyConfig | Array | null | +| proxyConfig | 组件内部代理请求数据配置 | Object | [proxyConfig](#proxyConfig的属性) | +| search | 搜索配置 | Object | [search](#search的属性) | +| page | 分页配置,如果是组件内部代理请求会把page的值加入到proxyConfig.reqFun请求参数里 | Object | [page](#page的属性) | +| fields | 显示和取值的label,value | Object | [fields](#fields的属性) | + +#### proxyConfig的属性 + +| 参数名 | 说明 | 类型 | 默认值 | 返回值 | +| ----------- | --------------------------------------------------------- | ------- | ------------------- | --------------------------------------- | +| reqFun | 向服务器请求数据的Promise方法,会返回页码以及搜索框的value | Promise | Promise.resolve([]) | ({pageIndex, pageSize,searchValue})=>{} | +| localPaging | 是否本地分页 | Boolean | false | | + +#### search的属性 + +| 参数名 | 说明 | 类型 | 默认值 | +| ------ | ------------------------------------------------------------ | ------ | ------ | +| type | 搜索的类型,local本地搜索, remote向服务器请求。只有使用proxyConfig.reqFun请求才能配置为remote | String | local | + +#### page的属性 + +| 参数名 | 说明 | 类型 | 默认值 | +| --------- | ------ | ------ | ------ | +| pageIndex | 当前页 | Number | 1 | +| pageSize | 页大小 | Number | 20 | + +#### fields的属性 + +| 参数名 | 说明 | 类型 | 默认值 | +| ------ | ------------ | ------ | ------ | +| label | 显示的字段名 | String | name | +| value | 取值的字段名 | String | code | + +## 事件enevt + +| 名称 | 触发时机 | 返回值 | +| ------ | ------------------------------------------ | ------------------------------------------------------------ | +| select | 单选点击列表时触发,多选点击确定按钮时触发 | mode等于radio时:(mode, {check,name,code})=>{}
mode等于checkbox时:(mode, {names,values,origin})=>{} | +| close | popup关闭 | void |