diff --git a/src/modules/first-leg/views/FirstLegOrdersView.test.mjs b/src/modules/first-leg/views/FirstLegOrdersView.test.mjs index eea643e..232db1b 100644 --- a/src/modules/first-leg/views/FirstLegOrdersView.test.mjs +++ b/src/modules/first-leg/views/FirstLegOrdersView.test.mjs @@ -281,6 +281,11 @@ test('requires an enabled platform receiving warehouse in the order form', () => }) test('selects platform destinations and uses customer-scoped server address books', () => { + assert.match(source, /v-if="form\.fulfillmentType !== 'ONE_CLICK_DROPSHIP'" value="FBA"/) + assert.match(source, /海外仓<\/el-radio-button>/) + assert.match(source, /v-if="form\.fulfillmentType !== 'ONE_CLICK_DROPSHIP'" value="PRIVATE"/) + assert.match(source, /@change="changeFulfillmentType"/) + assert.match(source, /form\.destinationType = 'OVERSEAS'\s*\n\s*await changeDestinationType\(\)/) assert.match(source, /warehouse\.warehouseType === form\.destinationType/) assert.match(source, /await store\.loadWarehouseType\(type\)/) assert.match(source, /await loadDestinationWarehouses\(form\.destinationType\)/) diff --git a/src/modules/first-leg/views/FirstLegOrdersView.vue b/src/modules/first-leg/views/FirstLegOrdersView.vue index 83de19d..673147a 100644 --- a/src/modules/first-leg/views/FirstLegOrdersView.vue +++ b/src/modules/first-leg/views/FirstLegOrdersView.vue @@ -1333,6 +1333,12 @@ function addCargoItem() { resetEditorValidation() } +async function changeFulfillmentType() { + if (form.fulfillmentType !== 'ONE_CLICK_DROPSHIP' || form.destinationType === 'OVERSEAS') return + form.destinationType = 'OVERSEAS' + await changeDestinationType() +} + const sharedPackingFields = [ 'packageType', 'packageCount', 'lengthCm', 'widthCm', 'heightCm', 'grossWeightKg', 'netWeightKg', 'volumeCbm', @@ -1965,7 +1971,7 @@ async function searchOrders(model: QueryModel) {

客户下单

先选择货物如何送到国内收货仓,并填写本次运输安排。

- 普通头程一件代发测量完成后不办理国内库存入库,将直接推送 PDA 合托。 + 普通头程一件代发测量完成后不办理国内库存入库,将直接推送 PDA 合托。 用于绑定领星入库单,提交后可在尾程订单、入库单和出库单中查询。 快递自送我司提货卡车自送