|
|
|
@ -21,17 +21,17 @@ |
|
|
|
<view class="head"> |
|
|
|
<view class="lf-row-between list"> |
|
|
|
<view>车辆</view> |
|
|
|
<view class="lf-font-bold"></view> |
|
|
|
<view class="lf-font-bold">{{order.car_license}}</view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between list"> |
|
|
|
<view>司机</view> |
|
|
|
<view class="lf-font-bold"></view> |
|
|
|
<view class="lf-font-bold">{{order.deliver_man}}</view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between list"> |
|
|
|
<view>联系电话</view> |
|
|
|
<view class="lf-font-bold"></view> |
|
|
|
<view class="lf-font-bold">{{order.deliver_phone}}</view> |
|
|
|
</view> |
|
|
|
<view class="list"> |
|
|
|
<view class="list" v-if="order.voucher && order.voucher.length"> |
|
|
|
<view>证明材料</view> |
|
|
|
<view class="lf-flex-wrap lf-m-t-10"> |
|
|
|
<image :src="item.voucher_pic" @click="lookImage(index)" class="ms-img" v-for="(item, index) in order.voucher" :key="item.id"></image> |
|
|
|
@ -45,20 +45,20 @@ |
|
|
|
</view> |
|
|
|
<view style="height: 100rpx;"></view> |
|
|
|
<!-- 操作按钮 --> |
|
|
|
<view class="fixed-bottom" v-if="type != 3"> |
|
|
|
<view v-if="type == 1" class="lf-row-flex-end"> |
|
|
|
<view class="fixed-bottom" v-if="type != '备货中'"> |
|
|
|
<view v-if="type == '待发单'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn1">编辑</button> |
|
|
|
<button class="btn btn2">立即发单</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == 2" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn2" style="background-color: #FF0000;">撤销订单</button> |
|
|
|
<view v-else-if="type == '待接单'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn2" style="background-color: #FF0000;" @click="orderStateChange('已撤销')">撤销订单</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == 4" class="lf-row-flex-end"> |
|
|
|
<view v-else-if="type == '已发货'" class="lf-row-flex-end"> |
|
|
|
<button class="btn btn1">退单</button> |
|
|
|
<button class="btn btn1 lf-m-l-20">上传凭证</button> |
|
|
|
<button class="btn btn2" @click="$url('/pages/purchase/receipt?p_sn='+ order.p_sn)">确认收货</button> |
|
|
|
</view> |
|
|
|
<view v-else-if="type == 5" class="lf-row-between"> |
|
|
|
<view v-else-if="type == '已收货' || type == '已入库'" class="lf-row-between"> |
|
|
|
<button class="btn btn1">复用采购单</button> |
|
|
|
<view class="lf-font-32" style="color: #11D189;">已完成</view> |
|
|
|
</view> |
|
|
|
@ -75,7 +75,7 @@ |
|
|
|
return { |
|
|
|
headers: [{ |
|
|
|
key: 'name', |
|
|
|
label: '菜名' |
|
|
|
label: '物资名称' |
|
|
|
},{ |
|
|
|
key: 'spec', |
|
|
|
label: '规格' |
|
|
|
@ -107,18 +107,19 @@ |
|
|
|
}).then(res => { |
|
|
|
console.log("xxx",res) |
|
|
|
this.order = res.data.order; |
|
|
|
let list = res.data.order.sheet || []; |
|
|
|
let list = res.data.order.items || []; |
|
|
|
let contents = list.map(item => { |
|
|
|
return { |
|
|
|
name: item.material.m_name, |
|
|
|
spec: item.spec.name, |
|
|
|
pre_tax_price: {edit: true, value: item.tax_standard_price}, |
|
|
|
after_tax_price: {edit: true, value: item.non_tax_standard_price}, |
|
|
|
pre_tax_price: {edit: true, value: item.total_tax_amount}, |
|
|
|
after_tax_price: {edit: true, value: item.total_non_tax_amount}, |
|
|
|
spec_id: item.spec.id, |
|
|
|
material_id: item.material.id |
|
|
|
} |
|
|
|
}) |
|
|
|
this.contents = contents; |
|
|
|
this.type = res.data.order.state |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 预览图片 |
|
|
|
@ -138,7 +139,7 @@ |
|
|
|
state: state |
|
|
|
}).then(res => { |
|
|
|
console.log("orderStateChange", res); |
|
|
|
this.$msg('操作成功'); |
|
|
|
this.$msg('操作成功').then(()=>{this.$toBack()}); |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|