|
|
@@ -36,18 +36,21 @@
|
|
|
<avue-form :option="optionForm" v-model="form" ref="form">
|
|
|
<tempalte slot="purchaseCompanyName">
|
|
|
<dic-select v-model="form.purchaseCompanyName" placeholder="出售方" label="shortName" res="records"
|
|
|
- url="/blade-los/bcorps/selectList?corpTypeName=箱东" :filterable="true" :remote="true" dataName="shortName"
|
|
|
- @selectChange="dicChange('purchaseCompanyName', $event)" :disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ url="/blade-los/bcorps/selectList?corpTypeName=箱东" :filterable="true" :remote="true"
|
|
|
+ dataName="shortName" @selectChange="dicChange('purchaseCompanyName', $event)" :disabled="editDisabled"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="addressCname">
|
|
|
<dic-select v-model="form.addressCname" placeholder="港口" label="cnName" res="records"
|
|
|
url="/blade-los/bports/list" :filterable="true" :remote="true" dataName="cnName"
|
|
|
- @selectChange="dicChange('addressCname', $event)" :disabled="editDisabled" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ @selectChange="dicChange('addressCname', $event)" :disabled="editDisabled" :slotRight="true"
|
|
|
+ rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="stationCname">
|
|
|
- <dic-select v-model="form.stationCname" placeholder="场站" :key="updateFormKey" label="cnName" res="records"
|
|
|
- :url="'/blade-los/bcorps/selectList?corpTypeName=场站&ids='+(form.cyText?form.cyText:'')" :filterable="true" :remote="true" dataName="cnName"
|
|
|
- @selectChange="dicChange('stationCname', $event)" :disabled="editDisabled||!form.addressId" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ <dic-select v-model="form.stationCname" placeholder="场站" :key="updateFormKey" label="cnName"
|
|
|
+ res="records" :url="'/blade-los/bcorps/selectList?corpTypeName=场站&ids=' + (form.cyText ? form.cyText : '')"
|
|
|
+ :filterable="true" :remote="true" dataName="cnName" @selectChange="dicChange('stationCname', $event)"
|
|
|
+ :disabled="editDisabled || !form.addressId" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
</tempalte>
|
|
|
</avue-form>
|
|
|
</trade-card>
|
|
|
@@ -97,29 +100,31 @@
|
|
|
<tempalte slot="originalBoxEastNameForm" slot-scope="{ row }">
|
|
|
<dic-select v-if="row.$cellEdit" v-model="row.originalBoxEastName" placeholder="箱东" key="id"
|
|
|
label="shortName" res="records" url="/blade-los/bcorps/selectList?corpTypeName=箱东" :filterable="true"
|
|
|
- :remote="true" dataName="shortName" @selectChange="rowDicChange('originalBoxEastName', $event, row)" :slotRight="true" rightLabel="code">
|
|
|
+ :remote="true" dataName="shortName" @selectChange="rowDicChange('originalBoxEastName', $event, row)"
|
|
|
+ :slotRight="true" rightLabel="code">
|
|
|
</dic-select>
|
|
|
<span v-else>{{ row.originalBoxEastName }}</span>
|
|
|
</tempalte>
|
|
|
<tempalte slot="stationCnameForm" slot-scope="{ row }">
|
|
|
<dic-select v-if="row.$cellEdit" v-model="row.stationCname" placeholder="场站" key="id" label="cnName"
|
|
|
- res="records" url="/blade-los/bcorps/selectList?corpTypeName=场站" :filterable="true" :remote="true" dataName="cnName"
|
|
|
- @selectChange="rowDicChange('stationCname', $event, row)" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ res="records" url="/blade-los/bcorps/selectList?corpTypeName=场站" :filterable="true" :remote="true"
|
|
|
+ dataName="cnName" @selectChange="rowDicChange('stationCname', $event, row)" :slotRight="true"
|
|
|
+ rightLabel="code"></dic-select>
|
|
|
<span v-else>{{ row.stationCname }}</span>
|
|
|
</tempalte>
|
|
|
<tempalte slot="restrictedPortsNameForm" slot-scope="{ row }">
|
|
|
<dic-select v-show="row.$cellEdit" v-model="row.restrictedPortsName" placeholder="港口" key="id"
|
|
|
label="cnName" url="/blade-los/bports/listAll" :filterable="true" :multiple="true"
|
|
|
:collapseTags="true" @selectChange="rowDicChange('restrictedPortsName', $event, row)"
|
|
|
- dataType="string" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ dataType="string" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
<span v-show="!row.$cellEdit">{{ row.restrictedPortsName }}</span>
|
|
|
</tempalte>
|
|
|
<tempalte slot="restrictingShippingCompaniesNameForm" slot-scope="{ row }">
|
|
|
<dic-select v-show="row.$cellEdit" v-model="row.restrictingShippingCompaniesName" placeholder="船公司"
|
|
|
key="id" label="cnName" url="/blade-los/bcorps/listAll?corpTypeName=船公司" :filterable="true"
|
|
|
:multiple="true" :collapseTags="true"
|
|
|
- @selectChange="rowDicChange('restrictingShippingCompaniesName', $event, row)"
|
|
|
- dataType="string" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ @selectChange="rowDicChange('restrictingShippingCompaniesName', $event, row)" dataType="string"
|
|
|
+ :slotRight="true" rightLabel="code"></dic-select>
|
|
|
<span v-show="!row.$cellEdit">{{ row.restrictingShippingCompaniesName }}</span>
|
|
|
</tempalte>
|
|
|
</avue-crud>
|
|
|
@@ -175,7 +180,8 @@
|
|
|
label="shortName" res="records"
|
|
|
:url="'/blade-los/bcorps/selectList?status=0¤t=1&size=20&corpTypeName=' + row.billType"
|
|
|
:filterable="true" :remote="true" dataName="shortName"
|
|
|
- @selectChange="rowDicChange('corpCnName', $event, row)" :slotRight="true" rightLabel="code"></dic-select>
|
|
|
+ @selectChange="rowDicChange('corpCnName', $event, row)" :slotRight="true"
|
|
|
+ rightLabel="code"></dic-select>
|
|
|
<span v-else>{{ row.corpCnName }}</span>
|
|
|
<!-- <dic-select v-if="row.$cellEdit" v-model="row.corpCnName" key="id" placeholder="付费对象" label="cnName"
|
|
|
res="records" url="/blade-los/bcorps/selectList?corpTypeName=船公司&status=0¤t=1&size=20"
|
|
|
@@ -239,7 +245,7 @@
|
|
|
<check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun"></check-schedule>
|
|
|
</el-dialog>
|
|
|
<!-- 启用 -->
|
|
|
- <el-dialog append-to-body title="箱池" :visible.sync="activationDialog" width="30%" :before-close="activationClose">
|
|
|
+ <el-dialog append-to-body title="放箱号" :visible.sync="activationDialog" width="30%" :before-close="activationClose">
|
|
|
<span>
|
|
|
<avue-form ref="form2" v-model="activationForm" :option="activationOption">
|
|
|
<tempalte slot="polCname">
|
|
|
@@ -247,6 +253,13 @@
|
|
|
url="/blade-los/bports/list" :filterable="true" :remote="true" dataName="cnName"
|
|
|
@selectChange="dicChange('polCname', $event)"></dic-select>
|
|
|
</tempalte>
|
|
|
+ <tempalte slot="stationCname">
|
|
|
+ <dic-select v-model="activationForm.stationCname" placeholder="场站" :key="updateStationKey" label="cnName"
|
|
|
+ res="records" :slotRight="true" rightLabel="code"
|
|
|
+ :url="'/blade-los/bcorps/selectList?corpTypeName=场站&ids=' + (form.cyTextOne ? form.cyTextOne : '')"
|
|
|
+ :filterable="true" :remote="true" dataName="cnName" @selectChange="dicChange('stationCname', $event)"
|
|
|
+ :disabled="editDisabled || !activationForm.polCname"></dic-select>
|
|
|
+ </tempalte>
|
|
|
<tempalte slot="podCname">
|
|
|
<dic-select v-model="activationForm.podCname" placeholder="港口" key="id" label="cnName" res="records"
|
|
|
url="/blade-los/bports/list" :filterable="true" :remote="true" dataName="cnName"
|
|
|
@@ -346,7 +359,7 @@ export default {
|
|
|
}],
|
|
|
},
|
|
|
{
|
|
|
- label: '起用港',
|
|
|
+ label: '起运港',
|
|
|
prop: 'polCname',
|
|
|
span: 24,
|
|
|
rules: [{
|
|
|
@@ -356,6 +369,16 @@ export default {
|
|
|
}],
|
|
|
},
|
|
|
{
|
|
|
+ label: '起运港场站',
|
|
|
+ prop: 'stationCname',
|
|
|
+ span: 24,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '目的港',
|
|
|
prop: 'podCname',
|
|
|
span: 24,
|
|
|
@@ -1082,6 +1105,7 @@ export default {
|
|
|
roleName: [],
|
|
|
updateSearchKey: new Date().getTime(),
|
|
|
updateFormKey: new Date().getTime(),
|
|
|
+ updateStationKey: new Date().getTime(),
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
@@ -1181,18 +1205,18 @@ export default {
|
|
|
this.form.addressId = row.id
|
|
|
this.form.addressCode = row.code
|
|
|
this.form.addressEname = row.enName
|
|
|
- this.form.cyText=row.addressId
|
|
|
+ this.form.cyText = row.addressId
|
|
|
this.form.stationId = null
|
|
|
this.form.stationCode = null
|
|
|
this.form.stationCname = null
|
|
|
this.form.stationEname = null
|
|
|
- this.updateFormKey=new Date().getTime()
|
|
|
+ this.updateFormKey = new Date().getTime()
|
|
|
} else {
|
|
|
this.form.addressId = null
|
|
|
this.form.addressCode = null
|
|
|
this.form.addressEname = null
|
|
|
this.form.addressCname = null
|
|
|
- this.form.cyText=null
|
|
|
+ this.form.cyText = null
|
|
|
this.form.stationId = null
|
|
|
this.form.stationCode = null
|
|
|
this.form.stationCname = null
|
|
|
@@ -1228,11 +1252,34 @@ export default {
|
|
|
this.activationForm.polId = row.id
|
|
|
this.activationForm.polCode = row.code
|
|
|
this.activationForm.polEname = row.enName
|
|
|
+ this.form.cyTextOne = row.addressId
|
|
|
+ this.activationForm.stationId = null
|
|
|
+ this.activationForm.stationCode = null
|
|
|
+ this.activationForm.stationCname = null
|
|
|
+ this.activationForm.stationEname = null
|
|
|
+ this.updateStationKey = new Date().getTime()
|
|
|
} else {
|
|
|
this.activationForm.polId = null
|
|
|
this.activationForm.polCode = null
|
|
|
this.activationForm.polEname = null
|
|
|
this.activationForm.polCname = null
|
|
|
+ this.form.cyTextOne = null
|
|
|
+ this.activationForm.stationId = null
|
|
|
+ this.activationForm.stationCode = null
|
|
|
+ this.activationForm.stationCname = null
|
|
|
+ this.activationForm.stationEname = null
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (name == 'stationCname2') {
|
|
|
+ if (row) {
|
|
|
+ this.activationForm.stationId = row.id
|
|
|
+ this.activationForm.stationCode = row.code
|
|
|
+ this.activationForm.stationEname = row.enName
|
|
|
+ } else {
|
|
|
+ this.activationForm.stationId = null
|
|
|
+ this.activationForm.stationCode = null
|
|
|
+ this.activationForm.stationCname = null
|
|
|
+ this.activationForm.stationEname = null
|
|
|
}
|
|
|
}
|
|
|
if (name == 'podCname') {
|
|
|
@@ -1422,7 +1469,7 @@ export default {
|
|
|
});
|
|
|
detail({ id: id }).then(res => {
|
|
|
this.form = res.data.data
|
|
|
- this.updateFormKey=new Date().getTime()
|
|
|
+ this.updateFormKey = new Date().getTime()
|
|
|
// if (res.data.data.status != '录入') {
|
|
|
// this.editButton = true
|
|
|
// this.editDisabled = true
|
|
|
@@ -1441,7 +1488,7 @@ export default {
|
|
|
});
|
|
|
copyAgent({ id: id }).then(res => {
|
|
|
this.form = res.data.data
|
|
|
- this.updateFormKey=new Date().getTime()
|
|
|
+ this.updateFormKey = new Date().getTime()
|
|
|
}).finally(() => {
|
|
|
loading.close()
|
|
|
})
|
|
|
@@ -1585,7 +1632,17 @@ export default {
|
|
|
return this.$message.error("请勿重复启用");
|
|
|
}
|
|
|
}
|
|
|
- this.activationForm = {}
|
|
|
+ this.form.cyTextOne = this.form.cyText
|
|
|
+ this.activationForm = {
|
|
|
+ polId: this.form.addressId,
|
|
|
+ polCode: this.form.addressCode,
|
|
|
+ polEname: this.form.addressEname,
|
|
|
+ polCname: this.form.addressCname,
|
|
|
+ stationId: this.form.stationId,
|
|
|
+ stationCode: this.form.stationCode,
|
|
|
+ stationCname: this.form.stationCname,
|
|
|
+ stationEname: this.form.stationEname,
|
|
|
+ }
|
|
|
this.activationDialog = true
|
|
|
}
|
|
|
|
|
|
@@ -1787,6 +1844,7 @@ export default {
|
|
|
::v-deep .el-form-item__error {
|
|
|
display: none !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-form-item {
|
|
|
margin-bottom: 8px !important;
|
|
|
}
|