From 402db3e996e785a608a8d35ae40481a406e4c42f Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Tue, 5 Mar 2024 14:29:45 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=89=AB=E6=8F=8F=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicdata/basicdataFreight.js | 31 ++- .../basicdata/brand/basicdataFreight.vue | 187 ++++++++++-------- .../basicdata/brand/basicdataFreightFrom.vue | 12 +- .../warehouseStock/warehouseStock.vue | 6 +- vite.config.js | 8 +- 5 files changed, 158 insertions(+), 86 deletions(-) diff --git a/src/api/basicdata/basicdataFreight.js b/src/api/basicdata/basicdataFreight.js index cb67d323..cd22ed1f 100644 --- a/src/api/basicdata/basicdataFreight.js +++ b/src/api/basicdata/basicdataFreight.js @@ -56,4 +56,33 @@ export const $_QueryUserName = (params) => { method: 'get', params }) -} \ No newline at end of file +} + +// 查询品牌 +export const $_brand = (params) => { + return request({ + url: '/api/logpm-basicdata-zqb/basicdataStoreBrand/detail', + method: 'get', + params + }) +} + +// 查询品类 + + + +export const $_category = (params) => { + return request({ + url: '/api/logpm-basicdata-zqb/basicdataCategory/detail', + method: 'get', + params + }) +} + +export const $_getDeptLazyTree = params => { + return request({ + url: '/api/logpm-basicdata/basicdataCategory/lazy-tree', + method: 'get', + params + }); +}; \ No newline at end of file diff --git a/src/views/basicdata/brand/basicdataFreight.vue b/src/views/basicdata/brand/basicdataFreight.vue index 16b25579..70504959 100644 --- a/src/views/basicdata/brand/basicdataFreight.vue +++ b/src/views/basicdata/brand/basicdataFreight.vue @@ -28,7 +28,7 @@ plain v-if="permission.basicdataFreight_add" @click="ownSave" - >新增 + >新增 新增--> - - -
- - - - - - - - - - - - + + +
+ + + -
-
- - - - - - + + + - - - -
-
- -
+
+ +
- diff --git a/src/views/basicdata/brand/basicdataFreightFrom.vue b/src/views/basicdata/brand/basicdataFreightFrom.vue index 8c90705c..209c641a 100644 --- a/src/views/basicdata/brand/basicdataFreightFrom.vue +++ b/src/views/basicdata/brand/basicdataFreightFrom.vue @@ -4,7 +4,7 @@ - + @@ -314,6 +315,7 @@ export default { DryWarehouseDistributionBID: '', //仓库ID DryWarehouseDistributionCID: '', //配送ID clientOptions: [], //客户集合 + categoryData:[],//品类数据 activeName: 'second', // 分页信息 page: { @@ -366,6 +368,8 @@ export default { const parentId = node.level === 0 ? 1 : node.data.value; // console.log("par",parentId); let shuju = await getDeptLazyTree(parentId); + console.log(shuju,'品类数据'); + // console.log(")))))))))))",shuju); const nodes = Array.from(shuju.data.data).map(item => ({ value: item.id, @@ -479,6 +483,7 @@ export default { this.form.details = [].concat(...this.DryWarehouseDistributionA, ...this.DryWarehouseDistributionB, ...this.DryWarehouseDistributionC); console.log('提交的数据》》》', this.form); + return add(this.form).then(() => { this.$store.commit('DEL_TAG_CURRENT'); //关闭当前页面 this.$router.push('/basicdata/brand/basicdataFreight'); //添加成功跳转到列表 @@ -727,7 +732,9 @@ export default { break; } }, - + categoryChange(val,a){ + console.log(val,a); + }, handleCheckedCitiesChange(value, index) { //费用选择 console.log('>>>>>>>', value, index); @@ -873,6 +880,7 @@ export default { // console.log("字典》》》",res); this.delivery = res.data.data; }); + }, }, }; diff --git a/src/views/warehouse/warehouseStock/warehouseStock.vue b/src/views/warehouse/warehouseStock/warehouseStock.vue index b7ed049a..17b3f5e7 100644 --- a/src/views/warehouse/warehouseStock/warehouseStock.vue +++ b/src/views/warehouse/warehouseStock/warehouseStock.vue @@ -77,6 +77,7 @@ import option from '@/option/warehouse/warehouseStock'; import { mapGetters } from 'vuex'; import { ElMessage } from 'element-plus' import { downloadXls,checkParams} from '@/utils/util'; +import dayjs from 'dayjs'; export default { data() { return { @@ -485,11 +486,12 @@ checkParams(data, targetParam) { } }, - timesc(index, row) { // index = this.formatDate(index); + if (!!index) { + index = dayjs(index).format('YYYY-MM-DD'); + } this.query[row.prop] = index; - console.log(checkParams(this.query, 'operatorTime'),'232323'); // 输出 true if(checkParams(this.query, 'operatorTime')){ ElMessage({ message: '请携带其他任意参数', diff --git a/vite.config.js b/vite.config.js index a73aa7ad..8e6d5d7c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,15 +15,17 @@ export default ({ mode, command }) => { // target: 'http://192.168.10.126:8889', // hy // target: 'http://192.168.3.12:13000', + // cg + // target: 'http://192.168.3.18:13000', // lmy // target: 'http://192.168.10.123:8889', // target: 'http://192.168.10.101:8888', // 老zyc - // target: 'http://192.168.10.75:8777', + // target: 'http://192.168.10.75:8777', // 新zyc // target: 'http://192.168.6.116:8777', // target: 'http://192.168.6.122:8777', - // target: 'http://192.168.3.14:13000', + target: 'http://192.168.3.14:13000', // target: 'http://192.168.10.25:2888', // target: 'http://192.168.6.161:9777',//CY // target: 'http://192.168.10.57:13000', @@ -31,7 +33,7 @@ export default ({ mode, command }) => { // target: 'http://192.168.10.29:13000', // target: 'http://192.168.3.5:13000',//? // target: 'http://h5uapi.huitongys.com', - target: 'http://test.api.huo5you.com', + // target: 'http://test.api.huo5you.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''), }, From 3852ccb2abb06bd0662a1cc46ea8559cf523d582 Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Tue, 5 Mar 2024 14:49:02 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=89=AB=E6=8F=8F=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseStock/warehouseStock.vue | 45 ++++++++++--------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/src/views/warehouse/warehouseStock/warehouseStock.vue b/src/views/warehouse/warehouseStock/warehouseStock.vue index 17b3f5e7..0cb2f1ff 100644 --- a/src/views/warehouse/warehouseStock/warehouseStock.vue +++ b/src/views/warehouse/warehouseStock/warehouseStock.vue @@ -94,7 +94,6 @@ export default { sortable: false, head: false, }, - { prop: 'nodeName', label: '节点名称', @@ -106,9 +105,10 @@ export default { sortable: false, head: false, }, + { prop: 'scanNodeType', - label: '扫描详情', + label: '节点描述', type: 2, values: '', width: '130', @@ -117,6 +117,16 @@ export default { sortable: false, head: false, }, + { + prop: 'operatorTime', + label: '操作时间', + type: 4, + values: '', + width: '130', + checkarr: [], + fixed: false, + sortable: true, + }, { prop: 'serviceNumber', label: '服务号', @@ -284,16 +294,7 @@ export default { fixed: false, sortable: false, }, - { - prop: 'operatorTime', - label: '操作时间', - type: 4, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - }, + // { // prop: '', // label: '操作', @@ -492,13 +493,13 @@ checkParams(data, targetParam) { index = dayjs(index).format('YYYY-MM-DD'); } this.query[row.prop] = index; - if(checkParams(this.query, 'operatorTime')){ - ElMessage({ - message: '请携带其他任意参数', - type: 'warning', - }) - return - } + // if(checkParams(this.query, 'operatorTime')){ + // ElMessage({ + // message: '请携带其他任意参数', + // type: 'warning', + // }) + // return + // } this.onLoad(this.page); }, inputsc(index, row) { @@ -641,9 +642,9 @@ checkParams(data, targetParam) { const data = res.data.data; this.page.total = data.total; this.data = data.records; - - }).catch(()=>{ - + + }).catch(()=>{ + }).finally(()=>{ this.loading = false; }); From 607c608bc126a4d1385d3deae9ad2d266d70ca75 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Tue, 5 Mar 2024 15:14:50 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aftersales/aftersalesWorkOrderend.vue | 11 +++-- .../basicdata/brand/basicdataFreightFrom.vue | 41 +++++++++++++++++-- .../inventory/distributionStockListMarket.vue | 4 +- 3 files changed, 46 insertions(+), 10 deletions(-) diff --git a/src/views/aftersales/aftersalesWorkOrderend.vue b/src/views/aftersales/aftersalesWorkOrderend.vue index cc267a49..e3c2071d 100644 --- a/src/views/aftersales/aftersalesWorkOrderend.vue +++ b/src/views/aftersales/aftersalesWorkOrderend.vue @@ -749,7 +749,7 @@ - - + --> 下一条 @@ -780,6 +780,7 @@ @input="appoint(Msgtextarea)" />
+ 结束回复 回复
@@ -2699,7 +2700,6 @@ const CustomerServiceCompleted = () => { right: 0; bottom: 0; :deep(.el-button) { - margin-left: 20px; } } .ovhe { @@ -2935,7 +2935,10 @@ const CustomerServiceCompleted = () => { align-items: center; justify-content: space-between; } -:deep(.el-upload){ + +:deep(.Transport_damage_photos){ + .el-upload{ display: none; } +} diff --git a/src/views/basicdata/brand/basicdataFreightFrom.vue b/src/views/basicdata/brand/basicdataFreightFrom.vue index 209c641a..08e28b0b 100644 --- a/src/views/basicdata/brand/basicdataFreightFrom.vue +++ b/src/views/basicdata/brand/basicdataFreightFrom.vue @@ -99,7 +99,7 @@ :show-all-levels="false" style="width: 100%" v-model="form.category" - @change="categoryChange(form.category,a)" + @change="categoryChange" > @@ -316,6 +316,7 @@ export default { DryWarehouseDistributionCID: '', //配送ID clientOptions: [], //客户集合 categoryData:[],//品类数据 + categoryDataID:[],//品类数据的ID activeName: 'second', // 分页信息 page: { @@ -361,7 +362,9 @@ export default { lazy: true, multiple: true, checkStrictly: true, - lazyLoad(node, resolve) { + lazyLoad:(node, resolve)=> { + console.log(this,'this'); + let _this=this const { level } = node; setTimeout(async () => { // console.log("node/////////",node); @@ -369,7 +372,10 @@ export default { // console.log("par",parentId); let shuju = await getDeptLazyTree(parentId); console.log(shuju,'品类数据'); - + shuju.data.data.forEach((item=>{ + _this.categoryData.push(item) + })) + console.log(_this.categoryData,'categoryData'); // console.log(")))))))))))",shuju); const nodes = Array.from(shuju.data.data).map(item => ({ value: item.id, @@ -482,7 +488,22 @@ export default { // this.form.details = this.DryWarehouseDistributionB; this.form.details = [].concat(...this.DryWarehouseDistributionA, ...this.DryWarehouseDistributionB, ...this.DryWarehouseDistributionC); console.log('提交的数据》》》', this.form); - + console.log(this.categoryDataID,'id'); + console.log(this.categoryData,'名字'); + let matchedData = this.categoryDataID.map(subArray => { + // subArray 应该包含一个元素,即 id + if (subArray.length === 1) { + let idToMatch = subArray[0]; + // 在 datas 中寻找匹配的 id + let matched = this.categoryData.find(data => data.id === idToMatch); + // 如果找到匹配,则返回对应的对象 + if (matched) { + return matched; + } + } + return null; +}).filter(item => item !== null); // 过滤掉任何未匹配的值(null) +console.log(matchedData,'筛选出来的值'); return add(this.form).then(() => { this.$store.commit('DEL_TAG_CURRENT'); //关闭当前页面 @@ -734,7 +755,19 @@ export default { }, categoryChange(val,a){ console.log(val,a); + let newArray = val.map(subArray => { + // 如果内层数组长度大于 1,则只取最后一个元素组成新的数组 + if (subArray.length > 1) { + return [subArray[subArray.length - 1]]; + } + // 否则,直接保留这个数组 + return subArray; +}); +this.categoryDataID=newArray +console.log(this.categoryDataID,'data中的数据'); +console.log(newArray,'重新组织的'); }, + handleCheckedCitiesChange(value, index) { //费用选择 console.log('>>>>>>>', value, index); diff --git a/src/views/distribution/inventory/distributionStockListMarket.vue b/src/views/distribution/inventory/distributionStockListMarket.vue index e4db1301..6bf8925f 100644 --- a/src/views/distribution/inventory/distributionStockListMarket.vue +++ b/src/views/distribution/inventory/distributionStockListMarket.vue @@ -826,7 +826,7 @@ export default { //查询物料数据 let asd = await getListMaterial(this.page.currentPage, this.page.pageSize, { name: query, - pid: this.stockList.materialId, + // pid: this.stockList.materialId, }).then(); console.log('物料信息', asd.data.data); if (!!asd.data.data) { @@ -1115,7 +1115,7 @@ export default { this.getQuery.quantityStock = row.row.quantityStock; this.formInline.descriptionGoods = this.getQuery.name; let q = this.distributionUnit.find(i => i.dictKey == this.getQuery.logpmUnit); - this.getQuery.logpmUnitName = q.dictValue; + this.getQuery.logpmUnitName =q?q.dictValue:null; // getListParcelDetails(this.pageDetails.currentPage,this.pageDetails.pageSize,par).then(res => { // console.log("<><>===", res.data.data); // const data = res.data.data;