edi添加字段

pull/1/head
lilu 2 years ago
parent 9c5ff60a7c
commit faf92891e5

@ -185,11 +185,11 @@
<inputView type="orderRemark" :placeholder="'订舱人说明或ESL BP CODE'" :parentVal="details.bookingEDIExt.orderRemark" @getInputChange="inputChange"/> <inputView type="orderRemark" :placeholder="'订舱人说明或ESL BP CODE'" :parentVal="details.bookingEDIExt.orderRemark" @getInputChange="inputChange"/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="23"> <a-col :span="8">
<a-form-model-item <a-form-model-item
label="付款方" label="付款方"
:labelCol="{ xs: { span: 24 }, sm: { span: 3 } }" :labelCol="{ xs: { span: 24 }, sm: { span: 9 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 21 } }" :wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
has-feedback has-feedback
prop="freightpayer" prop="freightpayer"
> >
@ -197,6 +197,17 @@
<inputView type="freightpayer" :parentVal="details.freightpayer" @getInputChange="inputChange"/> <inputView type="freightpayer" :parentVal="details.freightpayer" @getInputChange="inputChange"/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="8">
<a-form-model-item
label="第一层包装皮重"
:labelCol="{ xs: { span: 24 }, sm: { span: 9 } }"
:wrapperCol="{ xs: { span: 24 }, sm: { span: 15 } }"
has-feedback
prop="bookingEDIExt.kingTareweight"
>
<inputView type="kingTareweight" :parentVal="details.bookingEDIExt.kingTareweight" @getInputChange="inputChange"/>
</a-form-model-item>
</a-col>
<a-col :span="23"> <a-col :span="23">
<a-form-model-item <a-form-model-item
label="委托方" label="委托方"
@ -515,7 +526,7 @@ export default {
this.details.bookingEDIExt.salerCodeName = val.split('|')[1] this.details.bookingEDIExt.salerCodeName = val.split('|')[1]
}, },
inputChange ({ type, value }) { inputChange ({ type, value }) {
const bookingEDIExtArr = ['sendCode', 'receiveCode', 'ediAttn', 'ediAttnTel', 'ediAttnMail', 'amsConsignee', 'amsNotifyParty', 'opEName', 'opTel', 'opEmail', 'goodsName', 'orderRemark', 'consigneeEdiCode', 'shipperEdiCode', 'notifyCdoe', 'emanifestHbl', 'acihbl'] const bookingEDIExtArr = ['sendCode', 'receiveCode', 'ediAttn', 'ediAttnTel', 'ediAttnMail', 'amsConsignee', 'amsNotifyParty', 'opEName', 'opTel', 'opEmail', 'goodsName', 'orderRemark', 'consigneeEdiCode', 'shipperEdiCode', 'notifyCdoe', 'emanifestHbl', 'acihbl', 'kingTareweight']
if (bookingEDIExtArr.includes(type)) { if (bookingEDIExtArr.includes(type)) {
this.details.bookingEDIExt[type] = value this.details.bookingEDIExt[type] = value
// console.log(this.details.bookingEDIExt[type]) // console.log(this.details.bookingEDIExt[type])

@ -327,7 +327,8 @@ export default {
'bookingEDIExt.ckhi': [{ required: false, message: '请输入欧盟港口、伊朗港口、KHI', trigger: 'change' }], 'bookingEDIExt.ckhi': [{ required: false, message: '请输入欧盟港口、伊朗港口、KHI', trigger: 'change' }],
'bookingEDIExt.cncm': [{ required: false, message: '请输入南美东', trigger: 'change' }], 'bookingEDIExt.cncm': [{ required: false, message: '请输入南美东', trigger: 'change' }],
'bookingEDIExt.wncm': [{ required: false, message: '请输入巴西线木质包装情况', trigger: 'change' }], 'bookingEDIExt.wncm': [{ required: false, message: '请输入巴西线木质包装情况', trigger: 'change' }],
'bookingEDIExt.orderRemark': [{ required: false, message: '请输入订舱人说明', trigger: 'change' }] 'bookingEDIExt.orderRemark': [{ required: false, message: '请输入订舱人说明', trigger: 'change' }],
'bookingEDIExt.kingTareweight': [{ required: false, message: '请输入第一层包装皮重', trigger: 'change' }]
}, },
hasEdiRules: false, hasEdiRules: false,
tableRules: { tableRules: {

@ -482,7 +482,8 @@ export default {
'bookingEDIExt.ckhi': [{ required: false, message: '请输入欧盟港口、伊朗港口、KHI', trigger: 'change' }], 'bookingEDIExt.ckhi': [{ required: false, message: '请输入欧盟港口、伊朗港口、KHI', trigger: 'change' }],
'bookingEDIExt.cncm': [{ required: false, message: '请输入南美东', trigger: 'change' }], 'bookingEDIExt.cncm': [{ required: false, message: '请输入南美东', trigger: 'change' }],
'bookingEDIExt.wncm': [{ required: false, message: '请输入巴西线木质包装情况', trigger: 'change' }], 'bookingEDIExt.wncm': [{ required: false, message: '请输入巴西线木质包装情况', trigger: 'change' }],
'bookingEDIExt.orderRemark': [{ required: false, message: '请输入订舱人说明', trigger: 'change' }] 'bookingEDIExt.orderRemark': [{ required: false, message: '请输入订舱人说明', trigger: 'change' }],
'bookingEDIExt.kingTareweight': [{ required: false, message: '请输入第一层包装皮重', trigger: 'change' }]
}, },
hasEdiRules: false, hasEdiRules: false,
tableRules: { tableRules: {

Loading…
Cancel
Save