|
@@ -398,7 +398,7 @@ const accountList = ref([]);
|
|
|
const invoiceType = ref([]);
|
|
|
const fundsPaymentMethod = ref([]);
|
|
|
const contractList = ref([]);
|
|
|
-const changeSupply = (val) => {
|
|
|
+const changeSupply = (val, flag) => {
|
|
|
if (val) {
|
|
|
proxy.get("/purchase/getListBySupplyId", { supplyId: val }).then((res) => {
|
|
|
if (res.data && res.data.length > 0) {
|
|
@@ -419,6 +419,9 @@ const changeSupply = (val) => {
|
|
|
} else {
|
|
|
contractList.value = [];
|
|
|
}
|
|
|
+ if (flag) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
formData.data.payDetailList = [];
|
|
|
};
|
|
|
const changeMoney = () => {
|
|
@@ -545,7 +548,7 @@ const handleSubmit = async () => {
|
|
|
return { ...formData.data };
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+const requestNum = ref(1);
|
|
|
watch(
|
|
|
refProps.queryData,
|
|
|
(val) => {
|
|
@@ -555,6 +558,10 @@ watch(
|
|
|
route.query.processType == 30
|
|
|
) {
|
|
|
formData.data = refProps.queryData.value;
|
|
|
+ if (formData.data.supplyId && requestNum.value === 1) {
|
|
|
+ changeSupply(formData.data.supplyId, true);
|
|
|
+ requestNum.value++;
|
|
|
+ }
|
|
|
formDom.value.formDataShowLabelOne();
|
|
|
formDom.value.formDataListShowLabelOne();
|
|
|
formDomOne.value.formDataShowLabelOne();
|