|
|
@@ -17,7 +17,7 @@
|
|
|
<view class="bills-info_box content-box">
|
|
|
<view class="order-info_box">
|
|
|
<view>订单日期:</view>
|
|
|
- <view>{{ detailInfo.addTime }}</view>
|
|
|
+ <view>{{ detailInfo.addTime?detailInfo.addTime.substr(5,11):'' }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>订单编码:</view>
|
|
|
@@ -32,19 +32,11 @@
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>入库日期:</view>
|
|
|
- <view>{{ detailInfo.entryTime }}</view>
|
|
|
+ <view>{{ detailInfo.entryTime?detailInfo.entryTime.substr(5,11):'' }}</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
<view>状态:</view>
|
|
|
- <view>{{
|
|
|
- detailInfo.status==1?'待付款'
|
|
|
- :detailInfo.status==2?'待配送'
|
|
|
- :detailInfo.status==3?'配送中'
|
|
|
- :detailInfo.status==4?'已签收'
|
|
|
- :detailInfo.status==5?'已入库'
|
|
|
- :detailInfo.status==6?'已取消'
|
|
|
- :'已退款'
|
|
|
- }}</view>
|
|
|
+ <view>{{ detailInfo.status==1?'待确认' :detailInfo.status==2?'待发货' :detailInfo.status==3?'待入库' :detailInfo.status==4?'已入库' :'已取消' }}</view>
|
|
|
</view>
|
|
|
|
|
|
<view v-if="detailInfo.refund == 2" class="order-info_box">
|
|
|
@@ -71,13 +63,13 @@
|
|
|
<view class="price" v-if="detailInfo.clearId > 0">
|
|
|
<button @click="pageTo({url: '/admin/clear/info',query: {id: detailInfo.clearId}})" class="admin-button-com">查看结账单</button>
|
|
|
</view>
|
|
|
- <view v-if="detailInfo.clearId == 0">--</view>
|
|
|
+ <view v-if="detailInfo.clearId == 0"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="title">
|
|
|
商品信息
|
|
|
- <text @click="goRefund(detailInfo)" style="float:right;font-weight:normal;color:#3385FF;margin-right:20upx;">申请退款</text>
|
|
|
+ <text @click="goRefund(detailInfo)" v-if="detailInfo.status == 4" style="float:right;font-weight:normal;color:#3385FF;margin-right:20upx;">申请退款</text>
|
|
|
<text @click="printAllLabel(detailInfo)" style="float:right;font-weight:normal;color:#3385FF;margin-right:100upx;">打全部标签</text>
|
|
|
</view>
|
|
|
<view class="module-com content-box">
|
|
|
@@ -200,10 +192,15 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="app-footer open_btn">
|
|
|
+ <view v-if="detailInfo.status == 3" @click="confirmIn()" class="admin-button-com big blue">确认入库</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getPurchaseDetailApi,updateRemark,printAll,printItem } from "@/api/purchase";
|
|
|
+import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn } from "@/api/purchase";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
export default {
|
|
|
@@ -225,6 +222,20 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ confirmIn(){
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:'确认现在入库?'},() => {
|
|
|
+ uni.showLoading({mask:true})
|
|
|
+ confirmPutIn({id:that.detailInfo.id}).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ if(res.data.status == 4){
|
|
|
+ that.$util.pageTo({url: "/pagesPurchase/components/pageSuccess?orderSn="+res.data.orderSn+"&id="+res.data.id+"&status="+res.data.status,type:2})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
goRefund(info){
|
|
|
this.$util.pageTo({url:'/pagesPurchase/refund?orderSn='+info.orderSn})
|
|
|
},
|
|
|
@@ -476,23 +487,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.app-footer {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-end;
|
|
|
- & .admin-button-com {
|
|
|
- padding: 0;
|
|
|
- margin-right: 15upx;
|
|
|
- width: 140upx;
|
|
|
- height: 70upx;
|
|
|
- line-height: 70upx;
|
|
|
- text-align: center;
|
|
|
- color: #3385ff;
|
|
|
- border: 1upx solid #3385ff;
|
|
|
- &.active{
|
|
|
- color: #666666;
|
|
|
- border: 1upx solid #ccc;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|