|
@@ -20,7 +20,7 @@
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<div class="list" v-for="(item, index) in list.data" :key="index">
|
|
<div class="list" v-for="(item, index) in list.data" :key="index">
|
|
|
|
|
|
|
|
- <OrderItem :item="item" :isScanEnv="isScanEnv" @printOrder="printOrder"></OrderItem>
|
|
|
|
|
|
|
+ <OrderItem :item="item" :isScanEnv="isScanEnv" @printOrder="printOrder" @directFh="directFh" @fillNoFh="fillNoFh"></OrderItem>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
@@ -29,6 +29,25 @@
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <modal-module :show="fhLabelShow" @click="fhConfirm" :maskClosable="true" title="物流信息" padding="30rpx 30rpx" >
|
|
|
|
|
+ <template v-slot:content>
|
|
|
|
|
+ <div class="app-modal-input-wrap">
|
|
|
|
|
+ <div class="inp-list-line">
|
|
|
|
|
+ <div class="line-label">物流名称</div>
|
|
|
|
|
+ <div class="line-input">
|
|
|
|
|
+ <input type="number" ref="input" v-model="fhWl" :adjust-position="false" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="inp-list-line">
|
|
|
|
|
+ <div class="line-label">物流单号</div>
|
|
|
|
|
+ <div class="line-input">
|
|
|
|
|
+ <input type="number" ref="input" v-model="fhWlNo" :focus="fhWlFocus" :adjust-position="false" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </modal-module>
|
|
|
|
|
+
|
|
|
<NotLogin></NotLogin>
|
|
<NotLogin></NotLogin>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -40,7 +59,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-import { getListB,cloudPrintOrder} from "@/api/order";
|
|
|
|
|
|
|
+import { getListB,cloudPrintOrder,orderFh} from "@/api/order";
|
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
import AppSearchModule from "@/components/module/app-search";
|
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
import DropShopSelect from "@/components/module/shopSelect";
|
|
|
import OrderItem from "./components/OrderItem";
|
|
import OrderItem from "./components/OrderItem";
|
|
@@ -61,6 +80,11 @@ export default {
|
|
|
computed: { ...mapGetters(["getLoginInfo", "getDictionariesInfo"]) },
|
|
computed: { ...mapGetters(["getLoginInfo", "getDictionariesInfo"]) },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ fhWlInfo:[],
|
|
|
|
|
+ fhWlNo:'',
|
|
|
|
|
+ fhWl:'顺丰',
|
|
|
|
|
+ fhWlFocus:false,
|
|
|
|
|
+ fhLabelShow:false,
|
|
|
isScanEnv:false,
|
|
isScanEnv:false,
|
|
|
orderId:'',
|
|
orderId:'',
|
|
|
seekVal: "",
|
|
seekVal: "",
|
|
@@ -144,6 +168,53 @@ export default {
|
|
|
this.init()
|
|
this.init()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ directFh(info){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认发货?'},() => {
|
|
|
|
|
+ orderFh({id:info.id,fhType:0}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg('发货成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ fillNoFh(info){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ this.fhLabelShow = true
|
|
|
|
|
+ this.fhWlInfo = info
|
|
|
|
|
+ setTimeout(x => {
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ that.fhWlFocus = true
|
|
|
|
|
+ })
|
|
|
|
|
+ }, 200)
|
|
|
|
|
+ },
|
|
|
|
|
+ fhConfirm(val){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ if (val.index == 0) {
|
|
|
|
|
+ that.fhLabelShow = false
|
|
|
|
|
+ that.fhWlFocus = false
|
|
|
|
|
+ that.fhWlNo = ''
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.$util.isEmpty(this.fhWl)){
|
|
|
|
|
+ that.$msg('请填写物流名称')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.$util.isEmpty(this.fhWlNo)){
|
|
|
|
|
+ that.$msg('请填写物流单号')
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ let id = that.fhWlInfo.id ? that.fhWlInfo.id : 0
|
|
|
|
|
+ that.$util.confirmModal({content:'确认发货?'},() => {
|
|
|
|
|
+ orderFh({id:id,fhType:1,fhWl:that.fhWl,fhWlNo:that.fhWlNo}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.fhLabelShow = false
|
|
|
|
|
+ that.fhWlFocus = false
|
|
|
|
|
+ that.$msg('发货成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
init(){
|
|
init(){
|
|
|
this.getOrderList()
|
|
this.getOrderList()
|
|
|
},
|
|
},
|