修改备货单 等页面
This commit is contained in:
@@ -234,7 +234,7 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
||||
remit_country_id: '',
|
||||
remit_country_name_snapshot: '',
|
||||
remit_date: '',
|
||||
currency_code: '',
|
||||
currency_code: 'USD',
|
||||
currency_name_snapshot: '',
|
||||
account_id: '',
|
||||
account_name_snapshot: '',
|
||||
@@ -277,6 +277,10 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
||||
|
||||
const getarea = async () => {
|
||||
const res = await CrmService.getCountry()
|
||||
res.forEach((item: any) => {
|
||||
item.cn_addrs = item.cn_addr + '(' + item.en_addr + ')'
|
||||
})
|
||||
console.log(res)
|
||||
countryOptions.value = res || []
|
||||
}
|
||||
|
||||
@@ -518,6 +522,8 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
||||
baseForm.customer_snapshot = row.contacts || row.name || ''
|
||||
baseForm.customer_country_id = row.country_id || ''
|
||||
baseForm.customer_country_snapshot = row.country_name || ''
|
||||
baseForm.customer_source_id = row.channel_id || ''
|
||||
baseForm.customer_source_snapshot = row.channel_name || ''
|
||||
customerDialog.visible = false
|
||||
}
|
||||
|
||||
@@ -822,6 +828,13 @@ export function useStockingForm(isFinal = false, stockingId?: string | number) {
|
||||
|
||||
// 设置默认汇率
|
||||
baseForm.contract_exchange_rate = getCurrencyRate('USD')
|
||||
|
||||
// 设置预计发送日默认为当天
|
||||
const today = new Date()
|
||||
const year = today.getFullYear()
|
||||
const month = String(today.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(today.getDate()).padStart(2, '0')
|
||||
baseForm.biz_date = `${year}-${month}-${day}`
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user