Browse Source

修改客户编辑

dev-warehouse
caoyizhong 2 years ago
parent
commit
adef0fb7b9
  1. 12
      src/api/distribution/distributionParcelDetails.js
  2. 10
      src/api/distribution/distributionUnpackingDetails.js
  3. 8
      src/option/distribution/distributionStockList.js
  4. 42
      src/views/distribution/inventory/distributionStockList.vue

12
src/api/distribution/distributionParcelDetails.js

@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/list', url: '/api/logpm-distribution/distributionParcelDetails/list',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
@ -13,7 +13,7 @@ export const getList = (current, size, params) => {
} }
export const getListParcelDetails = (current, size, params) => { export const getListParcelDetails = (current, size, params) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/list', url: '/api/logpm-distribution/distributionParcelDetails/list',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
@ -25,7 +25,7 @@ export const getListParcelDetails = (current, size, params) => {
export const getDetail = (id) => { export const getDetail = (id) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/detail', url: '/api/logpm-distribution/distributionParcelDetails/detail',
method: 'get', method: 'get',
params: { params: {
id id
@ -35,7 +35,7 @@ export const getDetail = (id) => {
export const remove = (ids) => { export const remove = (ids) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/remove', url: '/api/logpm-distribution/distributionParcelDetails/remove',
method: 'post', method: 'post',
params: { params: {
ids, ids,
@ -45,7 +45,7 @@ export const remove = (ids) => {
export const add = (row) => { export const add = (row) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/submit', url: '/api/logpm-distribution/distributionParcelDetails/submit',
method: 'post', method: 'post',
data: row data: row
}) })
@ -53,7 +53,7 @@ export const add = (row) => {
export const update = (row) => { export const update = (row) => {
return request({ return request({
url: '/blade-distributionParcelDetails/distributionParcelDetails/submit', url: '/api/logpm-distribution/distributionParcelDetails/submit',
method: 'post', method: 'post',
data: row data: row
}) })

10
src/api/distribution/distributionUnpackingDetails.js

@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/blade-distributionUnpackingDetails/distributionUnpackingDetails/list', url: '/api/logpm-distribution/distributionUnpackingDetails/list',
method: 'get', method: 'get',
params: { params: {
...params, ...params,
@ -14,7 +14,7 @@ export const getList = (current, size, params) => {
export const getDetail = (id) => { export const getDetail = (id) => {
return request({ return request({
url: '/blade-distributionUnpackingDetails/distributionUnpackingDetails/detail', url: '/api/logpm-distribution/distributionUnpackingDetails/detail',
method: 'get', method: 'get',
params: { params: {
id id
@ -24,7 +24,7 @@ export const getDetail = (id) => {
export const remove = (ids) => { export const remove = (ids) => {
return request({ return request({
url: '/blade-distributionUnpackingDetails/distributionUnpackingDetails/remove', url: '/api/logpm-distribution/distributionUnpackingDetails/remove',
method: 'post', method: 'post',
params: { params: {
ids, ids,
@ -34,7 +34,7 @@ export const remove = (ids) => {
export const add = (row) => { export const add = (row) => {
return request({ return request({
url: '/blade-distributionUnpackingDetails/distributionUnpackingDetails/submit', url: '/api/logpm-distribution/distributionUnpackingDetails/submit',
method: 'post', method: 'post',
data: row data: row
}) })
@ -42,7 +42,7 @@ export const add = (row) => {
export const update = (row) => { export const update = (row) => {
return request({ return request({
url: '/blade-distributionUnpackingDetails/distributionUnpackingDetails/submit', url: '/api/logpm-distribution/distributionUnpackingDetails/submit',
method: 'post', method: 'post',
data: row data: row
}) })

8
src/option/distribution/distributionStockList.js

@ -117,10 +117,10 @@ export default {
label: "拆包数", label: "拆包数",
prop: "cargoUnit", prop: "cargoUnit",
}, },
{ // {
label: "需拆包数", // label: "需拆包数",
prop: "need", // prop: "need",
}, // },
], ],

42
src/views/distribution/inventory/distributionStockList.vue

@ -88,7 +88,7 @@
<!-- 列表模块 --> <!-- 列表模块 -->
<el-table ref="table" v-loading="loading" <el-table ref="table" v-loading="loading"
@selection-change="selectionChangeDismantle" @selection-change="selectionChangeDismantle"
:data="data" :data="formDetails"
style="width: 100%" style="width: 100%"
:border="option.border"> :border="option.border">
<el-table-column type="selection" v-if="option.selection" width="55" align="center"></el-table-column> <el-table-column type="selection" v-if="option.selection" width="55" align="center"></el-table-column>
@ -110,6 +110,20 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="avue-crud__pagination" style="width:100%">
<!-- 分页模块 -->
<el-pagination align="right"
background
@size-change="sizeChangeDetails"
@current-change="currentChangeDetails"
:current-page="pageDetails.currentPage"
:page-sizes="[10, 20, 30, 40, 50, 100]"
:page-size="pageDetails.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="pageDetails.total">
</el-pagination>
</div>
<!-- 表单按钮 --> <!-- 表单按钮 -->
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
@ -207,10 +221,16 @@ export default {
pageSize: 10, pageSize: 10,
total: 40 total: 40
}, },
pageDetails: {
currentPage: 1,
pageSize: 10,
total: 40
},
// //
form: {}, form: {},
// //
selectionList: [], selectionList: [],
formDetails: [],
selectionListDismantle: [], selectionListDismantle: [],
// //
option: option, option: option,
@ -307,15 +327,21 @@ export default {
}, },
handleViewDismantle (row) { handleViewDismantle (row) {
console.log("><<>L:",row);
this.dismantle = true; this.dismantle = true;
this.view = true; this.view = true;
this.title = '拆包'; this.title = '拆包';
// //
let par ={ let par ={
parcelListId : row.id parcelListId : row.parcelListId
} }
getListParcelDetails(this.page.pageSize,this.page.currentPage,par).then(res => { getListParcelDetails(this.pageDetails.currentPage,this.pageDetails.pageSize,par).then(res => {
this.formDetails = res.data.data; console.log("<><>===", res.data.data);
const data = res.data.data;
this.pageDetails.total = data.total;
this.formDetails = data.records;
this.loading = false;
this.selectionClear();
}); });
}, },
handleDelete () { handleDelete () {
@ -381,6 +407,14 @@ export default {
this.page.pageSize = pageSize; this.page.pageSize = pageSize;
this.onLoad(this.page); this.onLoad(this.page);
}, },
currentChangeDetails (currentPage) {
this.pageDetails.currentPage = currentPage;
// this.handleViewDismantle(this.page);
},
sizeChangeDetails (pageSize) {
this.pageDetails.pageSize = pageSize;
// this.handleViewDismantle(this.page);
},
onLoad (page, params = {}) { onLoad (page, params = {}) {
this.loading = true; this.loading = true;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {

Loading…
Cancel
Save