This commit is contained in:
linfso 2024-05-13 13:29:24 +08:00
parent 39f5f6447b
commit f31213e451
3 changed files with 20 additions and 35 deletions

View File

@ -95,7 +95,7 @@ export default {
}, },
svalue(newVal, oldVal) { svalue(newVal, oldVal) {
if (newVal !== oldVal) { if (newVal !== oldVal) {
this.$emit("input", this.svalue);
} }
}, },
countryCode(newVal) { countryCode(newVal) {
@ -141,6 +141,8 @@ export default {
}, },
handleChange(value) { handleChange(value) {
console.log(value); console.log(value);
this.$emit("input", this.svalue);
this.$emit("onChange", this.svalue);
}, },
}, },
}; };

View File

@ -26,7 +26,7 @@
</el-col> --> </el-col> -->
<el-col :span="6"> <el-col :span="6">
<el-form-item label="产品类型" prop="productType"> <el-form-item label="产品类型" prop="productType">
<TransProductCasPicker v-model="form.productType" :countryCode="form.reciever.country" ></TransProductCasPicker> <TransProductCasPicker v-model="form.productTypeSelArr" :countryCode="form.reciever.country" @onChange="onProductChange" ></TransProductCasPicker>
<!-- <trans-product-picker v-model="form.productType" :transLineCode="form.transLine"></trans-product-picker> --> <!-- <trans-product-picker v-model="form.productType" :transLineCode="form.transLine"></trans-product-picker> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -599,7 +599,6 @@ data() {
addressType:null, addressType:null,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 表单参数 // 表单参数
form: {}, form: {},
timer:null, timer:null,
@ -830,6 +829,7 @@ methods: {
this.loading = true; this.loading = true;
getWaybillDetail(this.billCode).then(response => { getWaybillDetail(this.billCode).then(response => {
this.form = response.data; this.form = response.data;
this.form.productTypeSelArr=[this.form.transLine,this.form.productType];
this.loading = false; this.loading = false;
}); });
} }
@ -884,6 +884,7 @@ methods: {
paymentType: null, paymentType: null,
calcFeeType: '1', calcFeeType: '1',
custNo: null, custNo: null,
productTypeSelArr: null,
transLine: null, transLine: null,
productType: null, productType: null,
customsClear: null, customsClear: null,
@ -935,7 +936,12 @@ methods: {
this.resetForm("form"); this.resetForm("form");
}, },
onTransLineChange(item){ onTransLineChange(item){
this.form.meterType = item.meterRate; // this.form.meterType = item.meterRate;
},
onProductChange(item){
console.log(item);
this.form.transLine=item[0];
this.form.productType=item[1];
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
@ -1008,14 +1014,15 @@ methods: {
}); });
} }
}, },
calcVolume(){
// 计算体积 // 计算体积
calcVolume(){
if(this.form.length && this.form.width && this.form.height){ if(this.form.length && this.form.width && this.form.height){
let totalVolume=parseFloat(this.form.length)*parseFloat(this.form.width)*parseFloat(this.form.height); let totalVolume=parseFloat(this.form.length)*parseFloat(this.form.width)*parseFloat(this.form.height);
this.form.totalVolume = totalVolume/1000000; this.form.totalVolume = totalVolume/1000000;
this.calcVolumeWeightByTotalVolume(); this.calcVolumeWeightByTotalVolume();
} }
}, },
// 计算体积重量
calcVolumeWeightByTotalVolume(){ calcVolumeWeightByTotalVolume(){
let postData={ let postData={
productType: this.form.productType, productType: this.form.productType,
@ -1023,28 +1030,26 @@ methods: {
} }
calcVolumeWeight(postData).then(response => { calcVolumeWeight(postData).then(response => {
console.log(response);
this.form.volumeWeight = response.data.volumeWeight; this.form.volumeWeight = response.data.volumeWeight;
}); });
}, },
// 计算计算重量
calcSettlementWeightByRemote(){ calcSettlementWeightByRemote(){
if(this.form.billWeight if(this.form.billWeight
&& this.form.totalVolume && this.form.totalVolume
&& this.form.productType && this.form.productType
){ ){
let postData={ let postData={
productType: this.form.productType, productType: this.form.productType,
totalVolume: this.form.totalVolume, volumeWeight: this.form.volumeWeight,
billWeight: this.form.billWeight, billWeight: this.form.billWeight,
} }
// console.log(postData); // console.log(postData);
calcSetteldWeight(postData).then(response => { calcSetteldWeight(postData).then(response => {
console.log(response); console.log(response);
// this.form.volumeWeight = response.data.volumeWeight;
this.form.settlementWeight = response.data.settlementWeight; this.form.settlementWeight = response.data.settlementWeight;
// this.form.feeWeight = this.form.settlementWeight ; this.form.feeWeight = this.form.settlementWeight ;
}); });
} }

View File

@ -1313,7 +1313,9 @@
<!-- <el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="100" /> --> <!-- <el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="100" /> -->
<el-table-column :label="$t('运单号')" align="center" prop="billCode" width="120" :show-overflow-tooltip="true"> <el-table-column :label="$t('运单号')" align="center" prop="billCode" width="120" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="link-type" @click="handleView(scope.row)">{{scope.row.billCode}}</div> <router-link :to="'/d24/waybillManagement/waybillEntry?billCode=' + scope.row.billCode" class="link-type">
<span>{{ scope.row.billCode }}</span>
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" width="100" :show-overflow-tooltip="true"/> <el-table-column :label="$t('订单号')" align="center" prop="orderSn" width="100" :show-overflow-tooltip="true"/>
@ -1470,32 +1472,8 @@
<el-table-column :label="$t('时区偏差')" align="center" prop="timezoneOffset" min-width="100" /> <el-table-column :label="$t('时区偏差')" align="center" prop="timezoneOffset" min-width="100" />
<el-table-column :label="$t('删除标志(0代表存在')" align="center" prop="delFlag" min-width="100" /> <el-table-column :label="$t('删除标志(0代表存在')" align="center" prop="delFlag" min-width="100" />
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" /> --> <el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100" /> -->
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['emis:emisWaybill:edit']"
>修改</el-button>
<!--
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['emis:emisWaybill:remove']"
>删除</el-button> -->
</template>
</el-table-column>
</XdTable> </XdTable>
<!-- <el-dialog :title="titleForm" :visible.sync="openForm" width="50%" :destroy-on-close="true" v-dialogDrag append-to-body>
<emisWaybillForm :id="currentId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></EmisWaybillForm>
</el-dialog> -->
<!-- <!--
<el-dialog :title="titleView" :visible.sync="openView" width="60%" :close-on-click-modal="false" v-dialogDrag append-to-body> <el-dialog :title="titleView" :visible.sync="openView" width="60%" :close-on-click-modal="false" v-dialogDrag append-to-body>
<emisWaybillView :id="id" ></EmisWaybillView> <emisWaybillView :id="id" ></EmisWaybillView>