|
@@ -1,43 +1,43 @@
|
|
|
<!-- 持仓过户-我的转入-新增 -->
|
|
<!-- 持仓过户-我的转入-新增 -->
|
|
|
<template>
|
|
<template>
|
|
|
- <app-drawer title="新增" v-model:show="show" :width="800" :loading="loading" :refresh="refresh">
|
|
|
|
|
|
|
+ <app-drawer :title="t('inout.add.title')" v-model:show="show" :width="800" :loading="loading" :refresh="refresh">
|
|
|
<el-form ref="formRef" class="el-form--horizontal" label-width="100px" :model="formData" :rules="formRules"
|
|
<el-form ref="formRef" class="el-form--horizontal" label-width="100px" :model="formData" :rules="formRules"
|
|
|
@submit.prevent>
|
|
@submit.prevent>
|
|
|
- <el-form-item prop="InUserID" label="转入客户">
|
|
|
|
|
- <el-select effect="dark" placeholder="请输入客户编号或手机号" v-model="formData.InUserID" :loading="searchLoading"
|
|
|
|
|
|
|
+ <el-form-item prop="InUserID" :label="t('inout.add.inusername')">
|
|
|
|
|
+ <el-select effect="dark" :placeholder="t('inout.add.tips3')" v-model="formData.InUserID" :loading="searchLoading"
|
|
|
:remote-method="remoteMethod" filterable remote clearable>
|
|
:remote-method="remoteMethod" filterable remote clearable>
|
|
|
<template v-for="(item, index) in dataList" :key="index">
|
|
<template v-for="(item, index) in dataList" :key="index">
|
|
|
<el-option :label="item.customername" :value="item.userid" />
|
|
<el-option :label="item.customername" :value="item.userid" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="GoodsID" label="转让商品">
|
|
|
|
|
- <el-select effect="dark" placeholder="请选择" v-model="selectedGoods" value-key="goodsid"
|
|
|
|
|
|
|
+ <el-form-item prop="GoodsID" :label="t('inout.add.goodsid')">
|
|
|
|
|
+ <el-select effect="dark" :placeholder="t('common.choice')" v-model="selectedGoods" value-key="goodsid"
|
|
|
@change="onGoodsChange">
|
|
@change="onGoodsChange">
|
|
|
<template v-for="(item, index) in goodsList" :key="index">
|
|
<template v-for="(item, index) in goodsList" :key="index">
|
|
|
<el-option :label="`${item.goodscode}/${item.goodsname}`" :value="item" />
|
|
<el-option :label="`${item.goodscode}/${item.goodsname}`" :value="item" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="TransferPrice" label="转让价格">
|
|
|
|
|
- <el-input-number placeholder="请输入" v-model="formData.TransferPrice" :min="0"
|
|
|
|
|
|
|
+ <el-form-item prop="TransferPrice" :label="t('inout.add.orderprice')">
|
|
|
|
|
+ <el-input-number :placeholder="t('common.pleaseenter')" v-model="formData.TransferPrice" :min="0"
|
|
|
:precision="selectedGoods?.decimalplace" />
|
|
:precision="selectedGoods?.decimalplace" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="Qty" label="转让量">
|
|
|
|
|
- <el-input-number placeholder="请输入" v-model="formData.Qty" :precision="0" :min="0" :max="enableqty" />
|
|
|
|
|
|
|
+ <el-form-item prop="Qty" :label="t('inout.add.orderqty')">
|
|
|
|
|
+ <el-input-number :placeholder="t('common.pleaseenter')" v-model="formData.Qty" :precision="0" :min="0" :max="enableqty" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="冻结天数">
|
|
|
|
|
|
|
+ <el-form-item :label="t('inout.add.freezedays')">
|
|
|
<span>{{ formData.FreezeDays }}</span>
|
|
<span>{{ formData.FreezeDays }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="可用量">
|
|
|
|
|
|
|
+ <el-form-item :label="t('inout.add.enableqty')">
|
|
|
<span>{{ enableqty }}</span>
|
|
<span>{{ enableqty }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div style="display: flex;justify-content: center;">
|
|
<div style="display: flex;justify-content: center;">
|
|
|
<el-form class="el-form--vertical">
|
|
<el-form class="el-form--vertical">
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-checkbox v-model="isAgree">我已阅读并同意</el-checkbox>
|
|
|
|
|
- <span @click="openComponent('agreement')" style="cursor: pointer;">《持仓转让协议》</span>
|
|
|
|
|
|
|
+ <el-checkbox v-model="isAgree">{{ t('inout.add.tips1') }}</el-checkbox>
|
|
|
|
|
+ <span @click="openComponent('agreement')" style="cursor: pointer;">{{ t('inout.add.tips2') }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
@@ -98,27 +98,27 @@ const formData = reactive<Partial<Proto.HolderTransferDetail>>({
|
|
|
const formRules: FormRules = {
|
|
const formRules: FormRules = {
|
|
|
InUserID: [{
|
|
InUserID: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入客户编号或手机号',
|
|
|
|
|
|
|
+ message: t('inout.add.tips3'),
|
|
|
validator: () => !!formData.InUserID
|
|
validator: () => !!formData.InUserID
|
|
|
}],
|
|
}],
|
|
|
GoodsID: [{
|
|
GoodsID: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请选择转让商品',
|
|
|
|
|
|
|
+ message: t('inout.add.tips4'),
|
|
|
validator: () => !!selectedGoods.value
|
|
validator: () => !!selectedGoods.value
|
|
|
}],
|
|
}],
|
|
|
TransferPrice: [{
|
|
TransferPrice: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入转让价格',
|
|
|
|
|
|
|
+ message: t('inout.add.tips5'),
|
|
|
validator: () => !!formData.TransferPrice
|
|
validator: () => !!formData.TransferPrice
|
|
|
}],
|
|
}],
|
|
|
Qty: [{
|
|
Qty: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入转让量',
|
|
|
|
|
|
|
+ message: t('inout.add.tips6'),
|
|
|
validator: () => !!formData.Qty
|
|
validator: () => !!formData.Qty
|
|
|
}],
|
|
}],
|
|
|
FreezeDays: [{
|
|
FreezeDays: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入冻结天数',
|
|
|
|
|
|
|
+ message: t('inout.add.tips7'),
|
|
|
type: 'number',
|
|
type: 'number',
|
|
|
}]
|
|
}]
|
|
|
}
|
|
}
|
|
@@ -165,15 +165,15 @@ const onSubmit = () => {
|
|
|
HolderTransferDetails: [formData]
|
|
HolderTransferDetails: [formData]
|
|
|
}
|
|
}
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- ElMessage.success('提交成功,请稍后查询结果')
|
|
|
|
|
|
|
+ ElMessage.success(t('inout.add.tips8'))
|
|
|
onCancel(true)
|
|
onCancel(true)
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
- ElMessage.error('提交失败:' + err)
|
|
|
|
|
|
|
+ ElMessage.error(t('common.submitfailure') + err)
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
loading.value = false
|
|
loading.value = false
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
- ElMessage.warning('请同意持仓转让协议')
|
|
|
|
|
|
|
+ ElMessage.warning(t('inout.add.tips9'))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|