Browse Source

Merge branch 'pre-production'

fix_bug_pro20231227
pref_mail@163.com 1 year ago
parent
commit
59aa98a117
  1. 4
      src/page/index/index.vue
  2. 14
      src/views/distribution/deliverylist/distributionDeliveryListmar.vue
  3. 625
      src/views/distribution/reservation/reservationAddFrom.vue
  4. 21
      src/views/distribution/stockup/distributionStockupMarket.vue
  5. 143
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

4
src/page/index/index.vue

@ -78,8 +78,8 @@ export default {
created() {
getMyCurrentWarehouse().then(res => {
console.log(res, '初始化请求参数');
console.log(res.data.name, '仓库名称');
localStorage.setItem('WarehouseName', res.data.name);
console.log(res.data.data.name, '仓库名称');
localStorage.setItem('WarehouseName', res.data.data.name);
});
},
mounted() {

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

@ -6,6 +6,9 @@
<el-form :inline="true" :model="query" class="fr-fo">
<el-form-item label="配送车次:">
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input>
</el-form-item>
<el-form-item label="客户名称:">
<el-input v-model="query.clineName" placeholder="请客户名称"></el-input>
</el-form-item>
<el-form-item label="配送日期:" class="el-times">
<el-date-picker v-model="query.taskTime" type="date" placeholder="选择日期">
@ -413,7 +416,16 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'clineName',
label: '客户名称',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'kindName',
label: '配送种类',

625
src/views/distribution/reservation/reservationAddFrom.vue

@ -15,12 +15,14 @@
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item label="预约时间:" prop="reservationDate" label-width="100px">
<el-form-item label="预约时间:" label-width="100px">
<el-date-picker
v-model="form.reservationDate"
type="date"
clearable
placeholder="选择日期时间"
format="YYYY/MM/DD"
value-format="YYYY-MM-DD"
>
</el-date-picker>
</el-form-item>
@ -124,7 +126,7 @@
<el-tabs type="border-card">
<el-tab-pane label="订单">
<el-button type="primary" link @click="handleAddOrder"> </el-button>
<el-button class='el-btn-xz' type="primary" link @click="handleAddOrder"> </el-button>
<tablecmt
:columnList="columnList"
:tableData="orderData"
@ -199,7 +201,7 @@
</el-tab-pane>
<el-tab-pane label="库存品">
<el-button link @click="handleAddInventory"> </el-button>
<el-button class='el-btn-xz' link @click="handleAddInventory"> </el-button>
<tablecmt
:columnList="stockcolumnList"
:tableData="inventoryData"
@ -240,84 +242,88 @@
<el-button icon="el-icon-circle-close" @click="$router.go(-1)"> </el-button>
</el-form-item>
<el-dialog v-model="orderShow" title="在库订单信息" width="100%" :model="addvalue">
<!-- :before-close="handleClose"-->
<el-form :inline="true" :model="query">
<el-form-item label="订单自编号:">
<el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>
</el-form-item>
<el-form-item label="商场名称:">
<el-input v-model="query.mallName" placeholder="请输入商场名称"></el-input>
</el-form-item>
<el-form-item label="货物名称:">
<el-input v-model="query.descriptionGoods" placeholder="请输入货物名称"></el-input>
</el-form-item>
<el-form-item label="品牌:">
<el-input v-model="query.brand" placeholder="请输入品牌"></el-input>
</el-form-item>
<el-form-item label="顾客姓名:">
<el-input v-model="query.customerName" placeholder="请输入顾客姓名"></el-input>
</el-form-item>
<el-form-item label="顾客电话:">
<el-input v-model="query.customerTelephone" placeholder="请输入顾客电话"></el-input>
</el-form-item>
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchStockArticle"
>
</el-button
>
<el-button icon="el-icon-delete" @click="stockArticleSearchReset()"> </el-button>
</el-form-item>
</el-form>
<tablecmt
:columnList="stockArtcolumnList"
:tableData="stockArticleInfo"
:loading="loading"
@inputTxt="inputscStockArtic"
@timeCheck="timescStockArtic"
@btnCheck="btnscStockArtic"
@selectCheck="selectscStockArtic"
@selection="selectionChange"
>
<template #default="slotProps">
<el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除
</el-text
>
</template>
</tablecmt>
<el-row>
<div class="avue-crud__pagination" style="width: 100%">
<!-- 分页模块 -->
<el-pagination
align="right"
background
@size-change="sizeOrderChange"
@current-change="currentOrderChange"
:current-page="page.currentPage"
:page-sizes="[30, 50, 80, 120]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
>
</el-pagination>
</div>
</el-row>
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitOrder"
>提交(订单)
</el-button
>
<el-button icon="el-icon-circle-close" @click="orderShow = false"> </el-button>
</el-form-item>
</el-dialog>
<template v-if="orderShow">
<el-dialog v-model="orderShow" title="在库订单信息" width="100%" :model="addvalue">
<!-- :before-close="handleClose"-->
<el-form :inline="true" :model="query">
<el-form-item label="订单自编号:">
<el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>
</el-form-item>
<el-form-item label="商场名称:">
<el-input v-model="query.mallName" placeholder="请输入商场名称"></el-input>
</el-form-item>
<el-form-item label="货物名称:">
<el-input v-model="query.descriptionGoods" placeholder="请输入货物名称"></el-input>
</el-form-item>
<el-form-item label="品牌:">
<el-input v-model="query.brand" placeholder="请输入品牌"></el-input>
</el-form-item>
<el-form-item label="顾客姓名:">
<el-input v-model="query.customerName" placeholder="请输入顾客姓名"></el-input>
</el-form-item>
<el-form-item label="顾客电话:">
<el-input v-model="query.customerTelephone" placeholder="请输入顾客电话"></el-input>
</el-form-item>
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchStockArticle"
>
</el-button
>
<el-button icon="el-icon-delete" @click="stockArticleSearchReset()"> </el-button>
</el-form-item>
</el-form>
<tablecmt
:columnList="stockArtcolumnList"
:tableData="stockArticleInfo"
:checkselect="orderSelectList"
:loading="loading"
@inputTxt="inputscStockArtic"
@timeCheck="timescStockArtic"
@btnCheck="btnscStockArtic"
@selectCheck="selectscStockArtic"
@selection="selectionChange"
>
<template #default="slotProps">
<!-- orderSelectList -->
<el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除
</el-text
>
</template>
</tablecmt>
<el-row>
<div class="avue-crud__pagination" style="width: 100%">
<!-- 分页模块 -->
<el-pagination
align="right"
background
@size-change="sizeOrderChange"
@current-change="currentOrderChange"
:current-page="page.currentPage"
:page-sizes="[30, 50, 80, 120]"
:page-size="page.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="page.total"
>
</el-pagination>
</div>
</el-row>
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitOrder"
>提交(订单)
</el-button
>
<el-button icon="el-icon-circle-close" @click="orderShow = false"> </el-button>
</el-form-item>
</el-dialog>
</template>
<el-dialog
@ -376,128 +382,134 @@
</el-form-item>
</el-dialog>
<el-dialog v-model="stockListShow" title="库存品信息" width="100%">
<!-- :before-close="handleClose"-->
<el-form :inline="true" :model="query">
<el-form-item label="商场名称:">
<el-input v-model="query.marketName" placeholder="请输入商场名称"></el-input>
</el-form-item>
<el-form-item label="物料名称:">
<el-input v-model="query.descriptionGoods" placeholder="请输入物料名称"></el-input>
</el-form-item>
<el-form-item label="商场编码:">
<el-input v-model="query.marketCode" placeholder="请输入商场编码"></el-input>
</el-form-item>
<el-form-item label="订单自编号:">
<el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>
</el-form-item>
<el-form-item label="品牌:">
<el-input v-model="query.brand" placeholder="请输入品牌"></el-input>
</el-form-item>
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchStockList"
>
</el-button
>
<el-button icon="el-icon-delete" @click="stockListSearchReset()"> </el-button>
</el-form-item>
</el-form>
<tablecmt
:columnList="inventoryInfocolumnList"
:tableData="inventoryInfo"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionInventoryChange"
ref=multipleTable
>
<template #default="slotProps">
<el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除
</el-text
>
</template>
</tablecmt>
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitInventory"
>提交(库存品)
</el-button
>
<el-button icon="el-icon-circle-close" @click="stockListShow = false"> </el-button>
</el-form-item>
</el-dialog>
<template v-if="stockListShow">
<el-dialog v-model="isaddvalue" title="包件信息" width="100%" :model="addvalue">
<!-- 列表模块 -->
<!-- :isselectfun="checkPackage"-->
<tablecmt
:columnList="columnParcels"
:tableData="packageData"
:checkselect="packageDataSec"
:loading="loading"
@selection="selectionPackageChange"
@select='tableAllSelection'
@cell-mouse-enter='hove'
>
<template #default="slotProps">
<!-- <el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除</el-text
> -->
</template>
</tablecmt>
<!-- <el-table
ref="packageList"
v-loading="loading"
@selection-change="selectionPackageChange"
:data="packageData"
:height="height"
style="width: 100%"
:border="option.border"
>
<el-table-column
type="selection"
v-if="option.selection"
:selectable="checkPackage"
align="center"
width="55"
></el-table-column>
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column>
<el-table-column v-if="option.index" label="序号" type="index" width="60" align="center">
</el-table-column>
<template v-for="(item, index) in option.columnParcels">
<el-dialog v-model="stockListShow" title="库存品信息" width="100%">
<!-- :before-close="handleClose"-->
<el-form :inline="true" :model="query">
<el-form-item label="商场名称:">
<el-input v-model="query.marketName" placeholder="请输入商场名称"></el-input>
</el-form-item>
<el-form-item label="物料名称:">
<el-input v-model="query.descriptionGoods" placeholder="请输入物料名称"></el-input>
</el-form-item>
<el-form-item label="商场编码:">
<el-input v-model="query.marketCode" placeholder="请输入商场编码"></el-input>
</el-form-item>
<el-form-item label="订单自编号:">
<el-input v-model="query.orderCode" placeholder="请输入订单自编号"></el-input>
</el-form-item>
<el-form-item label="品牌:">
<el-input v-model="query.brand" placeholder="请输入品牌"></el-input>
</el-form-item>
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchStockList"
>
</el-button
>
<el-button icon="el-icon-delete" @click="stockListSearchReset()"> </el-button>
</el-form-item>
</el-form>
<tablecmt
:columnList="inventoryInfocolumnList"
:tableData="inventoryInfo"
:checkselect="inventorySelectList"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionInventoryChange"
ref=multipleTable
>
<template #default="slotProps">
<el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除
</el-text
>
</template>
</tablecmt>
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitInventory"
>提交(库存品)
</el-button
>
<el-button icon="el-icon-circle-close" @click="stockListShow = false"> </el-button>
</el-form-item>
</el-dialog>
</template>
<template v-if="isaddvalue">
<el-dialog v-model="isaddvalue" title="包件信息" width="100%" :model="addvalue">
<!-- 列表模块 -->
<!-- :isselectfun="checkPackage"-->
<tablecmt
:columnList="columnParcels"
:tableData="packageData"
:checkselect="packageDataSec"
:loading="loading"
@selection="selectionPackageChange"
@select='tableAllSelection'
@cell-mouse-enter='hove'
>
<template #default="slotProps">
<!-- <el-text
type="primary"
link
icon="el-icon-edit"
@click="removeStockList(slotProps.scope.row)"
>移除</el-text
> -->
</template>
</tablecmt>
<!-- <el-table
ref="packageList"
v-loading="loading"
@selection-change="selectionPackageChange"
:data="packageData"
:height="height"
style="width: 100%"
:border="option.border"
>
<el-table-column
v-if="item.hide !== true"
:prop="item.prop"
:label="item.label"
:width="item.width"
:key="index"
>
type="selection"
v-if="option.selection"
:selectable="checkPackage"
align="center"
width="55"
></el-table-column>
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column>
<el-table-column v-if="option.index" label="序号" type="index" width="60" align="center">
</el-table-column>
</template>
<el-table-column prop="menu" label="操作" :width="220" align="center">
<template #="{ row }">
</template>
</el-table-column>
</el-table> -->
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitPackage"
>提交(包件)
</el-button
>
<el-button icon="el-icon-circle-close" @click="isaddvalue = false"> </el-button>
</el-form-item>
</el-dialog>
<template v-for="(item, index) in option.columnParcels">
<el-table-column
v-if="item.hide !== true"
:prop="item.prop"
:label="item.label"
:width="item.width"
:key="index"
>
</el-table-column>
</template>
<el-table-column prop="menu" label="操作" :width="220" align="center">
<template #="{ row }">
</template>
</el-table-column>
</el-table> -->
<el-form-item style="margin-left: 45%; margin-top: 5px">
<el-button type="primary" icon="el-icon-circle-close" @click="onSubmitPackage"
>提交(包件)
</el-button
>
<el-button icon="el-icon-circle-close" @click="isaddvalue = false"> </el-button>
</el-form-item>
</el-dialog>
</template>
<el-dialog
v-model="dialogVisible"
@ -1779,7 +1791,9 @@
packageData: [],
packageList: [],
inventoryList: [],
inventorySelectList:[],
orderList: [],
orderSelectList: [],
inventoryTable: [],
inventoryShow: false,
reservationRules: {
@ -1887,11 +1901,12 @@
});
this.onLoad(this.page);
},
tableAllSelection(){},
//
handleAddOrder() {
async handleAddOrder() {
this.loading = true;
//
this.onLoadOrder(this.page);
await this.onLoadOrder(this.page);
this.loading = false;
this.orderShow = true;
},
@ -1920,28 +1935,22 @@
console.log('res :>> ', res);
this.inventoryInfo = inventoryList.records
//
if (this.inventoryData) {
this.inventoryInfo.forEach((item, index) => {
this.inventoryData.forEach(inventory => {
if (item.id === inventory.id) {
item = inventory;
this.$nextTick(() => {
this.$refs.inventoryTable.toggleRowSelection(this.inventoryInfo[index], true);
});
}
});
});
}
console.log('------------->', this.inventoryData);
if (this.inventoryData.length !== 0) {
// ids
const ids = this.inventoryData.map(val => val.id)
//
this.inventorySelectList = this.inventoryInfo.filter(val => {
//
return ids.includes(val.id)
})
}
this.loading = false;
this.selectionClear();
this.stockListShow = true;
}
);
this.query = {};
this.inventoryList = [];
this.stockListShow = true;
},
handleCheckedCitiesChange(value) {
if (value) {
@ -2095,7 +2104,7 @@
// this.selectionPackageChange(row)
// console.log( this.selectionPackageChange(),'12312312312321');
// }
viewStockArticlePackage(row) {
async viewStockArticlePackage(row) {
this.loading = true;
this.packageList = row.packageList;
this.obj = row;
@ -2103,92 +2112,30 @@
this. toggleAllSelection
console.log('row>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', row);
if (this.reservationId) {
getReservationPackageListByOrderId(this.reservationId,row.id,page.currentPage,page.pageSize).then(res=>{
const res = await getReservationPackageListByOrderId(this.reservationId,row.id,page.currentPage,page.pageSize)
console.log("->>>>>>>>>>>>>>>>>>查看包件",res);
this.packageData = res.data.data.data.packageList
console.log(this.packageData,'需要的信息');
console.log(res.data.data.data.reservationPackageList);
let idList=[]
res.data.data.data.reservationPackageList.forEach(v=>{
idList.push(v.id)
})
console.log(idList);
})
//
// //
// let packageInfo = row.parcelListVOS;
// // this.packageData = row.parcelListVOS;
// let packageListData = this.packageData;
// if (row.packageList.length > 0) {
// let packageListInfo = row.packageList;
// packageInfo.forEach((item, index) => {
// packageListInfo.forEach(p => {
// if (item.id === p.id) {
// this.$nextTick(() => {
// this.$refs.packageList.toggleRowSelection(this.packageData[index], true);
// });
// }
// });
// });
// } else {
// //
// packageInfo.forEach((item, index) => {
// this.$nextTick(() => {
// this.$refs.packageList.toggleRowSelection(this.packageData[index], true);
// });
// });
// }
// this.packageData = row.parcelListVOS;
//
// // rowpackageList,
// if (row.packageList.length === 0) {
// this.packageDataSec = row.parcelListVOS;
// } else {
// this.packageDataSec = row.parcelListVOS.filter(item => {
// return row.packageList.some(value => value.id === item.id);
// });
// }
if (res.data.data){
this.packageData = res.data.data.data.packageList
let idList=res.data.data.data.reservationPackageList.map(v=>{
return v.id
})
this.packageDataSec = this.packageData.filter(val => idList.includes(val.id))
}
this.isaddvalue = true;
this.loading = false;
} else {
getPackageListByStockArticleId(page.currentPage,page.pageSize,row.id).then(res=>{
console.log("res---------------->",res);
console.log(res.data.data.records);
this.packageData=res.data.data.records
})
// this.packageData = row.parcelListVOS;
// this.packageDataSec = row.parcelListVOS;
// //
// let data = row.parcelListVOS;
// data.forEach((item, index) => {
// if (
// item.orderPackageReservationStatusName === '' ||
// item.orderPackageReservationStatus === '20'
// ) {
// // //使
// this.$nextTick(() => {
// this.$refs.packageList.toggleRowSelection(this.packageData[index], true);
// });
// // console.log('::', item);
// // this.checkPackage(item, index);
// }
// // else if (
// // item.orderPackageFreezeStatusName !== '' ||
// // item.orderPackageFreezeStatus !== '20'
// // ) {
// // this.$nextTick(() => {
// // this.$refs.packageList.toggleRowSelection(this.packageData[index], true);
// // });
// // }
// });
}
// console.log(res.data.data.records);
if(res.data.data){
this.packageData=res.data.data.records
//
this.packageDataSec = this.packageData
}
this.isaddvalue = true;
this.loading = false;
})
}
},
//
@ -2297,6 +2244,7 @@
this.isaddvalue = false;
},
onSubmit() {
//
//
let orderIds = [];
let inventoryIds = [];
@ -2385,6 +2333,10 @@
});
}
},
inputsc(){},
timesc(){},
selectsc(){},
btnsc(){},
handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
@ -2494,7 +2446,7 @@
},
selectionInventoryChange(list) {
// if (this.reservationId){
console.log('-----------<>', list);
console.log('list-----------<>', list);
this.inventoryList = list;
// }else {
// //
@ -2633,6 +2585,7 @@
return;
}
this.marketName = _marketName;
console.log('this.inventoryList :>> ', this.inventoryList);
this.inventoryData = this.inventoryList;
// if (this.orderData.length) {
@ -2801,7 +2754,7 @@
}
this.onLoadOrder(this.page);
},
onLoadOrder(page, params = {}) {
async onLoadOrder(page, params = {}) {
this.query.typeService = 2;
this.query.genre = '1';
this.query.marketName = this.marketName
@ -2814,41 +2767,37 @@
}
this.query.orderIds = a.join(',');
console.log('--------------query>', this.query);
selectStockArticleInfoList(
const res = await selectStockArticleInfoList(
page.currentPage,
page.pageSize,
Object.assign(params, this.query)
).then(res => {
console.log('res123------------>', res);
const { records, total } = res.data.data;
this.stockArticleInfo = records.filter(value => {
if (this.marketName === '') return value;
if (this.marketName) {
console.log('value.marketName :>> ', value.marketName);
return value.mallName === this.marketName;
}
});
// const {records, total} = res.data.data;
this.stockArticleInfo = records
console.log('this.stockArticleInfo :>> ', this.stockArticleInfo);
this.stockArticleInfo.forEach((item, index) => {
//
this.checkOrder(item, index);
// if (this.orderData) {
// this.orderData.forEach(o => {
// if (o.id === item.id) {
// this.$nextTick(() => {
// this.$refs.orderList.toggleRowSelection(this.stockArticleInfo[index], true);
// });
// }
// });
// }else {
// this.orderList = [];
// }
this.page.total = total;
});
this.orderList = [];
)
const { records, total } = res.data.data;
this.stockArticleInfo = records
console.log('this.stockArticleInfo :>> ', this.stockArticleInfo);
this.stockArticleInfo.forEach((item, index) => {
//
this.checkOrder(item, index);
// if (this.orderData) {
// this.orderData.forEach(o => {
// if (o.id === item.id) {
// this.$nextTick(() => {
// this.$refs.orderList.toggleRowSelection(this.stockArticleInfo[index], true);
// });
// }
// });
// }else {
// this.orderList = [];
// }
this.page.total = total;
});
if(this.orderData.length !== 0){
const ids = this.orderData.map(val => val.id)
this.orderSelectList = this.stockArticleInfo.filter(val => ids.includes(val.id))
console.log('orderSelectList :>> ', this.orderSelectList);
}
this.orderList = [];
return null
},
onLoad() {
@ -2860,7 +2809,7 @@
this.form.replaceFee = 0;
this.form.collectionFee = 0;
this.form.isUrgent = '1';
this.form.reservationDate = new Date();
// this.form.reservationDate = new Date();
if (this.orderIds) {
getStockArticleList(this.orderIds).then(res => {
console.log(res.data.data);
@ -2930,3 +2879,13 @@
-moz-appearance: textfield;
}
</style>
<style lang='scss' scoped>
.el-btn-xz{
width: 68px;
height: 26px;
border: 1px solid;
margin-bottom: 8px;
border-radius: 4px;
}
</style>

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

@ -13,7 +13,8 @@
<el-form-item label="指派状态;1-未指派、2-已指派:">
<el-input v-model="query.assignStatus" placeholder="请输入指派状态;1-未指派、2-已指派"></el-input>
</el-form-item>-->
<el-form-item label="备货时间:" class="el-times">
<div class='el-input-so'>
<el-form-item label="备货时间:" class="el-times">
<el-date-picker
v-model="stockupDate"
type="datetimerange"
@ -24,6 +25,10 @@
:shortcuts="shortcuts"
/>
</el-form-item>
<el-form-item style="margin-left: 24px;" label="客户名称">
<el-input v-model="query.consignee" placeholder="请输入客户名称" />
</el-form-item>
</div>
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
@ -340,6 +345,17 @@ export default {
sortable: true,
head: false,
},
{
prop: 'consignee',
label: '客户名称',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: true,
sortable: true,
head: false,
},
{
prop: 'stockupDate',
label: '备货时间',
@ -1142,5 +1158,8 @@ export default {
flex: 1;
display: flex;
align-items: flex-end;
}
.el-input-so{
}
</style>

143
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -102,11 +102,7 @@
</el-form-item>
<!-- <el-form-item label="物流单号" prop="trainNumber">-->
<el-form-item label="物流运单号">
<el-input
v-model="form.trainNumber"
clearable
placeholder="请输入物流运单号"
/>
<el-input v-model="form.trainNumber" clearable placeholder="请输入物流运单号" />
</el-form-item>
<!-- <el-form-item label="入库车牌" prop="licensePlate">-->
@ -274,6 +270,7 @@
@click="handleSubmit"
:disabled="view && !this.$route.query.type == '3'"
v-if="this.$route.query.type"
:loading="buttonLoadingList.handleSubmitBtn"
> </el-button
>
<el-button
@ -282,10 +279,23 @@
@click="showCommitButton"
:disabled="view && !this.$route.query.type == '3'"
v-else-if="!hideButton"
> </el-button>
> </el-button
>
<span v-else-if="hideButton">
<el-button icon="el-icon-circle-check" @click="handleSubmit"> 预约入库 </el-button>
<el-button icon="el-icon-circle-check" @click="handleHirectStorage">
<el-button
icon="el-icon-circle-check"
:disabled="buttonLoadingList.handleHirectStorageBtn"
:loading="buttonLoadingList.handleSubmitBtn"
@click="handleSubmit"
>
预约入库
</el-button>
<el-button
icon="el-icon-circle-check"
:disabled="buttonLoadingList.handleSubmitBtn"
:loading="buttonLoadingList.handleHirectStorageBtn"
@click="handleHirectStorage"
>
直接入库
</el-button>
</span>
@ -440,7 +450,7 @@ import {
update,
remove,
getWarehouseDetail,
getList
getList,
} from '@/api/warehouse/warehouseWarehousingEntry';
import option from '@/option/warehouse/warehouseWarehousingDetail';
import { mapGetters, mapMutations } from 'vuex';
@ -537,6 +547,10 @@ export default {
serviceType: [{ required: true, message: '请选择服务类型', trigger: 'blur' }],
customerCode: [{ required: true, message: '请选择客户编码', trigger: 'blur' }],
},
buttonLoadingList: {
handleSubmitBtn: false,
handleHirectStorageBtn: false,
},
};
},
mounted() {
@ -593,16 +607,15 @@ export default {
let b = await getWarehouseDetail(a);
//
b.data.data.list.forEach(item=>{
if(!item.actualReceipt){
item.actualReceipt = item.createInventory
}
})
b.data.data.list.forEach(item => {
if (!item.actualReceipt) {
item.actualReceipt = item.createInventory;
}
});
console.log('bbbb>>>>', b.data.data);
const da = b.data.data;
console.log(b,'接收到的值');
console.log(b, '接收到的值');
this.options.push({
label: da.customerName,
code: da.customerCode,
@ -741,7 +754,7 @@ export default {
let cl = await getListIdsName(this.page.currentPage, this.page.pageSize, {
brandName: query,
ids: si,
type: !!this.form.storeId ? 2 : 1
type: !!this.form.storeId ? 2 : 1,
});
console.log('>>>>', cl.data.data);
cl.data.data.forEach(i => {
@ -946,7 +959,9 @@ export default {
}
});
if (this.data.length > 0) {
console.log('当前在这里=-================================================================');
console.log(
'当前在这里=-================================================================'
);
if (!!this.formDetail.createInventory) {
let s = false;
this.data.some(i => {
@ -1011,43 +1026,37 @@ export default {
this.hideButton = true;
},
handleSubmit() {
this.$refs.form.validate(valid => {
if (valid) {
if (!this.form.id) {
console.log('this.form111', this.form);
if (this.data.length > 0) {
this.form.list = this.data;
// 1
this.form.type = '1';
add(this.form).then(() => {
this.$refs.form.validate(async valid => {
try {
//
this.buttonLoadingList.handleSubmitBtn = true;
if (valid) {
if (!this.form.id) {
console.log('this.form111', this.form);
if (this.data.length > 0) {
this.form.list = this.data;
// 1
this.form.type = '1';
await add(this.form);
this.box = false;
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
});
this.form = {};
this.data = [];
this.form = {};
this.data = [];
} else {
this.$message.warning('请添加物资详情!!!');
}
} else {
this.$message.warning('请添加物资详情!!!');
}
} else {
// console.log("");
// if(!this.form.orderNumber){
// this.$message.warning("");
// return ;
// }
// if(parseInt(this.$route.query.type) == 3){
//
// }
console.log('this.form222', this.form);
if (!!this.form.totalInput && parseInt(this.form.totalInput) == '-1') {
this.form.totalInput = null;
}
this.form.type = '1';
this.form.list = this.data;
update(this.form).then(() => {
console.log('this.form222', this.form);
if (!!this.form.totalInput && parseInt(this.form.totalInput) == '-1') {
this.form.totalInput = null;
}
this.form.type = '1';
this.form.list = this.data;
await update(this.form);
this.box = false;
this.onLoad(this.page);
this.$message({
@ -1058,8 +1067,12 @@ export default {
this.$store.commit('DEL_TAG', this.$store.state.tags.tag);
//
this.$router.push('/warehouse/warehousingentry/warehouseWarehousingEntry');
});
}
}
} catch (error) {
} finally {
//
this.buttonLoadingList.handleSubmitBtn = false;
}
});
},
@ -1099,16 +1112,16 @@ export default {
// this.form = {}
this.box = true;
//
this.getBingPai();
this.getBingPai();
},
async getBingPai(){
async getBingPai() {
console.log('客户ID', this.form.clientId);
this.brandList = [];
if (!!this.form.clientId) {
let si = !!this.form.storeId ? this.form.storeId : this.form.clientId;
let cl = await getListIdsName(this.page.currentPage, this.page.pageSize, {
ids: si,
type: !!this.form.storeId ? 2 : 1
type: !!this.form.storeId ? 2 : 1,
});
console.log('>>>>', cl.data.data);
cl.data.data.forEach(i => {
@ -1235,10 +1248,9 @@ export default {
* @returns {Promise<void>}
*/
async getWareHoust(page, params = {}) {
let sl ={};
let li = await getDetailWarehouse( sl);
console.log("li>>>>",li.data.data);
let sl = {};
let li = await getDetailWarehouse(sl);
console.log('li>>>>', li.data.data);
this.store = [];
li.data.data.forEach(i => {
let st = {
@ -1249,7 +1261,8 @@ export default {
// ,
if (this.store.length === 1) {
console.log('this.store.length :>> ', [...this.store]);
this.form.warehouseId = this.store[0].value;}
this.form.warehouseId = this.store[0].value;
}
});
/* if(b.data.data.deptCategory == "4"){
@ -1280,13 +1293,13 @@ export default {
}*/
},
//
async getListData(data){
data.currentPage = data.currentPage || 1; // , 1
data.pageSize = data.pageSize || 10; // , 10
const res = await getList(data.currentPage, data.pageSize, {conditions: data.conditions})
//
return res
}
async getListData(data) {
data.currentPage = data.currentPage || 1; // , 1
data.pageSize = data.pageSize || 10; // , 10
const res = await getList(data.currentPage, data.pageSize, { conditions: data.conditions });
//
return res;
},
},
};
</script>

Loading…
Cancel
Save