|
@@ -813,9 +813,10 @@ const formConfig = computed(() => {
|
|
type: "select",
|
|
type: "select",
|
|
label: "是否公户转出",
|
|
label: "是否公户转出",
|
|
prop: "isPublicTransfer",
|
|
prop: "isPublicTransfer",
|
|
- itemWidth: 25,
|
|
+ itemWidth: 50,
|
|
data: isAfterSubmit.value,
|
|
data: isAfterSubmit.value,
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
fn: (val) => {
|
|
fn: (val) => {
|
|
formData.data.paymentAccountId = "";
|
|
formData.data.paymentAccountId = "";
|
|
formData.data.paymentAccountName = "";
|
|
formData.data.paymentAccountName = "";
|
|
@@ -844,9 +845,10 @@ const formConfig = computed(() => {
|
|
type: "select",
|
|
type: "select",
|
|
label: "付款方式",
|
|
label: "付款方式",
|
|
prop: "paymentMethod",
|
|
prop: "paymentMethod",
|
|
- itemWidth: 25,
|
|
+ itemWidth: 50,
|
|
data: paymentMethod.value,
|
|
data: paymentMethod.value,
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
isShow: isShowAtt("paymentMethod", "mainObj"),
|
|
isShow: isShowAtt("paymentMethod", "mainObj"),
|
|
fn: (val) => {
|
|
fn: (val) => {
|
|
if (
|
|
if (
|
|
@@ -876,7 +878,7 @@ const formConfig = computed(() => {
|
|
type: "input",
|
|
type: "input",
|
|
prop: "shopName",
|
|
prop: "shopName",
|
|
label: "充值店铺名称",
|
|
label: "充值店铺名称",
|
|
- itemWidth: 25,
|
|
+ itemWidth: 50,
|
|
disabled: true,
|
|
disabled: true,
|
|
isShow:
|
|
isShow:
|
|
isShowAtt("paymentMethod", "mainObj") &&
|
|
isShowAtt("paymentMethod", "mainObj") &&
|
|
@@ -887,11 +889,12 @@ const formConfig = computed(() => {
|
|
prop: "paymentAccountId",
|
|
prop: "paymentAccountId",
|
|
label: "公司账户",
|
|
label: "公司账户",
|
|
data: accountList.value,
|
|
data: accountList.value,
|
|
- itemWidth: 25,
|
|
+ itemWidth: 50,
|
|
fn: (val) => {
|
|
fn: (val) => {
|
|
changeShroffAccount(val);
|
|
changeShroffAccount(val);
|
|
},
|
|
},
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
// formData.data.isPublicTransfer &&
|
|
// formData.data.isPublicTransfer &&
|
|
@@ -903,7 +906,8 @@ const formConfig = computed(() => {
|
|
label: "开户行",
|
|
label: "开户行",
|
|
placeholder: "请输入开户行",
|
|
placeholder: "请输入开户行",
|
|
itemWidth: 25,
|
|
itemWidth: 25,
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
// isShow:
|
|
// isShow:
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
@@ -916,7 +920,8 @@ const formConfig = computed(() => {
|
|
label: "开户名",
|
|
label: "开户名",
|
|
placeholder: "请输入开户名",
|
|
placeholder: "请输入开户名",
|
|
itemWidth: 25,
|
|
itemWidth: 25,
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
// isShow:
|
|
// isShow:
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
@@ -929,7 +934,8 @@ const formConfig = computed(() => {
|
|
label: "账号",
|
|
label: "账号",
|
|
placeholder: "请输入账号",
|
|
placeholder: "请输入账号",
|
|
itemWidth: 25,
|
|
itemWidth: 25,
|
|
- disabled: !isHaveFinance.value,
|
|
+ // disabled: !isHaveFinance.value,
|
|
|
|
+ disabled: isDisabled.value,
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
isShow: isShowAtt("paymentAccountId", "mainObj"),
|
|
// isShow:
|
|
// isShow:
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
// isShowAtt("paymentAccountId", "mainObj") &&
|
|
@@ -1592,10 +1598,7 @@ const handleChangeMoney = (val, index, att) => {
|
|
if (currentCostTypeData.value.name.indexOf("其他费用") != -1) {
|
|
if (currentCostTypeData.value.name.indexOf("其他费用") != -1) {
|
|
// 是否预付
|
|
// 是否预付
|
|
if (formData.data.isAdvance == "1") {
|
|
if (formData.data.isAdvance == "1") {
|
|
- row.currentPayable =
|
|
+ row.currentPayable = row.currentPrepaidTax + row.currentPrepaid;
|
|
- formData.data.isPublicTransfer == "1"
|
|
|
|
- ? row.currentPrepaidTax
|
|
|
|
- : row.currentPrepaid;
|
|
|
|
} else {
|
|
} else {
|
|
row.currentPayableDeduction =
|
|
row.currentPayableDeduction =
|
|
formData.data.isPublicTransfer == "1"
|
|
formData.data.isPublicTransfer == "1"
|
|
@@ -2160,6 +2163,7 @@ const handleSubmit = async (isStag = false) => {
|
|
row["calculateItemName" + (j + 1 + "")] =
|
|
row["calculateItemName" + (j + 1 + "")] =
|
|
row.submitMapLabelData[key];
|
|
row.submitMapLabelData[key];
|
|
calculateItemList.push({
|
|
calculateItemList.push({
|
|
|
|
+ sort: j + 1,
|
|
type: key,
|
|
type: key,
|
|
businessId: row.submitMapData[key],
|
|
businessId: row.submitMapData[key],
|
|
businessName: row.submitMapLabelData[key],
|
|
businessName: row.submitMapLabelData[key],
|
|
@@ -2318,9 +2322,13 @@ const getAllData = (businessId) => {
|
|
for (const key in res) {
|
|
for (const key in res) {
|
|
formData.data[key] = res[key];
|
|
formData.data[key] = res[key];
|
|
}
|
|
}
|
|
- if (formData.data.companyId && formData.data.companyId.indexOf(",") != -1) {
|
|
+ if (
|
|
|
|
+ (formData.data.companyId && formData.data.companyId.indexOf(",") != -1) ||
|
|
|
|
+ currentCostTypeData.value.name == "采购货款"
|
|
|
|
+ ) {
|
|
formData.data.companyId = formData.data.companyId.split(",");
|
|
formData.data.companyId = formData.data.companyId.split(",");
|
|
}
|
|
}
|
|
|
|
+
|
|
if (formData.data.isPublicTransfer != undefined) {
|
|
if (formData.data.isPublicTransfer != undefined) {
|
|
proxy
|
|
proxy
|
|
.post("/accountManagement/page", {
|
|
.post("/accountManagement/page", {
|
|
@@ -2360,6 +2368,13 @@ const getAllData = (businessId) => {
|
|
(x) => x.value == formData.data.costType
|
|
(x) => x.value == formData.data.costType
|
|
);
|
|
);
|
|
checkDisabled();
|
|
checkDisabled();
|
|
|
|
+ if (
|
|
|
|
+ (formData.data.companyId &&
|
|
|
|
+ formData.data.companyId.indexOf(",") != -1) ||
|
|
|
|
+ currentCostTypeData.value.name == "采购货款"
|
|
|
|
+ ) {
|
|
|
|
+ formData.data.companyId = formData.data.companyId.split(",");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
if (Array.isArray(formData.data.companyId)) {
|
|
if (Array.isArray(formData.data.companyId)) {
|