md
This commit is contained in:
parent
26fef56ade
commit
263771f690
@ -76,7 +76,7 @@ import BillPicList from './billPicList.vue';
|
||||
|
||||
import WaybillDetailReadOnly from '@/views/emis/emisWaybill/waybillDetailReadOnly.vue';
|
||||
import { getWaybillDetail } from "@/api/emis/emisWaybill";
|
||||
import { getTraceListByBillCode } from "@/api/emis/emisTmsScanRecord";
|
||||
import { queryLastRecord,getTraceListByBillCode } from "@/api/emis/emisTmsScanRecord";
|
||||
|
||||
import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
|
||||
|
||||
@ -174,7 +174,11 @@ export default {
|
||||
this.active=2;
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
showLastTrace(billCode){
|
||||
queryLastRecord(item.billCode).then(response => {
|
||||
let data=response.data;
|
||||
});
|
||||
},
|
||||
|
||||
onCanSeeBillDetail(isCan){
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
clearable
|
||||
v-model="queryParams.scanType"
|
||||
>
|
||||
<el-option v-for="item in dict.type.emis_scan_type" :key="item.value" :label="item.label" :value="item.value" />
|
||||
<el-option v-for="item in dict.type.emis_scan_type.filter(item=> (item.value != '50' && item.value != '51' && item.value != '-1') )" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('扫描网点')" prop="scanSiteCode" label-width="100px">
|
||||
@ -296,8 +296,9 @@ export default {
|
||||
status: null,
|
||||
delFlag: null,
|
||||
remark: null,
|
||||
params:{},//扩展参数
|
||||
|
||||
params:{
|
||||
scanQueryType:1,
|
||||
},//扩展参数
|
||||
// scanSite:null,
|
||||
queryType:"1",// 选择运单类型,默认为 运单号:1,订单号:0
|
||||
// scanType:"",
|
||||
@ -326,14 +327,14 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setHours(0,0,0,0)
|
||||
end.setHours(23,59,59,0)
|
||||
this.dateTimeRange=[timeFormat(start), timeFormat(end)]
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
initQueryParams(){
|
||||
@ -354,52 +355,11 @@ export default {
|
||||
/** 查询扫描记录列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
// this.queryParams.params.queryType = this.queryParams.queryType;//1:yd;2:dd;
|
||||
// this.queryParams.params.isSubBill = this.queryParams.isSubBill;//1:子单;0:主单
|
||||
|
||||
// let queryType = this.queryParams.queryType;
|
||||
// if(queryType == "1"){
|
||||
// this.queryParams.orderSN=null;
|
||||
// }else if(queryType == "0"){
|
||||
// this.queryParams.orderSN=this.queryParams.billCode;
|
||||
// this.queryParams.billCode=null;
|
||||
// }
|
||||
|
||||
let qParam=this.initQueryParams();
|
||||
|
||||
listEmisTmsScanRecord(qParam).then(response => {
|
||||
this.scanRecordDataList = [];
|
||||
// this.total = 0;
|
||||
this.loading = false;
|
||||
// let rows = response.rows;
|
||||
this.scanRecordDataList= response.rows;
|
||||
this.total = response.total;
|
||||
// if(!rows || rows.length == 0){
|
||||
// this.$modal.msgError("未查到单号");
|
||||
// return;
|
||||
// }
|
||||
// for (let index = 0; index < rows.length; index++) {
|
||||
// let scanRstItem = rows[index];
|
||||
// console.log(scanRstItem);
|
||||
|
||||
// let record =Object.assign({}, scanRstItem)
|
||||
// // record.carNo=scanRstItem.carNo;
|
||||
// // record.scanData=scanRstItem.scanData;
|
||||
// // record.scanType=scanRstItem.scanType;
|
||||
// // if(queryType == "1"){
|
||||
// // this.queryParams.orderSN=null;
|
||||
// // }
|
||||
// record.queryType = this.queryParams.queryType;
|
||||
// record.scanSiteName = this.queryParams.scanSiteName || record.scanSiteName;
|
||||
// record.preOrNextStation = this.queryParams.preOrNextStation || scanRstItem.preOrNextStation;
|
||||
// // record.createTime=scanRstItem.createTime;
|
||||
// // record.scanWeight=scanRstItem.scanWeight;
|
||||
// // console.log(record)
|
||||
// // let indexBillCode=record.billCode;
|
||||
// // this.dataMap[indexBillCode]=record;
|
||||
// // this.emisTmsScanRecordList.push(record);
|
||||
// this.scanRecordDataList.push(record);
|
||||
// }
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
|
||||
@ -1637,7 +1637,9 @@ methods: {
|
||||
if(item!=null && item.length==2){
|
||||
this.form.transLine=item[0];
|
||||
this.form.productType=item[1];
|
||||
this.calcBillFee();
|
||||
// this.calcBillFee();
|
||||
this.handleCalcSettlementWeight();
|
||||
|
||||
}
|
||||
},
|
||||
onSendSiteSelect(item){
|
||||
@ -2317,22 +2319,6 @@ methods: {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
// .notify-success{
|
||||
// top: 1.7rem !important;
|
||||
// right: 0.32rem !important;
|
||||
// width: 2rem !important;
|
||||
// height: 0.96rem !important;
|
||||
// background: rgba(131, 213, 134, 0.1) !important;
|
||||
// border-radius: 0.04rem 0px 0px 0.04rem !important;
|
||||
// }
|
||||
// .notify-error{
|
||||
// top: 2.7rem !important;
|
||||
// right: 0.32rem !important;
|
||||
// width: 2rem !important;
|
||||
// height: 0.96rem !important;
|
||||
// background: rgba(255, 31, 36, 0.05) !important;
|
||||
// border-radius: 0.04rem 0px 0px 0.04rem !important;
|
||||
// }
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -1637,7 +1637,9 @@ methods: {
|
||||
if(item!=null && item.length==2){
|
||||
this.form.transLine=item[0];
|
||||
this.form.productType=item[1];
|
||||
this.calcBillFee();
|
||||
// this.calcBillFee();
|
||||
this.handleCalcSettlementWeight();
|
||||
|
||||
}
|
||||
},
|
||||
onSendSiteSelect(item){
|
||||
@ -2317,22 +2319,6 @@ methods: {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
// .notify-success{
|
||||
// top: 1.7rem !important;
|
||||
// right: 0.32rem !important;
|
||||
// width: 2rem !important;
|
||||
// height: 0.96rem !important;
|
||||
// background: rgba(131, 213, 134, 0.1) !important;
|
||||
// border-radius: 0.04rem 0px 0px 0.04rem !important;
|
||||
// }
|
||||
// .notify-error{
|
||||
// top: 2.7rem !important;
|
||||
// right: 0.32rem !important;
|
||||
// width: 2rem !important;
|
||||
// height: 0.96rem !important;
|
||||
// background: rgba(255, 31, 36, 0.05) !important;
|
||||
// border-radius: 0.04rem 0px 0px 0.04rem !important;
|
||||
// }
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<el-form-item label="产品类型" prop="productType">
|
||||
<TransProductPicker placeholder="产品类型" v-model="form.productType" :transLineCode="form.transLine" isInitiated="true" @onChange="calcBillFee"></TransProductPicker>
|
||||
<TransProductPicker placeholder="产品类型" v-model="form.productType" :transLineCode="form.transLine" isInitiated="true" @onChange="handleCalcSettlementWeight"></TransProductPicker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user