Browse Source

增加配送任务打印

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
e639fde81e
  1. 1
      src/utils/functions.js
  2. 32
      src/views/distribution/deliverylist/distributionDeliveryList.vue
  3. 19
      src/views/distribution/deliverylist/distributionDeliveryListdis.vue

1
src/utils/functions.js

@ -14,7 +14,6 @@ const utils = {
checkcColumnList: (prop, columnList) => {
for (var a = 0; a < columnList.length; a++) {
if (columnList[a].prop === prop) {
console.log("1111111111111", columnList[a]);
return columnList[a];
}
}

32
src/views/distribution/deliverylist/distributionDeliveryList.vue

@ -91,7 +91,7 @@
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left" style="margin-top: 20px">
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"> </el-button>-->
<el-button type="primary" icon="el-icon-plus" @click="printBatch">批量打印</el-button>
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
</div>
<!-- 头部右侧按钮模块 -->
@ -491,7 +491,6 @@
},
watch: {
handler(newVal, oldVal) {
console.log(newVal, oldVal);
this.fetchData();
this.onLoad(this.page);
},
@ -600,7 +599,6 @@
po.push(a);
});
this.vehicleData = po;
console.log('^^^^^^^^^^^^^^^^', res.data.data);
rv(res.data.data.records);
});
});
@ -618,7 +616,6 @@
po.push(a);
});
this.driverData = po;
console.log('===============>', res.data.data);
rv(res.data.data.records);
});
});
@ -648,14 +645,12 @@
if (value) {
this.form.addvalueType = value;
}
console.log('>>>>>', this.form);
if (value.length < 1) {
this.costList = [];
this.costListName = [];
}
this.deliveryWayData.forEach(i => {
if (value.includes(i.dictKey)) {
console.log(i);
i.pitch = true;
this.costListName = value;
}
@ -676,6 +671,22 @@
//
},
/**
* 批量打印
*/
printBatch(){
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$message({
type: 'success',
message: '功能开发中!'
});
},
aaa() {
let addvalueInfos = [];
this.form.addvalueType.forEach((item, index) => {
@ -704,7 +715,6 @@
params.id = this.deliverId;
params.addvalue = addvalueInfos;
params.relatedId = 2;
console.log('params>>>>>>>>>>>>>>>>>>', params);
addIncrement(params).then(res => {
this.dialogVisible = false;
this.$message({
@ -715,11 +725,9 @@
this.onLoad(this.page);
},
selectionsc(value) {
console.log('进来了>>>>>>>>>>>>>', value);
},
editmap(scope) {
const { row } = scope;
console.log('row>>>>>>xxxx', row);
this.$router.push({
path: '/distribution/reservation/atlas1',
query: {
@ -730,7 +738,6 @@
},
delectsolt(scope) {
const { row } = scope;
console.log(row);
},
handleClose(done) {
this.$confirm('确认关闭?')
@ -742,7 +749,6 @@
},
editsolt(scope) {
const { row } = scope;
console.log(row);
this.$router.push({
path: '/distribution/deliverylist/distributionDeliveryListedt',
query: {
@ -753,7 +759,6 @@
},
costadd(scope) {
const { row } = scope;
console.log('row>>>>>>>>>>', row);
this.deliverId = row.id;
//
this.addvalueServeType = [];
@ -765,7 +770,6 @@
// this.orderInfo = row;
},
btnsc(index, row) {
console.log(index, row);
},
selectsc(index, row) {
this.query[row.prop] = index;
@ -781,7 +785,6 @@
this.onLoad(this.page);
},
timesc(index, row) {
console.log(index, row);
},
inputsc(index, row) {
this.query[row.prop] = index;
@ -852,7 +855,6 @@
break;
}
}
console.log("query-------------->",this.query);
this.onLoad(this.page);
},
searchReset() {

19
src/views/distribution/deliverylist/distributionDeliveryListdis.vue

@ -89,7 +89,10 @@
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"> </el-button>-->
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
<!-- <el-button type="primary" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
<el-button type="primary" @click="toDeliveryPlan"> </el-button>
<el-button type="primary" @click="toDeliveryPlan">新增商配</el-button>
<el-button type="primary" @click="printBatch">批量打印</el-button>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
@ -1027,6 +1030,20 @@ export default {
});
},
/**
* 批量打印
*/
printBatch(){
if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据");
return;
}
this.$message({
type: 'success',
message: '功能开发中!'
});
},
onLoad (page, params = {}) {
this.loading = true;

Loading…
Cancel
Save