Commit 784f675d authored by Facius's avatar Facius

退件可选数量

parent f977f50d
......@@ -114,15 +114,15 @@
},
titleColor() {
switch (String(this.info.status)) {
case '-1': // 审核未通过
case '-2': // 审核未通过
return '#FA5A49'
case '1': // 已取消
case '-1': // 已取消
return '#333333'
default:
return '#2272FF'
}
},
// 待签收 15 变 已签收 20; 10 待审核 1 变 已取消 -1
// 待签收 15 -> 已签收 20; 10 待审核 1 -> 已取消 -1
willStatuses() {
return {
'1': '-1',
......
......@@ -8,7 +8,12 @@
<view>{{remarkText}}</view>
</view>
</view>
<view class="count-view">x{{item.quantity||0}}</view>
<view class="count-view">
<view v-if="showChecked">
<u-number-box v-model="item.quantity" :min="item.min || 0" :max="item.max || item.quantity" @change="numChange"></u-number-box>
</view>
<text v-else>x{{item.quantity||0}}</text>
</view>
</view>
</template>
......@@ -51,7 +56,11 @@
methods: {
handleChange() {
this.$emit('change')
}
},
numChange(event) {
console.log(event.value)
this.$emit('numChange', event.value)
},
}
}
</script>
......
......@@ -113,7 +113,7 @@
align-items: center;
}
.bottom-left {
margin-left: 30rpx;
// margin-left: 30rpx;
.left-list {
width: 100%;
&:nth-of-type(1) {
......@@ -166,7 +166,7 @@
}
.bottom-right {
width: 360rpx;
margin-right: 20rpx;
// margin-right: 20rpx;
.btn {
width: 100%;
padding: 30rpx;
......
......@@ -214,7 +214,7 @@
{
label: '配件申请',
type: 'image',
image: 'xiancahngpaizhao.png',
image: 'peijian.png',
show: this.allowFeedback,
disabled: false,
count: 3,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment