|
@@ -82,7 +82,7 @@
|
|
|
<template #products>
|
|
|
<div style="width: 100%">
|
|
|
<el-table :data="formData.data.jdOrderDetailsList">
|
|
|
- <el-table-column prop="productCode" label="物品编码" />
|
|
|
+ <el-table-column prop="productCustomCode" label="物品编码" />
|
|
|
<el-table-column prop="productName" label="物品名称" />
|
|
|
<!-- <el-table-column
|
|
|
prop="productSpec"
|
|
@@ -224,6 +224,8 @@ let rules = ref({
|
|
|
{ required: true, message: "请输入物流/快递单号", trigger: "blur" },
|
|
|
],
|
|
|
countryId: [{ required: true, message: "请选择国家", trigger: "change" }],
|
|
|
+ contacts: [{ required: true, message: "请输入收件人", trigger: "blur" }],
|
|
|
+ phone: [{ required: true, message: "请输入联系电话", trigger: "blur" }],
|
|
|
});
|
|
|
let rulesOne = ref({
|
|
|
type: [
|
|
@@ -409,6 +411,113 @@ const configData = computed(() => [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ type: "input",
|
|
|
+ prop: "contacts",
|
|
|
+ label: "收件人",
|
|
|
+ itemWidth: 25,
|
|
|
+ placeholder: "收件人",
|
|
|
+ disabled: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ prop: "phone",
|
|
|
+ label: "联系电话",
|
|
|
+ itemWidth: 60,
|
|
|
+ placeholder: "联系电话",
|
|
|
+ disabled: true,
|
|
|
+ style: {
|
|
|
+ width: "46%",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "slot",
|
|
|
+ slotName: "countryId",
|
|
|
+ prop: "countryId",
|
|
|
+ label: "收货信息",
|
|
|
+ itemWidth: 33.33,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "slot",
|
|
|
+ slotName: "provinceId",
|
|
|
+ label: " ",
|
|
|
+ itemWidth: 33.33,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "slot",
|
|
|
+ slotName: "cityId",
|
|
|
+ prop: "cityId",
|
|
|
+ label: " ",
|
|
|
+ itemWidth: 33.33,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ itemType: "textarea",
|
|
|
+ prop: "areaDetail",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "title",
|
|
|
+ title: "出库明细",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "slot",
|
|
|
+ slotName: "products",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {
|
|
|
+ type: "title",
|
|
|
+ title: "基础信息",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ prop: "businessType",
|
|
|
+ label: "数据来源",
|
|
|
+ required: true,
|
|
|
+ disabled: true,
|
|
|
+ itemWidth: 25,
|
|
|
+ data: businessType,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ prop: "businessCode",
|
|
|
+ label: "关联单号",
|
|
|
+ required: true,
|
|
|
+ disabled: true,
|
|
|
+ itemWidth: 30,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ prop: "warehouseId",
|
|
|
+ label: "仓库名称",
|
|
|
+ itemWidth: 100,
|
|
|
+ data: warehouseList.value,
|
|
|
+ style: {
|
|
|
+ width: "53%",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ prop: "logisticsCompanyCode",
|
|
|
+ label: "物流/快递信息",
|
|
|
+ placeholder: "物流/快递公司",
|
|
|
+ itemWidth: 25,
|
|
|
+ style: {
|
|
|
+ width: "100%",
|
|
|
+ },
|
|
|
+ data: logisticsData.value,
|
|
|
+ filterable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ prop: "logisticsCode",
|
|
|
+ label: " ",
|
|
|
+ placeholder: "物流/快递单号",
|
|
|
+ itemWidth: 60,
|
|
|
+ style: {
|
|
|
+ width: "46%",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "slot",
|
|
|
slotName: "countryId",
|
|
|
prop: "countryId",
|
|
@@ -664,21 +773,40 @@ const outBound = (row) => {
|
|
|
quantity: undefined,
|
|
|
}));
|
|
|
res.businessType = res.businessType + "";
|
|
|
+ if (res.purchaseBackInfo) {
|
|
|
+ res.contacts = res.purchaseBackInfo.contacts
|
|
|
+ ? res.purchaseBackInfo.contacts
|
|
|
+ : "";
|
|
|
+ res.phone = res.purchaseBackInfo.phone
|
|
|
+ ? res.purchaseBackInfo.phone
|
|
|
+ : "";
|
|
|
+ res.countryId = res.purchaseBackInfo.countryId
|
|
|
+ ? res.purchaseBackInfo.countryId
|
|
|
+ : "44";
|
|
|
+ res.provinceId = res.purchaseBackInfo.provinceId
|
|
|
+ ? res.purchaseBackInfo.provinceId
|
|
|
+ : "";
|
|
|
+ res.cityId = res.purchaseBackInfo.cityId
|
|
|
+ ? res.purchaseBackInfo.cityId
|
|
|
+ : "";
|
|
|
+ }
|
|
|
formData.data = res;
|
|
|
- formData.data.countryId = "44";
|
|
|
getCityData(formData.data.countryId, "20");
|
|
|
+ if (res.provinceId) {
|
|
|
+ getCityData(formData.data.provinceId, "30");
|
|
|
+ }
|
|
|
dialogVisible.value = true;
|
|
|
});
|
|
|
} else if (row.businessType == 5) {
|
|
|
modalType.value = "add";
|
|
|
- formConfig.value = configData.value[1];
|
|
|
+ formConfig.value = configData.value[2];
|
|
|
proxy.post("/jdOrder/detail", { id: row.businessId }).then((res) => {
|
|
|
res.jdOrderDetailsList = res.jdOrderDetailsList.map((x) => ({
|
|
|
waitQuantity: x.quantity,
|
|
|
quantity: undefined,
|
|
|
productId: x.productId,
|
|
|
id: x.id,
|
|
|
- productCode: x.productCode,
|
|
|
+ productCustomCode: x.productCustomCode,
|
|
|
productName: x.productName,
|
|
|
productSpec: x.productSpec,
|
|
|
}));
|
|
@@ -692,7 +820,7 @@ const outBound = (row) => {
|
|
|
});
|
|
|
} else if (row.businessType == 6) {
|
|
|
modalType.value = "edit";
|
|
|
- formConfig.value = configData.value[0];
|
|
|
+ formConfig.value = configData.value[1];
|
|
|
proxy.post("/stockWait/detailByWdly", { id: row.id }).then((res) => {
|
|
|
res.jdOrderDetailsList = res.stockWaitDetailsList.map((x) => ({
|
|
|
...x,
|