Commit cc7bb274 authored by 邓春圆's avatar 邓春圆

空运仓管开通服务修改

parent 7d33d5a1
......@@ -307,16 +307,27 @@
</el-checkbox-group>
</el-form-item>
<el-form-item v-if="['3','4'].includes(lineform.transportType)" label="空运提单制作节点">
<el-select v-model="ladingform.makeBillNode">
<el-select v-model="lineform.makeBillNode">
<el-option v-show="item.value !== '1'" v-for="(item, index) in getDictDatas(DICT_TYPE.AIR_SHIPMENT_PROCESS)" :label="$l(item, 'label')" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="线路是否在客户端显示">
<el-radio-group v-model="ladingform.isClientShow">
<el-radio-group v-model="lineform.isClientShow">
<el-radio :label="1">可见</el-radio>
<el-radio :label="0">不可见</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('保费币种')">
<el-select v-model="lineform.currencyUnit">
<el-option v-for="(item) in currencyList" :label="$l(item, 'title')" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('是否支持控货')">
<el-radio-group v-model="lineform.controlstatus">
<el-radio :label="0">支持</el-radio>
<el-radio :label="1">不支持</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -416,6 +427,7 @@ import Template from "../../cms/template/index";
// 海运和空运的抬头模板
import tpl from './tpl'
import {getCurrencyPage} from "@/api/ecw/currency";
export default {
name: "Warehouse",
components: {
......@@ -438,6 +450,7 @@ export default {
};
return {
currencyList:[],
// 遮罩层
loading: true,
// 导出遮罩层
......@@ -476,7 +489,8 @@ export default {
{id: '3', text: this.$t('非控货订单代收货款')},
{id: '4', text: this.$t('海外仓')},
{id: '2', text: this.$t('送货上门')},
{id: '5', text: this.$t('提货异常')}
{id: '5', text: this.$t('提货异常')},
{id: '10', text: this.$t('默认送货上门')}
],
// 总条数
......@@ -533,8 +547,8 @@ export default {
},
// 表单参数
form: {checkList:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[],isClientShow:1,makeBillNode:''},
lineform: {otherService:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]},
lineform: {otherService:[],isClientShow:1,makeBillNode:'2',controlstatus:0,currencyUnit:''},
startName:'',
destName:'',
......@@ -577,7 +591,7 @@ export default {
},
isShowError() {
return (item) => {
if(item.id !== '5') return true;
if(item.id !== '5' && item.id !== '10') return true;
const { otherService } = this.lineform;
if(otherService.includes('2')) return true;
return false;
......@@ -662,6 +676,7 @@ export default {
},
created() {
getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
if(this.nodeId) {
this.queryParams.nodeId = parseInt(this.nodeId);
}
......@@ -856,10 +871,13 @@ export default {
}
serviceConfig({
lineId: this.lineform.lineId,
otherService: otherService.join(',')
otherService: otherService.join(','),
makeBillNode:this.lineform.makeBillNode,
isClientShow:this.lineform.isClientShow,
controlstatus:this.lineform.controlstatus,
currencyUnit:this.lineform.currencyUnit
}).then(res => {
this.$modal.msgSuccess(this.$t("操作成功"));
for(let index in this.routeList) {
let routeItem = this.routeList[index];
if(routeItem.lineId && routeItem.lineId == this.lineform.lineId) {
......
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