|
|
@@ -50,14 +50,15 @@
|
|
|
</tempalte>
|
|
|
<tempalte slot="podCname">
|
|
|
<dic-select v-model="form.podCname" placeholder="起运港" key="id" label="cnName" res="records"
|
|
|
- url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true" dataName="cnName"
|
|
|
- @selectChange="dicChange('podCname', $event)" :disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
+ dataName="cnName" @selectChange="dicChange('podCname', $event)" :disabled="editDisabled"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="destinationCname">
|
|
|
<dic-select v-model="form.destinationCname" placeholder="目的港" key="id" label="cnName"
|
|
|
- res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
- dataName="cnName" @selectChange="dicChange('destinationCname', $event)" :slotRight="true" rightLabel="code"
|
|
|
- :disabled="editDisabled"></dic-select>
|
|
|
+ res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true"
|
|
|
+ :remote="true" dataName="cnName" @selectChange="dicChange('destinationCname', $event)"
|
|
|
+ :slotRight="true" rightLabel="code" :disabled="editDisabled"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="airlineCname">
|
|
|
<dic-select v-model="form.airlineCname" placeholder="航线" key="id" label="cnName" res="records"
|
|
|
@@ -66,14 +67,15 @@
|
|
|
</tempalte>
|
|
|
<tempalte slot="shippingCompanyCname">
|
|
|
<dic-select v-model="form.shippingCompanyCname" placeholder="承运人" key="id" label="shortName"
|
|
|
- res="records" url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司" :filterable="true"
|
|
|
- :remote="true" dataName="shortName" @selectChange="dicChange('shippingCompanyCname', $event)"
|
|
|
- :slotRight="true" rightLabel="code"
|
|
|
- :disabled="editDisabled"></dic-select>
|
|
|
+ res="records" url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司"
|
|
|
+ :filterable="true" :remote="true" dataName="shortName"
|
|
|
+ @selectChange="dicChange('shippingCompanyCname', $event)" :slotRight="true"
|
|
|
+ rightLabel="code" :disabled="editDisabled"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="actualShippingCompanyCname">
|
|
|
- <dic-select v-model="form.actualShippingCompanyCname" placeholder="船公司" key="id" label="shortName"
|
|
|
- res="records" url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司" :filterable="true"
|
|
|
+ <dic-select v-model="form.actualShippingCompanyCname" placeholder="船公司" key="id"
|
|
|
+ label="shortName" res="records"
|
|
|
+ url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司" :filterable="true"
|
|
|
:remote="true" dataName="shortName" :slotRight="true" rightLabel="code"
|
|
|
@selectChange="dicChange('actualShippingCompanyCname', $event)"
|
|
|
:disabled="editDisabled"></dic-select>
|
|
|
@@ -114,8 +116,8 @@
|
|
|
</tempalte>
|
|
|
<tempalte slot="transitPortCname">
|
|
|
<dic-select v-model="form.transitPortCname" placeholder="中转港" key="id" label="cnName"
|
|
|
- res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true" :remote="true"
|
|
|
- dataName="cnName" @selectChange="dicChange('transitPortCname', $event)"
|
|
|
+ res="records" url="/blade-los/bports/list?current=1&size=5" :filterable="true"
|
|
|
+ :remote="true" dataName="cnName" @selectChange="dicChange('transitPortCname', $event)"
|
|
|
:disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="navigateDay">
|
|
|
@@ -130,8 +132,9 @@
|
|
|
</tempalte>
|
|
|
<tempalte slot="actualShippingCompanyCnameTwo">
|
|
|
<dic-select v-model="form.actualShippingCompanyCnameTwo" placeholder="二程实际船公司" key="id"
|
|
|
- label="shortName" res="records" url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司"
|
|
|
- :filterable="true" :remote="true" dataName="shortName" :slotRight="true" rightLabel="code"
|
|
|
+ label="shortName" res="records"
|
|
|
+ url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=船公司" :filterable="true"
|
|
|
+ :remote="true" dataName="shortName" :slotRight="true" rightLabel="code"
|
|
|
@selectChange="dicChange('actualShippingCompanyCnameTwo', $event)"
|
|
|
:disabled="editDisabled"></dic-select>
|
|
|
</tempalte>
|
|
|
@@ -146,6 +149,13 @@
|
|
|
:disabled="editDisabled || form.costItemList.length || polFeeList.length || podFeeList.length || polFeeList2.length || podFeeList2.length">
|
|
|
</el-date-picker>
|
|
|
</tempalte>
|
|
|
+ <tempalte slot="transportationTerms">
|
|
|
+ <dic-select v-model="form.transportationTerms" placeholder="运输条款" key="id" label="cnName"
|
|
|
+ res="records" url="/blade-los/bserviceterms/list?status=0¤t=1&size=20"
|
|
|
+ :filterable="true" :remote="true" dataName="cnName"
|
|
|
+ @selectChange="dicChange('transportationTerms', $event)"
|
|
|
+ :disabled="editDisabled"></dic-select>
|
|
|
+ </tempalte>
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
|
<el-tabs type="border-card" v-model="tabsName">
|
|
|
@@ -675,7 +685,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { submit, submitItemList, submitFeeList, getDetail, removeItem, feeRemove, checkAgent, revokeCheckAgent, copyAgent } from "@/api/iosBasicData/costcenter/soc";
|
|
|
+import { submit, submitItemList, submitFeeList, getDetail, removeItem, feeRemove, checkAgent, revokeCheckAgent, copyAgent, topList, getBcorpsList } from "@/api/iosBasicData/costcenter/soc";
|
|
|
import { getListTemplate, getListTemplatelist } from "@/api/iosBasicData/losbfeestemplate";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
@@ -839,15 +849,6 @@ export default {
|
|
|
label: '运输条款',
|
|
|
prop: "transportationTerms",
|
|
|
disabled: false,
|
|
|
- type: 'select',
|
|
|
- filterable: true,
|
|
|
- remote: true,
|
|
|
- dicUrl: "/api/blade-los/bserviceterms/list?status=0¤t=1&size=20&cnName={{key}}",
|
|
|
- props: {
|
|
|
- label: 'cnName',
|
|
|
- value: 'cnName',
|
|
|
- res: 'data.records'
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
label: '舱位类型',
|
|
|
@@ -867,7 +868,7 @@ export default {
|
|
|
prop: "cabinTypeData",
|
|
|
disabled: false,
|
|
|
span: 2,
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
label: '舱位数',
|
|
|
prop: "shippingSpaceNumber",
|
|
|
@@ -877,7 +878,7 @@ export default {
|
|
|
message: " ",
|
|
|
trigger: "blur"
|
|
|
}]
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
label: '限大柜',
|
|
|
prop: "limitBox",
|
|
|
@@ -1788,6 +1789,36 @@ export default {
|
|
|
this.option2 = await this.getColumnData(this.getColumnName(458), this.optionBack2);
|
|
|
this.polOption = await this.getColumnData(this.getColumnName(448), this.polOptionBack);
|
|
|
this.podOption = await this.getColumnData(this.getColumnName(449), this.podOptionBack);
|
|
|
+ if (this.detailData.type == 'new') {
|
|
|
+ topList({ deptName: '永发物流' }).then(res => {
|
|
|
+ if (res.data.data.length > 0) {
|
|
|
+ res.data.data.forEach(item => {
|
|
|
+ if (item.deptName == '永发物流') {
|
|
|
+ this.form.belongingCompanyId = item.id
|
|
|
+ this.form.belongingCompanyName = item.deptName
|
|
|
+ this.form.podId = item.polId
|
|
|
+ this.form.podCode = item.polCode
|
|
|
+ this.form.podEname = item.polEnName
|
|
|
+ this.form.podCname = item.polCnName
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ getBcorpsList(1,10,{ shortName: '青岛永发船务' }).then(res => {
|
|
|
+ if (res.data.data.records.length > 0) {
|
|
|
+ res.data.data.records.forEach(item => {
|
|
|
+ if (item.shortName == '青岛永发船务') {
|
|
|
+ this.form.actualShippingCompanyId = item.id
|
|
|
+ this.form.actualShippingCompanyCode = item.code
|
|
|
+ this.form.actualShippingCompanyEname = item.enName
|
|
|
+ this.form.actualShippingCompanyCname = item.shortName
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
if (this.detailData.id) {
|
|
|
this.editButton = true
|
|
|
this.editDisabled = true
|
|
|
@@ -2515,7 +2546,7 @@ export default {
|
|
|
multiList = this.selectionList
|
|
|
arr = this.form.costItemList
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item =>item.id!=null);
|
|
|
+ const itemsWithId = multiList.filter(item => item.id != null);
|
|
|
let arrIds = itemsWithId.map(item => item.id) // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach((item) => {
|
|
|
@@ -2545,7 +2576,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.polFeeList) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud2.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
@@ -2579,7 +2610,7 @@ export default {
|
|
|
multiList = this.selectionPolList
|
|
|
arr = this.polFeeList
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item =>item.id!=null);
|
|
|
+ const itemsWithId = multiList.filter(item => item.id != null);
|
|
|
let arrIds = itemsWithId.map(item => item.id) // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach((item) => {
|
|
|
@@ -2611,7 +2642,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.podFeeList) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud3.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
@@ -2645,7 +2676,7 @@ export default {
|
|
|
multiList = this.selectionPodList
|
|
|
arr = this.podFeeList
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item =>item.id!=null);
|
|
|
+ const itemsWithId = multiList.filter(item => item.id != null);
|
|
|
let arrIds = itemsWithId.map(item => item.id) // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach((item) => {
|
|
|
@@ -2737,7 +2768,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.polFeeList2) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud2.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
@@ -2771,7 +2802,7 @@ export default {
|
|
|
multiList = this.selectionPolList
|
|
|
arr = this.polFeeList2
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item =>item.id!=null);
|
|
|
+ const itemsWithId = multiList.filter(item => item.id != null);
|
|
|
let arrIds = itemsWithId.map(item => item.id) // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach((item) => {
|
|
|
@@ -2803,7 +2834,7 @@ export default {
|
|
|
return this.$message.error("请添加数据");
|
|
|
}
|
|
|
for (let row of this.podFeeList2) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud3.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
@@ -2837,7 +2868,7 @@ export default {
|
|
|
multiList = this.selectionPodList
|
|
|
arr = this.podFeeList2
|
|
|
// 获取有id 的数据
|
|
|
- const itemsWithId = multiList.filter(item =>item.id!=null);
|
|
|
+ const itemsWithId = multiList.filter(item => item.id != null);
|
|
|
let arrIds = itemsWithId.map(item => item.id) // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
|
multiList.forEach((item) => {
|
|
|
@@ -3152,25 +3183,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
for (let row of this.polFeeList) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || !row.costPrice == null) {
|
|
|
this.$refs.crud2.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
}
|
|
|
for (let row of this.polFeeList2) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud2.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POL杂费明细");
|
|
|
}
|
|
|
}
|
|
|
for (let row of this.podFeeList) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud3.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POD杂费明细");
|
|
|
}
|
|
|
}
|
|
|
for (let row of this.podFeeList2) {
|
|
|
- if (!row.type || !row.feeName || !row.curCode || !row.curCode || !row.salesPrice || !row.costPrice) {
|
|
|
+ if (!row.type || !row.feeName || !row.curCode || !row.curCode || row.salesPrice == null || row.costPrice == null) {
|
|
|
this.$refs.crud3.rowCell(row, row.$index)
|
|
|
return this.$message.error("请完善POD杂费明细");
|
|
|
}
|