|
|
|
@ -325,11 +325,20 @@
|
|
|
|
|
has-feedback
|
|
|
|
|
prop="bookingEDIExt.salerCode"
|
|
|
|
|
>
|
|
|
|
|
<a-select size="small" default-value="CN087 | GRACE SUN" v-model="details.bookingEDIExt.salerCode" @change="handleSaleChange">
|
|
|
|
|
<selectView
|
|
|
|
|
type="salerCode"
|
|
|
|
|
:defaultVal="details.bookingEDIExt.salerCode"
|
|
|
|
|
searchApi="salerCode"
|
|
|
|
|
:searchQuery="{ NAME: '' }"
|
|
|
|
|
:showLabel="['NAME']"
|
|
|
|
|
:openSearch="false"
|
|
|
|
|
@change="getSelectViewRes"
|
|
|
|
|
></selectView>
|
|
|
|
|
<!-- <a-select size="small" default-value="CN087 | GRACE SUN" v-model="details.bookingEDIExt.salerCode" @change="handleSaleChange">
|
|
|
|
|
<a-select-option v-for="(sales, sindex) in StoreSalesRepCode" :value="sales.NAME" :key="sindex">
|
|
|
|
|
{{ sales.NAME }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-select> -->
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
@ -352,11 +361,20 @@
|
|
|
|
|
has-feedback
|
|
|
|
|
prop="bookingEDIExt.masterBolIndicator"
|
|
|
|
|
>
|
|
|
|
|
<a-select size="small" v-model="details.bookingEDIExt.masterBolIndicator" @change="handleMasterBolChange">
|
|
|
|
|
<selectView
|
|
|
|
|
type="masterBolIndicator"
|
|
|
|
|
:defaultVal="details.bookingEDIExt.masterBolIndicatorName"
|
|
|
|
|
searchApi="StoreMasterBOLIndicator"
|
|
|
|
|
:searchQuery="{ NAME: '' }"
|
|
|
|
|
:showLabel="['NAME']"
|
|
|
|
|
:openSearch="false"
|
|
|
|
|
@change="getSelectViewRes"
|
|
|
|
|
></selectView>
|
|
|
|
|
<!-- <a-select size="small" v-model="details.bookingEDIExt.masterBolIndicator" @change="handleMasterBolChange" optionLabelProp="label">
|
|
|
|
|
<a-select-option v-for="(master, mindex) in StoreMasterBOLIndicator" :value="mindex" :key="mindex">
|
|
|
|
|
{{ master.NAME }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-select> -->
|
|
|
|
|
</a-form-model-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
@ -430,10 +448,12 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import inputView from '../components/inputView'
|
|
|
|
|
import selectView from '../components/selectView'
|
|
|
|
|
let timer;
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
inputView
|
|
|
|
|
inputView,
|
|
|
|
|
selectView
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
details: {
|
|
|
|
@ -521,24 +541,31 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleMasterBolChange (val) {
|
|
|
|
|
this.details.bookingEDIExt.masterBolIndicator = this.StoreMasterBOLIndicator[val].ID
|
|
|
|
|
this.details.bookingEDIExt.masterBolIndicatorName = this.StoreMasterBOLIndicator[val].NAME
|
|
|
|
|
},
|
|
|
|
|
handleSaleChange (val) {
|
|
|
|
|
this.details.bookingEDIExt.salerCode = val.split('|')[0]
|
|
|
|
|
this.details.bookingEDIExt.salerCodeName = val.split('|')[1]
|
|
|
|
|
},
|
|
|
|
|
// handleMasterBolChange (val) {
|
|
|
|
|
// this.details.bookingEDIExt.masterBolIndicator = this.StoreMasterBOLIndicator[val].ID
|
|
|
|
|
// this.details.bookingEDIExt.masterBolIndicatorName = this.StoreMasterBOLIndicator[val].NAME
|
|
|
|
|
// },
|
|
|
|
|
// handleSaleChange (val) {
|
|
|
|
|
// this.details.bookingEDIExt.salerCode = val.split('|')[0]
|
|
|
|
|
// this.details.bookingEDIExt.salerCodeName = val.split('|')[1]
|
|
|
|
|
// },
|
|
|
|
|
inputChange ({ type, value }) {
|
|
|
|
|
const bookingEDIExtArr = ['sendCode', 'receiveCode', 'ediAttn', 'ediAttnTel', 'ediAttnMail', 'amsConsignee', 'amsNotifyParty', 'opEName', 'opTel', 'opEmail', 'goodsName', 'orderRemark', 'consigneeEdiCode', 'shipperEdiCode', 'notifyCdoe', 'emanifestHbl', 'acihbl', 'kingTareweight']
|
|
|
|
|
if (bookingEDIExtArr.includes(type)) {
|
|
|
|
|
this.details.bookingEDIExt[type] = value
|
|
|
|
|
// console.log(this.details.bookingEDIExt[type])
|
|
|
|
|
} else {
|
|
|
|
|
this.details[type] = value
|
|
|
|
|
// console.log(this.details[type])
|
|
|
|
|
}
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
},
|
|
|
|
|
getSelectViewRes ({ type, res }) {
|
|
|
|
|
if (type === 'masterBolIndicator') {
|
|
|
|
|
this.details.bookingEDIExt.masterBolIndicator = res.ID || ''
|
|
|
|
|
this.details.bookingEDIExt.masterBolIndicatorName = res.NAME || ''
|
|
|
|
|
} else if (type === 'salerCode') {
|
|
|
|
|
this.details.bookingEDIExt.salerCode = res.ID || ''
|
|
|
|
|
this.details.bookingEDIExt.salerCodeName = res.NAME.split('|')[1].trimStart()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|