|
@@ -913,7 +913,6 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async putTableValue({ productList, rawDetailList, outputDetailList }) {
|
|
async putTableValue({ productList, rawDetailList, outputDetailList }) {
|
|
|
-
|
|
|
|
|
this.$refs.inventoryTable &&
|
|
this.$refs.inventoryTable &&
|
|
|
this.$refs.inventoryTable.putTableValue(productList);
|
|
this.$refs.inventoryTable.putTableValue(productList);
|
|
|
this.$refs.rawDetailListRef &&
|
|
this.$refs.rawDetailListRef &&
|
|
@@ -960,6 +959,11 @@
|
|
|
async getDetailData(id) {
|
|
async getDetailData(id) {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
const data = await getDetail(id);
|
|
const data = await getDetail(id);
|
|
|
|
|
+ let info = await getProductsBySource({
|
|
|
|
|
+ relationId: this.form.relationId,
|
|
|
|
|
+ relationType: this.form.relationType
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
if (data) {
|
|
if (data) {
|
|
|
if (data.contractVO.sourceType == 3 && data.contractVO.sourceId) {
|
|
if (data.contractVO.sourceType == 3 && data.contractVO.sourceId) {
|
|
@@ -1031,17 +1035,17 @@
|
|
|
isFirstProcess
|
|
isFirstProcess
|
|
|
});
|
|
});
|
|
|
this.getLinkInfo(partaId);
|
|
this.getLinkInfo(partaId);
|
|
|
- data.productList.forEach((item) => {
|
|
|
|
|
- item['supplierMark'] = item.customerMark;
|
|
|
|
|
- });
|
|
|
|
|
- if (data.productList.lenght > 1) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (info.productList.lenght > 1) {
|
|
|
this.$refs.planTableListRef.contractOpen(
|
|
this.$refs.planTableListRef.contractOpen(
|
|
|
- data.productList,
|
|
|
|
|
|
|
+ info.productList,
|
|
|
contractVO.contractStartDate
|
|
contractVO.contractStartDate
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
this.contractSuccess({
|
|
this.contractSuccess({
|
|
|
- productList: data.productList,
|
|
|
|
|
|
|
+ productList: info.productList,
|
|
|
contractStartDate: contractVO.contractStartDate
|
|
contractStartDate: contractVO.contractStartDate
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|