Commit f2389b65 authored by chenjiuping's avatar chenjiuping

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

parents bb6776ef 48d8c13f
...@@ -198,6 +198,7 @@ export const DICT_TYPE = { ...@@ -198,6 +198,7 @@ export const DICT_TYPE = {
BOX_SHIPPING_PROCESS: 'shipping_process', // 海运出货流程 BOX_SHIPPING_PROCESS: 'shipping_process', // 海运出货流程
BOX_SHIPPING_BRAND_TYPE: 'shipping_brand_type', // 出货品牌类型 BOX_SHIPPING_BRAND_TYPE: 'shipping_brand_type', // 出货品牌类型
BOX_SHIPPING_NOTICE_TYPE: 'shipping_notice_type', // 出货通知类型 BOX_SHIPPING_NOTICE_TYPE: 'shipping_notice_type', // 出货通知类型
BOX_ORDER_SHIPMENT_STATE: 'order_shipment_state'
} }
/** /**
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('柜型')" prop="cabinetId"> <el-form-item :label="$t('柜型')" prop="cabinetId">
<el-select v-model="queryParams.cabinetId" :placeholder="$t('请选择柜型')"> <el-select v-model="queryParams.cabinetId" :placeholder="$t('请选择柜型')">
<el-option v-for="item in cabinetList" :label="$l(item, 'name')" :value="item.name" :key="item.id"></el-option> <el-option v-for="item in cabinetList" :label="$l(item, 'name')" :value="item.id" :key="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
<el-date-picker v-model="queryParams.dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" /> <el-date-picker v-model="queryParams.dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('状态')" prop="boxStatus"> <el-form-item :label="$t('状态')">
<el-select v-model="queryParams.boxStatus" :placeholder="$t('请选择状态')" clearable size="small"> <el-select v-model="queryParams.boxStatus" :placeholder="$t('请选择状态')" clearable size="small">
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.BOX_SHIPMENT_STATUS)" :key="dict.value" :label="$l(dict, 'label')" :value="dict.value" /> <el-option v-for="dict in this.getDictDatas(DICT_TYPE.BOX_ORDER_SHIPMENT_STATE)" :key="dict.value" :label="$l(dict, 'label')" :value="dict.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -432,7 +432,7 @@ export default { ...@@ -432,7 +432,7 @@ export default {
case "editLadingBill": case "editLadingBill":
const cabinetLabel = this.getCabinetName(row.cabinetId); const cabinetLabel = this.getCabinetName(row.cabinetId);
const title = this.$t('查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}`', { const title = this.$t('查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}', {
selfNo: row.selfNo, selfNo: row.selfNo,
cubNo: row.cubNo, cubNo: row.cubNo,
cabinetLabel: cabinetLabel cabinetLabel: cabinetLabel
......
...@@ -145,9 +145,10 @@ export default { ...@@ -145,9 +145,10 @@ export default {
/* const title = `查看提单 ${this.shipmentObj.selfNo ?? ""} 柜号:${ /* const title = `查看提单 ${this.shipmentObj.selfNo ?? ""} 柜号:${
this.shipmentObj.cubNo ?? "" this.shipmentObj.cubNo ?? ""
} 柜型:${cabinetLabel}`; */ } 柜型:${cabinetLabel}`; */
const title = this.$t('查看提单 {selfNo} 柜号:{cubNo}', { const title = this.$t('查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}', {
selfNo: this.shipmentObj.selfNo, selfNo: this.shipmentObj.selfNo,
cubNo: this.shipmentObj.cubNo cubNo: this.shipmentObj.cubNo,
cabinetLabel
}) })
this.$set(this.dialogCfg, "title", title); this.$set(this.dialogCfg, "title", title);
}, },
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('计划装柜')" align="center"> <el-table-column :label="$t('计划装柜')" align="center">
{{$t('无')}} {{planCabinet}}
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="剩余箱数:"> <el-form-item label="剩余箱数:">
{{shopForm.sum||0}} {{shopForm.num||0}}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -205,8 +205,8 @@ ...@@ -205,8 +205,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-form-item label="放入箱数:" prop="num"> <el-form-item label="放入箱数:">
<el-input-number v-model="shopForm.num" controls-position="right" :min="0" :max="shopForm.sum"></el-input-number> {{shopForm.num||0}}
</el-form-item> </el-form-item>
<el-form-item label="放入数量(个):" prop="putQuantity"> <el-form-item label="放入数量(个):" prop="putQuantity">
<el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number> <el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number>
...@@ -255,6 +255,7 @@ export default { ...@@ -255,6 +255,7 @@ export default {
loading: false, loading: false,
selectedUsers: [], selectedUsers: [],
tradeCityList: [], tradeCityList: [],
planCabinet: "",
shopOpen: false, shopOpen: false,
orderItems: [], orderItems: [],
...@@ -275,9 +276,6 @@ export default { ...@@ -275,9 +276,6 @@ export default {
trigger: "change", trigger: "change",
}, },
], ],
num: [
{ required: true, message: this.$t("请输入箱数"), trigger: "change" },
],
}, },
queryParams: { queryParams: {
orderId: 0, orderId: 0,
...@@ -286,6 +284,8 @@ export default { ...@@ -286,6 +284,8 @@ export default {
}; };
}, },
created() { created() {
const { shipmentObj } = this.$attrs;
this.planCabinet =`${shipmentObj.selfNo}-${this.currRow.sectionName}`
getTradeCityList().then((res) => (this.tradeCityList = res.data)); getTradeCityList().then((res) => (this.tradeCityList = res.data));
this.queryParams.orderId = this.currRow.orderId; this.queryParams.orderId = this.currRow.orderId;
this.getOrderDetail(); this.getOrderDetail();
...@@ -341,16 +341,14 @@ export default { ...@@ -341,16 +341,14 @@ export default {
/* 打开拆单 */ /* 打开拆单 */
getSplit() { getSplit() {
this.orderItems = this.currRow.goodsList ?? []; this.orderItems = this.currRow.goodsList ?? [];
console.log(this.orderItems);
const { shipmentObj } = this.$attrs; const { shipmentObj } = this.$attrs;
splitList({ splitList({
orderId: this.currRow.orderId, orderId: this.currRow.orderId,
shipmentId: shipmentObj.id, shipmentId: shipmentObj.id,
}).then((res) => { }).then((res) => {
const orderSplitBackVOList = res.data; const data = res.data;
// 取拆单项 // 取拆单项
this.splitData = this.splitData = data.filter((item) => !item.isMaster)?.[0] ?? {};
orderSplitBackVOList.filter((item) => !item.isMaster)?.[0] ?? {};
}); });
}, },
/* 查询拆单项 */ /* 查询拆单项 */
...@@ -448,33 +446,34 @@ export default { ...@@ -448,33 +446,34 @@ export default {
this.shopForm = {}; this.shopForm = {};
this.shopOpen = true; this.shopOpen = true;
}, },
changeProdTitleZh() { async changeProdTitleZh() {
const data = this.getSelectData("zhId"); const data = await this.getSelectData("zhId");
this.shopForm.prodTitleEn = data.prodTitleEn; this.shopForm.enId = data.id;
this.shopForm = { ...this.shopForm };
}, },
changeProdTitleEn() { async changeProdTitleEn() {
const data = this.getSelectData("enId"); const data = await this.getSelectData("enId");
this.shopForm.prodTitleZh = data.prodTitleZh; this.shopForm.zhId = data.id;
this.shopForm = { ...this.shopForm };
}, },
async getSelectData(key) { async getSelectData(key) {
let list = []; let list = [];
list = this.orderItems.filter((item) => item.id == this.shopForm[key]); list = this.orderItems.filter((item) => item.id == this.shopForm[key]);
this.shopForm.sum = this.shopForm.num = this.currRow.num - this.currRow.installNum;
this.currRow.num - this.currRow.installNum - this.totalSplitNum();
const data = list[0]; const data = list[0];
this.shopForm.orderItemId = data.orderItemId; this.shopForm.orderItemId = data.orderItemId;
this.shopForm.quantity = data.quantity; this.shopForm.quantity = data.quantity;
this.shopForm.putQuantity = Decimal.div( this.shopForm.putQuantity = Decimal.div(
data.quantity, data.quantity,
this.shopForm.sum this.shopForm.num
).toFixed(0); ).toFixed(0);
await quantitycheck({ await quantitycheck({
seaFreightVolume: data.seaFreightVolume, seaFreightVolume: data.seaFreightVolume,
clearanceFreightVolume: data.clearanceFreightVolume, clearanceFreightVolume: data.clearanceFreightVolume,
}).then((res) => { }).then((res) => {
const { data } = res; if (res.data) {
if (data) {
this.shopRules.putQuantity = [ this.shopRules.putQuantity = [
{ {
required: true, required: true,
......
...@@ -2,7 +2,7 @@ import dayjs from "dayjs"; ...@@ -2,7 +2,7 @@ import dayjs from "dayjs";
import * as _BOX from "@/api/ecw/box"; import * as _BOX from "@/api/ecw/box";
import FileSaver from "file-saver"; import FileSaver from "file-saver";
import Decimal from "decimal.js"; import Decimal from "decimal.js";
import i18n from '@/i18n' import i18n from "@/i18n";
/** /**
* 节点状态值 * 节点状态值
* *
...@@ -1510,8 +1510,15 @@ function toReviewDetail(bpmProcessId) { ...@@ -1510,8 +1510,15 @@ function toReviewDetail(bpmProcessId) {
function downloadFile(funName, params, fileName, fileFormat) { function downloadFile(funName, params, fileName, fileFormat) {
_BOX[funName](params).then((res) => { _BOX[funName](params).then((res) => {
let blob = new Blob([res], { type: `application/${fileFormat}` }); try {
FileSaver.saveAs(blob, fileName); let jsonData = JSON.parse(res);
if (jsonData.code === 0) {
window.ElementUI.$message.success("操作成功");
}
} catch (error) {
let blob = new Blob([res], { type: `application/${fileFormat}` });
FileSaver.saveAs(blob, fileName);
}
}); });
} }
......
...@@ -638,9 +638,7 @@ export default { ...@@ -638,9 +638,7 @@ export default {
// this.getList(); // this.getList();
const obj = { path: "/customer/customer" }; const obj = { path: "/customer/customer" };
this.$tab.closeOpenPage(obj); this.$tab.closeOpenPage(obj);
}).catch(e => { })
this.$modal.msgError(e.msg || this.$t('添加客户失败,请联系管理员'))
});
return; return;
} }
// 添加的提交 // 添加的提交
...@@ -650,9 +648,7 @@ export default { ...@@ -650,9 +648,7 @@ export default {
// this.getList(); // this.getList();
const obj = { path: "/customer/customer" }; const obj = { path: "/customer/customer" };
this.$tab.closeOpenPage(obj); this.$tab.closeOpenPage(obj);
}).catch(e => { })
this.$modal.msgError(e.msg || this.$t('添加客户失败,请联系管理员'))
});
}); });
}) })
}, },
......
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('创建时间')" align="center" prop="createTime" width="180"> <el-table-column :label="$t('提交审核时间')" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.identityAuditCreateTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width" width="200px"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width" width="200px">
......
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