From 8559019904125f44fc7099c2616a1508771aea89 Mon Sep 17 00:00:00 2001
From: ljx120 <10717296+ljx120@user.noreply.gitee.com>
Date: Wed, 1 Jan 2025 16:59:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 12 +
pages/customOrder/customOrder.vue | 19 +-
pages/index/index.vue | 5 +
pages/maintenance/m-factory.vue | 82 ++++++-
pages/maintenance/m-flow.vue | 254 +++++++++++++++++++++
pages/maintenance/m-requirements.vue | 325 +++++++++++++++++++++------
pages/maintenance/processOldzmd.vue | 321 +++++++++++++-------------
7 files changed, 768 insertions(+), 250 deletions(-)
create mode 100644 pages/maintenance/m-flow.vue
diff --git a/pages.json b/pages.json
index 03a1094..9a3fe0d 100644
--- a/pages.json
+++ b/pages.json
@@ -255,6 +255,18 @@
"bounce": "none"
}
}
+ },
+ {
+ "path" : "pages/maintenance/m-flow",
+ "style" :
+ {
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false,
+ "disableScroll": true,
+ "app-plus": {
+ "bounce": "none"
+ }
+ }
}
],
"globalStyle": {
diff --git a/pages/customOrder/customOrder.vue b/pages/customOrder/customOrder.vue
index d2545c9..16d6dae 100644
--- a/pages/customOrder/customOrder.vue
+++ b/pages/customOrder/customOrder.vue
@@ -4,7 +4,6 @@
import { getAction } from '../../common/http';
import { showToast } from 'vant';
- const showDialog = ref(false)
const formList = ref([] as any[])
const otherList = ref([] as any[])
onMounted(() => {
@@ -62,18 +61,14 @@
})
const onClickLeft = () => {
- history.back()
+ uni.navigateBack()
}
- //弹窗提交
- const confirmSecond = () => {
-
- }
const onSubmit = () => {
}
- const form = ref({ processes: [{}] } as any)
+ const form = ref({ fabrics: [{processes:[{}]}] } as any)
const showPicker = ref(false)
const typeData = ref()
const popuList = ref([] as any[])
@@ -208,19 +203,19 @@
:rules="[{ required: true, message: '请填写' }]" label-width="5em" readonly class="bor"
@click="choosePic('')" />
- 面料添加
+ 面料添加
-
+
-
+
-
+
@@ -246,7 +241,7 @@
:rules="item.necessary?[{ required: true, message: '请填写' }]:[]" label-width="5em"
readonly class="bor" @click="choosePic('')" />
- 复制新增
+ 复制新增
{
init()
@@ -16,17 +17,22 @@
list.value = res.data
}
})
+ getAction('/process').then((res:any)=>{
+ if(res.code===200){
+ processList.value=res.data.map((l:any)=>({value:l.id,text:l.name}))
+ }
+ })
}
const onClickLeft = () => {
history.back()
}
const onClickRight = () => {
- form.value={}
+ form.value = {availableProcess:[{}]}
showPop.value = true
}
const edit = (item : any) => {
- console.log(item)
+ form.value=JSON.parse(JSON.stringify(item))
showPop.value = true
}
const onSubmit = () => {
@@ -66,6 +72,29 @@
// on cancel
});
}
+
+ const showPicker = ref(false)
+ const indexType = ref()
+ const popuList = ref([])
+ //选择框事件
+ const choosePic = (index : any) => {
+ showPicker.value = true
+ indexType.value = index
+ }
+ //选择框确认
+ const pickerConfirm = (val : any) => {
+ // form.value.content[indexType.value].id = val.selectedOptions[0].value
+ form.value.availableProcess[indexType.value].name = val.selectedOptions[0].text
+ showPickerCancel()
+ }
+ //取消
+ const showPickerCancel = () => {
+ showPicker.value = false
+ }
+ //弹窗开启事件
+ const handleOpen = () => {
+ popuList.value = processList.value
+ }
@@ -79,8 +108,8 @@
操作
+ {{item.code}}
{{item.name}}
- {{item.id}}
编辑 删除
@@ -95,11 +124,13 @@
-
-
-
+
+
@@ -109,6 +140,18 @@
+
+
+ 可做工序
+
+
+ 工序名称
+ 操作
+
+
+ {{item.name}}
+ 删除
+
取消
@@ -117,6 +160,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/maintenance/m-requirements.vue b/pages/maintenance/m-requirements.vue
index a2c3b05..1ea96ec 100644
--- a/pages/maintenance/m-requirements.vue
+++ b/pages/maintenance/m-requirements.vue
@@ -1,18 +1,21 @@
+
+ 大类
+ 操作
+
-
-
- {{item.craft}}
- 编辑
-
-
-
- {{itemSecond}}
-
-
+
+ {{item.category}}
+
+ 编辑
+ 查看
+ 删除
+
+
+
+ {{listItem.category}}
+
+ 小类
+ 操作
+
+
+
+ {{item.subCategory}}
+
+ 删除
+
+
+
+
+
+
新增
-
-
-
-
-
-
+
+
+
+
+ 取消
+ 确认
-
-
- 取消
- 确认
-
+
+
+
+
+
+
+
+
+
+
+ 出厂需上传
+
+
+
+
+
+
+
+
+
+ 填空
+ 选择
+
+
+
+
+
+
+
+ 文字
+ 图片
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 必填
+ 选填
+
+
+
+
+
+
+ 取消
+ 确认
+
+
@@ -107,41 +255,45 @@
display: flex;
flex-direction: column;
height: 100vh;
- width: 100vw;
+ overflow: hidden;
+ margin: 0 15rpx;
.van-nav-bar {
width: 100%;
}
+ .grid-container {
+ display: grid;
+ grid-template-columns: 2fr 1fr;
+
+ .grid-item {
+ border: 1rpx solid #f2f2f2;
+ text-align: center;
+ padding: 5rpx;
+ }
+ }
+
.content {
flex: 1;
- padding: 0 20rpx;
-
- .grid-container {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
-
- .grid-item {
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 10rpx 0;
- }
- }
-
- .card {
- margin: 20rpx 30rpx;
- padding: 10rpx;
- border: 1rpx solid #02a7f0;
- border-radius: 20rpx;
- }
+ overflow-y: scroll;
}
}
+ ::v-deep .van-cell-group--inset {
+ margin: 0;
+ }
+
+ ::v-deep .van-popup--center {
+ max-width: 100vw !important;
+ }
+
.a-b {
- display: flex;
- align-items: center;
+ margin: 10rpx;
+
+ ::v-deep .van-button--normal {
+ padding: 5px 8px;
+ height: 30px;
+ }
}
::v-deep .van-field {
@@ -149,7 +301,13 @@
}
::v-deep .van-field__body {
- border-bottom: 1rpx solid #d7d7d7 !important;
+ border-bottom: 1rpx solid #d7d7d7;
+ }
+
+ .bor-n {
+ ::v-deep .van-field__body {
+ border: none;
+ }
}
::v-deep .van-field__label {
@@ -163,8 +321,39 @@
margin: 30rpx;
::v-deep .van-button--normal {
- padding: 10rpx !important;
+ padding: 0 15rpx !important;
height: 60rpx !important;
}
}
+
+ .a-d-1 {
+ display: flex;
+ align-items: center;
+ margin-left: 30rpx;
+
+ ::v-deep .van-button--normal {
+ padding: 8rpx;
+ height: 50rpx;
+ width: 7em;
+ }
+
+ ::v-deep .van-cell {
+ padding: 10rpx 0;
+ }
+ }
+
+ .a-d {
+ display: flex;
+ align-items: center;
+
+ ::v-deep .van-button--normal {
+ padding: 8rpx;
+ height: 50rpx;
+ width: 7em;
+ }
+
+ ::v-deep .van-cell {
+ padding: 10rpx 0;
+ }
+ }
\ No newline at end of file
diff --git a/pages/maintenance/processOldzmd.vue b/pages/maintenance/processOldzmd.vue
index f54a19e..9ababef 100644
--- a/pages/maintenance/processOldzmd.vue
+++ b/pages/maintenance/processOldzmd.vue
@@ -1,7 +1,6 @@
-
+
工艺名称
操作
@@ -9,7 +8,7 @@
{{item.name}}
- 编辑
+ 编辑
@@ -19,7 +18,7 @@
-
清空
+ -->
+
+ 绑定工序流程
+
+
+
+
+
+
+
+ 现货单使用
+
- 基础块:
+
+
- 请选择对应工序
-
-
-
-
-
-
- 不可跳过
-
-
-
-
-
- 是
- 否
-
-
-
@@ -114,101 +107,102 @@