|
@@ -8,14 +8,15 @@
|
|
|
<view class="title_ordermang"><span>收货地址:</span>{{item.consigneeAddressDetails}}</view>
|
|
|
<view class="title_ordermang"><span>收货电话:</span>{{item.consigneeAddressPhone}}</view>
|
|
|
<view class="title_ordermang"><span>下单时间:</span>{{item.orderTime}}</view>
|
|
|
- <view style="display: flex;" v-if="item.status == 1">
|
|
|
+
|
|
|
+ <view style="display: flex;margin-top: 15rpx;" v-if="item.status == 1">
|
|
|
<view class="btn_printil markd10" v-if="item.status == 1 || item.status == 2 || item.status == 3"
|
|
|
@click.stop="modifyOrder(item)">
|
|
|
<u-button size="small" type="warning" text="修改订单"></u-button>
|
|
|
</view>
|
|
|
- <!-- <view class="btn_printil markd10" @click.stop="printBarCode(item)">
|
|
|
- <u-button size="small" type="primary" text="打印条码"></u-button>
|
|
|
- </view> -->
|
|
|
+ <view class="btn_printil markd10" @click.stop="antiDismantle(item)">
|
|
|
+ <u-button size="small" type="primary" text="防拆标签"></u-button>
|
|
|
+ </view>
|
|
|
<view class="btn_printil markd10" @click.stop="sendOrders(item)">
|
|
|
<u-button size="small" type="success" text="派单"></u-button>
|
|
|
</view>
|
|
@@ -45,11 +46,22 @@
|
|
|
<u-button size="small" type="primary" text="确定" @click="confirm()"></u-button>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
+ <u-popup :show="antiShow" mode="center" closeable :closeOnClickOverlay="false" round="6" @close="close">
|
|
|
+ <view class="card_dismantle">
|
|
|
+ <view class="headline_anti">防拆标签</view>
|
|
|
+ <x-form ref="goods" :list="goodsList" :model="goodsModel" :rules="goodsRules"></x-form>
|
|
|
+ <u-button style="margin-top: 10rpx;" size="small" type="primary" text="确定"
|
|
|
+ @click="modifiedTamper()"></u-button>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
const ENV = require('@/.env.js')
|
|
|
+ import {
|
|
|
+ formRules,
|
|
|
+ } from "./waybill.js";
|
|
|
export default {
|
|
|
name: 'xOrderManagement',
|
|
|
props: {
|
|
@@ -72,6 +84,25 @@
|
|
|
signRejection: '',
|
|
|
orderNumber: '',
|
|
|
imageUrl: '',
|
|
|
+ antiShow: false,
|
|
|
+ goodsList: formRules(),
|
|
|
+ goodsModel: {
|
|
|
+ tamperProofLabel: '',
|
|
|
+ tamperProofLabelImg: '',
|
|
|
+ },
|
|
|
+ goodsRules: {
|
|
|
+ tamperProofLabel: {
|
|
|
+ required: true,
|
|
|
+ message: '请输入防拆标签码',
|
|
|
+ trigger: ['blur', 'change']
|
|
|
+ },
|
|
|
+ tamperProofLabelImg: {
|
|
|
+ required: true,
|
|
|
+ message: '请上传防拆标签图片',
|
|
|
+ trigger: ['blur', 'change']
|
|
|
+ },
|
|
|
+ },
|
|
|
+ antiList: {},
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -89,6 +120,27 @@
|
|
|
sendOrders(value) {
|
|
|
this.$emit('sendOrders', value)
|
|
|
},
|
|
|
+ // 防拆标签
|
|
|
+ antiDismantle(value) {
|
|
|
+ this.antiList = value
|
|
|
+ this.antiShow = true
|
|
|
+ this.goodsModel.tamperProofLabel = value.tamperProofLabel
|
|
|
+ this.goodsModel.tamperProofLabelImg = value.tamperProofLabelImg
|
|
|
+ this.goodsModel.id = value.id
|
|
|
+ if (value.tamperProofLabelImg) {
|
|
|
+ let arrImg = value.tamperProofLabelImg.split(',')
|
|
|
+ let arrImgList = []
|
|
|
+ arrImg.forEach((item) => {
|
|
|
+ const arr = {
|
|
|
+ url: item,
|
|
|
+ }
|
|
|
+ arrImgList.push(arr)
|
|
|
+ })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.goods.fileList1 = arrImgList
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 拒收
|
|
|
rejection(value) {
|
|
|
this.orderNumber = value.waybillNo
|
|
@@ -117,7 +169,6 @@
|
|
|
params.status = 3
|
|
|
}
|
|
|
this.$api.post('/api/waybill/receipt', params).then(res => {
|
|
|
- console.log(res, 266)
|
|
|
if (res.code == 200) {
|
|
|
uni.$u.toast(res.msg)
|
|
|
this.signForShow = false
|
|
@@ -127,6 +178,35 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 修改防拆标签
|
|
|
+ async modifiedTamper() {
|
|
|
+ let flag2 = await this.$refs['goods'].validateForm();
|
|
|
+ if (flag2) {
|
|
|
+ let params = {
|
|
|
+ senderAddressName: this.antiList.senderAddressName,
|
|
|
+ senderAddressPhone: this.antiList.senderAddressPhone,
|
|
|
+ senderAddressDetails: this.antiList.senderAddressDetails,
|
|
|
+ consigneeAddressName: this.antiList.consigneeAddressName,
|
|
|
+ consigneeAddressPhone: this.antiList.consigneeAddressPhone,
|
|
|
+ consigneeAddressDetails: this.antiList.consigneeAddressDetails,
|
|
|
+ ...this.goodsModel,
|
|
|
+ }
|
|
|
+ uni.showLoading();
|
|
|
+ // 修改订单
|
|
|
+ this.$api.put('/api/waybill', params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.antiShow = false
|
|
|
+ uni.$u.toast(res.msg)
|
|
|
+ this.$emit('proofRenewal')
|
|
|
+ } else {
|
|
|
+ uni.$u.toast('修改失败')
|
|
|
+ }
|
|
|
+ uni.hideLoading();
|
|
|
+ }).catch(() => {
|
|
|
+ uni.hideLoading();
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
// 打印温湿度记录
|
|
|
humidityRecording(value) {
|
|
|
this.$cache.setCache('commodity', JSON.stringify(value))
|
|
@@ -237,6 +317,7 @@
|
|
|
close() {
|
|
|
console.log(22)
|
|
|
this.signForShow = false
|
|
|
+ this.antiShow = false
|
|
|
},
|
|
|
}
|
|
|
}
|
|
@@ -301,6 +382,10 @@
|
|
|
margin: 10rpx 0rpx 0rpx 10rpx;
|
|
|
}
|
|
|
|
|
|
+ .markd10:nth-child(3) {
|
|
|
+ margin: 10rpx 0rpx 0rpx 20rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.title_sign {
|
|
|
padding: 10rpx 0rpx;
|
|
|
height: 60rpx;
|
|
@@ -325,4 +410,19 @@
|
|
|
font-size: 30rpx;
|
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .card_dismantle {
|
|
|
+ padding: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .headline_anti {
|
|
|
+ font-size: 38rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ border-bottom: 1rpx solid #e7e6e4;
|
|
|
+ padding-bottom: 15rpx;
|
|
|
+ margin-bottom: 15rpx;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
</style>
|