diff --git a/public/static/tpl/batch_import_order.xls b/public/static/tpl/batch_import_order.xls index 06e9300..b5c3a76 100644 Binary files a/public/static/tpl/batch_import_order.xls and b/public/static/tpl/batch_import_order.xls differ diff --git a/src/views/oms/emisWaybill/BatchOrderRecord.vue b/src/views/oms/emisWaybill/BatchOrderRecord.vue index 135d9dd..732fd95 100644 --- a/src/views/oms/emisWaybill/BatchOrderRecord.vue +++ b/src/views/oms/emisWaybill/BatchOrderRecord.vue @@ -94,6 +94,9 @@ + + + @@ -102,7 +105,7 @@ - + @@ -496,7 +499,7 @@ export default { feeRemark:element['费用备注'], payee: element['销售联系人'], salesmen: element['销售联系人'], - intoWarehouseName: element['收货仓库名称'], + intoWarehouseName: element['仓库名称'], // operateEmployeeCode: element['取件员/操作员'], orderRemark: element['下单备注'], // blMessage: element['寄件/签收短信'], diff --git a/src/views/oms/emisWaybill/OrderRecord.vue b/src/views/oms/emisWaybill/OrderRecord.vue index 31c260c..b749ac4 100644 --- a/src/views/oms/emisWaybill/OrderRecord.vue +++ b/src/views/oms/emisWaybill/OrderRecord.vue @@ -192,11 +192,13 @@ - + + + @@ -210,14 +212,17 @@ - + + + + - + @@ -229,7 +234,9 @@ - + + + + + + @@ -256,11 +266,14 @@ @click="handlePrivSalesmen" > {{ $t('去绑定快递员') }} - + + + + @@ -346,20 +359,100 @@ - + - + - - - + (kg) + + + + + + + + + + {{scope.$index+1}} + + + + + + handleCalcVolumeDebounce(scope.row)" :ref="'input_'+scope.$index+'_1'" @keyup.enter.native="focusNextInput('input_'+scope.$index+'_2')" size="mini" placeholder="" :min="0" :controls="false" :precision="0"> + + + + + + handleCalcVolumeDebounce(scope.row)" :ref="'input_'+scope.$index+'_2'" @keyup.enter.native="focusNextInput('input_'+scope.$index+'_3')" size="mini" placeholder="" :min="0" :controls="false" :precision="0"> + + + + + + handleCalcVolumeDebounce(scope.row)" :ref="'input_'+scope.$index+'_3'" @keyup.enter.native="focusNextInput('input_'+scope.$index+'_4')" size="mini" placeholder="" :min="0" :controls="false" :precision="0"> + + + + + + handleCargoQtyChangeDebounce(scope.row)" :ref="'input_'+scope.$index+'_4'" @keyup.enter.native="(val)=>{ handleCargoQtyChangeDebounce(scope.row); focusNextInput('input_'+(scope.$index+1)+'_1')}" size="mini" placeholder="" :min="0" :controls="false" :precision="0"> + + + + + {{scope.row.volume}} + + + + + + + + + + deleteGoodsItem(scope.row,scope.$index)"> + copyGoodsItem(scope.row,scope.$index)"> + + + + + + + @@ -435,14 +528,14 @@ - + {{ $t('快递货物申报信息') }} - {{ $t('空运货物申报信息') }} - {{ $t('陆运货物申报信息') }} - {{ $t('海运货物申报信息') }} - {{ $t('货物申报信息') }} + + + + @@ -456,7 +549,7 @@ size="mini" type="primary" class="iconfont icon-add" - @click="handleAddGoods" + @click="handleAddDeclareGoods" >{{ $t('添加申报货物') }} @@ -483,7 +576,7 @@ }" border stripe - :data="form.cargoList" + :data="form.declareGoodsList" size="small" style="width: 100%" max-height="300px" @@ -502,7 +595,7 @@ - + @@ -574,32 +667,32 @@ - + - + + deleteGoodsItem(scope.row,scope.$index)"> + @click="()=>deleteDeclareGoodsItem(scope.row,scope.$index)"> copyGoodsItem(scope.row,scope.$index)"> + @click="()=>copyDeclareGoodsItem(scope.row,scope.$index)"> @@ -615,7 +708,7 @@ - + {{ $t('上传单证文件') }} @@ -1313,6 +1406,10 @@ methods: { cargoList: [], attachmentList: [], printTypeCheckList:[], + + declareGoodsList: [], + declareAttachmentList: [], + billCode: null, orderDate: null, openId: null, @@ -1527,6 +1624,40 @@ methods: { this.form.goodsInfo = selNameStr; }, + + + handleAddDeclareGoods(){ + if(!this.form.declareGoodsList){ + this.form.declareGoodsList=[]; + } + + let declareGoods={ + "goodsCode": "", + "goodsName": "", + "cargoQty": 1, + "unit": "件", + "brand": "无", + } + this.form.declareGoodsList.push(declareGoods); + }, + + + deleteDeclareGoodsItem(row,index){ + this.$confirm('确定删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.form.declareGoodsList.splice(index,1) + }).catch(() => { + }) + }, + copyDeclareGoodsItem(row,index){ + let newItem = Object.assign({},row); + newItem.cargoQty=1; + this.form.declareGoodsList.splice(index+1, 0, newItem); + }, + handleAddGoods(){ if(!this.form.cargoList){ this.form.cargoList=[]; @@ -1571,9 +1702,105 @@ methods: { debounce(250, this.handleCargoQtyChange(row)) }, handleCargoQtyChange(row){ + this.handleInitGenGoods(); this.handleCalcVolume(row); }, + + handleInitGenGoods(){ + if(this.form.parcelQty>0){ + + let currentParcelQty = 0; + if(!this.form.cargoList){ + this.form.cargoList=[]; + } + + this.form.cargoList.forEach(item=>{ + currentParcelQty = currentParcelQty+parseInt(item.cargoQty); + }); + + // 新件数大于 + if(this.form.parcelQty>currentParcelQty){ + let len=this.form.parcelQty-currentParcelQty; + if(this.form.parcelQty>10){ + let cargo={ + "goodsCode": "", + "goodsName": "", + "cargoQty": len, + "length": 0, + "width": 0, + "height": 0, + "volume": 0, + } + this.form.cargoList.push(cargo); + } + else{ + for(let i=0;i0){ + if(newList.length>=10 || this.form.parcelQty>=10){ + let newItem=Object.assign({},zeroItem); + newItem.cargoQty=bzLen; + newList.push(newItem); + }else{ + for(let i=0;i