bug修改

This commit is contained in:
zzyuan 2025-10-30 19:05:35 +08:00
parent 18dd923bfa
commit cac93fef29
8 changed files with 32 additions and 18 deletions

View File

@ -67,7 +67,11 @@
<el-descriptions-item>
<template slot="label">备注</template>
{{ baseInfo.remark }}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">负责人</template>
{{ baseInfo.contractPersonName }}
</el-descriptions-item>
</el-descriptions>
</div>

View File

@ -28,7 +28,7 @@
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">联系人</template>
{{ baseInfo.linkMan }}
{{ baseInfo.linkManName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">联系电话</template>

View File

@ -28,7 +28,7 @@
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">联系人</template>
{{ baseInfo.linkMan }}
{{ baseInfo.linkManName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">联系电话</template>

View File

@ -36,7 +36,7 @@
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">验货人</template>
{{ baseInfo.inspector }}
{{ baseInfo.inspectorName }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">备注</template>

View File

@ -479,9 +479,9 @@ export default {
},
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 -1);
end.setTime(end.getTime() + 16 * 24 * 60 * 60 * 1000 -1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 30 * 24 * 60 * 60 * 1000);
start.setTime(start.getTime() - 15 * 24 * 60 * 60 * 1000);
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]

View File

@ -14,9 +14,9 @@
<el-form-item label="仓库名称" prop="warehouseName">
<el-input v-model="queryParams.warehouseName" placeholder="请输入仓库名称" maxlength="20" clearable style="width: 220px"/>
</el-form-item>
<el-form-item label="负责人" prop="manager">
<!-- <el-form-item label="负责人" prop="manager">
<el-input v-model="queryParams.manager" placeholder="请输入负责人" maxlength="20" clearable style="width: 220px"/>
</el-form-item>
</el-form-item> -->
<el-form-item label="仓库类别" prop="categoryId">
<el-select v-model="queryParams.categoryId" placeholder="仓库类别" clearable style="width: 240px" >
<el-option
@ -73,7 +73,7 @@
<el-table-column label="所属区域" align="center" prop="areaName" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="所属食堂" align="center" prop="canteenName" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="仓库地址" align="center" prop="address" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="负责人" align="center" prop="manager" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="负责人" align="center" prop="managerName" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="手机号" align="center" prop="managerPhone" :show-overflow-tooltip="true" ></el-table-column>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope">
@ -207,8 +207,7 @@ export default {
dicts: ['warehouse_category'],
data() {
return {
contractPersonOptions: [], //
contractPerson: '', //
contractPersonOptions: [], //
//
loading: true,
//
@ -341,8 +340,7 @@ export default {
this.title = "修改";
},
/** 提交按钮 */
submitForm: function() {
this.form.manager = this.contractPerson; // form.manager
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.warehouseId != undefined) {

View File

@ -425,9 +425,11 @@ export default {
"ifSupply": row.ifSupply
}
if(!row.materialId){//
param.categoryId = row.materialTypeId
param.categoryId = row.materialTypeId;
param.bingType = 2;
}else{//
param.materialId = row.materialId
param.bingType = 1;
}
supplierBindMaterialApi(param).then(response => {
this.$modal.msgSuccess("修改成功");
@ -448,8 +450,10 @@ export default {
}
if(!row.materialId){//
param.categoryId = row.materialTypeId
param.bingType = 2;
}else{//
param.materialId = row.materialId
param.bingType = 1;
}
supplierBindMaterialApi(param).then(response => {
this.$modal.msgSuccess("修改成功");
@ -472,8 +476,10 @@ export default {
}
if(!row.materialId){//
param.categoryId = row.materialTypeId
param.bingType = 1;
}else{//
param.materialId = row.materialId
param.bingType = 1;
}
if(row.supplierIdList&&row.supplierIdList.length>0){
row.supplierIdList.forEach(item => {
@ -569,11 +575,13 @@ export default {
"ifSupply": "1"
}
this.batchRows.forEach(item=>{
if(!item.materialId){
if(!item.materialId){//
param.categoryIds.push(item.materialTypeId)
param.bingType = 1;
param.materialIds=null
}else{
}else{//
param.materialIds.push(item.materialId)
param.bingType = 2;
param.categoryIds=null
}
})
@ -626,7 +634,7 @@ export default {
}
materialTypeBindSupplierPageApi(param).then(response => {
this.tableListData2 = response.rows;
this.tableListData2.forEach(item=>{
this.tableListData2.forEach((item,index)=>{
let arr=[]
if(item.alternativeSuppliers&&item.alternativeSuppliers.length>0){
item.alternativeSuppliers.forEach(sub=>{
@ -634,6 +642,10 @@ export default {
})
}
this.$set(item,"supplierIdList",arr)
if(item.parentId==-1){
// if(item.materialTypeName==''){
this.tableListData2.splice(index,1)
}
})
this.total2 = Number(response.total);
this.loading = false;

View File

@ -282,7 +282,7 @@ export default {
handleUpdate(row) {
console.log("row", row);
this.reset();
getListApi(row.id).then(response => {
getListApi({id:row.id}).then(response => {
console.log("response",response);
this.form = response.rows[0];
if(response.rows[0].photoUrl){