Merge pull request 'develop-运单录入' (#5) from develop-运单录入 into master
Reviewed-on: http://git.xdadan.loc/tanex/emis-frontend/pulls/5
This commit is contained in:
commit
d5ce6d4bc6
@ -525,12 +525,12 @@
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="form.transLine==='012' || form.transLine=='002' || form.transLine === '014'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item label="" prop="blVirtual">
|
||||
<el-checkbox style="font-size:400;margin-right:10px;font-size:10px" v-model="form.blVirtual" :true-label="'1'" :false-label="'0'" @change="handleVirtualChange"><span style="font-size:10px">是否为虚拟单</span></el-checkbox>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="(form.transLine==='012' || form.transLine=='002' || form.transLine === '014') && form.blVirtual === '1'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item :label="$t('关联主单')" prop="masterBillCode" label-width="70px">
|
||||
<MasterBillCodePicker v-model="form.masterBillCode" :searchParams="masterBillSearchParams" @onMasterBillCodeChange="onMasterBillCodeChange"></MasterBillCodePicker>
|
||||
</el-form-item>
|
||||
@ -1595,6 +1595,10 @@ methods: {
|
||||
}
|
||||
|
||||
this.form = response.data;
|
||||
//处理始发网点为空 始发网点等于寄件网点
|
||||
if(!this.form.startSiteCode || this.form.startSiteCode.trim()==''){
|
||||
this.form.startSiteCode=this.form.sendSiteCode;
|
||||
}
|
||||
if(this.form.lockFlag=="T"&&this.action!='got'){
|
||||
this.$confirm(this.form.lockReason, '提示', {
|
||||
confirmButtonText: '确认',
|
||||
@ -1806,11 +1810,11 @@ methods: {
|
||||
},
|
||||
onProductChange(item,transType){
|
||||
//非缅甸快递/缅甸快递进口/柬埔寨快递进口 重置虚拟单
|
||||
if(!['002','012','014'].includes(item[0])){
|
||||
if(!['002','012','014','078'].includes(item[0])){
|
||||
this.form.masterBillCode = null;
|
||||
this.form.blVirtual = null;
|
||||
}
|
||||
if(item[0]!=='002' && this.form.remark && this.form.remark!==null){
|
||||
if(item && !['002'].includes(item[0]) && this.form.remark && this.form.remark!==null){
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
if(item!=null && item.length==2){
|
||||
@ -2443,7 +2447,7 @@ methods: {
|
||||
if (val) {
|
||||
this.form.masterBillCode = val.value;
|
||||
this.masterBillProductType = val.productType;
|
||||
if (this.form.transLine === '002') {
|
||||
if (['002'].includes(this.form.transLine)) {
|
||||
if (this.form.remark==null || this.form.remark.trim() === '') {
|
||||
//生成备注
|
||||
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
|
||||
|
||||
@ -527,12 +527,12 @@
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="form.transLine==='012' || form.transLine=='002' || form.transLine === '014'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item label="" prop="blVirtual">
|
||||
<el-checkbox style="font-size:400;margin-right:10px;font-size:10px" v-model="form.blVirtual" :true-label="'1'" :false-label="'0'" @change="handleVirtualChange"><span style="font-size:10px">是否为虚拟单</span></el-checkbox>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="(form.transLine==='012' || form.transLine=='002' || form.transLine === '014') && form.blVirtual === '1'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item :label="$t('关联主单')" prop="masterBillCode" label-width="70px">
|
||||
<MasterBillCodePicker v-model="form.masterBillCode" :searchParams="masterBillSearchParams" @onMasterBillCodeChange="onMasterBillCodeChange"></MasterBillCodePicker>
|
||||
</el-form-item>
|
||||
@ -1583,6 +1583,10 @@ methods: {
|
||||
}
|
||||
|
||||
this.form = response.data;
|
||||
//处理始发网点为空 始发网点等于寄件网点的值
|
||||
if(!this.form.startSiteCode || this.form.startSiteCode.trim()==''){
|
||||
this.form.startSiteCode=this.form.sendSiteCode;
|
||||
}
|
||||
if(this.form.lockFlag=="T"&&this.action!='got'){
|
||||
this.$confirm(this.form.lockReason, '提示', {
|
||||
confirmButtonText: '确认',
|
||||
@ -1798,11 +1802,11 @@ methods: {
|
||||
},
|
||||
onProductChange(item,transType){
|
||||
//非缅甸快递/缅甸快递进口/柬埔寨快递进口 重置虚拟单
|
||||
if(!['002','012','014'].includes(item[0])){
|
||||
if(!['002','012','014','078'].includes(item[0])){
|
||||
this.form.masterBillCode = null;
|
||||
this.form.blVirtual = null;
|
||||
}
|
||||
if(item[0]!=='002' && this.form.remark && this.form.remark!==null){
|
||||
if(item && !['002'].includes(item[0]) && this.form.remark && this.form.remark!==null){
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
if(item!=null && item.length==2){
|
||||
@ -2438,13 +2442,13 @@ methods: {
|
||||
this.form.billCode=""
|
||||
}
|
||||
},
|
||||
//获取虚拟运单关联主单
|
||||
//获取虚拟运单关联主单
|
||||
onMasterBillCodeChange(val) {
|
||||
if (val) {
|
||||
this.form.masterBillCode = val.value;
|
||||
this.masterBillProductType = val.productType;
|
||||
if (this.form.transLine === '002') {
|
||||
if (this.form.remark==null || this.form.remark.trim() === '') {
|
||||
if (['002'].includes(this.form.transLine)) {
|
||||
if (this.form.remark == null || this.form.remark.trim() === '') {
|
||||
//生成备注
|
||||
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
|
||||
} else {
|
||||
@ -2453,19 +2457,19 @@ methods: {
|
||||
this.form.remark = this.form.remark.replace(/主单为[\da-zA-Z]+/g, '主单为' + val.value);
|
||||
} else {
|
||||
//判断结尾是不是逗号
|
||||
if(!this.form.remark.endsWith(',')){
|
||||
this.form.remark = this.form.remark +',';
|
||||
if (!this.form.remark.endsWith(',')) {
|
||||
this.form.remark = this.form.remark + ',';
|
||||
}
|
||||
this.form.remark =this.form.remark + '该单为虚拟单:对应主单为' + val.value;
|
||||
this.form.remark = this.form.remark + '该单为虚拟单:对应主单为' + val.value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
}else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
} else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
},
|
||||
//虚拟单变化
|
||||
|
||||
@ -529,12 +529,12 @@
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="form.transLine==='012' || form.transLine=='002' || form.transLine === '014'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item label="" prop="blVirtual">
|
||||
<el-checkbox style="font-size:400;margin-right:10px;font-size:10px" v-model="form.blVirtual" :true-label="'1'" :false-label="'0'" @change="handleVirtualChange"><span style="font-size:10px">是否为虚拟单</span></el-checkbox>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" v-if="(form.transLine==='012' || form.transLine=='002' || form.transLine === '014') && form.blVirtual === '1'">
|
||||
<el-col :span="12" v-if="['012','002','014','078'].includes(form.transLine)">
|
||||
<el-form-item :label="$t('关联主单')" prop="masterBillCode" label-width="70px">
|
||||
<MasterBillCodePicker v-model="form.masterBillCode" :searchParams="masterBillSearchParams" @onMasterBillCodeChange="onMasterBillCodeChange"></MasterBillCodePicker>
|
||||
</el-form-item>
|
||||
@ -1803,11 +1803,11 @@ methods: {
|
||||
},
|
||||
onProductChange(item,transType){
|
||||
//非缅甸快递/缅甸快递进口/柬埔寨快递进口 重置虚拟单
|
||||
if(item && !['002','012','014'].includes(item[0])){
|
||||
if(item && !['002','012','014','078'].includes(item[0])){
|
||||
this.form.masterBillCode = null;
|
||||
this.form.blVirtual = null;
|
||||
}
|
||||
if(item && item[0]!=='002' && this.form.remark && this.form.remark!==null){
|
||||
if(item && !['002'].includes(item[0]) && this.form.remark && this.form.remark!==null){
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
if(item!=null && item.length==2){
|
||||
@ -2435,8 +2435,8 @@ methods: {
|
||||
if (val) {
|
||||
this.form.masterBillCode = val.value;
|
||||
this.masterBillProductType = val.productType;
|
||||
if (this.form.transLine === '002') {
|
||||
if (this.form.remark==null || this.form.remark.trim() === '') {
|
||||
if (['002'].includes(this.form.transLine)) {
|
||||
if (this.form.remark == null || this.form.remark.trim() === '') {
|
||||
//生成备注
|
||||
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
|
||||
} else {
|
||||
@ -2445,19 +2445,19 @@ methods: {
|
||||
this.form.remark = this.form.remark.replace(/主单为[\da-zA-Z]+/g, '主单为' + val.value);
|
||||
} else {
|
||||
//判断结尾是不是逗号
|
||||
if(!this.form.remark.endsWith(',')){
|
||||
this.form.remark = this.form.remark +',';
|
||||
if (!this.form.remark.endsWith(',')) {
|
||||
this.form.remark = this.form.remark + ',';
|
||||
}
|
||||
this.form.remark =this.form.remark + '该单为虚拟单:对应主单为' + val.value;
|
||||
this.form.remark = this.form.remark + '该单为虚拟单:对应主单为' + val.value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
}else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
} else {
|
||||
//删除备注中虚拟单部分
|
||||
this.form.remark = this.form.remark.replace(/该单为虚拟单:对应主单为[\da-zA-Z]+/g, '');
|
||||
}
|
||||
},
|
||||
//虚拟单变化
|
||||
|
||||
@ -832,7 +832,7 @@
|
||||
</el-row>
|
||||
</el-col>
|
||||
<!-- 虚拟单调整 -->
|
||||
<el-col :span="24" v-if="(form.transLine==='012' || form.transLine=='002' || form.transLine === '014') && applyType&&(applyTypeArr.includes('43'))">
|
||||
<el-col :span="24" v-if="['012','002','014','078'].includes(form.transLine) && applyType&&(applyTypeArr.includes('43'))">
|
||||
<el-row :gutter="0" class="md-row">
|
||||
<el-col :span="3" class="md-title">
|
||||
<span>虚拟单调整</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user