|
@@ -1,32 +1,32 @@
|
|
|
<!-- 现货仓单-现货明细-提货 -->
|
|
<!-- 现货仓单-现货明细-提货 -->
|
|
|
<template>
|
|
<template>
|
|
|
- <app-drawer title="提货" v-model:show="show" :width="960" :loading="loading" :refresh="refresh">
|
|
|
|
|
|
|
+ <app-drawer :title="t('position.spot.subtitle4')" v-model:show="show" :width="960" :loading="loading" :refresh="refresh">
|
|
|
<el-form ref="formRef" class="el-form--horizontal" label-width="120px" :model="formData" :rules="formRules">
|
|
<el-form ref="formRef" class="el-form--horizontal" label-width="120px" :model="formData" :rules="formRules">
|
|
|
- <el-form-item label="商品代码/名称">
|
|
|
|
|
|
|
+ <el-form-item :label="t('position.spot.goodsname')">
|
|
|
<span>{{ selectedRow.wrstandardcode }}/{{ selectedRow.wrstandardname }}</span>
|
|
<span>{{ selectedRow.wrstandardcode }}/{{ selectedRow.wrstandardname }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="仓库">
|
|
|
|
|
|
|
+ <el-form-item :label="t('position.spot.warehousename')">
|
|
|
<span>{{ selectedRow.warehousename }}</span>
|
|
<span>{{ selectedRow.warehousename }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="库存量">
|
|
|
|
|
|
|
+ <el-form-item :label="t('position.spot.qty')">
|
|
|
<span>{{ selectedRow.qty }}</span>
|
|
<span>{{ selectedRow.qty }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="冻结量">
|
|
|
|
|
|
|
+ <el-form-item :label="t('position.spot.freezerqty')">
|
|
|
<span>{{ selectedRow.freezerqty }}</span>
|
|
<span>{{ selectedRow.freezerqty }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="可用量">
|
|
|
|
|
|
|
+ <el-form-item :label="t('position.spot.enableqty')">
|
|
|
<span>{{ selectedRow.enableqty }}</span>
|
|
<span>{{ selectedRow.enableqty }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="OrderQty" label="提货数量">
|
|
|
|
|
- <el-input-number placeholder="请输入提货数量" v-model="orderQty" :max="selectedRow.enableqty" :min="0" />
|
|
|
|
|
|
|
+ <el-form-item prop="OrderQty" :label="t('position.spot.orderqty2')">
|
|
|
|
|
+ <el-input-number :placeholder="t('position.spot.tips12')" v-model="orderQty" :max="selectedRow.enableqty" :min="0" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="AppointmentModel" label="提货方式">
|
|
|
|
|
|
|
+ <el-form-item prop="AppointmentModel" :label="t('position.spot.appointmentmodel')">
|
|
|
<el-select effect="dark" v-model="formData.AppointmentModel" :disabled="loading">
|
|
<el-select effect="dark" v-model="formData.AppointmentModel" :disabled="loading">
|
|
|
<el-option :label="item.label" :value="item.value"
|
|
<el-option :label="item.label" :value="item.value"
|
|
|
v-for="(item, index) in getAppointmentModelOutList()" :key="index" />
|
|
v-for="(item, index) in getAppointmentModelOutList()" :key="index" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="ContractName" label="联系人">
|
|
|
|
|
|
|
+ <el-form-item prop="ContractName" :label="t('position.spot.contactname')">
|
|
|
<div class="el-form-item--col">
|
|
<div class="el-form-item--col">
|
|
|
<el-input type="textarea" :rows="2" v-model="formData.ContactName" />
|
|
<el-input type="textarea" :rows="2" v-model="formData.ContactName" />
|
|
|
<el-dropdown trigger="click" v-if="addressList.length">
|
|
<el-dropdown trigger="click" v-if="addressList.length">
|
|
@@ -44,19 +44,19 @@
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item prop="ContactNum" label="联系方式">
|
|
|
|
|
|
|
+ <el-form-item prop="ContactNum" :label="t('position.spot.contactnum')">
|
|
|
<el-input :placeholder="t('common.pleaseenter')" v-model="formData.ContactNum" />
|
|
<el-input :placeholder="t('common.pleaseenter')" v-model="formData.ContactNum" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<template v-if="formData.AppointmentModel === 1">
|
|
<template v-if="formData.AppointmentModel === 1">
|
|
|
- <el-form-item prop="Region" class="el-form-item--row" label="收货地区">
|
|
|
|
|
|
|
+ <el-form-item prop="Region" class="el-form-item--row" :label="t('position.spot.district')">
|
|
|
<app-region class="el-form-item--col" v-model:province="formData.ProvinceID"
|
|
<app-region class="el-form-item--col" v-model:province="formData.ProvinceID"
|
|
|
v-model:city="formData.CityID" v-model:district="formData.DistrictID" />
|
|
v-model:city="formData.CityID" v-model:district="formData.DistrictID" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item class="el-form-item--row" prop="Address" label="收货地址">
|
|
|
|
|
|
|
+ <el-form-item class="el-form-item--row" prop="Address" :label="t('position.spot.address')">
|
|
|
<el-input :placeholder="t('common.pleaseenter')" v-model="formData.Address" />
|
|
<el-input :placeholder="t('common.pleaseenter')" v-model="formData.Address" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <el-form-item prop="AppointmentRemark" class="el-form-item--row" label="发票信息">
|
|
|
|
|
|
|
+ <el-form-item prop="AppointmentRemark" class="el-form-item--row" :label="t('position.spot.remark')">
|
|
|
<div class="el-form-item--col">
|
|
<div class="el-form-item--col">
|
|
|
<el-input type="textarea" :rows="2" v-model="formData.AppointmentRemark" />
|
|
<el-input type="textarea" :rows="2" v-model="formData.AppointmentRemark" />
|
|
|
<el-dropdown trigger="click" v-if="invoiceList.length">
|
|
<el-dropdown trigger="click" v-if="invoiceList.length">
|
|
@@ -114,32 +114,32 @@ const { t } = i18n.global
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
const formRules: FormRules = {
|
|
const formRules: FormRules = {
|
|
|
orderQty: [{
|
|
orderQty: [{
|
|
|
- message: '请输入提货数量',
|
|
|
|
|
|
|
+ message: t('position.spot.tips12'),
|
|
|
validator: () => {
|
|
validator: () => {
|
|
|
return !!orderQty.value
|
|
return !!orderQty.value
|
|
|
}
|
|
}
|
|
|
}],
|
|
}],
|
|
|
ContactName: [{
|
|
ContactName: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入联系人',
|
|
|
|
|
|
|
+ message: t('position.spot.tips11'),
|
|
|
}],
|
|
}],
|
|
|
ContactNum: [{
|
|
ContactNum: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入联系方式',
|
|
|
|
|
|
|
+ message: t('position.spot.tips10'),
|
|
|
}],
|
|
}],
|
|
|
Region: [{
|
|
Region: [{
|
|
|
- message: '请选择收货地区',
|
|
|
|
|
|
|
+ message: t('position.spot.tips9'),
|
|
|
validator: () => {
|
|
validator: () => {
|
|
|
return !!formData.ProvinceID && !!formData.CityID && !!formData.DistrictID
|
|
return !!formData.ProvinceID && !!formData.CityID && !!formData.DistrictID
|
|
|
}
|
|
}
|
|
|
}],
|
|
}],
|
|
|
Address: [{
|
|
Address: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入收货地址',
|
|
|
|
|
|
|
+ message: t('position.spot.tips8'),
|
|
|
}],
|
|
}],
|
|
|
AppointmentRemark: [{
|
|
AppointmentRemark: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: '请输入发票信息',
|
|
|
|
|
|
|
+ message: t('position.spot.tips7'),
|
|
|
}],
|
|
}],
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -162,35 +162,35 @@ const invoiceChange = (item: Model.WrUserReceiptInfoRsp) => {
|
|
|
if (value !== '') {
|
|
if (value !== '') {
|
|
|
switch (key) {
|
|
switch (key) {
|
|
|
case 'receipttype': {
|
|
case 'receipttype': {
|
|
|
- formData.AppointmentRemark += '发票类型:' + getReceiptTypeName(Number(value)) + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.receipttype') + getReceiptTypeName(Number(value)) + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'username': {
|
|
case 'username': {
|
|
|
- formData.AppointmentRemark += '户名:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.username') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'address': {
|
|
case 'address': {
|
|
|
- formData.AppointmentRemark += '地址:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.address1') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'contactinfo': {
|
|
case 'contactinfo': {
|
|
|
- formData.AppointmentRemark += '联系方式:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.contactinfo') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'idnum': {
|
|
case 'idnum': {
|
|
|
- formData.AppointmentRemark += '身份证号码:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.idnum') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'receiptaccount': {
|
|
case 'receiptaccount': {
|
|
|
- formData.AppointmentRemark += '发票帐号:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.receiptaccount') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'receiptbank': {
|
|
case 'receiptbank': {
|
|
|
- formData.AppointmentRemark += '发票开户行:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.receiptbank') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 'taxpayerid': {
|
|
case 'taxpayerid': {
|
|
|
- formData.AppointmentRemark += '纳税人识别号:' + value + '\n'
|
|
|
|
|
|
|
+ formData.AppointmentRemark += t('position.spot.taxpayerid') + value + '\n'
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -207,10 +207,10 @@ const onSubmit = () => {
|
|
|
formRef.value?.validate((valid) => {
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
applySubmit().then(() => {
|
|
applySubmit().then(() => {
|
|
|
- ElMessage.success('提货申请成功')
|
|
|
|
|
|
|
+ ElMessage.success(t('common.submitsuccess'))
|
|
|
onCancel(true)
|
|
onCancel(true)
|
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
- ElMessage.error('提货申请失败:' + err)
|
|
|
|
|
|
|
+ ElMessage.error(t('common.submitfailure') + err)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|