Commit 31ead725 authored by 我在何方's avatar 我在何方
parents 1965cec5 4a7027b0
...@@ -1132,7 +1132,7 @@ ...@@ -1132,7 +1132,7 @@
"会计": "Accounting", "会计": "Accounting",
"出纳": "Cashier", "出纳": "Cashier",
"经手人": "Handler", "经手人": "Handler",
"确打印": "OK to print", "确打印": "OK to print",
"收款日期": "Payment Date", "收款日期": "Payment Date",
"应收合计": "Total Receivable", "应收合计": "Total Receivable",
"收款金额": "Receipt Amount", "收款金额": "Receipt Amount",
...@@ -3833,5 +3833,6 @@ ...@@ -3833,5 +3833,6 @@
"提交核销": "Submit for verification", "提交核销": "Submit for verification",
"是否确认删除渠道管理编号为{channelId}的数据项?": "Are you sure to delete the data item with channel management number {channelId}?", "是否确认删除渠道管理编号为{channelId}的数据项?": "Are you sure to delete the data item with channel management number {channelId}?",
"流程详情":"Flow details", "流程详情":"Flow details",
"收款单核销审核":"The payment voucher verification review" "收款单核销审核":"The payment voucher verification review",
"系统提示": "System prompt"
} }
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
"目的仓": "目的仓", "目的仓": "目的仓",
"目的地": "目的地", "目的地": "目的地",
"确定": "确定", "确定": "确定",
"确订打印": "确订打印", "确定打印": "确定打印",
"确认添加": "确认添加", "确认添加": "确认添加",
"税率": "税率", "税率": "税率",
"箱数": "箱数", "箱数": "箱数",
......
import { Message, MessageBox, Notification, Loading } from 'element-ui' import { Message, MessageBox, Notification, Loading } from 'element-ui'
import i18n from "@/i18n";
let loadingInstance; let loadingInstance;
console.log(i18n.t,'i18n')
export default { export default {
// 消息提示 // 消息提示
msg(content) { msg(content) {
...@@ -21,19 +21,19 @@ export default { ...@@ -21,19 +21,19 @@ export default {
}, },
// 弹出提示 // 弹出提示
alert(content) { alert(content) {
MessageBox.alert(content, "系统提示") MessageBox.alert(content, i18n.t("系统提示"))
}, },
// 错误提示 // 错误提示
alertError(content) { alertError(content) {
MessageBox.alert(content, "系统提示", { type: 'error' }) MessageBox.alert(content, i18n.t("系统提示"), { type: 'error' })
}, },
// 成功提示 // 成功提示
alertSuccess(content) { alertSuccess(content) {
MessageBox.alert(content, "系统提示", { type: 'success' }) MessageBox.alert(content, i18n.t("系统提示"), { type: 'success' })
}, },
// 警告提示 // 警告提示
alertWarning(content) { alertWarning(content) {
MessageBox.alert(content, "系统提示", { type: 'warning' }) MessageBox.alert(content, i18n.t("系统提示"), { type: 'warning' })
}, },
// 通知提示 // 通知提示
notify(content) { notify(content) {
...@@ -52,18 +52,19 @@ export default { ...@@ -52,18 +52,19 @@ export default {
Notification.warning(content) Notification.warning(content)
}, },
// 确认窗体 // 确认窗体
confirm(content) { confirm(content) {
return MessageBox.confirm(content, "系统提示", { return MessageBox.confirm(content, i18n.t("系统提示"), {
confirmButtonText: '确定', confirmButtonText: i18n.t('确定'),
cancelButtonText: '取消', cancelButtonText: i18n.t('取消'),
type: "warning", type: "warning",
}) })
}, },
// 提交内容 // 提交内容
prompt(content) { prompt(content) {
return MessageBox.prompt(content, "系统提示", { return MessageBox.prompt(content, i18n.t("系统提示"), {
confirmButtonText: '确定', confirmButtonText: i18n.t('确定'),
cancelButtonText: '取消', cancelButtonText: i18n.t('取消'),
type: "warning", type: "warning",
}) })
}, },
......
...@@ -140,9 +140,9 @@ ...@@ -140,9 +140,9 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="small" @click="editCostClick(scope.row)" style="marginRight:10px;">{{$t('编辑')}}</el-button> <el-button type="primary" size="small" @click="editCostClick(scope.row)" style="marginRight:10px;" v-hasPermi="['ecw:box-cost:delete']">{{$t('编辑')}}</el-button>
<el-popconfirm :title="$t('确定是否删除')" @confirm="deleteCostClick(scope.row)"> <el-popconfirm :title="$t('确定是否删除')" @confirm="deleteCostClick(scope.row)">
<el-button type="danger" size="small" slot="reference">{{$t('删除')}}</el-button> <el-button type="danger" size="small" slot="reference" v-hasPermi="['ecw:box-cost:delete']">{{$t('删除')}}</el-button>
</el-popconfirm> </el-popconfirm>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -343,7 +343,7 @@ export default { ...@@ -343,7 +343,7 @@ export default {
getCabinetPage(null).then((response) => { getCabinetPage(null).then((response) => {
this.cabinetList = response.data.list; this.cabinetList = response.data.list;
}); });
this.getBoxInfo() // this.getBoxInfo()
}, },
methods: { methods: {
getTotlContent, getTotlContent,
...@@ -428,8 +428,8 @@ export default { ...@@ -428,8 +428,8 @@ export default {
case "modifyCabinet": case "modifyCabinet":
this.$set(this.dialogConfig, "fullscreen", false); this.$set(this.dialogConfig, "fullscreen", false);
this.modifyCabinetObj = {}; this.modifyCabinetObj = {};
this.$set(this.modifyCabinetObj,'cabinetId',this.newshipmentObj.cabinetId) this.$set(this.modifyCabinetObj,'cabinetId',this.shipmentObj.cabinetId)
this.$set(this.modifyCabinetObj,'cubNo',this.newshipmentObj.cubNo) this.$set(this.modifyCabinetObj,'cubNo',this.shipmentObj.cubNo)
break; break;
case "splitOrder": case "splitOrder":
this.$set(this.dialogConfig, "fullscreen", true); this.$set(this.dialogConfig, "fullscreen", true);
...@@ -545,7 +545,8 @@ export default { ...@@ -545,7 +545,8 @@ export default {
}; };
boxUpdate(params).then((res) => { boxUpdate(params).then((res) => {
serviceMsg(res, this); serviceMsg(res, this);
this.getBoxInfo() // this.getBoxInfo()
this.$emit('getBoxInfo')
this.closeDialog2(); this.closeDialog2();
}); });
}, },
......
...@@ -35,10 +35,7 @@ ...@@ -35,10 +35,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('包装数量与单位')" class="two-element"> <el-form-item :label="$t('包装数量与单位')" class="two-element">
<el-input v-model="subMaterialObj.packageNum" :placeholder="$t('请输入包装数量')"></el-input> <el-input v-model="subMaterialObj.packageNum" :placeholder="$t('请输入包装数量')"></el-input>
<!-- <el-select v-model="subMaterialObj.packageUnit" :placeholder="$t('请选择单位')"> <dict-selector v-model="subMaterialObj.packageUnit" type="packaging_type" />
<el-option v-for="unit in units" :key="unit.id" :value="unit.id" :label="$l(unit, 'title')"></el-option>
</el-select> -->
<el-input v-model="subMaterialObj.packageUnit" :placeholder="$t('请输入包装单位')"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('货物毛重(KGS)')"> <el-form-item :label="$t('货物毛重(KGS)')">
<el-input v-model="subMaterialObj.kgs" :placeholder="$t('请输入货物毛重') + '(KGS)'"></el-input> <el-input v-model="subMaterialObj.kgs" :placeholder="$t('请输入货物毛重') + '(KGS)'"></el-input>
...@@ -157,7 +154,7 @@ export default { ...@@ -157,7 +154,7 @@ export default {
this.$set(this.subMaterialObj,'notifyingName',response.data.externalBackVO?.notifyCompanyName||'/') this.$set(this.subMaterialObj,'notifyingName',response.data.externalBackVO?.notifyCompanyName||'/')
this.$set(this.subMaterialObj,'packageNum',response.data.externalBackVO?.packNum) this.$set(this.subMaterialObj,'packageNum',response.data.externalBackVO?.packNum)
this.$set(this.subMaterialObj,'packageUnit',response.data.externalBackVO?.packUnit) this.$set(this.subMaterialObj,'packageUnit',response.data.externalBackVO?.packUnit)
this.$set(this.subMaterialObj,'goodsDesc',response.data.externalBackVO?.goodName||''+response.data.externalBackVO?.fromNo||''+response.data.externalBackVO?.baNo||'') this.$set(this.subMaterialObj,'goodsDesc',response.data.externalBackVO?.goodName||''+response.data.externalBackVO?.fromNo||''+response.data.externalBackVO?.baNo||''+response.data.externalBackVO?.ctnNo||'')
if(this.subMaterialObj.goodsDesc == null){ if(this.subMaterialObj.goodsDesc == null){
this.$set(this.subMaterialObj,'goodsDesc','/') this.$set(this.subMaterialObj,'goodsDesc','/')
} }
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
}, },
created() { created() {
const { currNode, shipmentObj } = this.$attrs; const { currNode, shipmentObj } = this.$attrs;
const voName = currNode.voName; const voName = currNode.voName;console.log(shipmentObj[voName])
let oldData = { ...shipmentObj[voName] }; let oldData = { ...shipmentObj[voName] };
oldData = formatNumberString(oldData, ["tlContainerStatus"]); oldData = formatNumberString(oldData, ["tlContainerStatus"]);
oldData = formatStringNumber(oldData, ["tlCompanyId"]); oldData = formatStringNumber(oldData, ["tlCompanyId"]);
......
...@@ -113,27 +113,27 @@ ...@@ -113,27 +113,27 @@
<el-card style="margin-top: 15px;"> <el-card style="margin-top: 15px;">
<h3>{{$t('银行账户')}}</h3> <h3>{{$t('银行账户')}}</h3>
<el-table :data="customer.customerBankBackVOList" border> <el-table :data="customer.customerBankBackVOList" border>
<el-table-column label="编号" type="index"></el-table-column> <el-table-column :label="$t('编号')" type="index"></el-table-column>
<el-table-column label="账户名称" prop="accountName"></el-table-column> <el-table-column :label="$t('账户名称')" prop="accountName"></el-table-column>
<el-table-column label="币别"> <el-table-column :label="$t('币别')">
<template v-slot="{row}"> <template v-slot="{row}">
{{$l(currecyList.find(i => row.currency == i.id),'title')}} {{$l(currecyList.find(i => row.currency == i.id),'title')}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="银行名称" prop="bankName"></el-table-column> <el-table-column :label="$t('银行名称')" prop="bankName"></el-table-column>
<el-table-column label="银行账户" prop="bankAccount"></el-table-column> <el-table-column :label="$t('银行账户')" prop="bankAccount"></el-table-column>
<el-table-column label="银行代码" prop="bankCode"></el-table-column> <el-table-column :label="$t('银行代码')" prop="bankCode"></el-table-column>
<el-table-column label="账户类型"> <el-table-column :label="$t('账户类型')">
<template v-slot="{row}"> <template v-slot="{row}">
{{Number(row.accountType) === 1 ? $t('公账') : $t('私账')}} {{Number(row.accountType) === 1 ? $t('公账') : $t('私账')}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态"> <el-table-column :label="$t('状态')">
<template v-slot="{row}"> <template v-slot="{row}">
{{row.status ? '正常' :'停用'}} {{row.status ? $t('正常') : $t('停用')}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="银行地址" prop="bankAddress"></el-table-column> <el-table-column :label="$t('银行地址')" prop="bankAddress"></el-table-column>
</el-table> </el-table>
</el-card> </el-card>
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
<el-date-picker <el-date-picker
v-model="selectDate" v-model="selectDate"
type="datetimerange" type="datetimerange"
value-format="yyyy-MM-DD hh:mm:ss"
range-separator="至" range-separator="至"
:start-placeholder="$t('开始日期')" :start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')"> :end-placeholder="$t('结束日期')">
...@@ -63,7 +64,7 @@ ...@@ -63,7 +64,7 @@
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item> <el-form-item>
<el-button size="mini" type="primary" @click="getList">{{$t('查找')}}</el-button> <el-button size="mini" type="primary" @click="queryParams.page = 1;getList()">{{$t('查找')}}</el-button>
<el-button type="success" size="mini" @click="$router.push({path:'/financial/commission-requestFunds',query:{payableId:0}})" v-has-permi="['ecw:commission-Payment:add']" >{{$t('新增请款单')}}</el-button> <el-button type="success" size="mini" @click="$router.push({path:'/financial/commission-requestFunds',query:{payableId:0}})" v-has-permi="['ecw:commission-Payment:add']" >{{$t('新增请款单')}}</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -166,6 +167,17 @@ export default { ...@@ -166,6 +167,17 @@ export default {
listSimpleUsers().then((res) => (this.creatorData = res.data)); listSimpleUsers().then((res) => (this.creatorData = res.data));
this.getList(); this.getList();
}, },
watch:{
selectDate(val){
if(val.length){
this.queryParams.beginCreateTime = val[0]
this.queryParams.endCreateTime = val[0]
}else {
this.queryParams.beginCreateTime = ''
this.queryParams.endCreateTime = ''
}
}
},
data(){ data(){
return { return {
queryParams:{ queryParams:{
...@@ -175,7 +187,8 @@ export default { ...@@ -175,7 +187,8 @@ export default {
salesmanName:null, salesmanName:null,
searchKey:null, searchKey:null,
paymentNo:null, paymentNo:null,
beginCreateTime:null,
endCreateTime:null,
page:1, page:1,
rows:10, rows:10,
}, },
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id" :value="item.id"
@click.native="selectFn('departmentName', item.name)"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -68,12 +69,13 @@ ...@@ -68,12 +69,13 @@
:rules="{required:true,message:$t('业务员不能为空')}" :rules="{required:true,message:$t('业务员不能为空')}"
:error="$t('业务员不能为空')" :error="$t('业务员不能为空')"
> >
<el-select filterable v-model="form.salesmanName" :placeholder="$t('请选择业务员')"> <el-select filterable v-model="form.salesmanId" :placeholder="$t('请选择业务员')">
<el-option <el-option
@click.native="selectFn('salesmanName', item.nickname)"
v-for="item in creatorData" v-for="item in creatorData"
:key="item.id" :key="item.id"
:label="item.nickname" :label="item.nickname"
:value="item.nickname" :value="item.id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -595,6 +597,10 @@ export default { ...@@ -595,6 +597,10 @@ export default {
}, },
}, },
methods: { methods: {
selectFn(keyVal, name){
this.form[keyVal] = name;
console.log(this.form,'form:')
},
getCurrencyLabel(id) { getCurrencyLabel(id) {
var label = this.currencyList.filter(item => item.id == id) var label = this.currencyList.filter(item => item.id == id)
if (label.length > 0) return this.$i18n.locale == 'zh_CN' ? label[0].titleZh : label[0].titleEn if (label.length > 0) return this.$i18n.locale == 'zh_CN' ? label[0].titleZh : label[0].titleEn
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<el-form-item :label="$t('供应商名称')"> <el-form-item :label="$t('供应商名称')">
<el-input <el-input
style="max-width: 188px" style="max-width: 188px"
v-model="queryParams.orderNo" v-model="queryParams.supplierName"
:placeholder="$t('请输入供应商名称')" :placeholder="$t('请输入供应商名称')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</div> </div>
</div> </div>
<div slot="footer" class="card"> <div slot="footer" class="card">
<el-button type="primary" @click="print">{{ $t('打印') }}</el-button> <el-button type="primary" @click="print">{{ $t('打印') }}</el-button>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<th style="width:10%;">{{ $t('税率') }}</th> <th style="width:10%;">{{ $t('税率') }}</th>
<th style="width: 15%;">{{ $t('发票号') }}</th> <th style="width: 15%;">{{ $t('发票号') }}</th>
<th style="width: 10%;">{{ $t('应付金额') }}</th> <th style="width: 10%;">{{ $t('应付金额') }}</th>
<th style="width: 10%;">{{ $t('申请金额') }}</th> <th style="width: 10%;">{{ $t('申请金额')}}(RMB)</th>
</tr> </tr>
<tr v-for="(item, index) in list" :key="index"> <tr v-for="(item, index) in list" :key="index">
<td>{{ index + 1 }}</td> <td>{{ index + 1 }}</td>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</div> </div>
</div> </div>
<div slot="footer" class="card"> <div slot="footer" class="card">
<el-button type="primary" @click="print">{{ $t('打印') }}</el-button> <el-button type="primary" @click="print">{{ $t('打印') }}</el-button>
</div> </div>
</div> </div>
</template> </template>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</div> </div>
</div> </div>
<div slot="footer" class="card"> <div slot="footer" class="card">
<el-button type="primary" @click="print">{{ $t('打印') }}</el-button> <el-button type="primary" @click="print">{{ $t('打印') }}</el-button>
</div> </div>
</div> </div>
</template> </template>
......
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-form ref="elForm" :model="formData" :rules="rules" inline size="small" label-width="100px" <el-form ref="elForm" :model="formData" :rules="rules" inline size="small" label-width="100px"
label-position="left"> label-position="left">
<div> <div>
<el-form-item> <el-form-item :label="$t('境内外类型')" prop="areaType">
<el-radio v-model="formData.areaType" :label="0" :disabled="disabled">{{$t('国内')}}</el-radio> <el-radio v-model="formData.areaType" :label="0" :disabled="disabled">{{$t('国内')}}</el-radio>
<el-radio v-model="formData.areaType" :label="1" :disabled="disabled">{{$t('国外')}}</el-radio> <el-radio v-model="formData.areaType" :label="1" :disabled="disabled">{{$t('国外')}}</el-radio>
</el-form-item> </el-form-item>
...@@ -71,6 +71,18 @@ ...@@ -71,6 +71,18 @@
<dict-selector v-model="formData.cooperationType" type="cooperation_type" /> <dict-selector v-model="formData.cooperationType" type="cooperation_type" />
</el-form-item> </el-form-item>
</div> </div>
<div v-if="formData.areaType==1">
<el-form-item :label="$t('国家')" prop="cooperationType">
<el-select v-model="formData.country" :placeholder="$t('请选择国家')">
<el-option
v-for="item in treeList"
:key="item.id"
:label="$l(item,'title')"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</div>
<div v-if="formData.areaType==0"> <div v-if="formData.areaType==0">
<el-form-item :label="$t('营业执照')" prop="license"> <el-form-item :label="$t('营业执照')" prop="license">
...@@ -247,15 +259,15 @@ ...@@ -247,15 +259,15 @@
<el-card class="mt-10"> <el-card class="mt-10">
<div class="card-header" slot="header"> <div class="card-header" slot="header">
<div class="title">{{$t('海运优质资源条件')}}</div> <div class="title">{{$t('优质条件')}}</div>
</div> </div>
<div> <div v-if="typeBool(formData.companyTypeArr,['1'])">
<el-form-item :label="$t('供应商优势船公司')" prop="shipCompany" label-width="250"> <el-form-item :label="$t('船公司')" prop="shipCompany" label-width="250">
<suppliers-selector v-model="formData.resourceVO.shipCompany" company-type="9" :disabled="false" /> <suppliers-selector v-model="formData.resourceVO.shipCompany" company-type="9" :disabled="false" />
</el-form-item> </el-form-item>
</div> </div>
<div> <div v-if="typeBool(formData.companyTypeArr,['1','2','4','5','7'])">
<el-form-item :label="$t('海运船公司优势港口')" prop="ports" label-width="250"> <el-form-item :label="$t('港口')" prop="ports" label-width="250">
<el-select v-model="formData.resourceVO.ports" filterable multiple clearable> <el-select v-model="formData.resourceVO.ports" filterable multiple clearable>
<el-option v-for="(item) in seaPort" :key="item.id" :label="$l(item, 'title')" :value="item.id"></el-option> <el-option v-for="(item) in seaPort" :key="item.id" :label="$l(item, 'title')" :value="item.id"></el-option>
</el-select> </el-select>
...@@ -265,36 +277,18 @@ ...@@ -265,36 +277,18 @@
</el-form-item> </el-form-item>
<el-button style="margin-left: 30px;" type="text" v-hasPermi="['ecw:dock:create']" @click="portVisible=true">{{$t('新增港口')}}</el-button> <el-button style="margin-left: 30px;" type="text" v-hasPermi="['ecw:dock:create']" @click="portVisible=true">{{$t('新增港口')}}</el-button>
</div> </div>
<div> <div v-if="typeBool(formData.companyTypeArr,['10'])">
<el-form-item :label="$t('订舱公司')" prop="bookCompany" label-width="250"> <el-form-item :label="$t('航空公司')" prop="airCompany" label-width="250">
<suppliers-selector v-model="formData.resourceVO.bookCompany" company-type="1" :disabled="false" /> <suppliers-selector v-model="formData.resourceVO.airCompany" company-type="10" :disabled="false" />
</el-form-item>
<el-form-item :label="$t('订舱优势条件')" prop="bookConditions" label-width="250">
<dict-selector v-model="formData.resourceVO.bookConditions" type="book_conditions" />
</el-form-item>
</div>
<div>
<el-form-item :label="$t('拖车公司')" prop="trailerCompany" label-width="250">
<suppliers-selector v-model="formData.resourceVO.trailerCompany" company-type="4" :disabled="false" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('拖车优势条件')" prop="trailerConditions" label-width="250"> <el-form-item :label="$t('航空公司优势条件')" prop="airConditions" label-width="250">
<dict-selector v-model="formData.resourceVO.trailerConditions" type="trailer_conditions" /> <dict-selector v-model="formData.resourceVO.airConditions" type="port_conditions" />
</el-form-item> </el-form-item>
</div> </div>
<div> <div v-if="typeBool(formData.companyTypeArr,['3'])">
<el-form-item :label="$t('报关公司')" prop="customsCompany" label-width="250"> <el-form-item :label="$t('出证速度')" prop="certificateSpeed" label-width="250">
<suppliers-selector v-model="formData.resourceVO.customsCompany" company-type="2" :disabled="false" /> <el-radio v-model="formData.resourceVO.certificateSpeed" :label="0">{{$t('快')}}</el-radio>
</el-form-item> <el-radio v-model="formData.resourceVO.certificateSpeed" :label="1">{{$t('慢')}}</el-radio>
<el-form-item :label="$t('报关优势条件')" prop="customsConditions" label-width="250">
<dict-selector v-model="formData.resourceVO.customsConditions" type="customs_conditions" />
</el-form-item>
</div>
<div>
<el-form-item :label="$t('证书公司')" prop="certificateCompany" label-width="250">
<suppliers-selector v-model="formData.resourceVO.certificateCompany" company-type="3" :disabled="false" />
</el-form-item>
<el-form-item :label="$t('证书优势条件')" prop="certificateConditions" label-width="250">
<dict-selector v-model="formData.resourceVO.certificateConditions" type="certificate_conditions" />
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
...@@ -304,7 +298,7 @@ ...@@ -304,7 +298,7 @@
</div> </div>
</el-card> </el-card>
<el-card class="mt-10"> <el-card class="mt-10" v-if="false">
<div class="card-header" slot="header"> <div class="card-header" slot="header">
<div class="title">{{$t('空运优质资源条件')}}</div> <div class="title">{{$t('空运优质资源条件')}}</div>
</div> </div>
...@@ -400,12 +394,13 @@ ...@@ -400,12 +394,13 @@
<el-form-item :label="$t('品名')" prop="goodName"> <el-form-item :label="$t('品名')" prop="goodName">
<el-input v-model="formData.externalVO.goodName" :placeholder="$t('请输入品名')" show-word-limit clearable></el-input> <el-input v-model="formData.externalVO.goodName" :placeholder="$t('请输入品名')" show-word-limit clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('清关国家')" prop="clearanceFileId"> <el-form-item :label="$t('CTN NO')" prop="ctnNo">
<el-select v-model="formData.externalVO.clearanceFileId" @change="changeFile"> <!-- <el-select v-model="formData.externalVO.clearanceFileId" @change="changeFile">
<el-option v-for="(item) in fileList" :value="item.id" :label="getCountry(item.country,item.district)" :key="item.id" /> <el-option v-for="(item) in fileList" :value="item.id" :label="getCountry(item.country,item.district)" :key="item.id" />
</el-select> </el-select> -->
<el-input v-model="formData.externalVO.ctnNo" :placeholder="$t('请输入CTN NO')" show-word-limit clearable></el-input>
</el-form-item> </el-form-item>
<el-button type="text" @click="addFileNo" v-hasPermi="['ecw:supplier:addno']">{{$t('新增清关文件号码')}}</el-button> <!-- <el-button type="text" @click="addFileNo" v-hasPermi="['ecw:supplier:addno']">{{$t('新增清关文件号码')}}</el-button> -->
</div> </div>
<div class="supplier-item"> <div class="supplier-item">
<el-form-item :label="$t('From M No')" prop="fromNo"> <el-form-item :label="$t('From M No')" prop="fromNo">
...@@ -420,7 +415,8 @@ ...@@ -420,7 +415,8 @@
<el-input v-model="formData.externalVO.packNum" :placeholder="$t('请输入包装数量')" show-word-limit clearable></el-input> <el-input v-model="formData.externalVO.packNum" :placeholder="$t('请输入包装数量')" show-word-limit clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('包装单位')" prop="packUnit"> <el-form-item :label="$t('包装单位')" prop="packUnit">
<el-input v-model="formData.externalVO.packUnit" :placeholder="$t('请输入包装单位')" show-word-limit clearable></el-input> <!-- <el-input v-model="formData.externalVO.packUnit" :placeholder="$t('请输入包装单位')" show-word-limit clearable></el-input> -->
<dict-selector v-model="formData.externalVO.packUnit" type="packaging_type" />
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
...@@ -694,7 +690,9 @@ export default { ...@@ -694,7 +690,9 @@ export default {
return this.allDocks.filter(item => item.portType == 1) return this.allDocks.filter(item => item.portType == 1)
}, },
seaPort(){ seaPort(){
return this.allDocks.filter(item => item.portType == 2) if(this.typeBool(this.formData.companyTypeArr,['1','2','4']) && this.typeBool(this.formData.companyTypeArr,['5','7'])) return this.allDocks
if(this.typeBool(this.formData.companyTypeArr,['5','7'])) return this.allDocks.filter(item => item.portType == 1)
if(this.typeBool(this.formData.companyTypeArr,['1','2','4'])) return this.allDocks.filter(item => item.portType == 2)
}, },
districtList(){ districtList(){
if(!this.fileNoForm.country) return [] if(!this.fileNoForm.country) return []
...@@ -822,6 +820,15 @@ export default { ...@@ -822,6 +820,15 @@ export default {
return data.map(item=>Number(item)) return data.map(item=>Number(item))
} }
}, },
typeBool(type,arr) {
let flag = false
type.forEach(item=>{
if(arr.includes(item)){
flag = true
}
})
return flag
},
sameReceive() { sameReceive() {
this.$set(this.formData.externalVO,'notifyCompanyName',this.formData.externalVO.receiveCompanyName) this.$set(this.formData.externalVO,'notifyCompanyName',this.formData.externalVO.receiveCompanyName)
this.$set(this.formData.externalVO,'notifyAddress',this.formData.externalVO.receiveAddress) this.$set(this.formData.externalVO,'notifyAddress',this.formData.externalVO.receiveAddress)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('境内外')" prop="areaType"> <el-form-item :label="$t('境内外')" prop="areaType">
<el-select v-model="queryParams.areaType" placeholder="请选择" clearable="true"> <el-select v-model="queryParams.areaType" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in areaTypes" v-for="item in areaTypes"
:key="item.value" :key="item.value"
......
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