| | |
| | | }, |
| | | show_select_station: false, |
| | | show_select_status: false, |
| | | |
| | | selecttoday: true, |
| | | columns_station: [], |
| | | status_columns: [], |
| | | } |
| | |
| | | this.query.stationId = options.stationId || '' |
| | | this.query.stationName = options.stationName || '' |
| | | |
| | | this.listApi = '/api/delivery/list/today' |
| | | // this.listApi = '/api/delivery/list/today' |
| | | this.listApi = '/api/delivery/check/list/today' |
| | | this.getList() |
| | | // this.$http.request('get', '/api/station/list', { |
| | | // params: {} |
| | |
| | | uni.stopPullDownRefresh() |
| | | }, |
| | | methods: { |
| | | changeSelecrRange() { |
| | | this.selecttoday = !this.selecttoday |
| | | |
| | | this.$nextTick(() => { |
| | | if (this.selecttoday) { |
| | | this.listApi = '/api/supplier/delivery/list/today' |
| | | } else { |
| | | this.listApi = '/api/supplier/delivery/list' |
| | | } |
| | | this.refreshList() |
| | | }) |
| | | }, |
| | | callTel(tel) { |
| | | if (tel) { |
| | | uni.makePhoneCall({ |
| | |
| | | }) |
| | | }, |
| | | async compelete(item) { |
| | | await this.$message.confirm("是否完成此单质检") |
| | | |
| | | await this.$message.confirm("是否一键完成此单的质检") |
| | | // '/api/delivery/list/view/complete' |
| | | const { |
| | | code, |
| | | data |
| | | } = await this.$http.request('get', '/api/delivery/list/view/complete', { |
| | | } = await this.$http.request('get', '/api/delivery/check/list/complete', { |
| | | params: { |
| | | id: item.id |
| | | } |
| | |
| | | setTimeout(async () => { |
| | | await tmp.refreshList() |
| | | tmp.$forceUpdate() |
| | | }, 200) |
| | | }, 500) |
| | | } |
| | | } |
| | | } |
| | |
| | | </u-input> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="m-t-12"> |
| | | <view class="m-l-a m-r-20 w-fit flex"> |
| | | <radio :checked="selecttoday" @click="changeSelecrRange"></radio> |
| | | <view>只查看今日</view> |
| | | </view> |
| | | </view> --> |
| | | <view class="search-container m-t-12 flex"> |
| | | <view class="flex1 input"> |
| | | <u-input placeholder="请输入货位号" v-model="query.warehouseLocationCode"> |
| | |
| | | <view class="line-gray"></view> |
| | | <view class="flex buttons"> |
| | | <view class="button button-1 m-l-a m-r-15" |
| | | v-if="item.status==='ARRIVED'||item.status==='PENDING'" @click="compelete(item)">质检完成</view> |
| | | v-if="item.status==='ARRIVED'||item.status==='PENDING'" @click="compelete(item)">一键质检</view> |
| | | <view class="button button-0 m-l-a m-r-0" @click="toDetail(item)"> |
| | | {{(item.status==='ARRIVED'||item.status==='PENDING')?'前往质检':'查看详情'}} |
| | | </view> |