|
@@ -7,7 +7,7 @@
|
|
|
<OrderItem :item="item.orderInfo" @printOrder="printOrder"></OrderItem>
|
|
<OrderItem :item="item.orderInfo" @printOrder="printOrder"></OrderItem>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>
|
|
<div v-else>
|
|
|
- <OrderItem :item="item" @printOrder="printOrder"></OrderItem>
|
|
|
|
|
|
|
+ <OrderItem :ref="`orderRef${item.id}`" :item="item" @printOrder="printOrder" @directFh="directFh" @fillNoFh="fillNoFh"></OrderItem>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -17,10 +17,29 @@
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="app-footer" v-if="!$util.isEmpty(ids)">
|
|
|
|
|
- <div class="admin-button-com big blue" @click="batchFh()">全部发货</div>
|
|
|
|
|
- <div class="admin-button-com big blue" style="margin-left:50upx;" @click="batchPrint()">合并打印</div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="app-footer" v-if="!$util.isEmpty(ids)">
|
|
|
|
|
+ <div class="admin-button-com big blue" @click="batchFh()">全部发货</div>
|
|
|
|
|
+ <div class="admin-button-com big blue" style="margin-left:50upx;" @click="batchPrint()">合并打印</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="text" v-model="fhWl" @focus="fhWl=''" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="inp-list-line">
|
|
|
|
|
+ <div class="line-label">物流单号</div>
|
|
|
|
|
+ <div class="line-input">
|
|
|
|
|
+ <input type="text" v-model="fhWlNo" :focus="fhWlFocus" @focus="fhWlNo=''" class="inp-input" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </modal-module>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -32,7 +51,7 @@ import { mapGetters } from "vuex";
|
|
|
import { getOrderInfoList } from "@/api/order-item";
|
|
import { getOrderInfoList } from "@/api/order-item";
|
|
|
import orderMixin from "@/mixins/order";
|
|
import orderMixin from "@/mixins/order";
|
|
|
import OrderItem from "../home/components/OrderItem"
|
|
import OrderItem from "../home/components/OrderItem"
|
|
|
-import { getListB,cloudPrintOrder,mergePrintFn,allFhAction} from "@/api/order";
|
|
|
|
|
|
|
+import { getListB,cloudPrintOrder,mergePrintFn,allFhAction,orderFh} from "@/api/order";
|
|
|
export default {
|
|
export default {
|
|
|
name: "itemOrder",
|
|
name: "itemOrder",
|
|
|
components: {
|
|
components: {
|
|
@@ -44,7 +63,12 @@ export default {
|
|
|
computed: { ...mapGetters(["getLoginInfo", "getDictionariesInfo"]) },
|
|
computed: { ...mapGetters(["getLoginInfo", "getDictionariesInfo"]) },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- ids:''
|
|
|
|
|
|
|
+ ids:'',
|
|
|
|
|
+ fhWlInfo:[],
|
|
|
|
|
+ fhWlNo:'',
|
|
|
|
|
+ fhWl:'顺丰',
|
|
|
|
|
+ fhWlFocus:false,
|
|
|
|
|
+ fhLabelShow:false,
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -74,8 +98,59 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //这个有多处要同步修改,关键词:fh_express_pop
|
|
|
|
|
+ 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.$refs[`orderRef${id}`][0].currentStatus = 3
|
|
|
|
|
+ that.fhLabelShow = false
|
|
|
|
|
+ that.fhWlFocus = false
|
|
|
|
|
+ that.fhWlNo = ''
|
|
|
|
|
+ that.$msg('发货成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
init(){
|
|
init(){
|
|
|
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ directFh(info){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认发货?'},() => {
|
|
|
|
|
+ orderFh({id:info.id,fhType:0}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$refs[`orderRef${info.id}`][0].currentStatus = 3
|
|
|
|
|
+ that.$msg('发货成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
batchFh(){
|
|
batchFh(){
|
|
|
let that = this
|
|
let that = this
|