|
@@ -36,7 +36,7 @@
|
|
|
title="认领"
|
|
|
v-if="dialogVisible"
|
|
|
v-model="dialogVisible"
|
|
|
- width="600"
|
|
|
+ width="50%"
|
|
|
v-loading="loading"
|
|
|
>
|
|
|
<byForm
|
|
@@ -79,6 +79,45 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ prop="claimType"
|
|
|
+ label="到账类型"
|
|
|
+ min-width="150"
|
|
|
+ >
|
|
|
+ <template #default="{ row, $index }">
|
|
|
+ <el-form-item
|
|
|
+ :prop="'claimContractList.' + $index + '.claimType'"
|
|
|
+ :rules="rules.claimType"
|
|
|
+ :inline-message="true"
|
|
|
+ >
|
|
|
+ <el-select v-model="row.claimType" style="width: 100%">
|
|
|
+ <el-option
|
|
|
+ v-for="item in claimTypeList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="moneyCny" label="换算 CNY" min-width="150">
|
|
|
+ <template #default="{ row, $index }">
|
|
|
+ <el-form-item
|
|
|
+ :prop="'claimContractList.' + $index + '.moneyCny'"
|
|
|
+ :rules="rules.moneyCny"
|
|
|
+ :inline-message="true"
|
|
|
+ >
|
|
|
+ <el-input-number
|
|
|
+ v-model="row.moneyCny"
|
|
|
+ :precision="2"
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
+ onmousewheel="return false;"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
prop="zip"
|
|
|
label="操作"
|
|
|
width="60"
|
|
@@ -222,6 +261,8 @@ let dialogVisibleOne = ref(false);
|
|
|
let modalType = ref("add");
|
|
|
let rules = ref({
|
|
|
money: [{ required: true, message: "请输入关联金额", trigger: "blur" }],
|
|
|
+ claimType: [{ required: true, message: "请选择到账类型", trigger: "change" }],
|
|
|
+ moneyCny: [{ required: true, message: "请输入换算 CNY", trigger: "blur" }],
|
|
|
});
|
|
|
const claim = ref([
|
|
|
{
|
|
@@ -237,6 +278,7 @@ const claim = ref([
|
|
|
value: "2",
|
|
|
},
|
|
|
]);
|
|
|
+const claimTypeList = ref([]);
|
|
|
const accountList = ref([]);
|
|
|
const selectConfig = computed(() => [
|
|
|
{
|
|
@@ -545,6 +587,13 @@ const getDict = () => {
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ proxy.getDictOne(["claim_type"]).then((res) => {
|
|
|
+ claimTypeList.value = res["claim_type"].map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ });
|
|
|
};
|
|
|
const handleBeforeUpload = async (file) => {
|
|
|
const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
|
|
@@ -590,6 +639,8 @@ const handleSelectContrct = (row) => {
|
|
|
money: 0,
|
|
|
currency: rowCurrency.value,
|
|
|
rate: rowRate.value,
|
|
|
+ claimType: "",
|
|
|
+ moneyCny: 0,
|
|
|
});
|
|
|
return ElMessage({
|
|
|
message: "选择成功",
|