提交耗材问题

This commit is contained in:
duan 2024-11-01 17:46:57 +08:00
parent a40d7bf142
commit ab5c746b80
5 changed files with 27 additions and 15 deletions

View File

@ -72,7 +72,8 @@
...datas.form ...datas.form
}).then(res => { }).then(res => {
go.to('PAGES_SUPPLIER') // go.to('PAGES_SUPPLIER')
go.back()
}) })
} }
</script> </script>

View File

@ -58,7 +58,7 @@
@tap="toUrl('PAGES_PAYMENT_SETTLEMENT',{id:item.id})" :plain="true" text="结款记录"></up-button> @tap="toUrl('PAGES_PAYMENT_SETTLEMENT',{id:item.id})" :plain="true" text="结款记录"></up-button>
</view> </view>
</view> </view>
<view style="height: 200rpx;"> </view> <view style="height: 200rpx;background-color: #f9f9f9;"> </view>
</template> </template>
<view v-else style="text-align: center;background-color: #f9f9f9;">暂无数据</view> <view v-else style="text-align: center;background-color: #f9f9f9;">暂无数据</view>
</view> </view>

View File

@ -5,11 +5,11 @@
<uni-forms :model="userForm" :rules="rules" err-show-type="toast" validateTrigger="submit" ref="form" <uni-forms :model="userForm" :rules="rules" err-show-type="toast" validateTrigger="submit" ref="form"
:border="true" label-position="top" label-width="350"> :border="true" label-position="top" label-width="350">
<view class="block"> <view class="block">
<uni-forms-item label="用户名" required name="nickName"> <uni-forms-item label="用户名" required >
<uni-easyinput paddingNone :placeholderStyle="placeholderStyle" :inputBorder="inputBorder" <uni-easyinput paddingNone :placeholderStyle="placeholderStyle" :inputBorder="inputBorder"
v-model="userForm.nickName" placeholder="填写用户名" /> v-model="userForm.nickName" placeholder="填写用户名" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="手机号" required name="phone"> <uni-forms-item label="手机号" required >
<uni-easyinput paddingNone :placeholderStyle="placeholderStyle" :inputBorder="inputBorder" <uni-easyinput paddingNone :placeholderStyle="placeholderStyle" :inputBorder="inputBorder"
v-model="userForm.phone" placeholder="填写号码" /> v-model="userForm.phone" placeholder="填写号码" />
</uni-forms-item> </uni-forms-item>
@ -20,7 +20,7 @@
</uni-forms-item> --> </uni-forms-item> -->
<uni-forms-item label="生日" required name="birthDay"> <uni-forms-item label="生日" required >
<view style="display: none;"> <view style="display: none;">
<uni-easyinput paddingNone :inputBorder="inputBorder" v-model="userForm.birthDay" <uni-easyinput paddingNone :inputBorder="inputBorder" v-model="userForm.birthDay"
placeholder="选择日期" /> placeholder="选择日期" />
@ -34,7 +34,7 @@
</picker> </picker>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="性别" required name="birthDay"> <uni-forms-item label="性别" required >
<radio-group class="u-flex u-flex-wrap" @change="sizeChange($event,'sex')"> <radio-group class="u-flex u-flex-wrap" @change="sizeChange($event,'sex')">
<label class="radio u-m-r-60"> <label class="radio u-m-r-60">
<radio value="1" :checked="userForm.sex == '1'" class="scale7" /> <radio value="1" :checked="userForm.sex == '1'" class="scale7" />
@ -109,6 +109,9 @@
const inputBorder = ref(false) const inputBorder = ref(false)
const form = ref(null) const form = ref(null)
const bottom = ref(null) const bottom = ref(null)
const props = defineProps({
item:{type:''}
})
// //
const rules = { const rules = {
nickName: { nickName: {
@ -199,8 +202,8 @@
onLoad(params => { onLoad(params => {
if (params.item) { if (params.id) {
let items = JSON.parse(params.item) let items = params
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '编辑用户' title: '编辑用户'
}) })

View File

@ -10,7 +10,7 @@
<view class="color-000 font-bold">{{data.nickName}}</view> <view class="color-000 font-bold">{{data.nickName}}</view>
<image style="width: 24rpx;height: 24rpx;" v-if="data.sex=='男'" src="./men.png" mode=""></image> <image style="width: 24rpx;height: 24rpx;" v-if="data.sex=='男'" src="./men.png" mode=""></image>
<image style="width: 24rpx;height: 24rpx;" v-if="data.sex=='女'" src="./women.png" mode=""></image> <image style="width: 24rpx;height: 24rpx;" v-if="data.sex=='女'" src="./women.png" mode=""></image>
<view class="color-999 u-m-l-40" @click="remark">备注</view> <!-- <view class="color-999 u-m-l-40" @click="remark">备注</view> -->
</view> </view>
<!-- <view class="u-m-t-6 u-flex u-row-between"> <!-- <view class="u-m-t-6 u-flex u-row-between">
<view class="vip isvip" v-if="data.isVip">会员</view> <view class="vip isvip" v-if="data.isVip">会员</view>

View File

@ -229,7 +229,7 @@
</view> </view>
<view class="zhezhaopopfour"> <view class="zhezhaopopfour">
<view style="font-weight: 400;font-size: 28rpx;color: #333333;"> <view style="font-weight: 400;font-size: 28rpx;color: #333333;">
</view> </view>
<view class=""> <view class="">
<input type="number" v-model="datas.form.amount" placeholder="请输入金额" /> <input type="number" v-model="datas.form.amount" placeholder="请输入金额" />
@ -238,7 +238,7 @@
</view> </view>
</view> </view>
</view> </view>
<up-button text="确认" @tap="callTabletakeNumberEvent" type="primary" class="buttomStyle" <up-button text="确认" @tap="callTabletakeNumberEvent" type="primary" class="buttomStyle"
shape="circle"></up-button> shape="circle"></up-button>
</view> </view>
</up-popup> </up-popup>
@ -275,7 +275,8 @@
let datas = reactive({ let datas = reactive({
show: false, show: false,
form: { form: {
operationType: 'in' operationType: 'in',
type: 'inMoney'
}, },
activeUser: null activeUser: null
}) })
@ -295,6 +296,7 @@
...datas.form ...datas.form
}) })
datas.show = false; datas.show = false;
close()
getUser() getUser()
} }
const remarModelData = reactive({ const remarModelData = reactive({
@ -306,6 +308,13 @@
function sizeChange(e, name) { function sizeChange(e, name) {
datas.form[name] = e.detail.value datas.form[name] = e.detail.value
if (name == 'operationType') {
if (datas.form.operationType == 'in') {
datas.form.type = 'inMoney'
} else {
datas.form.type = 'consumeOut'
}
}
} }
const goodsStockModel = ref(null) const goodsStockModel = ref(null)
@ -333,9 +342,7 @@
} else if (i == 1) { } else if (i == 1) {
hasPermission('允许管理会员信息').then(ele => { hasPermission('允许管理会员信息').then(ele => {
if (ele) { if (ele) {
go.to('PAGES_USER_ADD', { go.to('PAGES_USER_ADD', datas.activeUser)
item: JSON.stringify(datas.activeUser)
})
} }
}) })
} }
@ -719,6 +726,7 @@
.zhezhaopopfour { .zhezhaopopfour {
margin-top: 32rpx; margin-top: 32rpx;
margin-bottom: 48rpx; margin-bottom: 48rpx;
>view:nth-child(2) { >view:nth-child(2) {
margin-top: 24rpx; margin-top: 24rpx;
display: flex; display: flex;