修改发票显示问题和暂存工作台修改

This commit is contained in:
2025-02-19 19:54:02 +08:00
parent 103c10347c
commit 616c6a53fb
47 changed files with 1142 additions and 82 deletions

View File

@@ -0,0 +1,50 @@
import { alertInfo, alertSuccess } from "../../../../../../utils/index";
import request from "../../../../../../utils/request"
const { OK } = request
// pages/workBench/components/account/components/editModal/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
type: String,
title: String,
visible: Boolean,
onOk: Function,
onCancel: Function,
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
async onSubmit() {
const { phone, name } = this.data;
if (!phone) {
alertInfo("请输入手机号")
return
}
if (!name) {
alertInfo("请输入昵称")
return
}
// const { code, message } = await update()
// if (code !== OK) {
// alertInfo(message)
// return;
// }
// alertSuccess("操作成功")
// if (this.onOk) {
// this.onOk()
// }
}
}
})

View File

@@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"van-dialog": "@vant/weapp/dialog/index",
"search-select": "/components/searchSelect/index",
"van-field": "@vant/weapp/field/index"
}
}

View File

@@ -0,0 +1,30 @@
<!--pages/workBench/components/account/components/editModal/index.wxml-->
<van-dialog
use-slot
title="{{title}}"
show="{{ visible }}"
show-cancel-button
bind:confirm="onSubmit"
>
<view class="modalContentWrapper">
<van-field
value=""
label="昵称"
readonly
type="textarea"
autosize="{{true}}"
title-width="120rpx"
border="{{false}}"
/>
<van-field
value="{{ meterName }}"
placeholder="请选择电表"
label="手机号"
readonly
border="{{ false }}"
title-width="120rpx"
>
</van-field>
</view>
</van-dialog>

View File

@@ -0,0 +1 @@
/* pages/workBench/components/account/components/editModal/index.wxss */