Commit 20ae6011 authored by honghy's avatar honghy

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

parents c000aa6d afc09148
......@@ -1577,6 +1577,7 @@
"收款数据": "payment data",
"代收货款": "?",
"集运仓库": "Consolidation Warehouse",
"集运": "Consolidation",
"装柜地址": "address of container loading",
"货物详情": "Cargo Details",
"填单件数": "number of cartons",
......@@ -3769,6 +3770,7 @@
"国家地区": "Country/region",
"供应商区域": "Supplier Area",
"会员控货下单要求": "Member Control Order Requirements",
"集运始发仓服务": "Cons Warehouse Service",
"系统类型": "System Type",
"请选择系统类型": "Please select a system type",
"强制更新": "Force updates",
......
......@@ -528,6 +528,12 @@
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('集运始发仓服务')" prop="isConsService">
<el-checkbox-group v-model="form.isConsService">
<el-checkbox :label="1" :key="1" name="freight">{{ $t('集运') }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<!--lanbm 2024-06-04 添加控货需要的逻辑字段-->
<el-form-item :label="$t('仓库免租期')" prop="rentFreeDays">
<el-input-number
......@@ -1002,7 +1008,10 @@ export default {
status: null,
},
// 表单参数
form: { checkList: [] },
form: {
checkList: [],
isConsService: [],
},
ladingform: {
prefixCounter: null,
titleZh: null,
......@@ -1683,6 +1692,7 @@ export default {
status: undefined,
img: undefined,
checkList: [],
isConsService: [],
};
this.resetForm("form");
},
......@@ -1725,7 +1735,12 @@ export default {
this.reset();
const id = row.id;
getWarehouse(id).then((response) => {
response.data.isConsService = [response.data.isConsService];
this.form = response.data;
console.log('form.isConsService type:', typeof this.form.isConsService);
let ckList = response.data.freight.split(",");
this.$set(this.form, "checkList", ckList);
......@@ -1753,6 +1768,9 @@ export default {
freight = freight.substring(0, freight.length - 1);
this.form.freight = freight;
// 处理集运开通服务,把数组转成字符串
this.form.isConsService = this.form.isConsService.includes(1) ? 1 : 0;
// 修改的提交
if (this.form.id != null) {
updateWarehouse(this.form).then((response) => {
......
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