修改发票下载查询和发票信息修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getInvoiceInfo, updateInvoiceInfo } from "../../../../service/invoice"
|
||||
import { getUserInfo } from "../../../../service/user";
|
||||
import { alertInfo, alertSuccess } from "../../../../utils/index";
|
||||
import { alertInfo, alertSuccess, isValidPhoneNumber } from "../../../../utils/index";
|
||||
import request from '../../../../utils/request'
|
||||
const { OK } = request
|
||||
|
||||
@@ -93,9 +93,9 @@ Component({
|
||||
// alertInfo("请输入地址")
|
||||
// return;
|
||||
// }
|
||||
if (!phone) {
|
||||
alertInfo("请输入电话")
|
||||
return;
|
||||
if (phone && !isValidPhoneNumber(phone)) {
|
||||
alertInfo("手机号格式不正确")
|
||||
return
|
||||
}
|
||||
if (!bank) {
|
||||
alertInfo("请输入开户行")
|
||||
|
@@ -121,23 +121,7 @@
|
||||
<view> {{detail.address || '-'}} </view>
|
||||
</view>
|
||||
</van-field>
|
||||
<van-field
|
||||
label="电话"
|
||||
wx:if="{{(detail.headerType === 0)}}"
|
||||
placeholder="{{editType === 'edit' ? '请输入电话' : ''}}"
|
||||
custom-style="padding-left: 0; padding-right: 0;"
|
||||
readonly="{{editType === 'detail'}}"
|
||||
autosize="{{true}}"
|
||||
type="textarea"
|
||||
title-width="132rpx"
|
||||
border="{{ editType === 'detail' ? false : true }}"
|
||||
bind:change="onChangeText"
|
||||
data-name="phone"
|
||||
>
|
||||
<view slot="input" style="margin-top: -10rpx;">
|
||||
<view> {{detail.phone || '-'}} </view>
|
||||
</view>
|
||||
</van-field>
|
||||
|
||||
<van-field
|
||||
label="备注"
|
||||
wx:if="{{editType === 'detail' }}"
|
||||
@@ -255,17 +239,7 @@
|
||||
data-name="address"
|
||||
/>
|
||||
|
||||
<van-field
|
||||
value="{{formData.phone }}"
|
||||
label="电话"
|
||||
wx:if="{{(formData.headerType === 0) }}"
|
||||
placeholder="{{ '请输入电话'}}"
|
||||
custom-style="padding-left: 0; padding-right: 0;"
|
||||
title-width="132rpx"
|
||||
border="{{ true }}"
|
||||
bind:change="onChangeText"
|
||||
data-name="phone"
|
||||
/>
|
||||
|
||||
|
||||
<van-field
|
||||
value="{{formData.remark}}"
|
||||
@@ -285,6 +259,38 @@
|
||||
<view class="cardWrapper" style="margin-bottom: 40rpx;">
|
||||
<card title="接收信息">
|
||||
<view slot="content">
|
||||
<view wx:if="{{editType === 'detail'}}">
|
||||
<van-field
|
||||
label="手机号"
|
||||
wx:if="{{(detail.headerType === 0)}}"
|
||||
placeholder="{{editType === 'edit' ? '请输入手机号' : ''}}"
|
||||
custom-style="padding-left: 0; padding-right: 0;"
|
||||
readonly="{{editType === 'detail'}}"
|
||||
autosize="{{true}}"
|
||||
type="textarea"
|
||||
title-width="132rpx"
|
||||
border="{{ editType === 'detail' ? false : true }}"
|
||||
bind:change="onChangeText"
|
||||
data-name="phone"
|
||||
>
|
||||
<view slot="input" style="margin-top: -10rpx;">
|
||||
<view> {{detail.phone || '-'}} </view>
|
||||
</view>
|
||||
</van-field>
|
||||
</view>
|
||||
<view wx:else>
|
||||
<van-field
|
||||
value="{{formData.phone }}"
|
||||
label="手机号"
|
||||
wx:if="{{(formData.headerType === 0) }}"
|
||||
placeholder="{{ '请输入手机号' }}"
|
||||
custom-style="padding-left: 0; padding-right: 0;"
|
||||
title-width="132rpx"
|
||||
border="{{ true }}"
|
||||
bind:change="onChangeText"
|
||||
data-name="phone"
|
||||
/>
|
||||
</view>
|
||||
<van-field
|
||||
value="{{detail.email || '--'}}"
|
||||
wx:if="{{editType === 'detail'}}"
|
||||
@@ -297,7 +303,11 @@
|
||||
border="{{ editType === 'detail' ? false : true }}"
|
||||
bind:change="onChangeText"
|
||||
data-name="email"
|
||||
/>
|
||||
>
|
||||
<view slot="input" style="margin-top: -10rpx;">
|
||||
<view> {{detail.email || '-'}} </view>
|
||||
</view>
|
||||
</van-field>
|
||||
<van-field
|
||||
value="{{formData.email}}"
|
||||
wx:else
|
||||
|
Reference in New Issue
Block a user