From 1cfca59074e2920849c41db4e93ff140641c07e3 Mon Sep 17 00:00:00 2001 From: ljx120 <10717296+ljx120@user.noreply.gitee.com> Date: Tue, 7 Jan 2025 17:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E5=81=9A=E5=8D=95=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 14 +- .../{detail.vue => detailCus.vue} | 15 +- pages/distribution/detailSpot.vue | 296 ++++++++++++++++++ pages/distribution/distribution.vue | 153 ++++++--- 4 files changed, 431 insertions(+), 47 deletions(-) rename pages/distribution/{detail.vue => detailCus.vue} (89%) create mode 100644 pages/distribution/detailSpot.vue diff --git a/pages.json b/pages.json index 36481ee..64eb2dc 100644 --- a/pages.json +++ b/pages.json @@ -293,7 +293,19 @@ } }, { - "path" : "pages/distribution/detail", + "path" : "pages/distribution/detailSpot", + "style" : + { + "navigationStyle": "custom", + "enablePullDownRefresh": false, + "disableScroll": true, + "app-plus": { + "bounce": "none" + } + } + }, + { + "path" : "pages/distribution/detailCus", "style" : { "navigationStyle": "custom", diff --git a/pages/distribution/detail.vue b/pages/distribution/detailCus.vue similarity index 89% rename from pages/distribution/detail.vue rename to pages/distribution/detailCus.vue index 6b35caa..520a828 100644 --- a/pages/distribution/detail.vue +++ b/pages/distribution/detailCus.vue @@ -28,13 +28,13 @@ - - - - @@ -63,7 +63,7 @@ - + 部分配货 @@ -179,6 +179,11 @@ border: 1px solid #d7d7d7; } } + .bor-n{ + ::v-deep .van-field__control { + border: none; + } + } ::v-deep .van-field__control { border-bottom: 1px solid #d7d7d7; diff --git a/pages/distribution/detailSpot.vue b/pages/distribution/detailSpot.vue new file mode 100644 index 0000000..3ba16f3 --- /dev/null +++ b/pages/distribution/detailSpot.vue @@ -0,0 +1,296 @@ + + + + + \ No newline at end of file diff --git a/pages/distribution/distribution.vue b/pages/distribution/distribution.vue index a108207..eb95a9b 100644 --- a/pages/distribution/distribution.vue +++ b/pages/distribution/distribution.vue @@ -3,26 +3,14 @@ import { getAction } from '../../common/http'; import { formatDate } from '../../utils/date'; import { onShow } from '@dcloudio/uni-app'; -import { showToast } from 'vant'; + import { showToast } from 'vant'; - const form = ref({} as any) + const form = ref({status:'已通过'} as any) const list = ref([] as any[]) const statusList = ref([ - { status: "待审核", code: "UnCheck", type: "warning", path: '/pages/spot/audit' }, - { status: "待主管审核", code: "UnCheckByLeader", type: "primary" }, - { status: "待排单员审核", code: "UnCheckByCharger", type: "success" }, - { status: "已通过", code: "Checked", type: "primary", path: '/pages/spot/pass' }, - { status: "取消审核中", code: "Canceling", type: "warning" }, - { status: "已取消", code: "Canceled", type: "danger" }, - { status: "被驳回", code: "Rejected", type: "danger" }, - { status: "部分配货", code: "Allocating", type: "warning" }, - { status: "已配完(待进厂)", code: "Allocated", type: "success" }, - { status: "已进厂", code: "Processing", type: "primary" }, - { status: "已出厂(待收货)", code: "Processed", type: "success" }, - { status: "待质检", code: "UnTested", type: "warning" }, - { status: "已质检(待入库)", code: "Testing", type: "primary" }, - { status: "已质检(待入库)", code: "Tested", type: "primary" }, - { status: "已入库", code: "Storage", type: "success" } + { status: "部分配货", type: "warning"}, + { status: "待配货", type: "primary" }, + { status: "已配全", type: "success" }, ]) const nameList = ref([] as any[]) @@ -84,20 +72,35 @@ import { showToast } from 'vant'; }; function init() { + total.value=0 getAction('/customOrder', form.value).then((res : any) => { if (res.code === 200) { res.data.record.forEach((l : any) => { + l.lx=1 list.value.push(l) - let item = statusList.value.find((m : any) => m.status == l.customOrder.status) + let item = statusList.value.find((m : any) => m.status == l.customOrder.zt) l.customOrder.statusColor = item.type - }) - total.value = res.data.total + total.value += res.data.total*1 + loading.value = false; + finished.value = false + } + }) + getAction('/interOrder', form.value).then((res : any) => { + if (res.code === 200) { + res.data.record.forEach((l : any) => { + l.lx=2 + list.value.push(l) + let item = statusList.value.find((m : any) => m.status == l.zt) + l.statusColor = item.type + }) + total.value += res.data.total*1 loading.value = false; finished.value = false } }) } + watch(form.value, () => { list.value = [] init() @@ -122,8 +125,8 @@ import { showToast } from 'vant'; } //弹窗开启事件 const handleOpen = () => { - if (typeData.value === 'status') { - popuList.value = [{ text: '待主管审核', value: '待主管审核' }, { text: '待主管审核', value: '待主管审核' }, { text: '待排单审核', value: '待排单审核' }, { text: '已通过', value: '已通过' }, { text: '被驳回', value: '被驳回' }, { text: '取消审核中', value: '取消审核中' }, { text: '已取消', value: '已取消' }] + if (typeData.value === 'zt') { + popuList.value = [{ text: '待配货', value: '待配货' }, { text: '部分配货', value: '部分配货' }, { text: '已配全', value: '已配全' }] } else { popuList.value = nameList.value } @@ -142,10 +145,18 @@ import { showToast } from 'vant'; //详情 const toDetile = (item : any) => { - let url = './detail' + '?' + 'item=' + JSON.stringify(item) - uni.navigateTo({ - url: url, - }) + if(item.lx===1){ + let url = './detailCus' + '?' + 'item=' + JSON.stringify(item) + uni.navigateTo({ + url: url, + }) + }else if(item.lx===2){ + let url = './detailSpot' + '?' + 'item=' + JSON.stringify(item) + uni.navigateTo({ + url: url, + }) + } + } @@ -236,31 +247,67 @@ import { showToast } from 'vant'; - - - - + + + 日期/颜色 - 面料名称/工艺/谁定 + 面料名称/工艺
谁定
匹数 状态
- - {{item.customOrder.makeTime}} - - {{item.customOrder.makeUser}}/{{item.customOrder.belongTo}}
{{item.customOrder.sd}} -
- {{item.customOrder.totalLen}}米/{{item.customOrder.totalQty}}匹 - - {{item.customOrder.status}} + + + + {{item.makeTime}}
{{item.color}}
+ + + + {{itemSecond.name}}
{{item.craft}}   {{itemSecond.belongTo}} +
+
+
+ + + + {{itemSecond.quantity}} + + + + + {{item.zt}} +
@@ -325,6 +372,30 @@ import { showToast } from 'vant'; align-items: center; text-align: center; justify-content: center; + + .grid-container1 { + display: grid; + grid-template-columns: 1fr; + width: 100%; + height: 100%; + + .grid-item2 { + display: flex; + align-items: center; + text-align: center; + justify-content: center; + padding: 5rpx; + } + + .grid-item1 { + border-bottom: 1px solid #f2f2f2; + display: flex; + align-items: center; + text-align: center; + justify-content: center; + padding: 5rpx; + } + } } }