Browse Source

1.增加客户库存品列表

2.修改客户订单列表
dev-warehouse
pref_mail@163.com 2 years ago
parent
commit
a31454049d
  1. 1
      src/api/distribution/distributionReservation.js
  2. 13
      src/api/distribution/distributionStockList.js
  3. 2
      src/option/distribution/distributionStockArticle.js
  4. 4
      src/option/distribution/distributionStockArticleFrom.js
  5. 44
      src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue
  6. 1066
      src/views/reservation/lnventory_list.vue
  7. 303
      src/views/reservation/order_list.vue
  8. 1131
      src/views/reservation/reservation_list.vue

1
src/api/distribution/distributionReservation.js

@ -12,6 +12,7 @@ export const getList = (current, size, params) => {
}) })
} }
export const getDetail = (id) => { export const getDetail = (id) => {
return request({ return request({
url: '/api/logpm-distribution/reservation/detail', url: '/api/logpm-distribution/reservation/detail',

13
src/api/distribution/distributionStockList.js

@ -23,6 +23,19 @@ export const getStockListOwn = (current, size, params) => {
} }
}) })
} }
export const getStockListClient = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionStockList/listClient',
method: 'get',
params: {
...params,
current,
size,
}
})
}
export const getListStockList = (current, size, params) => { export const getListStockList = (current, size, params) => {
return request({ return request({
url: '/api/logpm-distribution/distributionStockList/list', url: '/api/logpm-distribution/distributionStockList/list',

2
src/option/distribution/distributionStockArticle.js

@ -403,7 +403,7 @@ export default {
}, },
{ {
label: '物料名称', label: '物料名称',
prop: 'material' prop: 'materialName'
}, },
{ {
label: '数量', label: '数量',

4
src/option/distribution/distributionStockArticleFrom.js

@ -99,7 +99,7 @@ export default {
}, },
{ {
label: "包条码", label: "包条码",
prop: "packetBarCode", prop: "orderPackageCode",
}, },
{ {
label: "货位信息", label: "货位信息",
@ -123,7 +123,7 @@ export default {
}, },
{ {
label: "物料", label: "物料",
prop: "material", prop: "materialName",
}, },
{ {
label: "数量", label: "数量",

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

@ -693,7 +693,7 @@ export default {
}, { }, {
prop: 'createTime', prop: 'createTime',
label: '创建时间', label: '创建时间',
type: 1, type: 4,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
@ -1137,17 +1137,6 @@ export default {
this.height = this.setPx(document.body.clientHeight - 340); this.height = this.setPx(document.body.clientHeight - 340);
getDictionaryBiz('distribution_type').then(res => { getDictionaryBiz('distribution_type').then(res => {
this.distributionType = res.data.data; this.distributionType = res.data.data;
/* this.checkcColumnList("typeServerName", this.columnList).checkarr=res.data.data.map(item=>{
item.value=item.dictKey
item.label=item.dictValue
return item
});*/
// this.columnList[26].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
getDictionaryBiz('order_package_status').then(res => { getDictionaryBiz('order_package_status').then(res => {
this.deliveryOrderStatus = res.data.data; this.deliveryOrderStatus = res.data.data;
@ -1156,11 +1145,7 @@ export default {
item.label=item.dictValue item.label=item.dictValue
return item return item
}); });
// this.columnList[24].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
getDictionaryBiz('basic_grounding').then(res => { getDictionaryBiz('basic_grounding').then(res => {
this.checkcColumnList("groundingStatusName", this.columnList).checkarr=res.data.data.map(item=>{ this.checkcColumnList("groundingStatusName", this.columnList).checkarr=res.data.data.map(item=>{
@ -1168,11 +1153,7 @@ export default {
item.label=item.dictValue item.label=item.dictValue
return item return item
}); });
// this.columnList[19].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
getDictionaryBiz('freeze_status').then(res => { getDictionaryBiz('freeze_status').then(res => {
this.checkcColumnList("freezeStatusName", this.columnList).checkarr=res.data.data.map(item=>{ this.checkcColumnList("freezeStatusName", this.columnList).checkarr=res.data.data.map(item=>{
@ -1180,11 +1161,7 @@ export default {
item.label=item.dictValue item.label=item.dictValue
return item return item
}); });
// this.columnList[19].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
getDictionaryBiz('stockup_status').then(res => { getDictionaryBiz('stockup_status').then(res => {
this.checkcColumnList("stockupStatusName", this.columnList).checkarr=res.data.data.map(item=>{ this.checkcColumnList("stockupStatusName", this.columnList).checkarr=res.data.data.map(item=>{
@ -1192,11 +1169,7 @@ export default {
item.label=item.dictValue item.label=item.dictValue
return item return item
}); });
// this.columnList[36].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
getDictionaryBiz('order_reservation_status').then(res => { getDictionaryBiz('order_reservation_status').then(res => {
this.checkcColumnList("reservationStatusName", this.columnList).checkarr=res.data.data.map(item=>{ this.checkcColumnList("reservationStatusName", this.columnList).checkarr=res.data.data.map(item=>{
@ -1204,18 +1177,13 @@ export default {
item.label=item.dictValue item.label=item.dictValue
return item return item
}); });
// this.columnList[35].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
}); });
}, },
checkcColumnList(prop,columnList){ checkcColumnList(prop,columnList){
for(var a = 0; a < columnList.length; a++){ for(var a = 0; a < columnList.length; a++){
if(columnList[a].prop===prop){ if(columnList[a].prop===prop){
console.log("1111111111111",columnList[a]);
return columnList[a]; return columnList[a];
} }
} }

1066
src/views/reservation/lnventory_list.vue

File diff suppressed because it is too large Load Diff

303
src/views/reservation/order_list.vue

@ -22,13 +22,13 @@
</el-form-item> </el-form-item>
<el-form-item label="服务类型:"> <el-form-item label="服务类型:">
<el-input v-model="query.typeService" placeholder="请输入服务类型"></el-input> <el-input v-model="query.typeService" placeholder="请输入服务类型"></el-input>
</el-form-item>
<el-form-item label="类型;1 预约单 2库存单:">
<el-input v-model="query.genre" placeholder="请输入类型;1 预约单 2库存单"></el-input>
</el-form-item>
<el-form-item label="状态;1 配送 2 待配送:">
<el-input v-model="query.state" placeholder="请输入状态;1 配送 2 待配送"></el-input>
</el-form-item>--> </el-form-item>-->
<!-- <el-form-item label="类型;1 预约单 2库存单:">-->
<!-- <el-input v-model="query.genre" placeholder="请输入类型;1 预约单 2库存单"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="状态;1 配送 2 待配送:">-->
<!-- <el-input v-model="query.state" placeholder="请输入状态;1 配送 2 待配送"></el-input>-->
<!-- </el-form-item>-->
<!-- 查询按钮 --> <!-- 查询按钮 -->
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button> <el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
@ -57,10 +57,11 @@
<!-- 头部左侧按钮模块 --> <!-- 头部左侧按钮模块 -->
<div class="avue-crud__left"> <div class="avue-crud__left">
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if = "handler">创建异常</el-button> --> <!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-if = "handler">创建异常</el-button> -->
<el-button type="danger" icon="el-icon-delete" @click="handleMoke" v-if = "handler">转预约单</el-button> <el-button type="danger" icon="el-icon-edit" @click="handleMoke" v-if = "handler">转预约单</el-button>
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleStockList" v-if = "handler">批量加配转库存品</el-button> --> <el-button type="primary" icon="el-icon-edit" @click="handleStockList" v-if = "handler">转库存品</el-button>
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleCallDelivery('3')" v-if = "handler">修改客户信息</el-button> --> <el-button type="danger" icon="el-icon-edit" @click="handleCallDelivery('3')" v-if = "handler">修改客户信息</el-button>
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleCallDelivery('2')" v-if = "handler">修改服务类型</el-button> --> <!-- <el-button type="danger" icon="el-icon-edit" @click="handleCallDelivery('2')" v-if = "handler">修改服务类型</el-button> -->
<!-- <el-button type="danger" icon="el-icon-plus" v-if = "handler">转配送</el-button>-->
</div> </div>
<!-- <div class="avue-crud__left"> <!-- <div class="avue-crud__left">
@ -75,8 +76,6 @@
<el-button icon="el-icon-search" @click="searchHide" circle></el-button> <el-button icon="el-icon-search" @click="searchHide" circle></el-button>
</div> </div>
</div> </div>
</el-row> </el-row>
<el-row> <el-row>
<!-- 列表模块 --> <!-- 列表模块 -->
@ -401,7 +400,7 @@
}, },
{ {
prop: 'warehouse', prop: 'warehouse',
label: '仓库', label: '所在仓库',
type: 2, type: 2,
values: '', values: '',
width: '180', width: '180',
@ -466,19 +465,18 @@
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
}, {
prop: 'availableQuantity',
label: '可用数量',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
}, },
// {
// prop: 'availableQuantity',
// label: '',
// type: 2,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{ {
prop: 'handQuantity', prop: 'notReceived',
label: '未入库数量', label: '未入库数量',
type: 1, type: 1,
values: '', values: '',
@ -523,12 +521,14 @@
fixed: false, fixed: false,
sortable: true, sortable: true,
},{ },{
prop: 'handQuantity', prop: 'groundingStatusName',
label: '上架状态', label: '上架状态',
type: 1, type: 3,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [
],
fixed: false, fixed: false,
sortable: true, sortable: true,
},{ },{
@ -561,9 +561,22 @@
sortable: true, sortable: true,
}, },
{ {
prop: 'freeze_status', prop: 'freezeStatusName',
label: '冻结状态', label: '冻结状态',
type: 1, type: 3,
values: '',
width: '150',
checkarr: [
],
fixed: false,
sortable: true,
},
{
prop: 'reservationStatusName',
label: '预约状态',
type: 3,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
@ -571,9 +584,9 @@
sortable: true, sortable: true,
}, },
{ {
prop: 'state', prop: 'orderStatusName',
label: '状态', label: '订单状态',
type: 2, type: 3,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
@ -612,7 +625,7 @@
// { // {
// prop: 'typeServerName', // prop: 'typeServerName',
// label: '', // label: '',
// type: 3, // type: 1,
// values: '', // values: '',
// width: '150', // width: '150',
// checkarr: [], // checkarr: [],
@ -659,7 +672,7 @@
fixed: false, fixed: false,
sortable: true, sortable: true,
}, { }, {
prop: 'createUser', prop: 'createUserName',
label: '创建人', label: '创建人',
type: 1, type: 1,
values: '', values: '',
@ -676,25 +689,26 @@
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
}, {
prop: 'inventoryDate',
label: '最新盘点时间',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
}, {
prop: 'inventoryPerson',
label: '盘点人',
type: 1,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true,
}, },
// {
// prop: 'inventoryDate',
// label: '',
// type: 1,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true,
// }, {
// prop: 'inventoryPerson',
// label: '',
// type: 1,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{ {
prop: '', prop: '',
label: '操作', label: '操作',
@ -850,16 +864,6 @@
} }
}, },
methods: { methods: {
//
handleCallDeliveryOwn(row){
console.log("row",row);
this.formCustomer.name = row.row.customerName;
this.formCustomer.phone = row.row.customerTelephone;
this.formCustomer.address = row.row.customerAddress;
this.formCustomer.stockArticleId = row.row.id;
this.dialogFormCustomer = true;
this.dialogFormCustomerOwn = true;
},
showdrawer(value){ showdrawer(value){
this.drawerShow=value this.drawerShow=value
}, },
@ -896,13 +900,25 @@
console.log(index, row); console.log(index, row);
}, },
selectsc(index, row) { selectsc(index, row) {
console.log(index, row); if(row.prop ==='freezeStatusName'){
if(row.prop ==='completeSetName'){ this.query['freezeStatus'] = index;
}else if(row.prop ==='orderStatusName'){
this.query['orderStatus'] = index;
}else if(row.prop ==='completeSetName'){
this.query['completeSet'] = index; this.query['completeSet'] = index;
}else{ }else if(row.prop ==='typeName'){
this.query['typeService'] = index;
}else if (row.prop ==='groundingStatusName'){
this.query['groundingStatus'] = index;
}else if (row.prop ==='reservationStatusName'){
this.query['reservationStatus'] = index;
}
else{
this.query[row.prop] = index; this.query[row.prop] = index;
} }
this.onLoad(this.page); this.onLoad(this.page);
}, },
timesc(index, row) { timesc(index, row) {
console.log(index, row); console.log(index, row);
@ -917,19 +933,24 @@
}, },
inputsc(index, row) { inputsc(index, row) {
console.log(index, row); console.log(index, row);
// console.log(index, row.prop);
this.query[row.prop] = index; this.query[row.prop] = index;
this.onLoad(this.page); this.onLoad(this.page);
}, },
handleMoke(){ handleMoke(){
// if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
// this.$message.warning(""); this.$message.warning("请选择至少一条数据");
// return; return;
// } }
let st = false; let st = false;
this.selectionList.some( i =>{ this.selectionList.some( i =>{
if(i.stateName === "已预约"){ if(i.stateName === "已预约"){
st = true; st = true;
this.$message.warning(i.orderCode+"已预约,请勿重复预约!!!"); this.$message.warning(i.orderCode+" - 已预约,请勿重复预约!!!");
}
if(i.typeService === 3){
st = true;
this.$message.warning(i.orderCode+" - 为自提单,无法预约!!!");
} }
}) })
if(st){ if(st){
@ -948,17 +969,13 @@
// false, // false,
if(!notEqualFlag){ if(!notEqualFlag){
this.$router.push({ this.$router.push({
path: '/distribution/reservation/order_listFrom', path: '/distribution/reservation/reservationFrom',
query:{ query:{
id: this.ids, id: this.ids,
name: '添加预约单'
} }
}); });
}else{ }else{
this.$message.warning("请选择相同收货信息的订单!!!") this.$message.warning("请选择相同收货信息的订单!!!")
} }
}, },
@ -966,7 +983,23 @@
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning("请选择至少一条数据");
return; return;
}else if (this.selectionList.length > 1){ }else{
let st = false;
this.selectionList.forEach( i =>{
if(i.reservationStatusName == "已预约"){
st = true;
this.$message.warning(i.orderCode+" - 已预约,无法转为库存品!!!");
}
})
if(st){
return
}
this.getSock();
}
/*else if (this.selectionList.length > 1){
this.getSock(); this.getSock();
}else if (this.selectionList.length < 2){ }else if (this.selectionList.length < 2){
// //
@ -975,7 +1008,7 @@
} }
let a = await getListOwn(this.page.currentPage,this.page.pageSize,params); let a = await getListOwn(this.page.currentPage,this.page.pageSize,params);
console.log("aaaaaaa===",a.data.data); // console.log("aaaaaaa===",a.data.data);
if(a.data.data.records.length > 0){ if(a.data.data.records.length > 0){
this.$router.push({ this.$router.push({
path: '/distribution/inventory/distributionStockArticleFrom', path: '/distribution/inventory/distributionStockArticleFrom',
@ -987,7 +1020,7 @@
}else{ }else{
this.getSock(); this.getSock();
} }
} }*/
}, },
getSock(){ getSock(){
this.$confirm("确定将选择的订单转为库存品吗?", { this.$confirm("确定将选择的订单转为库存品吗?", {
@ -1026,6 +1059,7 @@
case '2': case '2':
this.formService.stockArticleId = this.ids; this.formService.stockArticleId = this.ids;
// console.log("",this.formService); // console.log("",this.formService);
addService(this.formService).then(() =>{ addService(this.formService).then(() =>{
this.$message({ this.$message({
type: "success", type: "success",
@ -1070,6 +1104,16 @@
}); });
}, },
// //
handleCallDeliveryOwn(row){
console.log("row",row);
this.formCustomer.name = row.row.customerName;
this.formCustomer.phone = row.row.customerTelephone;
this.formCustomer.address = row.row.customerAddress;
this.formCustomer.stockArticleId = row.row.id;
this.dialogFormCustomer = true;
this.dialogFormCustomerOwn = true;
},
//
handleCallDelivery(ind){ handleCallDelivery(ind){
if (this.selectionList.length === 0) { if (this.selectionList.length === 0) {
this.$message.warning("请选择至少一条数据"); this.$message.warning("请选择至少一条数据");
@ -1085,25 +1129,65 @@
this.dialogFormVisible = true; this.dialogFormVisible = true;
break; break;
case '2': case '2':
this.dialogFormService = true; this.dialogFormService = true;
break; break;
case '3': case '3':
this.dialogFormCustomer = true; this.dialogFormCustomer = true;
break; break;
} }
}, },
/**
* 根据属性找寻数组中对应的元素
*/
checkcColumnList(prop,columnList){
for(var a=0;a<columnList.length;a++){
if(columnList[a].prop===prop){
console.log("1111111111111",columnList[a]);
return columnList[a];
}
}
},
init () { init () {
this.height = this.setPx(document.body.clientHeight - 340); this.height = this.setPx(document.body.clientHeight - 340);
getDictionaryBiz('distribution_type').then(res => { getDictionaryBiz('distribution_type').then(res => {
this.distributionType = res.data.data; this.distributionType = res.data.data;
/* this.columnList[12].checkarr =res.data.data.map(item=>{ // this.columnList[26].checkarr =res.data.data.map(item=>{
// item.value=item.dictKey
// item.label=item.dictValue
// return item
// });
});
getDictionaryBiz('order_status').then(res => {
this.deliveryOrderStatus = res.data.data;
this.checkcColumnList("orderStatusName", this.columnList).checkarr=res.data.data.map(item=>{
item.value=item.dictKey
item.label=item.dictValue
return item
});
});
getDictionaryBiz('basic_grounding').then(res => {
this.checkcColumnList("groundingStatusName", this.columnList).checkarr=res.data.data.map(item=>{
item.value=item.dictKey
item.label=item.dictValue
return item
});
});
getDictionaryBiz('freeze_status').then(res => {
this.checkcColumnList("freezeStatusName", this.columnList).checkarr=res.data.data.map(item=>{
item.value=item.dictKey
item.label=item.dictValue
return item
});
});
getDictionaryBiz('order_reservation_status').then(res => {
this.checkcColumnList("reservationStatusName", this.columnList).checkarr=res.data.data.map(item=>{
item.value=item.dictKey item.value=item.dictKey
item.label=item.dictValue item.label=item.dictValue
return item return item
});*/ });
}); });
}, },
@ -1157,22 +1241,7 @@
// this.handler = true; // this.handler = true;
// this.taker = true; // this.taker = true;
}, },
//
handlePickUpStore(){
this.loading = true;
// console.log("this.query",this.query);
let params = {};
this.query.typeService = '1';
getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
this.loading = false;
this.selectionClear();
this.handler = false;
this.taker = false;
});
}, //
handleInform(index){ handleInform(index){
this.loading = true; this.loading = true;
@ -1188,7 +1257,7 @@
break; break;
} }
this.query.typeService = '1'; this.query.typeService = '1';
getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { getClientList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;
@ -1206,7 +1275,7 @@
handleEdit (row) { handleEdit (row) {
this.title = '编辑' this.title = '编辑'
this.box = true this.box = true
getDetail(row.id).then(res => { getDetail(row.row.id).then(res => {
this.form = res.data.data; this.form = res.data.data;
}); });
}, },
@ -1217,11 +1286,12 @@
// getDetail(row.id).then(res => { // getDetail(row.id).then(res => {
// this.form = res.data.data; // this.form = res.data.data;
// }); // });
// console.log("===",row.row);
this.$router.push({ this.$router.push({
path: '/distribution/inventory/distributionStockArticleDetails', path: '/distribution/inventory/distributionStockArticleDetails',
query: { query: {
id : row.row.id, id : row.row.id,
name: "详情"+row.row.orderCode name: "详情 - "+row.row.orderCode
}, },
}) })
@ -1295,10 +1365,38 @@
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;
this.data = this.data.map(i => {
// const freezeStatusMap = {
// 0: "",
// 1: "",
// default: ""
// };
const nuMap = {
'-1': "0"
};
// const groundingStatusMap = {
// 0: "",
// 1: "",
// 2: "",
// 3: "",
// default: ""
// };
// i.freezeStatusName = freezeStatusMap[i.freezeStatus] || freezeStatusMap.default;
// i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default;
i.handQuantity = nuMap[i.handQuantity] || i.handQuantity;
i.sortingQuantity = nuMap[i.sortingQuantity] || i.sortingQuantity;
i.deliveryQuantity = nuMap[i.deliveryQuantity] || i.deliveryQuantity;
i.signinQuantity = nuMap[i.signinQuantity] || i.signinQuantity;
i.transferQuantity = nuMap[i.transferQuantity] || i.transferQuantity;
i.availableQuantity = nuMap[i.availableQuantity] || i.availableQuantity;
i.notReceived = parseInt( i.totalNumber) - parseInt( i.handQuantity);
return i;
});
this.loading = false; this.loading = false;
this.selectionClear(); this.selectionClear();
}); });
} },
} }
}; };
</script> </script>
@ -1316,4 +1414,3 @@
margin-right: 10px; margin-right: 10px;
} }
</style> </style>

1131
src/views/reservation/reservation_list.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save