Commit e53128cd authored by zhoutong's avatar zhoutong

修复空运出货的一些bug

parent 670b2abe
...@@ -4,12 +4,9 @@ ...@@ -4,12 +4,9 @@
multiple multiple
filterable filterable
clearable clearable
remote
reserve-keyword reserve-keyword
:disabled="disabled" :disabled="disabled"
:placeholder="$t('请输入订单号')" :placeholder="$t('请输入订单号')"
@focus="remoteMethod('')"
:remote-method="remoteMethod"
:loading="loading"> :loading="loading">
<el-option <el-option
v-for="(item) in list" v-for="(item) in list"
...@@ -20,14 +17,16 @@ ...@@ -20,14 +17,16 @@
</el-select> </el-select>
</template> </template>
<script> <script>
import {getOrderPage, getOrderList} from '@/api/ecw/order' import { boxGoodsDetail } from "@/api/ecw/boxSea";
export default { export default {
props:{ props:{
value: [Array], value: [Array],
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false
},
shipmentId: {
type: Number
} }
}, },
data(){ data(){
...@@ -43,32 +42,20 @@ export default { ...@@ -43,32 +42,20 @@ export default {
}, },
value(val){ value(val){
this.valueSync = this.value this.valueSync = this.value
this.init(val)
} }
}, },
created(){ created(){
this.remoteMethod()
this.valueSync = this.value this.valueSync = this.value
this.init(this.value)
}, },
methods:{ methods:{
init(val){ remoteMethod(){
if(val === null || val == undefined || val == '') return boxGoodsDetail({
let params = { shipmentId: this.shipmentId,
ids: val.toString() secId: 0
} }).then((res) => {
getOrderList(params).then(res => { this.list = res.data.sectionOrderList;
this.list = res.data });
})
},
remoteMethod(keyword){
let params = {
pageSize: 10,
}
params.orderNo = keyword
this.loading = true
getOrderPage(params)
.then(res => this.list = res.data.list)
.finally(() => this.loading = false)
} }
} }
} }
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<el-input v-model="cusDeclarationObj.overRemarks" style="width: 180px" /> <el-input v-model="cusDeclarationObj.overRemarks" style="width: 180px" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('超重订单')" prop="overOrders" v-show="cusDeclarationObj.overMachineStatus == 2&&cusDeclarationObj.weightMisreport == 4"> <el-form-item :label="$t('超重订单')" prop="overOrders" v-show="cusDeclarationObj.overMachineStatus == 2&&cusDeclarationObj.weightMisreport == 4">
<ordersSelect v-model="cusDeclarationObj.overOrders" :placeholder="$t('请选择超重订单')" :allUsers="this.$attrs.allUsers" /> <ordersSelect v-model="cusDeclarationObj.overOrders" :placeholder="$t('请选择超重订单')" :shipmentId="shipmentObj.id" />
</el-form-item> </el-form-item>
<!-- <el-form-item :label="$t('装箱单')"> <!-- <el-form-item :label="$t('装箱单')">
...@@ -423,8 +423,11 @@ export default { ...@@ -423,8 +423,11 @@ export default {
}审核吗?`) }审核吗?`)
) )
.then(() => { .then(() => {
let parems = {... this.cusDeclarationObj}
parems.overDealUser = !Array.isArray(parems.overDealUser)?null:parems.overDealUser.join(',')
parems.overOrders = !Array.isArray(parems.overOrders)?null:parems.overOrders.join(',')
customsCreate({ customsCreate({
...this.cusDeclarationObj, ...parems,
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
operateType, operateType,
}).then((res) => { }).then((res) => {
......
...@@ -46,6 +46,10 @@ ...@@ -46,6 +46,10 @@
<el-input v-model="queryParams.weightRatioMin" :placeholder="$t('请输入 小')" clearable /> <el-input v-model="queryParams.weightRatioMin" :placeholder="$t('请输入 小')" clearable />
</el-form-item> </el-form-item>
<el-form-item prop="airShipment">
<el-radio v-model="queryParams.airShipment" :label="4">{{$t('已完成备货')}}</el-radio>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery('pre')">{{$t('搜索已分拣订单')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery('pre')">{{$t('搜索已分拣订单')}}</el-button>
<el-button type="primary" icon="el-icon-search" @click="handleQuery('toBePre')">{{$t('搜索待分拣订单')}}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery('toBePre')">{{$t('搜索待分拣订单')}}</el-button>
...@@ -587,7 +591,7 @@ export default { ...@@ -587,7 +591,7 @@ export default {
...this.operatorData, ...this.operatorData,
applyReason: this.$t("分拣审核"), applyReason: this.$t("分拣审核"),
approvalStatus: 0, approvalStatus: 0,
approvalType: 1, // 分拣 approvalType: 13, // 分拣
copyUserId: this.selectedUsers, copyUserId: this.selectedUsers,
shipmentId: this.$attrs.shipmentObj.id, shipmentId: this.$attrs.shipmentObj.id,
}).then((res) => { }).then((res) => {
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
this.$refs["reviewForm"].validate((valid) => { this.$refs["reviewForm"].validate((valid) => {
if (valid) { if (valid) {
const { currNode, shipmentObj } = this.$attrs; const { currNode, shipmentObj } = this.$attrs;
let approvalType = 4; // 预装反审 let approvalType = 14; // 预装反审
if (currNode.type === "cabinet") approvalType = 9; // 装柜反审 if (currNode.type === "cabinet") approvalType = 9; // 装柜反审
if (currNode.type === "unloading") approvalType = 7; // 卸柜反审核 if (currNode.type === "unloading") approvalType = 7; // 卸柜反审核
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
<el-descriptions-item :label="$t('运输方式')"> <el-descriptions-item :label="$t('运输方式')">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="boxBackVO.transportType" /> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="boxBackVO.transportType" />
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item :label="$t('出货渠道')"> <el-descriptions-item :label="$t('出货渠道')">
{{getShipChannelName(boxBackVO.shippingChannelId)}} {{getShipChannelName(boxBackVO.shippingChannelId)}}
</el-descriptions-item> --> </el-descriptions-item>
<el-descriptions-item :label="$t('柜型')"> <el-descriptions-item :label="$t('柜型')">
{{cabinetLabel}} {{cabinetLabel}}
</el-descriptions-item> </el-descriptions-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment