Browse Source

修复表格表头值留存问题

dev-xx
qb 11 months ago
parent
commit
a86cc41175
  1. 9
      src/option/distribution/BookingNote.js
  2. 10
      src/option/waybill/orderPackageListDetails.js
  3. 2
      src/utils/util.js
  4. 5
      src/views/basic/coderule/basicTenantCode.vue
  5. 5
      src/views/basic/forklift/basicForklift.vue
  6. 4
      src/views/basic/material/basicTripartiteMaterial.vue
  7. 11
      src/views/basicdata/ConfigureBillingAndWarehousing/list.vue
  8. 11
      src/views/basicdata/TripartiteMaterial/list.vue
  9. 5
      src/views/basicdata/brand/basicBrand.vue
  10. 5
      src/views/basicdata/brand/basicClient.vue
  11. 4
      src/views/basicdata/brand/basicClientAccount.vue
  12. 4
      src/views/basicdata/brand/basicZonePrice.vue
  13. 14
      src/views/basicdata/driverArtery/basicdataDriverArtery.vue
  14. 5
      src/views/basicdata/team/basicdataTeamGroup.vue
  15. 84
      src/views/basicdata/team/basicdataTeamStaff.vue
  16. 115
      src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocationtt.vue
  17. 5
      src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue
  18. 5
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue
  19. 2
      src/views/distribution/artery/TripartiteTransfer.vue
  20. 11
      src/views/distribution/artery/VehicleArrivalManagement.vue
  21. 11
      src/views/distribution/artery/VehicleStowage.vue
  22. 11
      src/views/distribution/artery/abnormalList.vue
  23. 11
      src/views/distribution/artery/directGoMarketDetails.vue
  24. 36
      src/views/distribution/artery/truckLoadingDetails.vue
  25. 5
      src/views/distribution/checkInventoryTask/createTaskt.vue
  26. 54
      src/views/distribution/deliverylist/distributionDeliveryListdis.vue
  27. 9
      src/views/distribution/deliverylist/distributionDeliveryListmar.vue
  28. 28
      src/views/distribution/inventory/BookingNote.vue
  29. 10
      src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue
  30. 3
      src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue
  31. 5
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  32. 5
      src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue
  33. 11
      src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue
  34. 11
      src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue
  35. 4
      src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue
  36. 80
      src/views/distribution/inventory/distrilbutionBillLadingList.vue
  37. 5
      src/views/distribution/reservation/reservation.vue
  38. 22
      src/views/distribution/reservation/reservationDiscuss.vue
  39. 1061
      src/views/distribution/reservation/reservationMarket.vue
  40. 1029
      src/views/distribution/reservation/reservationSelf.vue
  41. 1738
      src/views/distribution/signdetail/distributionSigndetailCopy.vue
  42. 5
      src/views/distribution/signfor/distributionSignfor.vue
  43. 5
      src/views/distribution/signfor/distributionSignfortreat.vue
  44. 11
      src/views/distribution/stockup/distributionStockupDiscuss.vue
  45. 5
      src/views/distribution/stockup/distributionStockupMarket.vue
  46. 11
      src/views/distribution/stockup/distributionStockupSelf.vue
  47. 6
      src/views/mail/inventory/list.vue
  48. 4
      src/views/mail/order/list.vue
  49. 5
      src/views/mail/reservation/list.vue
  50. 228
      src/views/mail/signfor/list.vue
  51. 11
      src/views/reportforms/Inventory.vue
  52. 9
      src/views/reportforms/InventoryOutbound.vue
  53. 94
      src/views/system/param.vue
  54. 103
      src/views/system/pdaversion/pdaversionManage.vue
  55. 10
      src/views/warehouse/parcelList/distributionParcelList.vue
  56. 5
      src/views/warehouse/updownGoods/warehouseUpdownGoodsLog.vue
  57. 5
      src/views/warehouse/warehouseWaybill.vue
  58. 49
      src/views/warehouse/warehousesignedorder/distributionStockArticle.vue
  59. 5
      src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue
  60. 9
      src/views/waybill/ChangeOrder.vue
  61. 5
      src/views/waybill/FreezeOrder.vue
  62. 5
      src/views/waybill/ReceiptManagement.vue
  63. 11
      src/views/waybill/TemporaryStorageList.vue
  64. 7
      src/views/waybill/WarehousingByTrainNumber.vue
  65. 18
      src/views/waybill/WaybillOrderList.vue
  66. 11
      src/views/waybill/ZeroTagList.vue
  67. 7
      src/views/waybill/orderPackageList.vue
  68. 16
      src/views/waybill/orderPackageListDetails.vue

9
src/option/distribution/BookingNote.js

@ -125,12 +125,15 @@ export const ChangeOrderColumnList = [
fixed: true,
},
{
prop: 'waybillNo',
prop: 'checkStatusName',
label: '改单状态',
type: 1,
values: '',
width: '130',
checkarr: [],
checkarr: [
{ label: '待审核', value: 0 },
{ label: '审核通过', value: 1 },
],
fixed: true,
sortable: true,
head: false,
@ -176,7 +179,7 @@ export const ChangeOrderColumnList = [
sortable: true,
},
{
prop: 'aaa',
prop: 'refer',
label: '修改原因',
type: 1,
values: '',

10
src/option/waybill/orderPackageListDetails.js

@ -455,6 +455,16 @@ export const flowNodeColumnList = [
fixed: false,
sortable: true,
},
{
prop: 'createTime',
label: '操作时间',
type: 1,
values: '',
width: '250',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'workNodeName',
label: '节点',

2
src/utils/util.js

@ -684,7 +684,7 @@ export function handleClearTableQuery(tableColumnList) {
for (let i = 0; i < tableColumnList.length; i++) {
const value = tableColumnList[i];
value.values = '';
if (getObjType(value) === 'object') value.values = '';
}
}

5
src/views/basic/coderule/basicTenantCode.vue

@ -29,7 +29,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -201,7 +201,7 @@ import { getList, getDetail, add, update, remove } from '@/api/basic/basicTenant
import option from '@/option/basic/basicTenantCode';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { setNodeHeight, debounce } from '@/utils/util';
import { setNodeHeight, debounce, handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -411,6 +411,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

5
src/views/basic/forklift/basicForklift.vue

@ -42,7 +42,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -528,7 +528,7 @@ import option from '@/option/basic/basicForklift2';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { getToken } from '@/utils/auth';
import { setNodeHeight, debounce } from '@/utils/util';
import { setNodeHeight, debounce, handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -1133,6 +1133,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

4
src/views/basic/material/basicTripartiteMaterial.vue

@ -13,7 +13,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -125,6 +125,7 @@
import { getList, getDetail, add, update, remove } from '@/api/basic/basicTripartiteMaterial';
import option from '@/option/basic/basicTripartiteMaterial';
import { mapGetters } from 'vuex';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -328,6 +329,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

11
src/views/basicdata/ConfigureBillingAndWarehousing/list.vue

@ -47,7 +47,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -204,7 +204,13 @@ import dayjs from 'dayjs';
import { mapGetters } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, setNodeHeight, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/basicdata/ConfigureBillingAndWarehousing';
import {
postPageList,
@ -426,6 +432,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.pageNum = 1;
handleClearTableQuery(details.columnList);
initOnload();
};

11
src/views/basicdata/TripartiteMaterial/list.vue

@ -50,7 +50,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -248,7 +248,13 @@ import dayjs from 'dayjs';
import { mapGetters } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, setNodeHeight, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/basicdata/TripartiteMaterial';
import {
postPageList,
@ -475,6 +481,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.pageNum = 1;
handleClearTableQuery(details.columnList);
initOnload();
};

5
src/views/basicdata/brand/basicBrand.vue

@ -25,7 +25,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -183,7 +183,7 @@ import option from '@/option/basicdata/basicBrand';
import { mapGetters } from 'vuex';
import BasicStoreBrandSub from '@/views/basicdata/brand/basicStoreBrandSub.vue';
import { getToken } from '@/utils/auth';
import { setNodeHeight } from '@/utils/util';
import { handleClearTableQuery, setNodeHeight } from '@/utils/util';
export default {
components: {
@ -502,6 +502,7 @@ export default {
this.query = {};
this.dataShi = '';
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit(from) {

5
src/views/basicdata/brand/basicClient.vue

@ -48,7 +48,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -502,7 +502,7 @@ import globalc from '@/api/basicdata/globalc';
import { Base64 } from 'js-base64';
import dayjs from 'dayjs';
import { exportBlob } from '@/api/common';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
export default {
components: {
@ -1206,6 +1206,7 @@ export default {
this.query = {};
this.dataShi = '';
this.page.currentPage = 1;
handleClearTableQuery(this.columnList)
this.onLoad(this.page);
},
handleSubmit(from) {

4
src/views/basicdata/brand/basicClientAccount.vue

@ -13,7 +13,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -122,6 +122,7 @@
<script>
import { getList, add } from '@/api/basicdata/basicClientAccount';
import { handleClearTableQuery } from '@/utils/util';
import { mapGetters } from 'vuex';
export default {
@ -326,6 +327,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},

4
src/views/basicdata/brand/basicZonePrice.vue

@ -53,7 +53,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -332,6 +332,7 @@ import { mapGetters } from 'vuex';
import { getLazyTreeAll } from '@/api/base/region';
import { getDictionaryBiz } from '@/api/system/dict';
import BasicdataCostCorrelation from '@/views/basicdata/brand/basicdataCostCorrelation.vue';
import { handleClearTableQuery } from '@/utils/util';
export default {
components: {
@ -636,6 +637,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
bianli(costListName, clientType, costList, fei) {

14
src/views/basicdata/driverArtery/basicdataDriverArtery.vue

@ -142,7 +142,13 @@ import { columnList } from '@/option/basicdata/basicdataDriverArtery1';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls, setNodeHeight, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@ -609,10 +615,8 @@ export default {
searchReset() {
this.query = {};
for (let i = 0; i < this.columnList.length; i++) {
const item = this.columnList[i];
item.values = '';
}
handleClearTableQuery(this.columnList);
this.onLoad();
},
},

5
src/views/basicdata/team/basicdataTeamGroup.vue

@ -10,7 +10,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-so">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -169,7 +169,7 @@ import { getListUser } from '@/api/distribution/distributionStockup';
import { getDept, getLazyList } from '@/api/system/dept';
import { getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse';
import { getUserDetail } from '@/api/system/user';
import { setNodeHeight } from '@/utils/util';
import { handleClearTableQuery, setNodeHeight } from '@/utils/util';
export default {
data() {
@ -385,6 +385,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit(formName) {

84
src/views/basicdata/team/basicdataTeamStaff.vue

@ -1,12 +1,12 @@
<template>
<basic-container>
<div class="avue-crud">
<el-row v-if="!search" style="padding: 6px 18px">
<el-row v-if="!search" style="padding: 6px 18px">
<!-- 查询模块 -->
<el-form :inline="true" :model="query">
<!-- <el-form-item label="仓库名称:">-->
<!-- <el-input v-model="query.warehouseName" placeholder="请输入仓库名称"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="仓库名称:">-->
<!-- <el-input v-model="query.warehouseName" placeholder="请输入仓库名称"></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="人员名称:">
<el-input v-model="query.name" placeholder="请输入人员名称"></el-input>
</el-form-item>
@ -14,7 +14,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -62,7 +62,7 @@
@size-change="sizeChange"
@current-change="currentChange"
:current-page="page.currentPage"
:page-sizes="[30, 50,80, 120]"
:page-sizes="[30, 50, 80, 120]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
@ -79,7 +79,7 @@
append-to-body
>
<el-form :disabled="view" ref="form" :rules="rules" :model="form" label-width="80px">
<!--<el-form-item label="仓库" prop="warehouseId">
<!--<el-form-item label="仓库" prop="warehouseId">
&lt;!&ndash; <el-input v-model="form.staffId" placeholder="请输入员工表ID"/>&ndash;&gt;
<el-select v-model="form.warehouseId" clearable placeholder="请选择仓库" @change="clickDept($event)" style="width: 80%">
<el-option
@ -92,7 +92,7 @@
</el-form-item>-->
<!-- 表单字段 -->
<!-- <el-form-item label="班组" prop="teamGroupId">
<!-- <el-form-item label="班组" prop="teamGroupId">
&lt;!&ndash; <el-input v-model="form.teamGroupId" placeholder="请输入班组ID"/>&ndash;&gt;
<el-select v-model="form.teamGroupId" clearable placeholder="请选择班组" @change="clickTeamGroup($event,1)" style="width: 80%">
<el-option
@ -105,8 +105,14 @@
</el-form-item>-->
<el-form-item label="人员" prop="staffIds">
<!-- <el-input v-model="form.staffId" placeholder="请输入姓名"/>-->
<el-select v-model="form.staffIds" multiple clearable placeholder="请选择人员" style="width: 80%">
<!-- <el-input v-model="form.staffId" placeholder="请输入姓名"/>-->
<el-select
v-model="form.staffIds"
multiple
clearable
placeholder="请选择人员"
style="width: 80%"
>
<el-option
v-for="item in staffList"
:key="item.id"
@ -138,16 +144,17 @@
</template>
<script>
import { getList, getDetail, add, update, remove } from "@/api/basicdata/basicdataTeamStaff";
import { getDetail as getDetailGroup } from "@/api/basicdata/basicdataTeamGroup";
import option from "@/option/basicdata/basicdataTeamStaff";
import { mapGetters } from "vuex";
import { getList, getDetail, add, update, remove } from '@/api/basicdata/basicdataTeamStaff';
import { getDetail as getDetailGroup } from '@/api/basicdata/basicdataTeamGroup';
import option from '@/option/basicdata/basicdataTeamStaff';
import { mapGetters } from 'vuex';
import { getListUser } from '@/api/distribution/distributionStockup';
import { getUserDetail } from '@/api/system/user';
import { getDept, getLazyList } from '@/api/system/dept';
import { getDeptWarehouse } from '@/api/basicdata/basicdataWarehouse';
import { getTeamGroupList } from '@/api/basicdata/basicdataTeamGroup';
import { getListOwn } from '@/api/system/user';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -250,30 +257,24 @@ export default {
deptId: '',
warehouId: '',
rules: {
warehouseId: [
{ required: true, message: '请选择仓库', trigger: 'change' }
],
teamGroupId: [
{ required: true, message: '请选择班组', trigger: 'change' }
],
staffIds: [
{ required: true, message: '请选择人员', trigger: 'change' }
],
warehouseId: [{ required: true, message: '请选择仓库', trigger: 'change' }],
teamGroupId: [{ required: true, message: '请选择班组', trigger: 'change' }],
staffIds: [{ required: true, message: '请选择人员', trigger: 'change' }],
},
groupEntity:{}
}
groupEntity: {},
};
},
watch:{
watch: {
'$route.query.id': {
handler(newVal, oldVal) {
console.log(newVal, oldVal);
if(!!this.$route.query.id){
if (!!this.$route.query.id) {
this.onLoad(this.page);
}
},
deep: true,
immediate: true
}
immediate: true,
},
},
watch: {
'$route.query.id': {
@ -398,11 +399,11 @@ export default {
this.selectionList = value;
},
//
async clickDept(row){
console.log("进发了部门",row);
if(this.form.warehouId != row){
let id = "";
if(!!this.form.id){
async clickDept(row) {
console.log('进发了部门', row);
if (this.form.warehouId != row) {
let id = '';
if (!!this.form.id) {
id = this.form.id;
}
this.form = {};
@ -455,20 +456,20 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
if (!this.form.id) {
this.form.department = this.groupEntity.department ;
this.form.department = this.groupEntity.department;
this.form.departmentName = this.groupEntity.departmentName;
this.form.teamGroupId = this.$route.query.id;
this.form.teamGroupName = this.groupEntity.groupName;
this.form.warehouseId = this.groupEntity.warehouseId;
this.form.warehouseName = this.groupEntity.warehouseName;
console.log("添加",this.form);
console.log('添加', this.form);
add(this.form).then(() => {
this.box = false;
this.onLoad(this.page);
@ -497,14 +498,13 @@ export default {
this.box = true;
this.getWarehouseList();
},
async getWarehouseList(){
let group = await getDetailGroup(this.$route.query.id);
console.log("_+_+_+_+_+",group.data.data.department);
async getWarehouseList() {
let group = await getDetailGroup(this.$route.query.id);
console.log('_+_+_+_+_+', group.data.data.department);
this.groupEntity = group.data.data;
//
this.staffList = [];
let user = await getListOwn({deptId:this.groupEntity.department});
let user = await getListOwn({ deptId: this.groupEntity.department });
// console.log("",user);
this.staffList = user.data.data;

115
src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocationtt.vue

@ -3,52 +3,52 @@
<div class="avue-crud">
<el-row v-if="!search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" style='width:100%'>
<el-form :inline="true" :model="query" style="width: 100%">
<!-- 查询按钮 -->
<el-form-item class='fr-fo'>
<el-col class='el-sl'>
<el-form-item class="fr-fo">
<el-col class="el-sl">
<div>
<el-form-item label="启用状态:" prop="areaStatus">
<!-- <el-input v-model="form.areaStatus" placeholder="请输入货区状态;1-启用,2-禁用"/>-->
<el-select
v-model="query.enableStatus"
clearable
placeholder="请选择启用状态"
style="width: 88%"
>
<el-option
v-for="item in enableStatus"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
<el-form-item label="启用状态:" prop="areaStatus">
<!-- <el-input v-model="form.areaStatus" placeholder="请输入货区状态;1-启用,2-禁用"/>-->
<el-select
v-model="query.enableStatus"
clearable
placeholder="请选择启用状态"
style="width: 88%"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="货区类型:" prop="areaStatus">
<el-select
v-model="query.areaType"
clearable
placeholder="请选择货区类型"
style="width: 88%"
>
<el-option
v-for="item in areaTypeData"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
<el-option
v-for="item in enableStatus"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="货区类型:" prop="areaStatus">
<el-select
v-model="query.areaType"
clearable
placeholder="请选择货区类型"
style="width: 88%"
>
</el-option>
</el-select>
</el-form-item>
</div>
<div>
<el-button type="primary" icon="el-icon-search" @click="searchChange"
> </el-button
>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
</div>
<el-option
v-for="item in areaTypeData"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictKey"
>
</el-option>
</el-select>
</el-form-item>
</div>
<div>
<el-button type="primary" icon="el-icon-search" @click="searchChange"
> </el-button
>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</div>
</el-col>
</el-form-item>
</el-form>
@ -73,7 +73,7 @@
<el-button type="danger" icon="el-icon-check" @click="handleEnable" plain
> </el-button
>
</div>
</div>
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button icon="el-icon-refresh" @click="searchChange" circle></el-button>
@ -267,7 +267,7 @@ import option from '@/option/basicdata/basicdataGoodsAllocation';
import { mapGetters } from 'vuex';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
import { dateNow } from '@/utils/date';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
@ -593,7 +593,7 @@ export default {
let qr = checkcode.join(',');
console.log(qr);
getPrintTemplate({ids:qr}).then(res => {
getPrintTemplate({ ids: qr }).then(res => {
// this.orderPackageCode = res.data
console.log(res.data);
this.html = '';
@ -657,6 +657,7 @@ export default {
},
searchReset() {
this.query = {};
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
searchChange(params, done) {
@ -698,7 +699,7 @@ export default {
}
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data;
console.log(res,'res================================================================>');
console.log(res, 'res================================================================>');
this.page.total = data.total;
this.data = data.records;
this.loading = false;
@ -713,23 +714,23 @@ export default {
:deep(.no-print) {
margin-right: 0;
}
:deep(.avue-form__row){
margin-left:10px;
max-width:300px!important;
:deep(.avue-form__row) {
margin-left: 10px;
max-width: 300px !important;
}
.avue-form__group--flex{
.avue-form__group--flex {
justify-content: space-between;
}
:deep(.avue-form__row){
margin-left:0;
:deep(.avue-form__row) {
margin-left: 0;
}
:deep(.el-form-item__label){
:deep(.el-form-item__label) {
width: auto !important;
}
:deep(.no-print){
margin-left:auto;
.el-button{
margin-right:0
:deep(.no-print) {
margin-left: auto;
.el-button {
margin-right: 0;
}
}
</style>

5
src/views/basicdata/warehouse/goodsArea/basicdataGoodsArea.vue

@ -42,7 +42,7 @@
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -270,7 +270,7 @@ import { getWarehouseList } from '@/api/basicdata/basicdataWarehouse';
import { getToken } from '@/utils/auth';
import NProgress from 'nprogress';
import { exportBlob } from '@/api/common';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
import { dateNow } from '@/utils/date';
export default {
@ -552,6 +552,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleClose() {

5
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelf.vue

@ -23,7 +23,7 @@
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -445,7 +445,7 @@ import { getTemplateData } from '@/api/basic/basicPrintTemplate';
import { getLodop } from '@/utils/LodopFuncs.js';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
import print from '@/utils/print';
export default {
data() {
@ -1047,6 +1047,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
changeStatus(e, row, index) {

2
src/views/distribution/artery/TripartiteTransfer.vue

@ -68,7 +68,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>

11
src/views/distribution/artery/VehicleArrivalManagement.vue

@ -59,7 +59,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -486,7 +486,13 @@ import dayjs from 'dayjs';
import { mapGetters, useStore } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, deepClone, setNodeHeight, debounce } from '@/utils/util';
import {
downloadXls,
deepClone,
setNodeHeight,
debounce,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/distribution/VehicleArrivalManagement';
import { packageColumnList } from '@/option/distribution/VehicleStowage';
import {
@ -776,6 +782,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.stockupDate = [];
handleClearTableQuery(details.columnList);
details.page.pageNum = 1;
onLoad();
};

11
src/views/distribution/artery/VehicleStowage.vue

@ -50,7 +50,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -431,7 +431,13 @@ import dayjs from 'dayjs';
import { mapGetters } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, setNodeHeight, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { columnList, packageColumnList } from '@/option/distribution/VehicleStowage';
import {
postloadCarsPageList,
@ -755,6 +761,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.stockupDate = [];
handleClearTableQuery(details.columnList);
details.page.pageNum = 1;
initOnload();
};

11
src/views/distribution/artery/abnormalList.vue

@ -69,7 +69,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -164,7 +164,13 @@ import dayjs from 'dayjs';
import { mapGetters } from 'vuex';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, setNodeHeight, getHtmls, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
getHtmls,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/distribution/abnormalList';
import { useRouter } from 'vue-router';
import { ElMessage, ElMessageBox } from 'element-plus';
@ -320,6 +326,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.currentPage = 1;
handleClearTableQuery(details.columnList);
onLoad(details.page);
};

11
src/views/distribution/artery/directGoMarketDetails.vue

@ -34,7 +34,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -344,7 +344,13 @@ import {
} from '@/api/distribution/directGoMarket';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, deepClone, debounce, setNodeHeight } from '@/utils/util';
import {
downloadXls,
deepClone,
debounce,
setNodeHeight,
handleClearTableQuery,
} from '@/utils/util';
import { columnList, detailsColumnList } from '@/option/distribution/directGoMarketDetails';
import { useRouter, useRoute } from 'vue-router';
import type { UploadProps } from 'element-plus';
@ -715,6 +721,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.stockupDate = [];
handleClearTableQuery(details.columnList);
initOnLoad();
};

36
src/views/distribution/artery/truckLoadingDetails.vue

@ -7,7 +7,7 @@
<el-form :inline="true" :model="query" class="header_search">
<el-form-item label="扫码时间:" class="el-times">
<el-date-picker
v-model="stockupDate"
v-model="details.query.createTimeArr"
type="daterange"
unlink-panels
range-separator="至"
@ -20,7 +20,7 @@
<el-form-item label="卸车时间:" class="el-times">
<el-date-picker
v-model="stockupDate"
v-model="details.query.unloadTimeArr"
type="daterange"
unlink-panels
range-separator="至"
@ -34,7 +34,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -218,7 +218,15 @@ import {
import { getShowAdvancePackgeCode } from '@/api/waybill/orderPackageListDetails';
/** 获取字典 */
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls, getHtmls, debounce, setNodeHeight, deepClone } from '@/utils/util';
import {
downloadXls,
getHtmls,
debounce,
setNodeHeight,
deepClone,
handleClearTableQuery,
getObjType,
} from '@/utils/util';
import { detailsColumnList } from '@/option/distribution/TripartiteTransfer';
import { useRouter, useRoute } from 'vue-router';
import print from '@/utils/print';
@ -472,8 +480,25 @@ const onLoad = debounce(async (params = {}) => {
details.query.loadId = details.pageInfo.loadId;
const submitData = { ...details.page, ...details.query, ...params };
//
if (getObjType(submitData.createTimeArr) === 'array') {
submitData.createTimeStartStr = submitData.createTimeArr[0];
submitData.createTimeEndStr = submitData.createTimeArr[1];
}
//
if (getObjType(submitData.unloadTimeArr) === 'array') {
submitData.unloadTimeStartStr = submitData.unloadTimeArr[0];
submitData.unloadTimeEndStr = submitData.unloadTimeArr[1];
}
delete submitData.createTimeArr;
delete submitData.unloadTimeArr;
//
const res = await postLoadingDetail({ ...details.page, ...details.query, ...params });
const res = await postLoadingDetail(submitData);
const { code, data } = res.data;
if (code !== 200) return;
details.data = data.records;
@ -505,6 +530,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.pageNum = 1;
handleClearTableQuery(details.detailsColumnList);
onLoad();
};

5
src/views/distribution/checkInventoryTask/createTaskt.vue

@ -18,7 +18,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -172,6 +172,8 @@ import {
import { mapGetters } from 'vuex';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { handleClearTableQuery } from '@/utils/util';
import { detail } from '@/api/flow/flow';
export default {
data() {
@ -596,6 +598,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},

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

@ -9,10 +9,13 @@
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input>
</el-form-item>
<el-form-item label="配送日期:" class="el-times">
<el-date-picker v-model="query.taskTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD" placeholder="选择日期">
<el-date-picker
v-model="query.taskTime"
type="datetime"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<!-- <el-form-item label="配送类型:">-->
@ -71,7 +74,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -151,7 +154,7 @@
<el-text size="small" @click="editmap(slotProps.scope)"> </el-text>
<el-text
size="small"
v-if="!slotProps.scope.row.signingNumber && !slotProps.scope.row.scannedNumber"
v-if="!slotProps.scope.row.signingNumber && !slotProps.scope.row.scannedNumber"
@click="CancelDelivery(slotProps.scope)"
>取消配送</el-text
>
@ -319,7 +322,7 @@ import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import print from '@/utils/print';
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading';
import { downloadXls, getObjType } from '@/utils/util';
import { downloadXls, getObjType, handleClearTableQuery } from '@/utils/util';
import { ElMessage, ElMessageBox } from 'element-plus';
import * as XLSX from 'xlsx';
export default {
@ -811,15 +814,15 @@ export default {
getDriverList().then(res => {
const data = res.data.data;
let po = [];
if(data && data.length){
if (data && data.length) {
data.forEach(item => {
let a = {
dictKey: item.id,
dictValue: item.name,
};
po.push(a);
});
}
let a = {
dictKey: item.id,
dictValue: item.name,
};
po.push(a);
});
}
this.driverData = po;
console.log('===============>', res.data.data);
@ -877,12 +880,12 @@ export default {
},
//
CancelDelivery(scope) {
if(!JSON.parse(localStorage.getItem('my_data'))){
if (!JSON.parse(localStorage.getItem('my_data'))) {
ElMessage({
message: '请选择仓库!',
type: 'warning',
})
return
message: '请选择仓库!',
type: 'warning',
});
return;
}
console.log(scope, 'scope');
@ -1099,6 +1102,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -1128,12 +1132,12 @@ export default {
this.box = true;
},
handleEdit(scope) {
if(!JSON.parse(localStorage.getItem('my_data'))){
if (!JSON.parse(localStorage.getItem('my_data'))) {
ElMessage({
message: '请选择仓库!',
type: 'warning',
})
return
message: '请选择仓库!',
type: 'warning',
});
return;
}
const { row } = scope;

9
src/views/distribution/deliverylist/distributionDeliveryListmar.vue

@ -55,7 +55,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -209,7 +209,7 @@ import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import print from '@/utils/print';
import { getBillLadingExport } from '@/api/distribution/distrilbutionBillLading';
import { downloadXls, getWinHeight, setNodeHeight } from '@/utils/util';
import { downloadXls, getWinHeight, handleClearTableQuery, setNodeHeight } from '@/utils/util';
export default {
data() {
@ -1192,6 +1192,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -1333,8 +1334,8 @@ export default {
// }
// }
// }
this.page.total = data.total ||0;
this.data = data.records ||[];
this.page.total = data.total || 0;
this.data = data.records || [];
this.loading = false;
this.selectionClear();
});

28
src/views/distribution/inventory/BookingNote.vue

@ -933,8 +933,6 @@
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
</tablecmt>
</el-tab-pane>
@ -948,9 +946,6 @@
:loading="loadingObj.stowageLoading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
</tablecmt>
</el-tab-pane>
@ -964,9 +959,6 @@
:loading="loadingObj.stowageLoading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
</tablecmt>
</el-tab-pane>
@ -997,9 +989,6 @@
:loading="loadingObj.stowageLoading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
</tablecmt>
</el-tab-pane>
@ -1013,9 +1002,6 @@
:loading="loadingObj.stowageLoading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionChange"
>
</tablecmt>
</el-tab-pane>
@ -1548,6 +1534,12 @@ const handleFindInfo = async type => {
{ label: '审核运单', value: 999 },
];
//
const _checkStatus = [
{ label: '待审核', value: 0 },
{ label: '审核通过', value: 1 },
];
for (let i = 0; i < details.data.length; i++) {
const value = details.data[i];
for (let i = 0; i < _batchStatus.length; i++) {
@ -1557,6 +1549,14 @@ const handleFindInfo = async type => {
value.trackTypeName = item.label;
break;
}
for (let i = 0; i < _checkStatus.length; i++) {
const item = _checkStatus[i];
if (item.value === Number(value.checkStatus)) continue;
value.checkStatusName = item.label;
break;
}
}
} catch (error) {
console.log('error :>> ', error);

10
src/views/distribution/inventory/addArteryDistrilbutionBillLadingList.vue

@ -269,6 +269,8 @@
@click="
() => {
oldFormNode.resetFields();
handleClearTableQuery(details.columnNewList);
handleOldSearch();
}
"
@ -424,7 +426,13 @@ import { getToken } from '@/utils/auth';
import dayjs from 'dayjs';
import { ElMessage } from 'element-plus';
import type { FormInstance, FormRules } from 'element-plus';
import { downloadXls, setNodeHeight, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import func from '@/utils/func';
import { computed, ref, reactive, onMounted, nextTick, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';

3
src/views/distribution/inventory/arteryDistrilbutionBillLadingList.vue

@ -24,7 +24,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -575,6 +575,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.pageNum = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
/** 表单提交 */

5
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -33,7 +33,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -425,7 +425,7 @@ import dayjs from 'dayjs';
import { getUser } from '@/api/system/user';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls, getObjType } from '@/utils/util';
import { downloadXls, getObjType, handleClearTableQuery } from '@/utils/util';
import { columnList } from '@/option/distribution/distributionStockArticleSelf';
import { deepClone, setNodeHeight, hanleTextLineFeed } from '@/utils/util.js';
const _newCol = deepClone(columnList);
@ -1137,6 +1137,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

5
src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue

@ -27,7 +27,7 @@
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -425,7 +425,7 @@ import option from '@/option/distribution/distributionStockArticle';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { downloadXls, setNodeHeight, getObjType } from '@/utils/util';
import { downloadXls, setNodeHeight, getObjType, handleClearTableQuery } from '@/utils/util';
import { columnList } from '@/option/distribution/distributionStockArticleSelf';
import { deepClone, hanleTextLineFeed } from '@/utils/util.js';
import { ElMessage } from 'element-plus';
@ -1075,6 +1075,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

11
src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue

@ -26,7 +26,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -415,7 +415,13 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { columnList } from '@/option/distribution/distributionStockArticleSelf';
import { deepClone, setNodeHeight, downloadXls, getObjType } from '@/utils/util.js';
import {
deepClone,
setNodeHeight,
downloadXls,
getObjType,
handleClearTableQuery,
} from '@/utils/util.js';
const _newCol = deepClone(columnList);
export default {
@ -1050,6 +1056,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

11
src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

@ -27,7 +27,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -556,7 +556,13 @@ import { getDictionaryBiz } from '@/api/system/dict';
import { getListCallDelivery } from '@/api/distribution/distrilbutionCallDelivery';
import dayjs from 'dayjs';
import { getListMaterial } from '@/api/basic/basicMaterial';
import { downloadXls, setNodeHeight, deepClone, getObjType } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
deepClone,
getObjType,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/distribution/distributionStockArticleSelf';
import { ElMessage } from 'element-plus';
const _newCol = deepClone(columnList);
@ -1393,6 +1399,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

4
src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue

@ -50,7 +50,7 @@
</div>
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -403,6 +403,7 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { getUser } from '@/api/system/user';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -1453,6 +1454,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

80
src/views/distribution/inventory/distrilbutionBillLadingList.vue

@ -1,36 +1,38 @@
<template>
<basic-container v-loading="loadingObj.pageLoading">
<div class="avue-crud">
<el-row v-if="!search">
<div v-h5uShow="!search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class="el-fr-d">
<div class="fo-fl">
<el-form-item label="服务号:">
<el-input v-model="query.serviceNumber" placeholder="请输入服务号" clearable></el-input>
</el-form-item>
<el-form-item label="入库时间:" class="el-times">
<!-- <el-input v-model="query.stockupArea" placeholder="请输入备货区"></el-input>-->
<el-date-picker
v-model="stockupDate"
type="datetimerange"
unlink-panels
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
:shortcuts="shortcuts"
/>
</el-form-item>
<el-form-item label="批次号" class="el-times">
<el-input v-model="query.pickupBatchs" placeholder="多个参数用英文逗号分隔" clearable></el-input>
</el-form-item>
</div>
<el-form :inline="true" :model="query" class="header_search">
<el-form-item label="服务号:">
<el-input v-model="query.serviceNumber" placeholder="请输入服务号" clearable></el-input>
</el-form-item>
<el-form-item label="入库时间:" class="el-times">
<!-- <el-input v-model="query.stockupArea" placeholder="请输入备货区"></el-input>-->
<el-date-picker
v-model="stockupDate"
type="datetimerange"
unlink-panels
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
:shortcuts="shortcuts"
/>
</el-form-item>
<el-form-item label="批次号" class="el-times">
<el-input
v-model="query.pickupBatchs"
placeholder="多个参数用英文逗号分隔"
clearable
></el-input>
</el-form-item>
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
</div>
<el-row>
<el-col :span="4">
<span style="margin-bottom: 2%; font-size: 16px">
@ -245,7 +247,7 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { getToken } from '@/utils/auth';
import dayjs from 'dayjs';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
import { ElMessage, ElMessageBox } from 'element-plus';
import MyPrint from '@/components/MyPrint/MyPrint.vue';
export default {
@ -305,7 +307,7 @@ export default {
{
prop: 'pickUpTime',
label: '提货时间',
type: 2,
type: 1,
values: '',
width: '140',
checkarr: [],
@ -480,17 +482,6 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'customerTelephone',
label: '提货手机',
type: 2,
values: '',
width: '140',
checkarr: [],
fixed: false,
sortable: false,
},
{
prop: 'pickUpPlate',
label: '提货车牌',
@ -806,19 +797,20 @@ export default {
searchHide() {
this.search = !this.search;
},
searchChange() {
if(this.query.pickupBatchs){
this.query.pickupBatchs= this.query.pickupBatchs.replace(/,/g, ",");
}
if(!this.query.pickupBatchs){
delete this.query.pickupBatchs
searchChange() {
if (this.query.pickupBatchs) {
this.query.pickupBatchs = this.query.pickupBatchs.replace(/,/g, ',');
}
if (!this.query.pickupBatchs) {
delete this.query.pickupBatchs;
}
this.onLoad(this.page);
},
searchReset() {
this.query = {};
this.stockupDate = [];
handleClearTableQuery(this.columnList);
this.page.currentPage = 1;
this.onLoad(this.page);
},

5
src/views/distribution/reservation/reservation.vue

@ -28,7 +28,7 @@
</div>
<el-form-item class="fo-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -352,7 +352,7 @@ import { getListTeam } from '@/api/basicdata/basicdataTeamGroup';
import { getStockUpArea, stockUp } from '@/api/basicdata/basicdataGoodsArea';
import dayjs from 'dayjs';
import print from '@/utils/print';
import { downloadXls, setNodeHeight, getWinHeight } from '@/utils/util';
import { downloadXls, setNodeHeight, getWinHeight, handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -1261,6 +1261,7 @@ export default {
this.queryA = {};
this.queryB = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleConfirmReservations() {

22
src/views/distribution/reservation/reservationDiscuss.vue

@ -7,14 +7,14 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
<el-row>
<div class="avue-crud__header">
<div class="avue-crud__header">
<!-- 头部左侧按钮模块 -->
<div class="avue-crud__left" >
<div class="avue-crud__left">
<el-button type="primary" icon="el-icon-plus" @click="handleAdd">添加预约</el-button>
<el-button
v-if="this.query.reservationStatus === '1'"
@ -24,13 +24,13 @@
plain
>批量确认
</el-button>
<el-button-group>
<el-button type="primary" icon="el-icon-warning" @click="aaa">待确认</el-button>
<el-button type="primary" icon="el-icon-circle-check" @click="bbb"
>已确认<i class="el-icon-arrow-right el-icon--right"></i
></el-button>
<!-- <el-button type="primary" icon="el-icon-view" @click="ccc">全部</el-button>-->
</el-button-group>
<el-button-group>
<el-button type="primary" icon="el-icon-warning" @click="aaa">待确认</el-button>
<el-button type="primary" icon="el-icon-circle-check" @click="bbb"
>已确认<i class="el-icon-arrow-right el-icon--right"></i
></el-button>
<!-- <el-button type="primary" icon="el-icon-view" @click="ccc">全部</el-button>-->
</el-button-group>
<el-button
v-if="this.query.reservationStatus === '2'"
type="danger"
@ -231,6 +231,7 @@ import {
import option from '@/option/distribution/distributionReservation';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -679,6 +680,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleConfirmReservations() {

1061
src/views/distribution/reservation/reservationMarket.vue

File diff suppressed because it is too large Load Diff

1029
src/views/distribution/reservation/reservationSelf.vue

File diff suppressed because it is too large Load Diff

1738
src/views/distribution/signdetail/distributionSigndetailCopy.vue

File diff suppressed because it is too large Load Diff

5
src/views/distribution/signfor/distributionSignfor.vue

@ -105,7 +105,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -257,7 +257,7 @@ import dayjs from 'dayjs';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import { handlePicture } from '@/api/distribution/distributionSignfor';
// import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
export default {
data() {
return {
@ -985,6 +985,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

5
src/views/distribution/signfor/distributionSignfortreat.vue

@ -64,7 +64,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -501,7 +501,7 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { getDeliveryListExport } from '@/api/distribution/distributionDeliveryList';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
import { getToken } from '@/utils/auth';
import { ElMessage, ElMessageBox } from 'element-plus';
export default {
@ -2243,6 +2243,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

11
src/views/distribution/stockup/distributionStockupDiscuss.vue

@ -45,7 +45,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -337,7 +337,7 @@ import { mapGetters } from 'vuex';
import { getListTeam } from '@/api/basicdata/basicdataTeamGroup';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
return {
@ -976,6 +976,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -1086,9 +1087,9 @@ export default {
return;
}
console.log('row-------->', row);
let data={
stockUpIds:row.ids,
}
let data = {
stockUpIds: row.ids,
};
$_exportStockUpDetail(data).then(res => {
console.log(res.data);
downloadXls(res.data, '备货清单.xlsx');

5
src/views/distribution/stockup/distributionStockupMarket.vue

@ -32,7 +32,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -324,7 +324,7 @@ import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { getRoleTree } from '@/api/system/role';
import { getPostList } from '@/api/system/post';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
return {
@ -970,6 +970,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

11
src/views/distribution/stockup/distributionStockupSelf.vue

@ -27,7 +27,7 @@
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -85,7 +85,7 @@
</template>
</tablecmt>
</el-row>
<el-row class='el-fy'>
<el-row class="el-fy">
<div class="avue-crud__pagination flex-c-sb" style="width: 100%">
<div style="font-size: 14px">勾选数量: {{ selectionList.length }}</div>
<!-- 分页模块 -->
@ -313,7 +313,7 @@ import { mapGetters } from 'vuex';
import { getListTeam } from '@/api/basicdata/basicdataTeamGroup';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
return {
@ -937,6 +937,7 @@ export default {
this.query = {};
this.stockupDate = [];
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -1000,7 +1001,7 @@ export default {
query: {
id: row.row.id,
name: '备货明细',
type:'3'
type: '3',
},
});
},
@ -1143,6 +1144,6 @@ export default {
.el-fy {
flex: 1;
display: flex;
align-items: flex-end;
align-items: flex-end;
}
</style>

6
src/views/mail/inventory/list.vue

@ -18,7 +18,7 @@
<!-- 查询按钮 -->
<el-form-item class='el-btn'>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -235,9 +235,10 @@ import option from "@/option/distribution/distributionStockList";
import { mapGetters } from "vuex";
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
import { detail } from '@/api/flow/flow';
export default {
data () {
@ -844,6 +845,7 @@ export default {
searchReset () {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(details.columnList)
this.onLoad(this.page);
},
//

4
src/views/mail/order/list.vue

@ -34,7 +34,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -363,6 +363,7 @@ import option from '@/option/distribution/distributionStockArticle';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -1226,6 +1227,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

5
src/views/mail/reservation/list.vue

@ -28,7 +28,7 @@
</div>
<el-form-item class="fo-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -286,7 +286,7 @@ import { getListTeam } from '@/api/basicdata/basicdataTeamGroup';
import { getStockUpArea, stockUp } from '@/api/basicdata/basicdataGoodsArea';
import dayjs from 'dayjs';
import print from '@/utils/print';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -1167,6 +1167,7 @@ export default {
this.queryA = {};
this.queryB = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleConfirmReservations() {

228
src/views/mail/signfor/list.vue

@ -45,65 +45,69 @@
<el-form-item label="配送时间:">
<el-date-picker
v-model="query.taskTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions">
v-model="query.taskTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions"
>
</el-date-picker>
</el-form-item>
<el-form-item label="装车时间:">
<el-date-picker
v-model="query.loadingTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions">
v-model="query.loadingTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions"
>
</el-date-picker>
</el-form-item>
<el-form-item label="司机签收时间:">
<el-date-picker
v-model="query.sjsigningTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions">
v-model="query.sjsigningTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions"
>
</el-date-picker>
</el-form-item>
<el-form-item label="文员审核时间:">
<el-date-picker
v-model="query.signingTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions">
v-model="query.signingTimeSection"
type="datetimerange"
align="right"
unlink-panels
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
:picker-options="pickerOptions"
>
</el-date-picker>
</el-form-item>
</div>
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -115,9 +119,9 @@
<el-button type="danger" icon="el-icon-download" @click="handleExportInfo" plain
>导出
</el-button>
<!-- v-loading.fullscreen.lock="fullscreenLoading"-->
<!-- v-loading.fullscreen.lock="fullscreenLoading"-->
<el-button type="danger" icon="el-icon-picture" @click="handlePictureInfo" plain
>导出图片
>导出图片
</el-button>
</div>
<!-- 头部右侧按钮模块 -->
@ -145,7 +149,7 @@
</template>
</tablecmt>
</el-row>
<el-row class='el-fy'>
<el-row class="el-fy">
<div class="avue-crud__pagination flex-c-sb" style="width: 100%">
<div style="font-size: 14px">勾选数量: {{ selectionList.length }}</div>
<!-- 分页模块 -->
@ -217,28 +221,18 @@
</template>
</el-dialog>
<el-dialog
title="提示"
v-model="dialogVisible"
width="15%"
:before-close="handleClose">
<el-dialog title="提示" v-model="dialogVisible" width="15%" :before-close="handleClose">
<div align="center">
<el-progress type="circle" :percentage="fileSize" status="success"></el-progress>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="dialogVisible = false"> </el-button>
</span>
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="dialogVisible = false"> </el-button>
</span>
</el-dialog>
</div>
</basic-container>
<edittablehead
@setcolum="setnewcolum"
@closce="showdrawer"
@ -264,7 +258,7 @@ import dayjs from 'dayjs';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
import { handlePicture } from '@/api/distribution/distributionSignfor';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
return {
@ -610,7 +604,7 @@ export default {
signingStatusData: [],
//
deliveryTypeData: [],
fullscreenLoading:false,
fullscreenLoading: false,
//
orderSourceData: [],
//
@ -628,7 +622,7 @@ export default {
//
data: [],
driverData: [],
fileSize:0,
fileSize: 0,
};
},
mounted() {
@ -744,59 +738,56 @@ export default {
// }
// const h = this.$createElement;
console.log("this.selectionList>>>>>>>>>>",this.selectionList);
if (this.selectionList.length < 1){
console.log('this.selectionList>>>>>>>>>>', this.selectionList);
if (this.selectionList.length < 1) {
this.$message({
type: 'warning',
message: '请选择签收记录!',
});
}
const idList= this.selectionList.map(item=>{
console.log('>>>>>>>>>',item);
return{id:item.id,reservationCode:item.reservationCode,client:item.consignee}
})
const idList = this.selectionList.map(item => {
console.log('>>>>>>>>>', item);
return { id: item.id, reservationCode: item.reservationCode, client: item.consignee };
});
const _arr = [];
console.log(idList);
if (idList.length > 0){
console.log(idList);
if (idList.length > 0) {
// this.fullscreenLoading = true;
// this.dialogVisible = true;
idList.forEach(item=>{
return _arr.push(handlePicture(item.id));
})
idList.forEach(item => {
return _arr.push(handlePicture(item.id));
});
console.log('arr>>>>>>>>>>>>>>>>>>>>',_arr);
console.log('arr>>>>>>>>>>>>>>>>>>>>', _arr);
function delayedTimer() {
console.log('Delayed timer executed!');
}
const timerId = setTimeout(delayedTimer, 500);
Promise.all(_arr).then((response)=>{
console.log('response>>>>>>>>>>>>>>>>>>>>>',response);
response.forEach((res, index) =>{
console.log('res>>>>>>>>>>>>>>>>>>>>>',res.data);
if (res.data.size > 0){
Promise.all(_arr).then(response => {
console.log('response>>>>>>>>>>>>>>>>>>>>>', response);
response.forEach((res, index) => {
console.log('res>>>>>>>>>>>>>>>>>>>>>', res.data);
if (res.data.size > 0) {
const _item = idList[index];
const blob = new Blob([res.data], {type: 'application/zip'});
let a = document.createElement("a");
const blob = new Blob([res.data], { type: 'application/zip' });
let a = document.createElement('a');
a.href = window.URL.createObjectURL(blob);
// a.href = 'http://192.168.10.25:2888/D:/Test';
a.download = _item.client +'-'+_item.reservationCode +".zip";
a.download = _item.client + '-' + _item.reservationCode + '.zip';
// a.download = 'aaa' + ".zip";
a.style.display = "none";
a.style.display = 'none';
document.body.appendChild(a);
a.click(); // aahref
a.remove();
}
})
for (let i = 0; i < 100; i++) {
this.fileSize = i;
}
// this.dialogVisible = false;
});
for (let i = 0; i < 100; i++) {
this.fileSize = i;
}
// this.dialogVisible = false;
setTimeout(() => {
clearTimeout(timerId);
console.log('延迟执行完成');
@ -804,18 +795,14 @@ export default {
this.$notify({
title: '提示',
message: ('i', { style: 'color: teal'}, '开始下载...')
message: ('i', { style: 'color: teal' }, '开始下载...'),
});
}, 3000);
})
});
// 3
}
// row.signingStatus = '2';
// row = { ...row, ...this.query };
// // console.log("<><><>>",ids);
@ -961,6 +948,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -1066,35 +1054,37 @@ export default {
onLoad(page, params = {}) {
this.loading = true;
this.query.signingStatus = '2';
getClientPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
// eslint-disable-next-line no-empty
for (let i = 0; i < data.records.length; i++) {
getClientPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(
res => {
const data = res.data.data;
// eslint-disable-next-line no-empty
for (let j = 0; j < this.deliveryTypeData.length; j++) {
for (let i = 0; i < data.records.length; i++) {
// eslint-disable-next-line no-empty
if (data.records[i].deliveryType == this.deliveryTypeData[j].dictKey) {
data.records[i].deliveryType = this.deliveryTypeData[j].dictValue;
for (let j = 0; j < this.deliveryTypeData.length; j++) {
// eslint-disable-next-line no-empty
if (data.records[i].deliveryType == this.deliveryTypeData[j].dictKey) {
data.records[i].deliveryType = this.deliveryTypeData[j].dictValue;
}
}
}
// for (let j = 0; j < this.orderSourceData.length; j++) {
// // eslint-disable-next-line no-empty
// if (data.records[i].orderSource == this.orderSourceData[j].dictKey) {
// data.records[i].orderSource = this.orderSourceData[j].dictValue;
// }
// }
for (let j = 0; j < this.signingStatusData.length; j++) {
// eslint-disable-next-line no-empty
if (data.records[i].driverSigning == this.signingStatusData[j].dictKey) {
data.records[i].driverSigning = this.signingStatusData[j].dictValue;
// for (let j = 0; j < this.orderSourceData.length; j++) {
// // eslint-disable-next-line no-empty
// if (data.records[i].orderSource == this.orderSourceData[j].dictKey) {
// data.records[i].orderSource = this.orderSourceData[j].dictValue;
// }
// }
for (let j = 0; j < this.signingStatusData.length; j++) {
// eslint-disable-next-line no-empty
if (data.records[i].driverSigning == this.signingStatusData[j].dictKey) {
data.records[i].driverSigning = this.signingStatusData[j].dictValue;
}
}
}
this.page.total = data.total;
this.data = data.records;
this.loading = false;
// this.selectionClear();
}
this.page.total = data.total;
this.data = data.records;
this.loading = false;
// this.selectionClear();
});
);
},
},
};

11
src/views/reportforms/Inventory.vue

@ -80,7 +80,6 @@
/>
</el-form-item>
</div>
</el-form>
</el-row>
@ -96,7 +95,7 @@
<!-- 头部右侧按钮模块 -->
<div class="avue-crud__right">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
<el-button icon="el-icon-refresh" @click="searchChangeS" circle></el-button>
<el-button icon="Operation" @click="showdrawer(true)" circle></el-button>
<el-button icon="Search" @click="searchHide" circle></el-button>
@ -168,12 +167,12 @@ import {
$_getMyWarehouseList,
} from '@/api/reportforms/index.js';
import { ElMessageBox } from 'element-plus';
import { downloadXls,deepClone } from '@/utils/util';
import { downloadXls, deepClone } from '@/utils/util';
import functions from '@/utils/functions.js';
import dayjs from 'dayjs';
const queryCarn = ref({}); //
const TopQuery = ref({
warehouseNameRange:[]
warehouseNameRange: [],
});
const warehouseList = ref([]); //
const DeliveryType = ref([
@ -418,7 +417,7 @@ const searchReset = () => {
TopQuery.value.warehouseNameRange = [];
queryCarn.value = {};
details.query = {};
columnList.forEach(item => {
columnList.forEach(item => {
item.values = '';
});
details.page.total = 0;
@ -499,7 +498,7 @@ const exportReport = () => {
details.loadingObj.list = true;
let data = {
...details.query,
...queryCarn.value
...queryCarn.value,
};
$_exportInventory(data)
.then(res => {

9
src/views/reportforms/InventoryOutbound.vue

@ -92,7 +92,6 @@
/>
</el-form-item>
</div>
</el-form>
</el-row>
@ -173,7 +172,7 @@
import { ref, reactive, toRefs, computed, onMounted, nextTick, watch } from 'vue';
import { columnList } from '@/option/reportforms/InventoryOutbound.js';
import { getDictionaryBiz } from '@/api/system/dict'; //
import { processRowProperty, setNodeHeight,deepClone } from '@/utils/util';
import { processRowProperty, setNodeHeight, deepClone } from '@/utils/util';
import { $_getreport, $_exportOutStocks, $_getMyWarehouseList } from '@/api/reportforms/index.js';
import { ElMessageBox } from 'element-plus';
import { downloadXls } from '@/utils/util';
@ -181,8 +180,8 @@ import functions from '@/utils/functions.js';
import dayjs from 'dayjs';
const queryCarn = ref({}); //
const TopQuery = ref({
warehouseNameRange:[],
time:[]
warehouseNameRange: [],
time: [],
});
const warehouseList = ref([]); //
const DeliveryType = ref([
@ -518,7 +517,7 @@ const exportReport = () => {
details.loadingObj.list = true;
let data = {
...details.query,
...queryCarn.value
...queryCarn.value,
};
$_exportOutStocks(data)
.then(res => {

94
src/views/system/param.vue

@ -1,19 +1,19 @@
<template>
<basic-container>
<div class="avue-crud">
<el-row v-if="!search">
<el-row v-if="!search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class='fr-fo'>
<el-form :inline="true" :model="query" class="fr-fo">
<div>
<el-form-item label="参数名:">
<el-input v-model="query.paramName" placeholder="请输入参数名"></el-input>
</el-form-item>
<el-form-item label="参数键:">
<el-input v-model="query.paramKey" placeholder="请输入参数键"></el-input>
</el-form-item>
</div>
<el-form-item label="参数名:">
<el-input v-model="query.paramName" placeholder="请输入参数名"></el-input>
</el-form-item>
<el-form-item label="参数键:">
<el-input v-model="query.paramKey" placeholder="请输入参数键"></el-input>
</el-form-item>
</div>
<!-- 查询按钮 -->
<el-form-item class='el-btn'>
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
</el-form-item>
@ -60,47 +60,47 @@
>
<template #default="slotProps">
<el-text
v-if="this.permissionList.viewBtn"
type="primary"
text
icon="el-icon-view"
@click="handleView(slotProps.scope.row)"
>查看
</el-text>
v-if="this.permissionList.viewBtn"
type="primary"
text
icon="el-icon-view"
@click="handleView(slotProps.scope.row)"
>查看
</el-text>
<el-text
v-if="this.permissionList.editBtn"
type="primary"
text
icon="el-icon-edit"
@click="handleEdit(slotProps.scope.row)"
>编辑
</el-text>
v-if="this.permissionList.editBtn"
type="primary"
text
icon="el-icon-edit"
@click="handleEdit(slotProps.scope.row)"
>编辑
</el-text>
<el-text
v-if="this.permissionList.delBtn"
type="primary"
text
icon="el-icon-delete"
@click="rowDel(slotProps.scope.row)"
>删除
</el-text>
v-if="this.permissionList.delBtn"
type="primary"
text
icon="el-icon-delete"
@click="rowDel(slotProps.scope.row)"
>删除
</el-text>
</template>
</tablecmt>
</el-row>
<el-row>
<div class="avue-crud__pagination flex-c-sb" style="width:100%;">
<div style="font-size: 14px;">
勾选数量: {{ selectionList.length }}
</div>
<div class="avue-crud__pagination flex-c-sb" style="width: 100%">
<div style="font-size: 14px">勾选数量: {{ selectionList.length }}</div>
<!-- 分页模块 -->
<el-pagination align="right"
<el-pagination
align="right"
background
@size-change="sizeChange"
@current-change="currentChange"
:current-page="page.currentPage"
:page-sizes="[30, 50,80, 120]"
:page-sizes="[30, 50, 80, 120]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total">
:total="page.total"
>
</el-pagination>
</div>
</el-row>
@ -143,6 +143,7 @@
<script>
import { getList, getDetail, add, update, remove } from '@/api/system/param';
import { handleClearTableQuery } from '@/utils/util';
import { mapGetters } from 'vuex';
export default {
@ -180,7 +181,7 @@ export default {
sortable: true,
head: false,
},
{
prop: 'paramValue',
label: '参数值',
@ -300,6 +301,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -415,13 +417,13 @@ export default {
},
};
</script>
<style scoped lang='scss'>
.fr-fo{
width: 100%;
display: flex;
justify-content: space-between;
<style scoped lang="scss">
.fr-fo {
width: 100%;
display: flex;
justify-content: space-between;
}
.el-btn{
margin-right:0;
.el-btn {
margin-right: 0;
}
</style>

103
src/views/system/pdaversion/pdaversionManage.vue

@ -3,11 +3,11 @@
<div class="avue-crud">
<el-row v-if="!search">
<!-- 查询模块 -->
<el-form :inline="true" :model="query" class='fr-fo'>
<el-form :inline="true" :model="query" class="fr-fo">
<!-- 查询按钮 -->
<el-form-item class='el-btn'>
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -128,7 +128,7 @@
/>
</el-select>
</el-form-item>
<el-form-item label="是否无感更新" prop="noSensation">
<el-select v-model="form.noSensation1" class="m-2" placeholder="请选择" size="large">
<el-option
@ -181,6 +181,7 @@ import { getList, getDetail, add, update, remove, tenantpage } from '@/api/syste
import option from '@/option/system/pdaversionManage';
import { mapGetters } from 'vuex';
import { getToken } from '@/utils/auth';
import { handleClearTableQuery } from '@/utils/util';
export default {
data() {
@ -224,9 +225,9 @@ export default {
values: '',
width: '130',
checkarr: [
{value:'1',label:'开发版本'},
{value:'2',label:'测试版本'},
{value:'3',label:'正式版本'},
{ value: '1', label: '开发版本' },
{ value: '2', label: '测试版本' },
{ value: '3', label: '正式版本' },
],
fixed: false,
sortable: true,
@ -247,7 +248,7 @@ export default {
prop: 'versionName',
label: '包链接',
type: 9,
downprop:'link',
downprop: 'link',
values: '',
width: '130',
checkarr: [],
@ -262,8 +263,8 @@ export default {
values: '',
width: '130',
checkarr: [
{value:'1',label:'否'},
{value:'2',label:'是'},
{ value: '1', label: '否' },
{ value: '2', label: '是' },
],
fixed: false,
sortable: true,
@ -276,8 +277,8 @@ export default {
values: '',
width: '130',
checkarr: [
{value:'1',label:'否'},
{value:'2',label:'是'},
{ value: '1', label: '否' },
{ value: '2', label: '是' },
],
fixed: false,
sortable: true,
@ -290,8 +291,8 @@ export default {
values: '',
width: '130',
checkarr: [
{value:'1',label:'整包更新'},
{value:'2',label:'补丁更新'},
{ value: '1', label: '整包更新' },
{ value: '2', label: '补丁更新' },
],
fixed: false,
sortable: true,
@ -433,6 +434,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {
@ -442,7 +444,12 @@ export default {
this.form.newTypes = this.form.link.indexOf('wgt') == -1 ? '1' : '2';
this.form.isUpdates = this.form.isUpdates1 == '否' ? '1' : '2';
this.form.noSensation = this.form.noSensation1 == '否' ? '1' : '2';
this.form.versionType=this.form.versionType1=='开发版本'?'1':this.form.versionType1=='测试版本'?'2':'3'
this.form.versionType =
this.form.versionType1 == '开发版本'
? '1'
: this.form.versionType1 == '测试版本'
? '2'
: '3';
add(this.form).then(() => {
this.box = false;
this.onLoad(this.page);
@ -456,7 +463,12 @@ export default {
this.form.versionCode = this.form.versionName.split('.').join('');
this.form.isUpdates = this.form.isUpdates1 == '否' ? '1' : '2';
this.form.noSensation = this.form.noSensation1 == '否' ? '1' : '2';
this.form.versionType=this.form.versionType1=='开发版本'?'1':this.form.versionType1=='测试版本'?'2':'3'
this.form.versionType =
this.form.versionType1 == '开发版本'
? '1'
: this.form.versionType1 == '测试版本'
? '2'
: '3';
update(this.form).then(() => {
this.box = false;
this.onLoad(this.page);
@ -485,12 +497,17 @@ export default {
this.form = res.data.data;
this.form.isUpdates1 = res.data.data.isUpdates == '1' ? '否' : '是';
this.form.noSensation1 = res.data.data.noSensation == '1' ? '否' : '是';
this.form.versionType1=this.form.versionType=='1'?'开发版本':this.form.versionType=='2'?'测试版本':'正式版本'
this.form.versionType1 =
this.form.versionType == '1'
? '开发版本'
: this.form.versionType == '2'
? '测试版本'
: '正式版本';
this.form['filelink'] = [res.data.data.link];
this.form.tenantIds= []
res.data.data.tenantList.map(item=>{
this.form.tenantIds.push(item.id)
})
this.form.tenantIds = [];
res.data.data.tenantList.map(item => {
this.form.tenantIds.push(item.id);
});
});
},
handleView(row) {
@ -501,13 +518,17 @@ export default {
this.form = res.data.data;
this.form.isUpdates1 = res.data.data.isUpdates == '1' ? '否' : '是';
this.form.noSensation1 = res.data.data.noSensation == '1' ? '否' : '是';
this.form.versionType1=this.form.versionType=='1'?'开发版本':this.form.versionType=='2'?'测试版本':'正式版本'
this.form.versionType1 =
this.form.versionType == '1'
? '开发版本'
: this.form.versionType == '2'
? '测试版本'
: '正式版本';
this.form['filelink'] = [res.data.data.link];
this.form.tenantIds= []
res.data.data.tenantList.map(item=>{
this.form.tenantIds.push(item.id)
})
this.form.tenantIds = [];
res.data.data.tenantList.map(item => {
this.form.tenantIds.push(item.id);
});
});
},
handleDelete() {
@ -575,17 +596,17 @@ export default {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.data.map(item=>{
item.tenantNames=''
item.tenantList.map((ite,index)=>{
if(index==0){
item.tenantNames+=ite.tenantName
}else{
item.tenantNames+=','+ite.tenantName
this.data.map(item => {
item.tenantNames = '';
item.tenantList.map((ite, index) => {
if (index == 0) {
item.tenantNames += ite.tenantName;
} else {
item.tenantNames += ',' + ite.tenantName;
}
})
return item
})
});
return item;
});
this.$functions.newdatas(this.columnList, this.data);
this.loading = false;
this.selectionClear();
@ -600,11 +621,11 @@ export default {
}
</style>
<style scoped lang="scss">
.el-btn{
margin-left:auto;
margin-right:0;
.el-btn {
margin-left: auto;
margin-right: 0;
}
.fr-fo{
.fr-fo {
width: 100%;
display: flex;
justify-content: flex-end;

10
src/views/warehouse/parcelList/distributionParcelList.vue

@ -39,7 +39,7 @@
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -203,7 +203,7 @@ import {
import { getDictionaryBiz } from '@/api/system/dict';
import option from '@/option/distribution/distributionParcelList';
import { mapGetters } from 'vuex';
import { downloadXls, debounce, setNodeHeight } from '@/utils/util';
import { downloadXls, debounce, setNodeHeight, handleClearTableQuery } from '@/utils/util';
import { showInventoryPackgeCode } from '@/api/distribution/distributionStockList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import print from '@/utils/print';
@ -1034,11 +1034,7 @@ export default {
this.query = {};
this.page.currentPage = 1;
for (let i = 0; i < this.columnList.length; i++) {
const item = this.columnList[i];
item.values = '';
}
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

5
src/views/warehouse/updownGoods/warehouseUpdownGoodsLog.vue

@ -53,7 +53,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -213,7 +213,7 @@ import {
} from '@/api/warehouse/warehouseUpdownGoodsLog';
import option from '@/option/warehouse/warehouseUpdownGoodsLog';
import { mapGetters } from 'vuex';
import { downloadXls } from '@/utils/util';
import { downloadXls, handleClearTableQuery } from '@/utils/util';
export default {
data() {
return {
@ -859,6 +859,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
/**

5
src/views/warehouse/warehouseWaybill.vue

@ -15,7 +15,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -413,7 +413,7 @@ import {
} from '@/api/warehouse/warehouseWaybill';
import option from '@/option/warehouse/warehouseWaybill';
import { mapGetters } from 'vuex';
import { downloadXls, isNumber } from '@/utils/util';
import { downloadXls, handleClearTableQuery, isNumber } from '@/utils/util';
export default {
data() {
@ -1044,6 +1044,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

49
src/views/warehouse/warehousesignedorder/distributionStockArticle.vue

@ -48,7 +48,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -102,7 +102,7 @@
:key="index"
@click="informationClick(item.trim(), slotProps.scope.row)"
>
{{`${item}` }}
{{ `${item}` }}
</el-text>
</template>
@ -148,7 +148,7 @@
import { ref, reactive, toRefs, computed, onMounted, nextTick, watch } from 'vue';
import { columnList } from '@/option/warehouse/distributionStockArticle.js';
import { getDictionaryBiz } from '@/api/system/dict'; //
import { processRowProperty, setNodeHeight } from '@/utils/util';
import { handleClearTableQuery, processRowProperty, setNodeHeight } from '@/utils/util';
import {
$_signforList,
$_signforDistributionStockArticleList,
@ -282,38 +282,31 @@ const inputsc = (index, row) => {
};
//
const informationClick = (item, row) => {
const cleanedItem = item.replace(/\([^)]*\)/g, '');
console.log(cleanedItem, 'cleanedItem');
console.log(row, 'row');
// 使 HTML
const message = `将跳转预约信息为 <b><span style="color: red;">${cleanedItem}</span></b>是否确认!`;
ElMessageBox.confirm(
message,
'提示',
{
dangerouslyUseHTMLString: true,
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}
)
ElMessageBox.confirm(message, '提示', {
dangerouslyUseHTMLString: true,
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
let data= row.info.find(res=>res.reservationCode ==cleanedItem)
let data = row.info.find(res => res.reservationCode == cleanedItem);
$router.push({
path: '/distribution/signfor/distributionSignforedt',
query: {
id: data.id,
reservationId:data.reservationId,
name: `${data.reservationCode}待签收查看`,
isZero: 0,
},
});
})
.catch(() => {
path: '/distribution/signfor/distributionSignforedt',
query: {
id: data.id,
reservationId: data.reservationId,
name: `${data.reservationCode}待签收查看`,
isZero: 0,
},
});
})
.catch(() => {});
};
/** 表格表头时间选择 */
const timesc = (index, row) => {
@ -441,9 +434,7 @@ const exportExcel = () => {
const searchReset = () => {
TopQuery.value = {};
details.query = {};
details.columnList.forEach(item => {
item.values = '';
});
handleClearTableQuery(details.columnList);
details.page.total = 0;
details.data = [];
};

5
src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue

@ -16,7 +16,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -219,7 +219,7 @@ import { mapGetters, mapMutations } from 'vuex';
import WarehouseWarehousingDetailSub from '@/views/warehouse/warehousingentry/warehouseWarehousingDetailSub.vue';
import { exportBlob } from '@/api/common';
import { getToken } from '@/utils/auth';
import { downloadXls, setNodeHeight } from '@/utils/util';
import { downloadXls, handleClearTableQuery, setNodeHeight } from '@/utils/util';
import dayjs from 'dayjs';
import { getDictionaryBiz } from '@/api/system/dict';
@ -763,6 +763,7 @@ export default {
searchReset() {
this.query = {};
this.page.currentPage = 1;
handleClearTableQuery(this.columnList);
this.onLoad(this.page);
},
handleSubmit() {

9
src/views/waybill/ChangeOrder.vue

@ -47,7 +47,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -204,6 +204,7 @@ import {
deepClone,
handleTranslationDataSeclect,
getObjType,
handleClearTableQuery,
} from '@/utils/util';
import { columnList, viewColumnList } from '@/option/waybill/ChangeOrder';
import { postFindUpdateWaybillList } from '@/api/waybill/ChangeOrder';
@ -367,10 +368,8 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.page.pageNum = 1;
details.columnList;
for (let i = 0; i < details.columnList.length; i++) {
details.columnList[i].values = '';
}
handleClearTableQuery(details.columnList);
onLoad();
};

5
src/views/waybill/FreezeOrder.vue

@ -34,7 +34,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</el-row>
@ -140,7 +140,7 @@ import {
postOpenOrderFreezeByAdvanceIds,
} from '@/api/waybill/TemporaryStorageList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, getHtmls } from '@/utils/util';
import { downloadXls, setNodeHeight, getHtmls, handleClearTableQuery } from '@/utils/util';
import { columnList, packageListColumnList } from '@/option/waybill/FreezeOrder';
import { useRouter } from 'vue-router';
import print from '@/utils/print';
@ -323,6 +323,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.currentPage = 1;
handleClearTableQuery(details.columnList);
initOnLoad();
};

5
src/views/waybill/ReceiptManagement.vue

@ -24,7 +24,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -117,7 +117,7 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { getopenOrderAdvancePageList } from '@/api/waybill/TemporaryStorageList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, getHtmls } from '@/utils/util';
import { downloadXls, setNodeHeight, getHtmls, handleClearTableQuery } from '@/utils/util';
import { columnList } from '@/option/waybill/ReceiptManagement';
import { useRouter } from 'vue-router';
import { deepClone } from '@/utils/util';
@ -243,6 +243,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.currentPage = 1;
handleClearTableQuery(details.columnList);
onLoad(details.page);
};

11
src/views/waybill/TemporaryStorageList.vue

@ -21,7 +21,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -478,7 +478,13 @@ import {
} from '@/api/waybill/TemporaryStorageList';
import { getLazyTreeAll } from '@/api/base/region';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, deepClone, downloadFileBase64 } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
deepClone,
downloadFileBase64,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/waybill/TemporaryStorageList';
import { useRouter } from 'vue-router';
import print from '@/utils/print';
@ -941,6 +947,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.stockupDate = [];
handleClearTableQuery(details.columnList);
initOnLoad();
};

7
src/views/waybill/WarehousingByTrainNumber.vue

@ -22,7 +22,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -107,6 +107,7 @@ import {
handleInputQuery,
handleSelectQuery,
handleTimeQuery,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/waybill/WarehousingByTrainNumber';
import { useRouter } from 'vue-router';
@ -258,9 +259,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.data = [];
for (let i = 0; i < details.columnList.length; i++) {
details.columnList[i].values = '';
}
handleClearTableQuery(details.columnList);
};
/** 展开列表控件 */

18
src/views/waybill/WaybillOrderList.vue

@ -45,7 +45,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -283,6 +283,7 @@ import {
deepClone,
handleTranslationDataSeclect,
getObjType,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/waybill/WaybillOrderList';
import { useRouter } from 'vue-router';
@ -475,6 +476,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.currentPage = 1;
handleClearTableQuery(details.columnList);
onLoad(details.page);
};
@ -698,28 +700,28 @@ const handleBatchDelete = () => {
});
}
ElMessageBox.confirm('确定要批量作废吗?', '提示', {
ElMessageBox.prompt('作废原因', '确定要批量作废吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputErrorMessage: '请输入作废原因',
inputValidator(value) {
return Boolean(value);
},
type: 'warning',
}).then(async () => {
}).then(async ({ value }) => {
try {
details.loadingObj.pageLoading = true;
const res = await postAbolishWaybill({
waybillIds: details.selectionList.map(val => val.id),
abolishReson: value,
});
console.log('res :>> ', res);
if (res.data.code !== 200) return;
ElMessage({
type: 'success',
message: '批量作废成功',
});
details.selectionList = [];
onLoad();
} catch (error) {
console.log('error :>> ', error);

11
src/views/waybill/ZeroTagList.vue

@ -37,7 +37,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -131,7 +131,13 @@ import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
import { getopenOrderAdvancePageList } from '@/api/waybill/TemporaryStorageList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
import { downloadXls, setNodeHeight, getHtmls, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
getHtmls,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import { columnList } from '@/option/waybill/ZeroTagList';
import { useRouter } from 'vue-router';
import print from '@/utils/print';
@ -256,6 +262,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.currentPage = 1;
handleClearTableQuery(details.query);
onLoad(details.page);
};

7
src/views/waybill/orderPackageList.vue

@ -62,7 +62,7 @@
<!-- 查询按钮 -->
<el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item>
</el-form>
</div>
@ -298,6 +298,7 @@ import {
deepClone,
getObjType,
handleTranslationDataSeclect,
handleClearTableQuery,
} from '@/utils/util';
import { packageListColumnList, packageDetailColumnList } from '@/option/waybill/orderPackageList';
import { flowNodeColumnList } from '@/option/waybill/orderPackageListDetails.js';
@ -475,9 +476,7 @@ const searchReset = () => {
details.query = {};
details.stockupDate = [];
details.page.pageNum = 1;
for (let index = 0; index < details.packageListColumnList.length; index++) {
details.packageListColumnList[index].values = '';
}
handleClearTableQuery(details.packageListColumnList);
onLoad();
};

16
src/views/waybill/orderPackageListDetails.vue

@ -280,7 +280,14 @@ import {
postDeleteAdvanceDetail,
postFinaPackageTrackLogList,
} from '@/api/waybill/orderPackageListDetails';
import { downloadXls, setNodeHeight, getHtmls, debounce, deepClone } from '@/utils/util';
import {
downloadXls,
setNodeHeight,
getHtmls,
debounce,
deepClone,
handleClearTableQuery,
} from '@/utils/util';
import {
packageListColumnList,
packageDetailColumnList,
@ -448,12 +455,7 @@ const searchChange = () => {
const searchReset = () => {
details.query = {};
details.timeQuery = {};
console.log('details.packageListColumnList :>> ', details.packageListColumnList);
for (let i = 0; i < details.packageListColumnList.length; i++) {
const value = details.packageListColumnList[i];
value.values = '';
}
handleClearTableQuery(details.packageListColumnList);
handleFilterPackageData();
};

Loading…
Cancel
Save