diff --git a/pageConsumables/outbound.vue b/pageConsumables/outbound.vue
index f1782b6..d6c9426 100644
--- a/pageConsumables/outbound.vue
+++ b/pageConsumables/outbound.vue
@@ -33,6 +33,18 @@
+
+
+ 单位
+
+
+
+ {{datas.form.list.unit}}
+
+
+
+
+
应付金额
@@ -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) {
diff --git a/pageConsumables/warehouseEntry.vue b/pageConsumables/warehouseEntry.vue
index cdca5c5..da08283 100644
--- a/pageConsumables/warehouseEntry.vue
+++ b/pageConsumables/warehouseEntry.vue
@@ -25,15 +25,6 @@
-
*单价
@@ -42,6 +33,18 @@
+
+
+ 单位
+
+
+
+ {{datas.form.list.unit}}
+
+
+
+
+
应付金额
@@ -71,14 +74,13 @@
供应商
- {{datas.status[nowStatusIndex]}}
+ {{datas.status[nowStatusIndex]}}
+
新增
-
@@ -120,6 +122,8 @@
list: [],
// 供应商渲染数组
status: [],
+ // 单位列表
+ unitList: [],
form: {
shopId: uni.getStorageSync("shopId"),
type: "in",
@@ -138,7 +142,10 @@
})
onMounted(() => {
datas.item = JSON.parse(props.item)
- datas.form = assign(datas.form, ...datas.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()
@@ -159,7 +166,6 @@
res.content.forEach(ele => {
datas.status.push(ele.purveyorName)
})
- console.log(datas.status, '调试121')
})
}
@@ -173,6 +179,10 @@
showStatus.value = false
}
+ function changeNowStatusIndexs(i) {
+ datas.form.list.unit = datas.unitList[i.detail.value]
+ }
+
function sumbit() {
if (!datas.form.list.stockNumber) {
refs.ctx.$refs.uToastRef.show({
diff --git a/pageLineUp/index.vue b/pageLineUp/index.vue
index f76e29e..b784d08 100644
--- a/pageLineUp/index.vue
+++ b/pageLineUp/index.vue
@@ -267,6 +267,7 @@
.pageLineUpTop {
.df;
justify-content: space-around;
+ flex-wrap: wrap;
margin: 36rpx 0;
>view {
@@ -275,7 +276,7 @@
background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
border: 2rpx solid #E5E5E5;
-
+ margin-top: 20rpx;
>view {
text-align: center;
}