uu
This commit is contained in:
parent
a1261e9529
commit
12f3b08538
@ -35,26 +35,22 @@
|
||||
</view>
|
||||
|
||||
<view class="blcok-white-noradius">
|
||||
<view class="pb-20 com-section">打印配置</view>
|
||||
<view class="clr-prm mt-10">注意:当打印出来寄件分拨或未端分拨返回为空时,请等待5分钟后再补 打印</view>
|
||||
|
||||
<u-row justify="between" custom-style="margin-top:30rpx;">
|
||||
<view style="width: 140rpx;" class="font-weight">打印联选择</view>
|
||||
<view style="flex:1;" class="ml-20">
|
||||
<u-radio-group v-model="submitParam.lang" placement="row">
|
||||
<u-radio size="26" labelSize="26" label-color=":#999" activeColor="#B12D29"
|
||||
customStyle="margin: 0 20rpx 0 0" v-for="(item, index) in yinlTypeList"
|
||||
:label="item.title" :name="item.val"
|
||||
></u-radio>
|
||||
</u-radio-group>
|
||||
|
||||
<u-row justify="between" custom-style="padding-top:20rpx;">
|
||||
<view class="com-section">打印配置</view>
|
||||
<view>
|
||||
<u-button shape="square" plain="true" @click="handlePreview"
|
||||
custom-style="width: 200rpx;height:60rpx;font-size: 30rpx;border-radius: 14rpx;">打印预览</u-button>
|
||||
</view>
|
||||
</u-row>
|
||||
<view class="clr-prm mt-20">注意:当打印出来寄件分拨或未端分拨返回为空时,请等待5分钟后再补 打印</view>
|
||||
|
||||
<view class="mt-20">
|
||||
<u-checkbox-group v-model="submitParam.printType" placement="column">
|
||||
<u-row custom-style="flex-wrap: wrap;">
|
||||
<u-col span="6" v-for="(item, index) in dicData.emis_print_type">
|
||||
<u-checkbox size="26" labelSize="26" label-color=":#999" activeColor="#B12D29"
|
||||
:customStyle="{marginBottom: '8rpx'}"
|
||||
<u-checkbox size="30" labelSize="30" label-color=":#999" activeColor="#B12D29"
|
||||
:customStyle="{marginBottom: '20rpx'}"
|
||||
:label="item.title" :name="item.val"
|
||||
></u-checkbox>
|
||||
</u-col>
|
||||
@ -203,10 +199,9 @@
|
||||
|
||||
},
|
||||
async handleSubmit() {
|
||||
let res = await this.getRealGetWaybillPrintData()
|
||||
const imageUrl = res?.data?.map(t=> t.imageUrl) || []
|
||||
const imgUrls = await this.getPrintImages()
|
||||
this.$refs.curPrint.startPrint({
|
||||
imageUrl: imageUrl.filter(v=> !!v),
|
||||
imageUrl: imgUrls.filter(v=> !!v),
|
||||
paperWidth: 480,
|
||||
})
|
||||
},
|
||||
@ -226,6 +221,17 @@
|
||||
|
||||
let res = await apiService.getRealGetWaybillPrintData({ ...param, _loading: true })
|
||||
return res
|
||||
},
|
||||
async getPrintImages() {
|
||||
let res = await this.getRealGetWaybillPrintData()
|
||||
const imgUrls = res?.data?.map(t=> t.imageUrl) || []
|
||||
return imgUrls
|
||||
},
|
||||
async handlePreview(){
|
||||
const imgUrls = await this.getPrintImages()
|
||||
uni.previewImage({
|
||||
urls: imgUrls
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user