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 + } \ 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 @@ @@ -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 @@