|
|
@@ -548,7 +548,8 @@
|
|
|
<span style="color: #1e9fff">件数</span>
|
|
|
</span>
|
|
|
<el-input ref="quantityRef" style="width: 100%;" v-model="assemblyForm.quantity"
|
|
|
- size="small" autocomplete="off" min="1" :disabled="detailData.seeDisabled||(assemblyForm.masterBillNo&&assemblyForm.billType=='MH')"
|
|
|
+ size="small" autocomplete="off" min="1"
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
|
|
|
@input="quantityInput" @focus="quantityFocus" clearable
|
|
|
placeholder="请输入件数"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -588,8 +589,9 @@
|
|
|
</span>
|
|
|
<el-input ref="grossWeightRef" step="0.01" style="width: 100%;"
|
|
|
v-model="assemblyForm.grossWeight" size="small" autocomplete="off"
|
|
|
- :disabled="detailData.seeDisabled||(assemblyForm.masterBillNo&&assemblyForm.billType=='MH')" @input="floatingInput($event, 'grossWeight')"
|
|
|
- @focus="quantityFocus" clearable placeholder="请输入毛重"></el-input>
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
|
|
|
+ @input="floatingInput($event, 'grossWeight')" @focus="quantityFocus" clearable
|
|
|
+ placeholder="请输入毛重"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -600,8 +602,9 @@
|
|
|
</span>
|
|
|
<el-input ref="measurementRef" step="0.01" style="width: 106%;"
|
|
|
v-model="assemblyForm.measurement" size="small" autocomplete="off"
|
|
|
- :disabled="detailData.seeDisabled||(assemblyForm.masterBillNo&&assemblyForm.billType=='MH')" @input="floatingInput($event, 'measurement')"
|
|
|
- @focus="quantityFocus" clearable placeholder="请输入尺码/体积"></el-input>
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.masterBillNo && assemblyForm.billType == 'MH')"
|
|
|
+ @input="floatingInput($event, 'measurement')" @focus="quantityFocus" clearable
|
|
|
+ placeholder="请输入尺码/体积"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</div>
|
|
|
@@ -903,11 +906,111 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
<precontainers :assemblyForm="assemblyForm" :seeDisabled="detailData.seeDisabled"
|
|
|
:pid="assemblyForm.id" @billsDetailfun="billsDetailfun">
|
|
|
</precontainers>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="箱属" prop="boxBelongsTo">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">箱属</span>
|
|
|
+ </span>
|
|
|
+ <div>
|
|
|
+ <dic-select v-model="assemblyForm.boxBelongsTo" placeholder="箱属" key="dictKey"
|
|
|
+ label="dictValue" url="/blade-system/dict-biz/dictionary?code=boxBelongsTo"
|
|
|
+ :filterable="true" :disabled="detailData.seeDisabled"></dic-select>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="服务方式" prop="serviceTerms">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">服务方式</span>
|
|
|
+ </span>
|
|
|
+ <search-query :datalist="serviceTermsData" :selectValue="assemblyForm.serviceTerms"
|
|
|
+ :clearable="true" :disabled="detailData.seeDisabled" :buttonIf="false"
|
|
|
+ :forParameter="{ key: 'id', label: 'code', value: 'code' }" placeholder="请选择服务方式"
|
|
|
+ @remoteMethod="remoteMethod($event, 'serviceTerms')"
|
|
|
+ @corpFocus="remoteMethod($event, 'serviceTerms')">
|
|
|
+ </search-query>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="截单时间" prop="cyTrailerTime">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">截单时间</span>
|
|
|
+ </span>
|
|
|
+ <el-date-picker v-model="assemblyForm.cyTrailerTime" type="datetime"
|
|
|
+ style="width: 100%;" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ size="small"
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
|
|
|
+ placeholder="请选择截单时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="截港时间" prop="cyReturnTime">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">截港时间</span>
|
|
|
+ </span>
|
|
|
+ <el-date-picker v-model="assemblyForm.cyReturnTime" type="datetime" style="width: 100%;"
|
|
|
+ format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" size="small"
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
|
|
|
+ placeholder="请选择截港时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="船代" prop="shippingAgencyCname">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">船代</span>
|
|
|
+ </span>
|
|
|
+ <div>
|
|
|
+ <dic-select v-model="assemblyForm.shippingAgencyCname" 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('shippingAgencyCname', $event)" :slotRight="true"
|
|
|
+ rightLabel="code"
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"></dic-select>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="订舱代理" prop="bookingAgentCnName">
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">订舱代理</span>
|
|
|
+ </span>
|
|
|
+ <el-col :span="9">
|
|
|
+ <search-query :datalist="bookingAgentData"
|
|
|
+ :selectValue="assemblyForm.bookingAgentCnName" :filterable="true"
|
|
|
+ :clearable="true" :remote="true"
|
|
|
+ :disabled="detailData.seeDisabled || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
|
|
|
+ :buttonIf="false" placeholder="请选择订舱代理"
|
|
|
+ :forParameter="{ key: 'id', label: 'cnName', value: 'cnName' }"
|
|
|
+ @remoteMethod="remoteMethod($event, 'bookingAgent')"
|
|
|
+ @corpChange="corpChange($event, 'bookingAgent')"
|
|
|
+ @corpFocus="remoteMethod($event, 'bookingAgent')">
|
|
|
+ </search-query>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="14" :offset="1">
|
|
|
+ <el-input type="age" style="width: 100%;" v-model="assemblyForm.bookingAgentEnName"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="detailData.seeDisabled || !assemblyForm.bookingAgentCnName || (assemblyForm.billType == 'MH' && assemblyForm.masterBillNo > 0)"
|
|
|
+ clearable placeholder="订舱代理"></el-input>
|
|
|
+ </el-col>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
|
|
|
@@ -1091,6 +1194,7 @@ import { blinesDetail } from "@/api/iosBasicData/blines";
|
|
|
import { synchronizationExchangeRate } from "@/api/iosBasicData/rateManagement";
|
|
|
import { isProcurement } from "@/api/basicData/configuration";
|
|
|
import { getDeptLazyTree, getDeptTree, getLazyList } from "@/api/system/dept";
|
|
|
+import { getBservicetermsList } from "@/api/iosBasicData/bserviceterms";
|
|
|
import _ from "lodash";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
|
|
|
@@ -1217,6 +1321,8 @@ export default {
|
|
|
coloaderCnNameData: [],
|
|
|
// 危险品包装等级
|
|
|
dgPackingLevelData: [],
|
|
|
+ // 服务方式
|
|
|
+ serviceTermsData: [],
|
|
|
|
|
|
marksIndex: 1
|
|
|
}
|
|
|
@@ -1255,6 +1361,15 @@ export default {
|
|
|
// this.getDicTree()
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取服务方式数据
|
|
|
+ serviceTermsWorkDicts() {
|
|
|
+ // getWorkDicts('service_terms').then(res=>{
|
|
|
+ // this.serviceTermsData = res.data.data
|
|
|
+ // })
|
|
|
+ getBservicetermsList(1, 20, { status: 0 }).then(res => {
|
|
|
+ this.serviceTermsData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
getDicTree() {
|
|
|
let obj = {
|
|
|
eptId: this.saberUserInfo.dept_pid.split(',')[0]
|
|
|
@@ -1377,6 +1492,16 @@ export default {
|
|
|
this.$emit('billsDetailfun')
|
|
|
},
|
|
|
dicChange(name, row) {
|
|
|
+ if (name == 'shippingAgencyCname') {
|
|
|
+ if (row) {
|
|
|
+ this.assemblyForm.shippingAgencyId = row.id
|
|
|
+ this.assemblyForm.shippingAgencyEname = row.enName
|
|
|
+ } else {
|
|
|
+ this.assemblyForm.shippingAgencyId = null
|
|
|
+ this.assemblyForm.shippingAgencyEname = null
|
|
|
+ this.assemblyForm.shippingAgencyCname = null
|
|
|
+ }
|
|
|
+ }
|
|
|
if (name == 'operatorName') {
|
|
|
if (row) {
|
|
|
this.assemblyForm.operatorName = row.realName
|
|
|
@@ -1436,7 +1561,7 @@ export default {
|
|
|
this.cyBcorpslistByType3()
|
|
|
}
|
|
|
//联系人
|
|
|
- else if (name == 'portTerminalCyContacts') {
|
|
|
+ else if (name == 'portTerminalCyContacts') {
|
|
|
this.cyBcorpsattnListfun3()
|
|
|
}
|
|
|
// 货物
|
|
|
@@ -1463,6 +1588,12 @@ export default {
|
|
|
else if (name == 'coloaderCnName') {
|
|
|
this.bcorpstypedefineListfun(value)
|
|
|
}
|
|
|
+ else if (name == 'serviceTerms') {
|
|
|
+ this.serviceTermsWorkDicts()
|
|
|
+ }
|
|
|
+ else if (name == 'bookingAgent') {
|
|
|
+ this.bookingAgentBcorpsListfun(value)
|
|
|
+ }
|
|
|
},
|
|
|
// 选择框的回调
|
|
|
corpChange(value, name) {
|