update: 更新消息中心样式 以及u-input 样式
This commit is contained in:
parent
02260af9d2
commit
f87e508efd
|
@ -0,0 +1,16 @@
|
|||
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
|
||||
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
|
||||
"version": "0.0",
|
||||
"configurations": [{
|
||||
"app-plus" :
|
||||
{
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"default" :
|
||||
{
|
||||
"launchtype" : "local"
|
||||
},
|
||||
"type" : "uniCloud"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,19 +1,19 @@
|
|||
<template>
|
||||
<view class="layout-box">
|
||||
<view class="filter">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.startTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择开始时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<text>-</text>
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.endTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择结束时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<u-icon
|
||||
name="arrow-down"
|
||||
@click="handleDialog('showTime', true)"
|
||||
|
@ -192,7 +192,7 @@ onMounted(() => {
|
|||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
::v-deep .up-input {
|
||||
::v-deep .u-input {
|
||||
padding: 0rpx 16rpx !important;
|
||||
input {
|
||||
font-family: Source Han Sans CN;
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<template>
|
||||
<view class="layout-box">
|
||||
<view class="filter">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.startTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择开始时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<text>-</text>
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.endTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择结束时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<u-icon
|
||||
name="arrow-down"
|
||||
@click="handleDialog('showTime', true)"
|
||||
|
@ -269,7 +269,7 @@ onMounted(() => {
|
|||
font-family: Source Han Sans CN;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
::v-deep .up-input {
|
||||
::v-deep .u-input {
|
||||
padding: 0rpx 16.03rpx !important;
|
||||
input {
|
||||
font-family: Source Han Sans CN;
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<template>
|
||||
<view class="layout-box">
|
||||
<view class="filter">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.startTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择开始时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<text>-</text>
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.endTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择结束时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<u-icon
|
||||
name="arrow-down"
|
||||
@click="handleDialog('showTime', true)"
|
||||
|
@ -266,7 +266,7 @@ onMounted(() => {
|
|||
font-family: Source Han Sans CN;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
::v-deep .up-input {
|
||||
::v-deep .u-input {
|
||||
padding: 0rpx 16.03rpx !important;
|
||||
input {
|
||||
font-family: Source Han Sans CN;
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<template>
|
||||
<view class="layout-box">
|
||||
<view class="filter">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.startTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择开始时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<text>-</text>
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="state.endTime"
|
||||
disabled
|
||||
disabledColor=""
|
||||
placeholder="请选择结束时间"
|
||||
></up-input>
|
||||
></u-input>
|
||||
<u-icon
|
||||
name="arrow-down"
|
||||
@click="handleDialog('showTime', true)"
|
||||
|
@ -190,7 +190,7 @@ onMounted(() => {
|
|||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
::v-deep .up-input {
|
||||
::v-deep .u-input {
|
||||
padding: 0rpx 16.03rpx !important;
|
||||
input {
|
||||
font-family: Source Han Sans CN;
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<view class="title">收货单价区间</view>
|
||||
<view class="range">
|
||||
<view>
|
||||
<up-input
|
||||
<u-input
|
||||
shape="circle"
|
||||
:fontSize="12"
|
||||
:placeholderStyle="{ fontSize: '12px' }"
|
||||
|
@ -53,11 +53,11 @@
|
|||
size="small"
|
||||
v-model="state.minPrice"
|
||||
@change="(e:any) => {handleInput(e, {key: 'minPrice', name: '最低价'})}"
|
||||
></up-input
|
||||
></u-input
|
||||
></view>
|
||||
-
|
||||
<view>
|
||||
<up-input
|
||||
<u-input
|
||||
shape="circle"
|
||||
:fontSize="12"
|
||||
:placeholderStyle="{ fontSize: '12px' }"
|
||||
|
@ -66,7 +66,7 @@
|
|||
size="small"
|
||||
v-model="state.maxPrice"
|
||||
@change="(e:any) => {handleInput(e, {key: 'maxPrice', name: '最高价'})}"
|
||||
></up-input
|
||||
></u-input
|
||||
></view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -41,7 +41,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<uni-file-picker
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -43,7 +43,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<uni-file-picker
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -41,7 +41,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -38,7 +38,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
:password="item.name === 'password'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
|
@ -39,7 +39,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="
|
||||
item.type === 'select' ||
|
||||
item.type === 'input' ||
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template
|
||||
#right
|
||||
v-if="item.type === 'select' || item.type === 'cascader'"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input' || item.type === 'selectCustom'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type.indexOf('select') > -1 ? '选择' : '输入'}${
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select' || item.type === 'selectCustom'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -41,7 +41,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -38,7 +38,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.formData as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
:password="item.key === 'password'"
|
||||
v-model="(model1.formData as any)[item.key]"
|
||||
|
@ -43,7 +43,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<template #right v-if="item.type === 'select'">
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</template>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<uni-file-picker
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -44,7 +44,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<uni-file-picker
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
:prop="`userInfo.${item.modelName}`"
|
||||
>
|
||||
<view v-if="item.type === 'text'">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="model1.userInfo[`${item.modelName}`]"
|
||||
:placeholder="item.placeholder"
|
||||
:shape="'circle'"
|
||||
|
@ -41,10 +41,10 @@
|
|||
>
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
</view>
|
||||
<view v-if="item.type === 'password'">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="model1.userInfo[`${item.modelName}`]"
|
||||
:placeholder="item.placeholder"
|
||||
:shape="'circle'"
|
||||
|
@ -73,7 +73,7 @@
|
|||
@click="item.isShowPwd = false"
|
||||
></image>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
</view>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
:labelWidth="0"
|
||||
>
|
||||
<u-form-item prop="userInfo.userName">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="model1.userInfo.userName"
|
||||
placeholder="请输入手机号"
|
||||
:shape="'circle'"
|
||||
|
@ -24,10 +24,10 @@
|
|||
@change="(e:any) => {handleInput(e, 'userName')}"
|
||||
@clear="handleClear({key: 'userName'})"
|
||||
>
|
||||
</up-input>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
<u-form-item prop="userInfo.password">
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="model1.userInfo.password"
|
||||
placeholder="请输入密码"
|
||||
:shape="'circle'"
|
||||
|
@ -56,7 +56,7 @@
|
|||
@click="isShowPwd = false"
|
||||
></image>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
<view class="remember-box">
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<view class="u-page">
|
||||
<u-list :height="'auto'">
|
||||
<u-list-item v-for="(item, index) in pageList.list" :key="index">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<u-cell @click="handleItem(item)">
|
||||
<view slot="title" class="u-slot-title">
|
||||
<view>
|
||||
|
@ -28,6 +29,23 @@
|
|||
<text class="u-slot-value time">{{ item.createTime }}</text>
|
||||
</template>
|
||||
</u-cell>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="u-slot-title-content" @click="handleItem(item)">
|
||||
<view>
|
||||
<view class="u-cell-text title"
|
||||
>{{ item.title }}
|
||||
<text class="title-badge" v-if="item.status === 0"> </text>
|
||||
</view>
|
||||
<view class="u-cell-text desc">{{ item.content }}</view>
|
||||
<view
|
||||
><text class="u-slot-value time">{{
|
||||
item.createTime
|
||||
}}</text></view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</u-list-item>
|
||||
</u-list>
|
||||
</view>
|
||||
|
@ -108,11 +126,17 @@ const handleItem = (item: any) => {
|
|||
});
|
||||
return;
|
||||
} else {
|
||||
if (res.data.list[0].scaleStatus === ScaleStatus.ToBePriced && MsgType.ToBePriced === item.msgType) {
|
||||
if (
|
||||
res.data.list[0].scaleStatus === ScaleStatus.ToBePriced &&
|
||||
MsgType.ToBePriced === item.msgType
|
||||
) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesReceive/pricing?scaleStatus=0", // 要跳转到的页面路径
|
||||
});
|
||||
} else if (res.data.list[0].scaleStatus === ScaleStatus.ToBeReview && MsgType.ToBeReview === item.msgType) {
|
||||
} else if (
|
||||
res.data.list[0].scaleStatus === ScaleStatus.ToBeReview &&
|
||||
MsgType.ToBeReview === item.msgType
|
||||
) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesReceive/payReview?scaleStatus=2", // 要跳转到的页面路径
|
||||
});
|
||||
|
@ -142,12 +166,16 @@ const handleItem = (item: any) => {
|
|||
});
|
||||
return;
|
||||
} else {
|
||||
if (res.data.list[0].scaleStatus === ScaleStatus.ToBeShipment && MsgType.ToBeShipment === item.msgType) {
|
||||
if (
|
||||
res.data.list[0].scaleStatus === ScaleStatus.ToBeShipment &&
|
||||
MsgType.ToBeShipment === item.msgType
|
||||
) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesShipment/shipmenting?scaleStatus=0", // 要跳转到的页面路径
|
||||
});
|
||||
} else if (
|
||||
res.data.list[0].scaleStatus === ScaleStatus.ToBeShipmentReview && MsgType.ToBeShipmentReview === item.msgType
|
||||
res.data.list[0].scaleStatus === ScaleStatus.ToBeShipmentReview &&
|
||||
MsgType.ToBeShipmentReview === item.msgType
|
||||
) {
|
||||
uni.navigateTo({
|
||||
url: "/pagesShipment/shipmentSettlement?scaleStatus=2", // 要跳转到的页面路径
|
||||
|
@ -171,6 +199,13 @@ onMounted(() => {
|
|||
.msg-box {
|
||||
// background: #f8f8f8;
|
||||
width: 100%;
|
||||
.u-slot-title-content {
|
||||
padding: 13px 15px;
|
||||
font-size: 15px;
|
||||
color: #303133;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
font-family: Source Han Sans CN;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
:key="index"
|
||||
:prop="`userInfo.${item.key}`"
|
||||
>
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="(model1.userInfo as any)[item.key]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
item.name
|
||||
|
@ -41,7 +41,7 @@
|
|||
@click="item.isShowPwd = false"
|
||||
></image>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
</view>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<!-- v-model="(model1.order as any)[item.key]" -->
|
||||
<up-input
|
||||
<u-input
|
||||
v-model="(model1.order as any)[item.key]"
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -47,7 +47,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<uni-file-picker
|
||||
|
|
|
@ -61,7 +61,9 @@
|
|||
</view>
|
||||
|
||||
<view class="more">
|
||||
<view v-if="getIsShow()"> 收货单号:{{ state.order.receiptNumber }} </view>
|
||||
<view v-if="getIsShow()">
|
||||
收货单号:{{ state.order.receiptNumber }}
|
||||
</view>
|
||||
<view v-if="getIsShow()"></view>
|
||||
<view v-for="(item, index) in gridList1" :key="index">
|
||||
<text v-if="item.name">{{ item.name }}:</text
|
||||
|
@ -70,7 +72,10 @@
|
|||
{{ item.num }}
|
||||
{{ item.isBefore ? "" : item.unit }}
|
||||
<text
|
||||
v-if="item.name === '货款金额' && ScaleStatus.ToBeReview === state.order.scaleStatus"
|
||||
v-if="
|
||||
item.name === '货款金额' &&
|
||||
ScaleStatus.ToBeReview === state.order.scaleStatus
|
||||
"
|
||||
@click="handleEdit()"
|
||||
:style="{
|
||||
color: 'rgba(0, 220, 238, 1)',
|
||||
|
@ -78,7 +83,7 @@
|
|||
'border-radius': '20rpx',
|
||||
fontSize: '12px',
|
||||
padding: '1px 10px',
|
||||
marginLeft: '10rpx'
|
||||
marginLeft: '10rpx',
|
||||
}"
|
||||
>
|
||||
编辑
|
||||
|
@ -149,11 +154,11 @@
|
|||
@confirm="handleConfirm"
|
||||
@cancel="isInput = false"
|
||||
>
|
||||
<up-input
|
||||
<u-input
|
||||
placeholder="请输入货款金额"
|
||||
type="number"
|
||||
v-model="amount"
|
||||
></up-input>
|
||||
></u-input>
|
||||
</u-modal>
|
||||
</template>
|
||||
|
||||
|
@ -215,7 +220,7 @@ const state = reactive<{
|
|||
[attrName: string]: any;
|
||||
}>({
|
||||
order: {
|
||||
carNumber: ''
|
||||
carNumber: "",
|
||||
},
|
||||
sheetList: [
|
||||
{
|
||||
|
@ -327,10 +332,8 @@ const handleSelect = (key: string, v: any) => {
|
|||
contrlModalParams[key].isShow = false;
|
||||
if (key === "paySelect") {
|
||||
// 修改订单状态
|
||||
ReceiveApi.updateOne({
|
||||
...state.order,
|
||||
scaleStatus: 4,
|
||||
paymentMethod: v.key,
|
||||
ReceiveApi.updateOrderIn({
|
||||
orderInPos: [{ ...state.order, scaleStatus: 4, paymentMethod: v.key }],
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
uni.showToast({
|
||||
|
@ -369,7 +372,11 @@ const handleUpdateOrder = () => {
|
|||
};
|
||||
// 重新过皮
|
||||
const handleReWeight = () => {
|
||||
ReceiveApi.reTare({ id: state.order.id, userId: state.order.userId, deviceId: state.order.deviceId }).then((res) => {
|
||||
ReceiveApi.reTare({
|
||||
id: state.order.id,
|
||||
userId: state.order.userId,
|
||||
deviceId: state.order.deviceId,
|
||||
}).then((res) => {
|
||||
if (res.code === 200) {
|
||||
uni.redirectTo({
|
||||
url: "/pagesReceive/pricing?scaleStatus=1", // 要跳转到的页面路径
|
||||
|
@ -387,7 +394,7 @@ onLoad((option) => {
|
|||
ReceiveApi.getDetailById({ id: state.order.id }).then((res) => {
|
||||
if (res.code === 200) {
|
||||
state.order = res.data;
|
||||
gridList1.map((item:any) => {
|
||||
gridList1.map((item: any) => {
|
||||
if (item.name === "扣杂" || item.name === "扣点") {
|
||||
if (state.order.buttonType === 0) {
|
||||
item.name = "扣杂";
|
||||
|
@ -403,12 +410,12 @@ onLoad((option) => {
|
|||
if (state.order[item.enName as string]) {
|
||||
item.num = state.order[item.enName as string];
|
||||
} else {
|
||||
item.num = state.order['totalPrice'];
|
||||
item.num = state.order["totalPrice"];
|
||||
state.order[item.enName] = state.order["totalPrice"];
|
||||
}
|
||||
} else {
|
||||
item.num = state.order[item.enName as string];
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
v-model="(model1.order as any)[(item.key as any)]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[(item.key as any)]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -46,7 +46,7 @@
|
|||
{{ item.unit }}
|
||||
</text>
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<uni-file-picker
|
||||
v-if="item.type === 'upload'"
|
||||
v-model="model1.order.fileLists"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
v-model="(model1.order as any)[(item.key as any)]"
|
||||
:placeholder="`请输入${item.name}`"
|
||||
></u-textarea>
|
||||
<up-input
|
||||
<u-input
|
||||
v-if="item.type === 'select' || item.type === 'input'"
|
||||
v-model="(model1.order as any)[(item.key as any)]"
|
||||
:placeholder="`请${item.type === 'select' ? '选择' : '输入'}${
|
||||
|
@ -40,7 +40,7 @@
|
|||
<template #suffix>
|
||||
{{ item.unit }}
|
||||
</template>
|
||||
</up-input>
|
||||
</u-input>
|
||||
<!-- @afterRead="afterRead"
|
||||
@delete="deletePic" -->
|
||||
<!-- <u-upload
|
||||
|
|
Loading…
Reference in New Issue