|
@@ -34,8 +34,7 @@
|
|
|
<el-table-column label="备注" min-width="150">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item :prop="'afterSalesDetailList.' + $index + '.remark'" :rules="rules.remark" :inline-message="true"
|
|
|
- class="shrinkPadding">
|
|
|
+ <el-form-item :prop="'afterSalesDetailList.' + $index + '.remark'" :inline-message="true" class="shrinkPadding">
|
|
|
<el-input v-model="row.remark" placeholder="请输入" type="text"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -81,11 +80,14 @@ const afterSalesType = computed(
|
|
|
const afterSalesReason = computed(
|
|
|
() => proxy.useUserStore().allDict["after_sales_reason"]
|
|
|
);
|
|
|
-
|
|
|
+const accountCurrency = computed(
|
|
|
+ () => proxy.useUserStore().allDict["account_currency"]
|
|
|
+);
|
|
|
const openMaterial = ref(false);
|
|
|
const formData = reactive({
|
|
|
data: {
|
|
|
afterSalesDetailList: [],
|
|
|
+ fileList: [],
|
|
|
},
|
|
|
});
|
|
|
const formOption = reactive({
|
|
@@ -144,7 +146,6 @@ const formConfig = computed(() => {
|
|
|
data: afterSalesReason.value,
|
|
|
disabled: false,
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
type: "input",
|
|
|
itemType: "textarea",
|
|
@@ -154,12 +155,21 @@ const formConfig = computed(() => {
|
|
|
itemWidth: 100,
|
|
|
},
|
|
|
{
|
|
|
+ type: "select",
|
|
|
+ prop: "currency",
|
|
|
+ label: "币种",
|
|
|
+ required: true,
|
|
|
+ itemWidth: 25,
|
|
|
+ data: accountCurrency.value,
|
|
|
+ disabled: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "input",
|
|
|
itemType: "text",
|
|
|
prop: "amount",
|
|
|
label: "售后金额",
|
|
|
disabled: true,
|
|
|
- itemWidth: 50,
|
|
|
+ itemWidth: 25,
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -195,12 +205,25 @@ const formConfig = computed(() => {
|
|
|
itemWidth: 50,
|
|
|
},
|
|
|
{
|
|
|
+ type: "upload",
|
|
|
+ listType: "text",
|
|
|
+ prop: "fileList",
|
|
|
+ label: "附件",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "title",
|
|
|
+ title: "客户收款信息",
|
|
|
+ haveLine: true,
|
|
|
+ isShow: formData.data.type == "10" || formData.data.type == "20",
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "input",
|
|
|
itemType: "text",
|
|
|
prop: "accountBank",
|
|
|
label: "开户行",
|
|
|
required: true,
|
|
|
itemWidth: 50,
|
|
|
+ isShow: formData.data.type == "10" || formData.data.type == "20",
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -209,6 +232,7 @@ const formConfig = computed(() => {
|
|
|
label: "户名",
|
|
|
required: true,
|
|
|
itemWidth: 50,
|
|
|
+ isShow: formData.data.type == "10" || formData.data.type == "20",
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -217,12 +241,9 @@ const formConfig = computed(() => {
|
|
|
label: "账号",
|
|
|
required: true,
|
|
|
itemWidth: 50,
|
|
|
+ isShow: formData.data.type == "10" || formData.data.type == "20",
|
|
|
},
|
|
|
- // {
|
|
|
- // type: "title",
|
|
|
- // title: "客户账户信息",
|
|
|
- // haveLine: true,
|
|
|
- // },
|
|
|
+
|
|
|
{
|
|
|
type: "title",
|
|
|
title: "售后明细",
|
|
@@ -297,6 +318,7 @@ const handleSelect = (row) => {
|
|
|
formData.data.afterSalesDetailList.length == 0
|
|
|
) {
|
|
|
formData.data.contractId = row.contractId;
|
|
|
+ formData.data.currency = row.currency;
|
|
|
formData.data.afterSalesDetailList.push({
|
|
|
contractProductId: row.id,
|
|
|
productId: row.productId,
|
|
@@ -379,6 +401,24 @@ const getAllData = (businessId) => {
|
|
|
fileAtt: "fileList",
|
|
|
filePathAtt: "fileUrl",
|
|
|
});
|
|
|
+
|
|
|
+ proxy
|
|
|
+ .post("/fileInfo/getList", { businessIdList: [businessId] })
|
|
|
+ .then((fileObj) => {
|
|
|
+ if (fileObj[businessId] && fileObj[businessId].length > 0) {
|
|
|
+ formData.data.fileList = fileObj[businessId]
|
|
|
+ .filter((x) => x.businessType == "0")
|
|
|
+ .map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ name: item.fileName,
|
|
|
+ url: item.fileUrl,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ formData.data.fileList = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
};
|