| | |
| | | </up-sticky> |
| | | <view class="c-p-b-100"> |
| | | <view class="c-p-l-20 c-p-r-20" v-if="orderList&&orderList.length>0"> |
| | | <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid" |
| | | @click='goDetail(item)'> |
| | | <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid"> |
| | | <view class="coreshop-ff chuany-bradius20"> |
| | | <view class="chuany-font26"> |
| | | <view class="chuany-flex chuany-justify-between"> |
| | | <text class="chuany-width7">{{index+1}}</text> |
| | | <text class="chuany-width6">{{index+1}}</text> |
| | | <view class="chuany-width15"> |
| | | {{$util.formatDate(item.deliverTime,'riqi')}} |
| | | </view> |
| | | <view class="chuany-width73"> |
| | | <view :class="item.deliveredstatus == 'Delivered'?'chuany-width67':'chuany-width79'" |
| | | @click='goDetail(item)'> |
| | | <u-text size='14' :text="item.remark||item.companyName" lines="1"> |
| | | </u-text> |
| | | </view> |
| | | <view class="chuany-width5" @tap.stop='editOrder(item)'> |
| | | <up-icon name="edit-pen"></up-icon> |
| | | </view> |
| | | <template v-if="item.deliveredstatus == 'Delivered'"> |
| | | <view class="chuany-width6 chuany-paddingright-10" @tap.stop='editOrder(item)'> |
| | | <up-icon name="edit-pen" size='18'></up-icon> |
| | | </view> |
| | | <view class="chuany-width6" @tap.stop='UndoDeliverPlans(item)'> |
| | | <up-icon name="reload" size='19'></up-icon> |
| | | </view> |
| | | </template> |
| | | <!-- <view class="chuany-width6" v-else> |
| | | <u-text size='14' type="" text="" lines="1"> |
| | | </u-text> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </up-form-item> |
| | | </up-form> |
| | | </up-modal> |
| | | <fui-date-picker range :show="datePickerShow" :value="getFirstDayOfMonth()" type="3" zIndex="10000" |
| | | <fui-date-picker :show="datePickerShow" :value="getFirstDayOfMonth()" type="3" zIndex="10000" |
| | | @change="changePicker" :minDate='minDate' :maxDate='maxDate' @cancel="clickTime"></fui-date-picker> |
| | | <up-action-sheet :show="showActions" :actions="actions" title="请选择" @close="showActions = false" |
| | | wrapMaxHeight='500px' @select="selectItem"> |
| | |
| | | } |
| | | }, |
| | | onPullDownRefresh() { |
| | | this.timeStart = '' |
| | | this.timeEnd = '' |
| | | this.workTime = '' |
| | | this.timeStart = new Date() |
| | | this.timeEnd = new Date() |
| | | this.workTime = this.$util.formatDate(new Date()) |
| | | this.deliverKeyName = '' |
| | | this.init() |
| | | uni.stopPullDownRefresh(); |
| | |
| | | }) |
| | | }, |
| | | changePicker(val) { |
| | | this.workTime = val.startDate.result + '至' + val.endDate.result |
| | | this.timeStart = new Date(val.startDate.result) //工作开始时间 |
| | | this.timeEnd = new Date(val.endDate.result) |
| | | console.log(val, '-=-=’'); |
| | | this.workTime = val.result |
| | | this.timeStart = new Date(val.result) //工作开始时间 |
| | | this.timeEnd = new Date(val.result) |
| | | this.datePickerShow = !this.datePickerShow |
| | | this.init() |
| | | }, |
| | |
| | | // }) |
| | | // this.buyerName = obj.companyName |
| | | }, |
| | | UndoDeliverPlans(item) { |
| | | let that = this |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: '确认撤销该订单吗?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | // 执行确认后的操作 |
| | | that.$api.UndoDeliverPlans(item.keyid).then(res => { |
| | | if (res.code == 1) { |
| | | that.$util.showToast({ |
| | | title: '撤销成功!' |
| | | }) |
| | | that.init() |
| | | } else { |
| | | that.$util.showToast({ |
| | | title: res.error |
| | | }) |
| | | } |
| | | }) |
| | | } else { |
| | | // 执行取消后的操作 |
| | | } |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | delOrder(item) { |
| | | let that = this |
| | | uni.showModal({ |