Commit be7e49cf authored by dragondean@qq.com's avatar dragondean@qq.com

Merge branch 'feature/order_edit' into release

parents 0f69313c 0dc772a6
...@@ -813,7 +813,7 @@ ...@@ -813,7 +813,7 @@
</el-descriptions-item> </el-descriptions-item>
<!--付款人--> <!--付款人-->
<el-descriptions-item :label="$t('delivery.drawee')" :span="2"> <el-descriptions-item :label="$t('delivery.drawee')">
<span <span
slot="label" slot="label"
><span style="color: red">*</span>{{ $t("delivery.drawee") }}</span> ><span style="color: red">*</span>{{ $t("delivery.drawee") }}</span>
...@@ -827,7 +827,6 @@ ...@@ -827,7 +827,6 @@
<dict-selector <dict-selector
v-model="form.drawee" v-model="form.drawee"
:type="DICT_TYPE.DRAWEE" :type="DICT_TYPE.DRAWEE"
:filter="(e) => e.value == '1' || e.value == '2'"
defaultable defaultable
form-type="radio" form-type="radio"
/> />
...@@ -847,6 +846,15 @@ ...@@ -847,6 +846,15 @@
</template> </template>
</div> </div>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('提单是否显示价格')" >
<el-form-item prop="displayBillLadingPrice">
<el-radio-group v-model="form.displayBillLadingPrice">
<el-radio :label="true">{{$t('显示')}}</el-radio>
<el-radio :label="false">{{$t('不显示')}}</el-radio>
</el-radio-group>
</el-form-item>
</el-descriptions-item>
<!--入仓类型--> <!--入仓类型-->
<el-descriptions-item :label="$t('delivery.warehouseType')"> <el-descriptions-item :label="$t('delivery.warehouseType')">
<span <span
...@@ -1199,7 +1207,7 @@ ...@@ -1199,7 +1207,7 @@
@click="submitForm(2, false)" @click="submitForm(2, false)"
:disabled="isOverSeaWareHouse" :disabled="isOverSeaWareHouse"
>{{ $t("提交") }}</el-button> >{{ $t("提交") }}</el-button>
<el-button @click="$router.back()">{{ $t("common.cancel") }}</el-button> <el-button @click="handleCancel">{{ $t("common.cancel") }}</el-button>
</el-form-item> </el-form-item>
<div style="padding-bottom: 20px; font-size: 12px; color: red" v-if="isOverSeaWareHouse"> <div style="padding-bottom: 20px; font-size: 12px; color: red" v-if="isOverSeaWareHouse">
{{$t('如需海外仓服务,请联系客服,服务热线:{tel}', {tel: '400-900-9962'})}} {{$t('如需海外仓服务,请联系客服,服务热线:{tel}', {tel: '400-900-9962'})}}
...@@ -1625,6 +1633,7 @@ export default { ...@@ -1625,6 +1633,7 @@ export default {
destCountryId: null, destCountryId: null,
countryCode: '86', countryCode: '86',
objectiveId: '', objectiveId: '',
departureId: '',
status: 0, status: 0,
consigneeName: '', consigneeName: '',
consigneePhone: '', consigneePhone: '',
...@@ -1640,7 +1649,8 @@ export default { ...@@ -1640,7 +1649,8 @@ export default {
drawee: 2, drawee: 2,
type: [], type: [],
orderItemVOList: [], orderItemVOList: [],
externalWarehouseDtoList:[] externalWarehouseDtoList:[],
displayBillLadingPrice: true
}, },
// 总条数 // 总条数
total: 0, total: 0,
...@@ -1963,8 +1973,8 @@ export default { ...@@ -1963,8 +1973,8 @@ export default {
console.log(harvestMethod) console.log(harvestMethod)
}, },
// 服务 // 服务
'form.type'(type){ 'form.type'(type, oldType){
if(type.indexOf('2') > -1){ if(type.indexOf('2') > -1 && oldType?.indexOf('2') == -1){
this.$alert(this.$t('如需海外仓服务,请联系客服,服务热线:{tel}', {tel: '400-900-9962'})) this.$alert(this.$t('如需海外仓服务,请联系客服,服务热线:{tel}', {tel: '400-900-9962'}))
} }
}, },
...@@ -2568,8 +2578,7 @@ export default { ...@@ -2568,8 +2578,7 @@ export default {
item.channelIds = Array.from(item.channelIdSet).join(',') item.channelIds = Array.from(item.channelIdSet).join(',')
} }
}) })
this.form.type = this.form.type = this.form.type?.join(",")
this.form.type.length > 0 ? this.form.type.toString : ''
this.form.status = status this.form.status = status
// 修改的提交 // 修改的提交
if (this.form.orderId) { if (this.form.orderId) {
...@@ -2620,6 +2629,10 @@ export default { ...@@ -2620,6 +2629,10 @@ export default {
this.$bus.$emit('reload') this.$bus.$emit('reload')
}) })
}) })
},
async handleCancel(){
await this.$confirm(this.$t("是否需要返回?"))
this.$router.back()
} }
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment