|
|
@@ -104,6 +104,7 @@
|
|
|
:pricingWay="form.pricingWay"
|
|
|
ref="inventoryTableref"
|
|
|
:orderId="form.orderId"
|
|
|
+ :customerMark="this.customerMark"
|
|
|
></inventoryTable>
|
|
|
|
|
|
<div slot="footer" class="footer">
|
|
|
@@ -152,7 +153,7 @@
|
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import { getCode } from '@/api/login/index';
|
|
|
-
|
|
|
+ import { contactDetail } from '@/api/saleManage/contact';
|
|
|
export default {
|
|
|
props: {
|
|
|
addOrEditDialogFlag: Boolean
|
|
|
@@ -207,7 +208,7 @@
|
|
|
{ required: true, message: '请输入', trigger: 'change' }
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
+ customerMark: '',
|
|
|
// 提交状态
|
|
|
loading: false,
|
|
|
// 是否是修改
|
|
|
@@ -257,10 +258,18 @@
|
|
|
changeOrder(obj) {
|
|
|
this.getOrderDetail(obj.id);
|
|
|
},
|
|
|
+ async getContactDetail(id) {
|
|
|
+ if (id) {
|
|
|
+ const { base } = await contactDetail(id);
|
|
|
+ this.customerMark = base.serialNo;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
//获取订单详情
|
|
|
async getOrderDetail(id) {
|
|
|
this.loading = true;
|
|
|
let data = await getSaleOrderDetail(id);
|
|
|
+ this.getContactDetail(data.partaId);
|
|
|
|
|
|
this.loading = false;
|
|
|
if (data) {
|
|
|
@@ -276,9 +285,9 @@
|
|
|
pricingWay
|
|
|
} = data;
|
|
|
if (productList && productList.length > 0) {
|
|
|
- productList.forEach(async(v) => {
|
|
|
+ productList.forEach(async (v) => {
|
|
|
v.orderTotalCount = v.orderTotalCount || v.totalCount;
|
|
|
- v.batchNo = await getCode('lot_number_code')
|
|
|
+ v.batchNo = await getCode('lot_number_code');
|
|
|
});
|
|
|
}
|
|
|
this.form = Object.assign({}, this.form, {
|
|
|
@@ -304,6 +313,8 @@
|
|
|
|
|
|
this.loading = true;
|
|
|
let data = await getPSaleEntrustedReceiveDetailAPI(id);
|
|
|
+ this.getContactDetail(data.contactId);
|
|
|
+
|
|
|
this.loading = false;
|
|
|
if (data) {
|
|
|
this.$nextTick(() => {
|
|
|
@@ -325,7 +336,10 @@
|
|
|
list.find((key) => key.productCode == item.productCode) || {};
|
|
|
item.receiveTotalCount = find.receiveTotalCount || 0;
|
|
|
item.orderTotalCount = item.totalCount || 0;
|
|
|
- item.totalCount = item.orderTotalCount - item.receiveTotalCount>=0?item.orderTotalCount - item.receiveTotalCount:0;
|
|
|
+ item.totalCount =
|
|
|
+ item.orderTotalCount - item.receiveTotalCount >= 0
|
|
|
+ ? item.orderTotalCount - item.receiveTotalCount
|
|
|
+ : 0;
|
|
|
});
|
|
|
return data;
|
|
|
},
|