diff --git a/index.html b/index.html index 8696ce27..54a8156c 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ + src='https://webapi.amap.com/maps?v=1.4.15&key=f003ec4feb3fcc4cf0742e94f569fd33&plugin=AMap.PlaceSearch,AMap.Geocoder,Map3D,ElasticMarker,AMap.Driving,AMap.TruckDriving'> diff --git a/src/api/distribution/distributionLoadscanAbnormal.js b/src/api/distribution/distributionLoadscanAbnormal.js new file mode 100644 index 00000000..721b9a64 --- /dev/null +++ b/src/api/distribution/distributionLoadscanAbnormal.js @@ -0,0 +1,50 @@ +import request from '@/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/logpm-distribution/loadscanAbnormal/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getDetail = (id) => { + return request({ + url: '/api/logpm-distribution/loadscanAbnormal/detail', + method: 'get', + params: { + id + } + }) +} + +export const remove = (ids) => { + return request({ + url: '/api/logpm-distribution/loadscanAbnormal/remove', + method: 'post', + params: { + ids, + } + }) +} + +export const add = (row) => { + return request({ + url: '/api/logpm-distribution/loadscanAbnormal/submit', + method: 'post', + data: row + }) +} + +export const update = (row) => { + return request({ + url: '/api/logpm-distribution/loadscanAbnormal/submit', + method: 'post', + data: row + }) +} + diff --git a/src/api/distribution/distributionReservation.js b/src/api/distribution/distributionReservation.js index 036fa4d4..8545d925 100644 --- a/src/api/distribution/distributionReservation.js +++ b/src/api/distribution/distributionReservation.js @@ -201,6 +201,14 @@ export const getReservationStockListInfo = (reservationId) => { }) } +export const patchPrintList = (ids) => { + return request({ + url: '/api/logpm-distribution/deliveryList/printBatchByReservation', + method: 'post', + params: ids + }); +} + diff --git a/src/option/basic/basicMaterial.js b/src/option/basic/basicMaterial.js index 2a1d908a..4addafb1 100644 --- a/src/option/basic/basicMaterial.js +++ b/src/option/basic/basicMaterial.js @@ -7,157 +7,181 @@ export default { border: true, index: true, viewBtn: true, - delBtn:true, + delBtn: true, selection: false, - indexLabel: "序号", + indexLabel: '序号', indexWidth: '80', dialogClickModal: false, column: [ { - label: "租户号", - prop: "tenantId", - type: "input", + label: '租户号', + prop: 'tenantId', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "创建人", - prop: "createUser", - type: "input", + label: '创建人', + prop: 'createUser', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "创建时间", - prop: "createTime", - type: "input", + label: '创建时间', + prop: 'createTime', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "更新人", - prop: "updateUser", - type: "input", + label: '更新人', + prop: 'updateUser', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "更新时间", - prop: "updateTime", - type: "input", + label: '更新时间', + prop: 'updateTime', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "状态", - prop: "status", - type: "input", + label: '状态', + prop: 'status', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "是否已删除", - prop: "isDeleted", - type: "input", + label: '是否已删除', + prop: 'isDeleted', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "创建部门", - prop: "createDept", - type: "input", + label: '创建部门', + prop: 'createDept', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "主键", - prop: "id", - type: "input", + label: '主键', + prop: 'id', + type: 'input', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "预留1", - prop: "reserve1", - type: "input", + label: '预留1', + prop: 'reserve1', + type: 'input', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "预留2", - prop: "reserve2", - type: "input", + label: '预留2', + prop: 'reserve2', + type: 'input', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "预留3", - prop: "reserve3", - type: "input", + label: '预留3', + prop: 'reserve3', + type: 'input', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "预留4", - prop: "reserve4", - type: "input", + label: '预留4', + prop: 'reserve4', + type: 'input', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "预留5", - prop: "reserve5", - type: "input", + label: '预留5', + prop: 'reserve5', + type: 'input', addDisplay: false, editDisplay: false, viewDisplay: false, hide: true, }, { - label: "产品编码", - prop: "productCode", - type: "input", + label: '产品编码', + prop: 'productCode', + type: 'input', search: true, - width: 100, + width: '130', + rules: [ + { + required: true, + message: '请输入产品编码', + trigger: 'blur', + }, + ], overHidden: true, }, { - label: "物品sku", - prop: "sku", - type: "input", - width: 100, + label: '物品sku', + prop: 'sku', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入物品sku', + trigger: 'blur', + }, + ], overHidden: true, }, { - label: "计量单位", - prop: "logpmUnit", - type: "select", + label: '计量单位', + prop: 'logpmUnit', + type: 'select', + width: '130', dicUrl: '/blade-system/dict-biz/dictionary?code=logpm_unit', props: { label: 'dictValue', @@ -173,11 +197,18 @@ export default { ], }, { - label: "名称", - prop: "name", - type: "input", + label: '名称', + prop: 'name', + type: 'input', + rules: [ + { + required: true, + message: '请输入名称', + trigger: 'blur', + }, + ], search: true, - width: 200, + width: '130', overHidden: true, }, // { @@ -196,9 +227,17 @@ export default { // hide: false, // }, { - label: "属性", - prop: "property", - type: "input", + label: '属性', + prop: 'property', + rules: [ + { + required: true, + message: '请输入属性', + trigger: 'blur', + }, + ], + width: '130', + type: 'input', }, // { // label: "规格", @@ -206,78 +245,129 @@ export default { // type: "input", // }, { - label: "包装规格", - prop: "packingSpecification", - type: "input", + label: '包装规格', + prop: 'packingSpecification', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入包装规格', + trigger: 'blur', + }, + ], }, { - label: "包装数量", - prop: "packageNum", - type: "input", + label: '包装数量', + prop: 'packageNum', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入包装数量', + trigger: 'blur', + }, + ], }, { - label: "包装材质", - prop: "packagingMaterial", - type: "input", + label: '包装材质', + prop: 'packagingMaterial', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入包装材质', + trigger: 'blur', + }, + ], }, { - label: "长", - prop: "extent", - type: "input", - width: 100, + label: '长', + prop: 'extent', + type: 'input', + width: '130', overHidden: true, + rules: [ + { + required: true, + message: '请输入长度', + trigger: 'blur', + }, + ], }, { - label: "宽", - prop: "breadth", - type: "input", - width: 100, + label: '宽', + prop: 'breadth', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入宽度', + trigger: 'blur', + }, + ], overHidden: true, }, { - label: "高度", - prop: "altitude", - type: "input", - width: 100, + label: '高度', + prop: 'altitude', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入高度', + trigger: 'blur', + }, + ], overHidden: true, }, { - label: "体积", - prop: "volume", - type: "input", - width: 100, + label: '体积', + prop: 'volume', + type: 'input', + width: '130', + rules: [ + { + required: true, + message: '请输入体积', + trigger: 'blur', + }, + ], overHidden: true, }, { - label: "重量", - prop: "weight", - type: "input", + label: '重量', + prop: 'weight', + width: '130', + type: 'input', }, { - label: "备注", - prop: "remark", - type: "input", + label: '备注', + prop: 'remark', + width: '130', + type: 'input', }, { - label: "物料图片", - prop: "picture", - type: "upload", + label: '物料图片', + prop: 'picture', + type: 'upload', dataType: 'string', listType: 'picture-img', // hide: true, - labelWidth:'150', - span:10, - multiple:false, - width:"200px", - align:'left', + labelWidth: '150', + span: 10, + multiple: false, + width: '200px', + align: 'left', action: '/blade-resource/oss/endpoint/put-file', propsHttp: { res: 'data', url: 'link', }, }, - - - - ] -} + ], +}; diff --git a/src/option/distribution/distributionLoadscanAbnormal.js b/src/option/distribution/distributionLoadscanAbnormal.js new file mode 100644 index 00000000..244382b6 --- /dev/null +++ b/src/option/distribution/distributionLoadscanAbnormal.js @@ -0,0 +1,166 @@ +export default { + expand: false, + index: true, + border: true, + selection: true, + column: [ + { + label: "租户号", + prop: "tenantId", + display: false, + hide: true, + }, + { + label: "创建人", + prop: "createUser", + display: false, + hide: true, + }, + { + label: "创建时间", + prop: "createTime", + display: false, + hide: true, + }, + { + label: "更新人", + prop: "updateUser", + display: false, + hide: true, + }, + { + label: "更新时间", + prop: "updateTime", + display: false, + hide: true, + }, + { + label: "状态", + prop: "status", + display: false, + hide: true, + }, + { + label: "是否已删除", + prop: "isDeleted", + display: false, + hide: true, + }, + { + label: "创建部门", + prop: "createDept", + display: false, + hide: true, + }, + { + label: "主键", + prop: "id", + display: false, + hide: true, + }, + { + label: "预约ID", + prop: "reservationId", + }, + { + label: "配送管理ID", + prop: "deliveryListId", + }, + { + label: "包件ID", + prop: "packageId", + }, + { + label: "订单ID", + prop: "stockArticleId", + }, + { + label: "扫描操作人", + prop: "sacnUser", + }, + { + label: "扫描操作时间", + prop: "scanTime", + }, + { + label: "包条码", + prop: "packageCode", + }, + { + label: "车次号", + prop: "trainNumber", + }, + { + label: "司机ID", + prop: "driverId", + }, + { + label: "司机名称", + prop: "driverName", + }, + { + label: "车辆ID", + prop: "vehicleId", + }, + { + label: "车牌号", + prop: "vehicleName", + }, + { + label: "司机电话", + prop: "driverPhone", + }, + { + label: "仓库Id", + prop: "warehouseId", + }, + { + label: "仓库名称", + prop: "warehouseName", + }, + { + label: "审核人", + prop: "auditingUser", + }, + { + label: "审核时间", + prop: "auditingTime", + }, + { + label: "包件配送类型 1 - 商配 2-市配", + prop: "deliveryType", + }, + { + label: "备注", + prop: "remarks", + }, + { + label: "审核状态 1-未审核 2- 已审核 3 - 异常", + prop: "auditingStatus", + }, + { + label: "装车数量", + prop: "loadingQuantity", + }, + { + label: "预留1", + prop: "reserve1", + }, + { + label: "预留2", + prop: "reserve2", + }, + { + label: "预留3", + prop: "reserve3", + }, + { + label: "预留4", + prop: "reserve4", + }, + { + label: "预留5", + prop: "reserve5", + }, + ] +} diff --git a/src/views/basicdata/brand/basicClient.vue b/src/views/basicdata/brand/basicClient.vue index 78ce563c..057d80d2 100644 --- a/src/views/basicdata/brand/basicClient.vue +++ b/src/views/basicdata/brand/basicClient.vue @@ -464,7 +464,7 @@ export default { columnList: [ { prop: '', - label: '序号', + label: '全选', type: 0, values: '', width: 55, @@ -476,7 +476,7 @@ export default { label: '客户名称', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -487,7 +487,7 @@ export default { label: '客户编码', type: 2, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -498,7 +498,7 @@ export default { label: '客户类型', type: 3, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -509,7 +509,7 @@ export default { label: '服务类型', type: 1, values: '', - width: 'fit-content', + width: '130', checkarr: [], fixed: false, sortable: true, @@ -553,7 +553,7 @@ export default { label: '合同开始时间', type: 5, values: '', - width: '100', + width: '150', checkarr: [], fixed: false, sortable: true, @@ -563,7 +563,7 @@ export default { label: '合同结束时间', type: 5, values: '', - width: '100', + width: '150', checkarr: [], fixed: false, sortable: true, diff --git a/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue b/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue index 858b620b..4d79305f 100644 --- a/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue +++ b/src/views/basicdata/warehouse/tray/basicdataTrayedt.vue @@ -963,7 +963,7 @@ export default { head: false, }, { - prop: 'waybillNumber', + prop: 'waybillNo', label: '运单号', type: 1, values: '', diff --git a/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue b/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue index 39af8ad7..a92e8e2a 100644 --- a/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue +++ b/src/views/basicdata/warehouse/tray/basicdataTrayhistory.vue @@ -226,7 +226,7 @@ export default { }, { label: '运单号', - prop: 'waybillNumber', + prop: 'waybillNo', search: true, width: '100px', }, diff --git a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue index 3a7e558f..410a3894 100644 --- a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue +++ b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue @@ -89,7 +89,7 @@ export default { dialogClickModal: false, column: [ { - label: '租户号', + label: '租户号1', prop: 'tenantId', type: 'input', addDisplay: false, @@ -228,7 +228,7 @@ export default { ], span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', }, { label: '仓库编码', @@ -243,14 +243,14 @@ export default { ], span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', }, { label: '仓库简称', prop: 'abbreviation', type: 'input', labelWidth: '120', - width: 'fit-conent', + width: '130', }, { label: '联系人', @@ -259,7 +259,7 @@ export default { search: true, span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', rules: [ { required: true, @@ -283,7 +283,7 @@ export default { ], span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', }, { label: '事业线', @@ -324,7 +324,7 @@ export default { leaf: 'leaf', }, labelWidth: '120', - width: 'fit-conent', + width: '130', }, { label: '职能类型', @@ -332,7 +332,7 @@ export default { type: 'select', span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', search: true, dicUrl: '/api/blade-system/dict-biz/dictionary?code=warehouse_function_type', dataType: 'number', @@ -347,7 +347,7 @@ export default { type: 'input', span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', addDisplay: false, editDisplay: false, viewDisplay: false, @@ -360,7 +360,7 @@ export default { type: 'cascader', search: true, labelWidth: '120', - width: 'fit-conent', + width: '130', clearable: true, placeholder: '省/市/区', dicUrl: '/blade-system/region/lazy-listAll', @@ -384,7 +384,7 @@ export default { type: 'map', span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', params: { zoom: 8, //地图是否能够缩放 @@ -397,10 +397,10 @@ export default { { required: true, message: '请输入仓库地址', - trigger: 'blur', + trigger: 'change', }, ], - clearable: false, + clearable: true, addDisplay: true, editDisplay: true, hide: true, @@ -411,7 +411,7 @@ export default { type: 'input', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', addDisplay: false, editDisplay: false, hide: true, @@ -422,7 +422,7 @@ export default { type: 'input', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', addDisplay: false, editDisplay: false, hide: true, @@ -433,7 +433,7 @@ export default { type: 'input', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', addDisplay: false, editDisplay: false, hide: true, @@ -445,7 +445,7 @@ export default { type: 'tree', span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', dicUrl: '/api/blade-system/dept/lazy-tree?parentId=0', props: { label: 'title', @@ -514,7 +514,7 @@ export default { search: true, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -535,7 +535,7 @@ export default { }, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -583,7 +583,7 @@ export default { }, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -603,7 +603,7 @@ export default { }, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -618,7 +618,7 @@ export default { type: 'input', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', }, { label: '电力类型', @@ -632,7 +632,7 @@ export default { label: 'dictValue', value: 'dictKey', }, - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -666,7 +666,7 @@ export default { placeholder: '请选择租赁开始时间', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', viewDisplay: true, addDisplay: false, editDisplay: false, @@ -681,7 +681,7 @@ export default { placeholder: '请选择租赁结束时间', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', viewDisplay: true, addDisplay: false, editDisplay: false, @@ -699,7 +699,7 @@ export default { }, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -720,7 +720,7 @@ export default { }, span: 12, labelWidth: '120', - width: 'fit-conent', + width: '130', rules: [ { required: true, @@ -755,7 +755,7 @@ export default { endPlaceholder: '租赁结束日期', span: 12, labelWidth: '120', - width: 'fit-content', + width: '130', search: true, searchRange: true, searchSpan: 12, diff --git a/src/views/distribution/inventory/distributionStockArticleDetails.vue b/src/views/distribution/inventory/distributionStockArticleDetails.vue index 9a07c937..0989bb9d 100644 --- a/src/views/distribution/inventory/distributionStockArticleDetails.vue +++ b/src/views/distribution/inventory/distributionStockArticleDetails.vue @@ -315,7 +315,6 @@ 打 印 - 确 定 取 消 diff --git a/src/views/distribution/inventory/distributionStockList.vue b/src/views/distribution/inventory/distributionStockList.vue index c0965c16..bf32f515 100644 --- a/src/views/distribution/inventory/distributionStockList.vue +++ b/src/views/distribution/inventory/distributionStockList.vue @@ -134,7 +134,7 @@ > - + @@ -149,6 +149,7 @@ @change="getMethodName($event, '1')" @blur="selectBlur" :loading="loading" + clearable > - + - + - + i.id == row); @@ -818,6 +825,7 @@ export default { this.formInline.packageNum = a.packageNum; this.formInline.descriptionGoods = a.descriptionGoods; this.formInline.sku = a.sku; + this.unpackFormDisable = this.formInline } break; case '2': diff --git a/src/views/distribution/inventory/distributionStockListDiscuss.vue b/src/views/distribution/inventory/distributionStockListDiscuss.vue index 8843796d..88898f3a 100644 --- a/src/views/distribution/inventory/distributionStockListDiscuss.vue +++ b/src/views/distribution/inventory/distributionStockListDiscuss.vue @@ -132,7 +132,7 @@ padding-left: 1%; " > - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -280,6 +344,8 @@ export default { drawerShow: false, distributionType: [], distributionUnit: [], + // 拆包表单内输入框哪些禁止输入 + unpackFormDisable: {}, columnList: [ { prop: '', @@ -749,6 +815,33 @@ export default { }, }, methods: { + /** + * 物料选择赋值 + * */ + getMethodName(row, num) { + if(!row) { + this.formInline = {} + this.unpackFormDisable = {} + } + switch (num) { + case '1': + let a = this.optionsName.find(i => i.id == row); + console.log('aaaa>>', a); + if (!!a) { + this.formInline.materialCode = a.productCode; + this.formInline.cargoUnit = a.logpmUnit; + this.formInline.cargoNorms = a.packingSpecification; + this.formInline.cargoNumber = a.productCode; + this.formInline.packageNum = a.packageNum; + this.formInline.descriptionGoods = a.descriptionGoods; + this.formInline.sku = a.sku; + this.unpackFormDisable = this.formInline + } + break; + case '2': + break; + } + }, showdrawer(value) { this.drawerShow = value; }, diff --git a/src/views/distribution/inventory/distributionStockListMarket.vue b/src/views/distribution/inventory/distributionStockListMarket.vue index 988a74b8..d217b02b 100644 --- a/src/views/distribution/inventory/distributionStockListMarket.vue +++ b/src/views/distribution/inventory/distributionStockListMarket.vue @@ -1,25 +1,25 @@