Commit 73372e74 authored by dragondean@qq.com's avatar dragondean@qq.com
parents a2272981 b4d98172
...@@ -192,6 +192,17 @@ export function getLabelByOrder(orderId){ ...@@ -192,6 +192,17 @@ export function getLabelByOrder(orderId){
}) })
} }
// 根据订单id获取待入仓标签箱号
export function getLabelWaitInByOrder(orderId){
return request({
url: '/order/order-warehouse-in/get-label-wait-in-by-order',
method: 'get',
params: {
orderId
}
})
}
// 入仓修改储位 // 入仓修改储位
export function saveOrUpdateOrderLocation(data){ export function saveOrUpdateOrderLocation(data){
return request({ return request({
......
...@@ -354,7 +354,6 @@ export default { ...@@ -354,7 +354,6 @@ export default {
} else if (type === "single") { } else if (type === "single") {
orders = [row]; orders = [row];
} }
debugger
this.getErrorType(); this.getErrorType();
this.$set(this.errorInfo, "orderList", orders); this.$set(this.errorInfo, "orderList", orders);
this.$set(this.errorInfo, "operate", type); this.$set(this.errorInfo, "operate", type);
...@@ -363,18 +362,18 @@ export default { ...@@ -363,18 +362,18 @@ export default {
}, },
getErrorType() { getErrorType() {
for (const [key, value] of Object.entries(this.shipmentObj)) { for (const [key, value] of Object.entries(this.shipmentObj)) {
// 报关异常 customsInfo // 报关异常 customsHasAbnormal
if (key === "customsInfo" && value && value.hasAbnormal) { if (key === "customsHasAbnormal" && value) {
this.$set(this.errorInfo, "errorType", "customs"); this.$set(this.errorInfo, "errorType", "customs");
this.$set(this.dialogConfig, "title", this.$t("更新报关异常状态")); this.$set(this.dialogConfig, "title", this.$t("更新报关异常状态"));
} }
// 起运异常 shippingInfo // 起运异常 shippingHasAbnormal
if (key === "shippingInfo" && value && value.hasAbnormal) { if (key === "shippingHasAbnormal" && value) {
this.$set(this.errorInfo, "errorType", "shipping"); this.$set(this.errorInfo, "errorType", "shipping");
this.$set(this.dialogConfig, "title", this.$t("更新起运异常状态")); this.$set(this.dialogConfig, "title", this.$t("更新起运异常状态"));
} }
// 到港异常 arrivalInfo // 到港异常 arrivalHasAbnormal
if (key === "arrivalInfo" && value && value.hasAbnormal) { if (key === "arrivalHasAbnormal" && value) {
this.$set(this.errorInfo, "errorType", "arrival"); this.$set(this.errorInfo, "errorType", "arrival");
this.$set(this.dialogConfig, "title", this.$t("更新到港异常状态")); this.$set(this.dialogConfig, "title", this.$t("更新到港异常状态"));
} }
......
...@@ -237,7 +237,11 @@ export default { ...@@ -237,7 +237,11 @@ export default {
if (end.includes(val[keyName])) { if (end.includes(val[keyName])) {
node.currStatus = "end"; node.currStatus = "end";
// 判断是否存在异常未处理 // 判断是否存在异常未处理
if (val[voName].hasAbnormal) { if (
val.customsHasAbnormal ||
val.shippingHasAbnormal ||
val.arrivalHasAbnormal
) {
continue; continue;
} }
// 报关 // 报关
......
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
<dict-tag :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" :value="customer.resourceType"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE" :value="customer.resourceType"></dict-tag>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('客户等级')">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_LEVEL, customer.level) }}</el-descriptions-item> <el-descriptions-item :label="$t('客户等级')">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_LEVEL, customer.level) }}</el-descriptions-item>
<el-descriptions-item :label="$t('信用等级')">{{ customer.creditLevelNameZh }}</el-descriptions-item>
<el-descriptions-item :label="$t('国家')">{{ country }}</el-descriptions-item> <el-descriptions-item :label="$t('国家')">{{ country }}</el-descriptions-item>
<!-- <el-descriptions-item :label="$t('业务员')">{{ customer }}</el-descriptions-item>--> <!-- <el-descriptions-item :label="$t('业务员')">{{ customer }}</el-descriptions-item>-->
<el-descriptions-item :label="$t('客户来源')">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_SOURCE, customer.source) }}</el-descriptions-item> <el-descriptions-item :label="$t('客户来源')">{{ getDictDataLabel(DICT_TYPE.CUSTOMER_SOURCE, customer.source) }}</el-descriptions-item>
......
...@@ -102,9 +102,9 @@ ...@@ -102,9 +102,9 @@
<el-button icon="el-icon-minus" circle v-show="index !== 0" @click="label.orderLabelDtoList.splice(index, 1)" style="margin-left: 10px"></el-button> <el-button icon="el-icon-minus" circle v-show="index !== 0" @click="label.orderLabelDtoList.splice(index, 1)" style="margin-left: 10px"></el-button>
<el-button icon="el-icon-plus" circle @click="handleLabelAdd(index)"></el-button> <el-button icon="el-icon-plus" circle @click="handleLabelAdd(index)"></el-button>
</div> </div>
<!-- <div style="text-align: center">--> <div style="text-align: center">
<!-- <el-button type="primary" @click="handleLabelSubmit">{{$t('修改箱号')}}</el-button>--> <el-button type="primary" @click="handleLabelSubmit">{{$t('修改箱号')}}</el-button>
<!-- </div>--> </div>
</el-card> </el-card>
<h2 v-if="orderSpecialNeeds.length > 0">{{$t('特殊需求')}}</h2> <h2 v-if="orderSpecialNeeds.length > 0">{{$t('特殊需求')}}</h2>
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<script> <script>
import {getCurrencyList} from "@/api/ecw/currency" import {getCurrencyList} from "@/api/ecw/currency"
import { import {
getLabelByOrder, getLabelByOrder, getLabelWaitInByOrder,
getOrder, getOrder,
getOrderWarehouseIn, getOrderWarehouseIn,
getSpecialListByOrderId, listByOrderId, getSpecialListByOrderId, listByOrderId,
...@@ -294,22 +294,30 @@ export default { ...@@ -294,22 +294,30 @@ export default {
return arr.indexOf(state) == -1 return arr.indexOf(state) == -1
} }
}, },
// handleLabelSubmit(){ handleLabelSubmit(){
// orderWarehouseInUpdateLabel({ orderWarehouseInUpdateLabel({
// ...this.label, ...this.label,
// orderId: this.orderId orderId: this.orderId
// }).then(r => { }).then(r => {
// if (r.code === 0){ if (r.code === 0){
// this.$message.success(r.msg || this.$t('修改标签箱号成功')) this.$message.success(r.msg || this.$t('修改标签箱号成功'))
// } }
// }) })
// }, },
// 箱号标签回显 // 箱号标签回显
getLabelByOrder(){ getLabelByOrder(){
getLabelByOrder(this.orderId).then(r => { getLabelByOrder(this.orderId).then(r => {
if (r.code === 0 && !! r.data && r.data.length > 0) { if (r.code === 0 && !! r.data && r.data.length > 0) {
this.label.orderLabelDtoList = r.data this.label.orderLabelDtoList = r.data
} else {
// 没有历史数据,查默认值
getLabelWaitInByOrder(this.orderId).then(r => {
console.log(r)
if (r.code === 0 && !! r.data) {
this.label.orderLabelDtoList = [r.data]
}
})
} }
}) })
}, },
......
...@@ -446,6 +446,7 @@ export default { ...@@ -446,6 +446,7 @@ export default {
serviceGroup: [ serviceGroup: [
{id: '1', text: this.$t('集运服务')}, {id: '1', text: this.$t('集运服务')},
{id: '6', text: this.$t('数量(个)是否必填')},
], ],
endServiceGroup: [ endServiceGroup: [
......
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