|
@@ -452,6 +452,24 @@ watch(
|
|
|
} else {
|
|
|
fileList.value = [];
|
|
|
}
|
|
|
+ if (route.query.processType !== "30" && formData.data.payDetailList && formData.data.payDetailList.length) {
|
|
|
+ let ids = formData.data.payDetailList.map((item) => item.purchaseId);
|
|
|
+ if (ids && ids.length > 0) {
|
|
|
+ proxy.post("/purchase/getListInId", ids).then((res) => {
|
|
|
+ if (res && res.length > 0) {
|
|
|
+ contractList.value = res.map((item) => {
|
|
|
+ return {
|
|
|
+ value: item.id,
|
|
|
+ label: item.code,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ contractList.value = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ getDecisionAids();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -459,9 +477,9 @@ watch(
|
|
|
}
|
|
|
);
|
|
|
onMounted(async () => {
|
|
|
- if (props.queryData.supplyId) {
|
|
|
- formData.data.supplyId = props.queryData.supplyId;
|
|
|
- await changeSupply(formData.data.supplyId);
|
|
|
+ if (props.queryData.supplyIdTwo) {
|
|
|
+ formData.data.supplyIdTwo = props.queryData.supplyIdTwo;
|
|
|
+ await changeSupply(formData.data.supplyIdTwo);
|
|
|
if (props.queryData.ids) {
|
|
|
let ids = props.queryData.ids.split(",");
|
|
|
if (ids && ids.length > 0) {
|