Browse Source

新需求

hella_online_20240829
yufei0306 6 months ago
parent
commit
09366286f2
  1. 9
      src/mycomponents/job/jobComMainDetailCard.vue
  2. 6
      src/pages/deliver/coms/comDeliverJobCard.vue
  3. 18
      src/pages/deliver/job/deliverJob.vue

9
src/mycomponents/job/jobComMainDetailCard.vue

@ -4,6 +4,7 @@
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowPackUnit="false" <itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" :isShowPackUnit="false"
:objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}"></itemCompareQty> :objTextStyle="{'fontWeight':'bold','fontSize':'40rpx'}"></itemCompareQty>
<div class="u-p-l-10"> <div class="u-p-l-10">
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> <pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber">
</pack> </pack>
<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch> <batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch>
@ -14,6 +15,10 @@
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode"> <to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode">
</to-location> </to-location>
</div> </div>
<view class="card_view " v-if="isShowDeliverType">
<text class="card_packing_code card_content ">发货类型</text>
<text class="card_content ">{{dataContent.deliverType?'三方库发货':'寄售库发货'}}</text>
</view>
</div> </div>
</view> </view>
</view> </view>
@ -65,6 +70,10 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
isShowDeliverType: {
type: Boolean,
default: false
},
}, },

6
src/pages/deliver/coms/comDeliverJobCard.vue

@ -1,6 +1,6 @@
<template> <template>
<job-com-main-card :dataContent="dataContent"> <job-com-main-card :dataContent="dataContent">
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard> <jobComMainDetailCard :isShowDeliverType="isShowDeliverType" :dataContent="dataContent"></jobComMainDetailCard>
</job-com-main-card> </job-com-main-card>
</template> </template>
@ -21,6 +21,10 @@
type: Object, type: Object,
default: {} default: {}
}, },
isShowDeliverType: {
type: Boolean,
default: false
},
}, },
methods: { methods: {

18
src/pages/deliver/job/deliverJob.vue

@ -11,7 +11,7 @@
<uni-swipe-action-item <uni-swipe-action-item
:right-options="item.status=='2'?detailGiveupOptions:detailOptions" :right-options="item.status=='2'?detailGiveupOptions:detailOptions"
@click="swipeClick($event,item)"> @click="swipeClick($event,item)">
<com-deliver-job-card :dataContent="item" @click='openJobDetail(item)'></com-deliver-job-card> <com-deliver-job-card :isShowDeliverType="true" :dataContent="item" @click='openJobDetail(item)'></com-deliver-job-card>
</uni-swipe-action-item> </uni-swipe-action-item>
</view> </view>
</uni-swipe-action> </uni-swipe-action>
@ -72,9 +72,12 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
businessType:''
}; };
}, },
onLoad(option) {
this.businessType = option.businessType
},
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
@ -129,7 +132,7 @@
var filters = [] var filters = []
if (this.checkedToday) { if (this.checkedToday) {
filters.push({ filters.push({
column: "request_time", column: "create_time",
action: "betweeen", action: "betweeen",
value: this.todayTime value: this.todayTime
}) })
@ -140,7 +143,14 @@
action: "in", action: "in",
value: this.status value: this.status
}) })
if(this.businessType&&this.businessType.length>0){
// :businessType=Deliver businessType=ZZBJDeliver
filters.push({
column: "businessType",
action: "==",
value: this.businessType
})
}
var params = { var params = {
filters: filters, filters: filters,
pageNo: this.pageNo, pageNo: this.pageNo,

Loading…
Cancel
Save