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] =?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;