Commit 3548d523 authored by dcy's avatar dcy

Merge remote-tracking branch 'origin/dev' into dev

parents 663bbe4e dbd09e91
...@@ -103,6 +103,9 @@ service.interceptors.response.use(res => { ...@@ -103,6 +103,9 @@ service.interceptors.response.use(res => {
+ '<div>5 分钟搭建本地环境</div>', + '<div>5 分钟搭建本地环境</div>',
}) })
return Promise.reject(new Error(msg)) return Promise.reject(new Error(msg))
} else if (code === 555) {
// 额外情况
return Promise.reject(res.data)
} else if (code !== 200) { } else if (code !== 200) {
Notification.error({ Notification.error({
title: msg title: msg
......
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
</div> </div>
</div> </div>
</el-row> </el-row>
<el-pagination background layout="prev, pager, next" :page-size="pageParam.pageSize" :total="total" @current-change="pageChange" v-show="total > 0"></el-pagination> <el-pagination background layout="prev, pager, next" :current-page="pageParam.pageNo" :page-size="pageParam.pageSize" :total="total" @current-change="pageChange" v-show="total > 0"></el-pagination>
<el-scrollbar style="height:calc(100% - 75px)"> <el-scrollbar style="height:calc(100% - 75px)">
<el-row v-for="(item, index) in toBePreList" :key="index" class="tobePre-row"> <el-row v-for="(item, index) in toBePreList" :key="index" class="tobePre-row">
<el-row class="preinstall-title order-title"> <el-row class="preinstall-title order-title">
...@@ -439,6 +439,7 @@ export default { ...@@ -439,6 +439,7 @@ export default {
secGoodsList(params).then((res) => { secGoodsList(params).then((res) => {
this.preList = res.data; this.preList = res.data;
this.preLoading = false; this.preLoading = false;
this.getPreLoad();
}); });
}, },
/* 查询待预装 */ /* 查询待预装 */
...@@ -581,9 +582,11 @@ export default { ...@@ -581,9 +582,11 @@ export default {
createGoods(params).then((res) => { createGoods(params).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.queryAllData(); this.queryAllData();
}).catch(() => { })
}).catch((res) => {
if(res.code === 555) { if(res.code === 555) {
this.$confirm(res.msg, this.$t("提示"), { const msg = res.msg && res.msg.replaceAll(',',"");
this.$confirm(msg, this.$t("提示"), {
type: "warning", type: "warning",
}) })
.then((_) => { .then((_) => {
...@@ -596,7 +599,6 @@ export default { ...@@ -596,7 +599,6 @@ export default {
.catch((_) => {}); .catch((_) => {});
} }
}); });
});
} else { } else {
let params = { let params = {
secId: part.id, secId: part.id,
...@@ -634,9 +636,8 @@ export default { ...@@ -634,9 +636,8 @@ export default {
}, },
/* 查询所有数据 */ /* 查询所有数据 */
queryAllData() { queryAllData() {
this.getSecGoods();
this.pageParam.pageNo = 1; this.pageParam.pageNo = 1;
this.getPreLoad(); this.getSecGoods();
}, },
/* 获取参数 */ /* 获取参数 */
getParams() { getParams() {
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<script> <script>
import { createError } from "@/api/ecw/boxSea"; import { createError } from "@/api/ecw/boxSea";
import { serviceMsg } from "../../utils"; import { serviceMsg } from "../../utils";
import { debounce } from "throttle-debounce";
/** /**
* 卸柜异常 * 卸柜异常
*/ */
...@@ -41,8 +42,12 @@ export default { ...@@ -41,8 +42,12 @@ export default {
return { return {
// 校验 // 校验
rules: { rules: {
exceptionType: [{ required: true, message: this.$t("必填"), trigger: "change" }], exceptionType: [
productNum: [{ required: true, message: this.$t("必填"), trigger: "change" }], { required: true, message: this.$t("必填"), trigger: "change" },
],
productNum: [
{ required: true, message: this.$t("必填"), trigger: "change" },
],
}, },
// 异常对象 // 异常对象
errorObj: { errorObj: {
...@@ -54,7 +59,7 @@ export default { ...@@ -54,7 +59,7 @@ export default {
}, },
methods: { methods: {
/** 提交 */ /** 提交 */
onSubmit() { onSubmit: debounce(340, function onSubmit() {
this.$refs["errorForm"].validate((valid) => { this.$refs["errorForm"].validate((valid) => {
if (valid) { if (valid) {
const { productNum = 0 } = this.errorObj; const { productNum = 0 } = this.errorObj;
...@@ -74,7 +79,7 @@ export default { ...@@ -74,7 +79,7 @@ export default {
}); });
} }
}); });
}, }),
}, },
}; };
</script> </script>
......
...@@ -25,7 +25,11 @@ ...@@ -25,7 +25,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('箱数')" align="center" prop="num" /> <el-table-column :label="$t('箱数')" align="center" prop="num" />
<el-table-column :label="$t('体积/重量')" align="center" prop="weight" /> <el-table-column :label="$t('体积/重量')" align="center" prop="weight">
<template slot-scope="scope">
{{ scope.row.volume + "/" + scope.row.weight }}
</template>
</el-table-column>
<el-table-column :label="$t('收入类型')" align="center" prop="feeType"> <el-table-column :label="$t('收入类型')" align="center" prop="feeType">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag <dict-tag
...@@ -120,7 +124,8 @@ ...@@ -120,7 +124,8 @@
<!-- <el-table-column label="应收金额" align="center" prop="receivableAmount" /> --> <!-- <el-table-column label="应收金额" align="center" prop="receivableAmount" /> -->
<el-table-column :label="$t('应收金额')" align="center" prop="receivableAmount"> <el-table-column :label="$t('应收金额')" align="center" prop="receivableAmount">
<template slot-scope="scope" v-if="scope.row.type !== 'total'"> <template slot-scope="scope" v-if="scope.row.type !== 'total'">
{{ `${scope.row.receivableAmount - scope.row.discountTotal}(${scope.row.receivableAmount} - ${scope.row.discountTotal})` }} <span v-if="scope.row.discountTotal>0">{{ `${scope.row.receivableAmount - scope.row.discountTotal }(${scope.row.receivableAmount} - ${scope.row.discountTotal})` }}</span>
<span v-else>{{ `${scope.row.receivableAmount - scope.row.discountTotal }` }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" width="220"> <el-table-column align="center" width="220">
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<!-- <el-table-column label="汇率" align="center" prop="totalAmount" /> --> <!-- <el-table-column label="汇率" align="center" prop="totalAmount" /> -->
<el-table-column :label="$t('实收日期')" align="center" prop="payedAt"> <el-table-column :label="$t('实收日期')" align="center" prop="payedAt">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.payedAt, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.writeOffAt, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('业务员')" align="center" prop="salesmanName" /> <el-table-column :label="$t('业务员')" align="center" prop="salesmanName" />
......
...@@ -576,23 +576,26 @@ export default { ...@@ -576,23 +576,26 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
lineId: [{ required: true, message: "请选择线路"}], lineId: [{ required: true, message: this.$t("请选择线路")}],
/* consignorId: [{ required: true, message: "发货人不能为空",}], /* consignorId: [{ required: true, message: "发货人不能为空",}],
consigneeId: [{ required: true, message: "收货人不能为空"}], */ consigneeId: [{ required: true, message: "收货人不能为空"}], */
startTime: [{ required: true, message: "有效期开始时间不能为空"}], startTime: [{ required: true, message: this.$t("有效期开始时间不能为空")}],
endTime: [{ required: true, message: "有效期结束时间不能为空"}], endTime: [{ required: true, message: this.$t("有效期结束时间不能为空")}],
transportId: [{ required: true, message: "选择运输方式"}], transportId: [{ required: true, message: this.$t("选择运输方式")}],
channelId: [{ required: true, message: "选择出货渠道"}], channelId: [{ required: true, message: this.$t("选择出货渠道")}],
stopTime: [{ required: true, message: "不能为空"}], stopTime: [{ required: true, message: this.$t("不能为空")}],
relation: [{ required: true, message: "请选择所属人"}], relation: [{ required: true, message: this.$t("请选择所属人")}],
control: [{ required: true, message: "请选择是否控货"}], control: [{ required: true, message: this.$t("请选择是否控货")}],
importance: [{ required: true, message: "请选择重要成都"}] importance: [
{ required: true, message: this.$t("请选择重要程度")},
{ type: 'number', min: 1, message: this.$t("请选择重要程度")}
]
} }
if(this.form.relation == 1){ if(this.form.relation == 1){
rules.consignorId = [{ required: true, message: "发货人不能为空",}] rules.consignorId = [{ required: true, message: this.$t("发货人不能为空")}]
} }
if(this.form.relation == 2){ if(this.form.relation == 2){
rules.consigneeId = [{ required: true, message: "收货人不能为空",}] rules.consigneeId = [{ required: true, message: this.$t("收货人不能为空")}]
} }
return rules return rules
}, },
......
...@@ -736,6 +736,8 @@ export default { ...@@ -736,6 +736,8 @@ export default {
})) }))
}) })
} }
// 更换运输方式之后,之前选择的路线会失效,需要重新选择
this.$set(this.form, 'lineId', undefined)
this.getOpenedRouterList() this.getOpenedRouterList()
}, },
'form.lineId'(lineId){ 'form.lineId'(lineId){
......
...@@ -4,6 +4,20 @@ ...@@ -4,6 +4,20 @@
<el-form-item :label="$t('订单号')" v-if="order"> <el-form-item :label="$t('订单号')" v-if="order">
{{order.orderNo}} {{order.orderNo}}
</el-form-item> </el-form-item>
<el-form-item label="" v-if="order">
<div>
{{$t('箱数')}}{{order.sumNum}}{{$t('')}}
</div>
<div>
{{$t('重量')}}{{order.sumWeight}}Kg
</div>
<div>
{{$t('体积')}}{{order.sumVolume}}
</div>
<div>
{{$t('数量')}}{{order.sumQuantity}}{{$t('')}}
</div>
</el-form-item>
<el-form-item :label="$t('放货方式')"> <el-form-item :label="$t('放货方式')">
<dict-selector :type="DICT_TYPE.ECW_HARVEST_METHOD" v-model="form.pickType" form-type="radio" formatter="number"></dict-selector> <dict-selector :type="DICT_TYPE.ECW_HARVEST_METHOD" v-model="form.pickType" form-type="radio" formatter="number"></dict-selector>
</el-form-item> </el-form-item>
...@@ -16,7 +30,7 @@ ...@@ -16,7 +30,7 @@
{{order.consigneeVO.name}} {{order.consigneeVO.name}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('收货电话')"> <el-form-item :label="$t('收货电话')">
{{order.consigneeVO.countryCode}} {{order.consigneeVO.phone}} +{{order.consigneeVO.countryCode}} {{order.consigneeVO.phone}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('收货地址')"> <el-form-item :label="$t('收货地址')">
<!--缺少国城名字--> <!--缺少国城名字-->
......
...@@ -315,7 +315,11 @@ export default { ...@@ -315,7 +315,11 @@ export default {
if(this.$route.query.id){ if(this.$route.query.id){
getSupplier(this.$route.query.id).then(response => { getSupplier(this.$route.query.id).then(response => {
/* response.data.companyType = response.data.companyType.split(",") || [] */ /* response.data.companyType = response.data.companyType.split(",") || [] */
this.formData = response.data; this.formData = response.data
this.$set(this.formData, 'companyTypeArr', response.data.companyType?.split(",") || [])
this.formData.bankList.forEach(item => {
item.currency = +item.currency
})
}); });
} }
}) })
......
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