Commit 784f675d authored by Facius's avatar Facius

退件可选数量

parent f977f50d
...@@ -114,15 +114,15 @@ ...@@ -114,15 +114,15 @@
}, },
titleColor() { titleColor() {
switch (String(this.info.status)) { switch (String(this.info.status)) {
case '-1': // 审核未通过 case '-2': // 审核未通过
return '#FA5A49' return '#FA5A49'
case '1': // 已取消 case '-1': // 已取消
return '#333333' return '#333333'
default: default:
return '#2272FF' return '#2272FF'
} }
}, },
// 待签收 15 变 已签收 20; 10 待审核 1 变 已取消 -1 // 待签收 15 -> 已签收 20; 10 待审核 1 -> 已取消 -1
willStatuses() { willStatuses() {
return { return {
'1': '-1', '1': '-1',
......
...@@ -8,7 +8,12 @@ ...@@ -8,7 +8,12 @@
<view>{{remarkText}}</view> <view>{{remarkText}}</view>
</view> </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> </view>
</template> </template>
...@@ -51,7 +56,11 @@ ...@@ -51,7 +56,11 @@
methods: { methods: {
handleChange() { handleChange() {
this.$emit('change') this.$emit('change')
} },
numChange(event) {
console.log(event.value)
this.$emit('numChange', event.value)
},
} }
} }
</script> </script>
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
align-items: center; align-items: center;
} }
.bottom-left { .bottom-left {
margin-left: 30rpx; // margin-left: 30rpx;
.left-list { .left-list {
width: 100%; width: 100%;
&:nth-of-type(1) { &:nth-of-type(1) {
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
} }
.bottom-right { .bottom-right {
width: 360rpx; width: 360rpx;
margin-right: 20rpx; // margin-right: 20rpx;
.btn { .btn {
width: 100%; width: 100%;
padding: 30rpx; padding: 30rpx;
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
{ {
label: '配件申请', label: '配件申请',
type: 'image', type: 'image',
image: 'xiancahngpaizhao.png', image: 'peijian.png',
show: this.allowFeedback, show: this.allowFeedback,
disabled: false, disabled: false,
count: 3, 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