取号换行
This commit is contained in:
@@ -33,6 +33,18 @@
|
||||
<input type="text" placeholder="请输入单价(元)" v-model="datas.form.list.price" name="" id="">
|
||||
</view>
|
||||
</view>
|
||||
<view style="justify-content: space-between;">
|
||||
<view>
|
||||
单位
|
||||
</view>
|
||||
<picker @change="changeNowStatusIndexs" :range="datas.unitList">
|
||||
<view class="color-333" style="height: 84rpx;line-height: 84rpx;">
|
||||
{{datas.form.list.unit}}
|
||||
</view>
|
||||
</picker>
|
||||
<!-- defaultUnit -->
|
||||
<uni-icons type="bottom" size="16"></uni-icons>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
应付金额
|
||||
@@ -117,6 +129,7 @@
|
||||
list: [],
|
||||
// 供应商渲染数组
|
||||
status: [],
|
||||
unitList:[],
|
||||
form: {
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
type: "out",
|
||||
@@ -135,6 +148,10 @@
|
||||
})
|
||||
onMounted(() => {
|
||||
datas.item = JSON.parse(props.item)
|
||||
datas.form = Object.assign(datas.form, datas.item)
|
||||
// 单位列表
|
||||
datas.unitList = [ datas.form.conUnit,datas.form.conUnitTwo]
|
||||
datas.form.list.unit=datas.form.defaultUnit
|
||||
})
|
||||
onShow(() => {
|
||||
getList()
|
||||
@@ -165,7 +182,9 @@ onShow(() => {
|
||||
nowStatusIndex.value = i.detail.value
|
||||
showStatus.value = false
|
||||
}
|
||||
|
||||
function changeNowStatusIndexs(i) {
|
||||
datas.form.list.unit = datas.unitList[i.detail.value]
|
||||
}
|
||||
function sumbit() {
|
||||
|
||||
if (!datas.form.list.stockNumber) {
|
||||
|
||||
Reference in New Issue
Block a user