| | |
| | | </view> |
| | | <view class="search-condition"> |
| | | <view class="title"><text>物料: </text></view> |
| | | <view class="right"><input auto-focus type="text" v-model="HMater" @confirm="getBillList" /></view> |
| | | <view class="right"><input type="text" :focus="enablefocus" v-model="HMater" |
| | | @confirm="getBillList" /></view> |
| | | </view> |
| | | <view class="search-condition"> |
| | | <view class="title"><text>关联项: </text></view> |
| | |
| | | name: "BillListPopup", |
| | | data() { |
| | | return { |
| | | enablefocus: false, |
| | | size: 20, |
| | | curPage: 1, |
| | | length: 0, |
| | |
| | | popupChangeHandler(e) { |
| | | if (e.show === true) { |
| | | this.getBillList() |
| | | |
| | | } else { |
| | | // 清理资源 |
| | | this.size = 20 |
| | |
| | | this.HMater = '' |
| | | this.HCustom = '' |
| | | this.HBillList = [] |
| | | this.enablefocus = false |
| | | } |
| | | }, |
| | | exit() { |
| | |
| | | } |
| | | this.HBillList = result |
| | | this.page = result.length |
| | | setTimeout(() => { |
| | | this.enablefocus = true |
| | | },500) |
| | | } else { |
| | | setTimeout(() => { |
| | | this.enablefocus = true |
| | | },500) |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: Message |
| | |
| | | } |
| | | |
| | | .uni-card[is-active] { |
| | | background-color: rgba(0, 122, 255, 0.2); |
| | | background-color: rgba(0, 122, 255, 0.2); |
| | | } |
| | | } |
| | | </style> |