From 5fa12dd165b977cc928d3f5bfd71a47240ab50da Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Mon, 8 Sep 2025 16:46:34 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E4=BF=AE=E6=94=B93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/canteen/dish/menu/detail.vue | 72 ++---
src/views/canteen/dish/menu/edit.vue | 111 ++++----
src/views/foodManage/index.vue | 10 +-
.../pickManage/materialPicking/edit.vue | 155 +++++-----
.../purchaseManage/contractList/edit.vue | 145 +++++++++-
.../purchaseManage/goodsInquiry/index.vue | 4 +-
.../purchaseManage/productionPlan/index.vue | 4 +-
.../purchaseInspection/edit.vue | 266 +++++++++---------
.../purchaseManage/purchasePlan/edit.vue | 10 +-
.../stockManage/warehouseIn/edit.vue | 38 +--
.../stockReport/expiredWarning/index.vue | 2 +-
.../supplierQuotation/detail.vue | 7 +-
.../supplierQuotation/edit.vue | 13 +-
.../supplierQuotation/index.vue | 31 +-
.../supplierManage/supplierList/index.vue | 2 +
15 files changed, 518 insertions(+), 352 deletions(-)
diff --git a/src/views/canteen/dish/menu/detail.vue b/src/views/canteen/dish/menu/detail.vue
index e90e3d30..c50c6ef0 100644
--- a/src/views/canteen/dish/menu/detail.vue
+++ b/src/views/canteen/dish/menu/detail.vue
@@ -964,42 +964,44 @@ export default {
confirmSubmit(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = this.baseInfo
- if(this.baseInfo.recipeType==1){
- param.recipeDateList = this.dateRangeList;
- }
- if(this.baseInfo.recipeType==2){
- param.recipeDateList = [{
- anyone:"repeat",
- detailList:this.detailList
- }]
- }
- if(this.baseInfo.recipeType==3){
- param.recipeDateList = this.weekDateList
- }
- this.noDishes = true;
- param.recipeDateList.forEach(item=>{
- item.detailList.forEach(subItem=>{
- if(subItem.dishesList.length>0){
- this.noDishes=false
- subItem.dishesList.forEach(dishItem=>{
- dishItem.price = Number(dishItem.price)
- dishItem.salePrice = Number(dishItem.salePrice)
- })
- }
+ setTimeout(()=>{
+ let param = this.baseInfo
+ if(this.baseInfo.recipeType==1){
+ param.recipeDateList = this.dateRangeList;
+ }
+ if(this.baseInfo.recipeType==2){
+ param.recipeDateList = [{
+ anyone:"repeat",
+ detailList:this.detailList
+ }]
+ }
+ if(this.baseInfo.recipeType==3){
+ param.recipeDateList = this.weekDateList
+ }
+ this.noDishes = true;
+ param.recipeDateList.forEach(item=>{
+ item.detailList.forEach(subItem=>{
+ if(subItem.dishesList.length>0){
+ this.noDishes=false
+ subItem.dishesList.forEach(dishItem=>{
+ dishItem.price = Number(dishItem.price)
+ dishItem.salePrice = Number(dishItem.salePrice)
+ })
+ }
+ })
})
- })
- if(this.noDishes){
- this.$modal.msgError("请选中菜品!");
- }else{
- this.loading=true
- addMenuRecipeApi(param).then((response) => {
- this.loading=false
- this.jumpList()
- }).catch(() => {
- this.loading=false
- });
- }
+ if(this.noDishes){
+ this.$modal.msgError("请选中菜品!");
+ }else{
+ this.loading=true
+ addMenuRecipeApi(param).then((response) => {
+ this.loading=false
+ this.jumpList()
+ }).catch(() => {
+ this.loading=false
+ });
+ }
+ },500)
}
});
},
diff --git a/src/views/canteen/dish/menu/edit.vue b/src/views/canteen/dish/menu/edit.vue
index 517e60c6..f6b27832 100644
--- a/src/views/canteen/dish/menu/edit.vue
+++ b/src/views/canteen/dish/menu/edit.vue
@@ -1168,66 +1168,67 @@ export default {
confirmSubmit(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = this.baseInfo
- if(this.baseInfo.recipeType==1){
- param.recipeDateList = []
- this.dateRangeList.forEach(item=>{
- let index = item.detailList.findIndex(subItem=>subItem.dishesList.length>0)
- if(index>-1){
- param.recipeDateList.push(item)
- }else{
- if(item.editStatus){
+ setTimeout(()=>{
+ let param = this.baseInfo
+ if(this.baseInfo.recipeType==1){
+ param.recipeDateList = []
+ this.dateRangeList.forEach(item=>{
+ let index = item.detailList.findIndex(subItem=>subItem.dishesList.length>0)
+ if(index>-1){
param.recipeDateList.push(item)
+ }else{
+ if(item.editStatus){
+ param.recipeDateList.push(item)
+ }
}
- }
- })
- }
- if(this.baseInfo.recipeType==2){
- param.recipeDateList = [{
- anyone:"repeat",
- detailList:this.detailList
- }]
- }
- if(this.baseInfo.recipeType==3){
- param.recipeDateList = []
- this.weekDateList.forEach(item=>{
- let index = item.detailList.findIndex(subItem=>subItem.dishesList.length>0)
- if(index>-1){
- param.recipeDateList.push(item)
- }else{
- if(item.editStatus){
+ })
+ }
+ if(this.baseInfo.recipeType==2){
+ param.recipeDateList = [{
+ anyone:"repeat",
+ detailList:this.detailList
+ }]
+ }
+ if(this.baseInfo.recipeType==3){
+ param.recipeDateList = []
+ this.weekDateList.forEach(item=>{
+ let index = item.detailList.findIndex(subItem=>subItem.dishesList.length>0)
+ if(index>-1){
param.recipeDateList.push(item)
- }
- }
-
+ }else{
+ if(item.editStatus){
+ param.recipeDateList.push(item)
+ }
+ }
+
+ })
+ }
+ this.noDishes = true;
+ param.recipeDateList.forEach(item=>{
+ item.detailList.forEach(subItem=>{
+ if(subItem.dishesList.length>0){
+ this.noDishes=false
+ subItem.dishesList.forEach(dishItem=>{
+ dishItem.price = Number(dishItem.price)
+ dishItem.salePrice = Number(dishItem.salePrice)
+ })
+ }
+ })
})
- }
- this.noDishes = true;
- param.recipeDateList.forEach(item=>{
- item.detailList.forEach(subItem=>{
- if(subItem.dishesList.length>0){
- this.noDishes=false
- subItem.dishesList.forEach(dishItem=>{
- dishItem.price = Number(dishItem.price)
- dishItem.salePrice = Number(dishItem.salePrice)
- })
- }
- })
- })
- console.log(param)
- if(this.noDishes){
- this.$modal.msgError("请选中菜品!");
- }else{
- this.loading=true
- editMenuRecipeApi(param).then((response) => {
- this.loading=false
- this.jumpList()
- }).catch(() => {
- this.loading=false;
+ console.log(param)
+ if(this.noDishes){
+ this.$modal.msgError("请选中菜品!");
+ }else{
+ this.loading=true
+ editMenuRecipeApi(param).then((response) => {
+ this.loading=false
+ this.jumpList()
+ }).catch(() => {
+ this.loading=false;
- });
- }
-
+ });
+ }
+ },500)
}
});
},
diff --git a/src/views/foodManage/index.vue b/src/views/foodManage/index.vue
index 28aeb7af..73fe15a0 100644
--- a/src/views/foodManage/index.vue
+++ b/src/views/foodManage/index.vue
@@ -432,7 +432,7 @@ export default {
{
type: "category",
inverse: true,
- offset: 60,
+ offset: 90,
axisLabel: {
show: true,
align: "left",
@@ -444,7 +444,7 @@ export default {
var str = "";
var no = "NO.";
num = index + 1;
- value = value.length > 7 ? value.slice(0, 7) + '...' : value
+ value = value.length > 5 ? value.slice(0, 5) + '...' : value
if (index === 0) {
str = " {num1|" + num + "} {title1|" + value + "}";
} else if (index === 1) {
@@ -537,7 +537,7 @@ export default {
{
type: "category",
inverse: true,
- offset: -10,
+ offset: -40,
axisTick: "none",
axisLine: "none",
show: true,
@@ -747,7 +747,7 @@ export default {
{
type: "category",
inverse: true,
- offset: 100,
+ offset: 90,
axisLabel: {
show: true,
align: "left",
@@ -759,7 +759,7 @@ export default {
var str = "";
var no = "NO.";
num = index + 1;
- value = value.length > 7 ? value.slice(0, 7) + '...' : value
+ value = value.length > 5 ? value.slice(0, 5) + '...' : value
if (index === 0) {
str = " {num1|" + num + "} {title1|" + value + "}";
} else if (index === 1) {
diff --git a/src/views/foodManage/pickManage/materialPicking/edit.vue b/src/views/foodManage/pickManage/materialPicking/edit.vue
index d18aa774..7f83ad74 100644
--- a/src/views/foodManage/pickManage/materialPicking/edit.vue
+++ b/src/views/foodManage/pickManage/materialPicking/edit.vue
@@ -549,46 +549,50 @@ export default {
confirmSave(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
- param.totalNum=0
- param.detailList = []
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.fetchNum==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- // obj.singlePrice = Number(obj.singlePrice)*100
- // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
- // param.orderAmount = param.orderAmount+obj.totalPrice;
- param.totalNum = param.totalNum+Number(obj.fetchNum)
- param.detailList.push(obj)
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入货品数量!");
- }else{
- this.noMaterial = true;
- if(this.materialList.length>0){
- this.noMaterial = false;
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
+ param.totalNum=0
+ param.detailList = []
+ this.noMaterial = false;
+ if(this.materialList.length>0){
+ this.materialList.forEach(item=>{
+ if(item.fetchNum==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ // obj.singlePrice = Number(obj.singlePrice)*100
+ // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
+ // param.orderAmount = param.orderAmount+obj.totalPrice;
+ param.totalNum = param.totalNum+Number(obj.fetchNum)
+ param.detailList.push(obj)
+ }
+ })
}
- console.log(param)
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入货品数量!");
}else{
- this.loadingBtn=true;
- addFetchMaterialApi(param).then((response) => {
- this.$modal.msgSuccess("保存成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- }
- }
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ setTimeout(()=>{
+ addFetchMaterialApi(param).then((response) => {
+ this.$modal.msgSuccess("保存成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ },500)
+ }
+ }
+ },500)
}
});
},
@@ -596,47 +600,48 @@ export default {
confirmSubmit(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
- param.totalNum=0
- param.detailList = []
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.fetchNum==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- // obj.singlePrice = Number(obj.singlePrice)*100
- // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
- // param.orderAmount = param.orderAmount+obj.totalPrice;
- param.totalNum = param.totalNum+Number(obj.fetchNum)
- param.detailList.push(obj)
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入货品数量!");
- }else{
- this.noMaterial = true;
- if(this.materialList.length>0){
- this.noMaterial = false;
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.fetchMaterialTime = this.formatDateTime(this.baseInfo.fetchMaterialTime)
+ param.totalNum=0
+ param.detailList = []
+ this.noMaterial = false;
+ if(this.materialList.length>0){
+ this.materialList.forEach(item=>{
+ if(item.fetchNum==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ // obj.singlePrice = Number(obj.singlePrice)*100
+ // obj.totalPrice = (Number(obj.singlePrice)*Number(obj.fetchNum))
+ // param.orderAmount = param.orderAmount+obj.totalPrice;
+ param.totalNum = param.totalNum+Number(obj.fetchNum)
+ param.detailList.push(obj)
+ }
+ })
}
- console.log(param)
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入货品数量!");
}else{
- this.loadingBtn=true;
- editFetchMaterialApi(param).then((response) => {
- this.$modal.msgSuccess("提交成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ editFetchMaterialApi(param).then((response) => {
+ this.$modal.msgSuccess("提交成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ }
}
- }
-
+ },500)
}
});
},
@@ -725,7 +730,7 @@ export default {
if(Number(row.fetchNum)>Number(row.materialNum)){
row.fetchNum = row.materialNum
}
- },500)
+ },200)
},
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
diff --git a/src/views/foodManage/purchaseManage/contractList/edit.vue b/src/views/foodManage/purchaseManage/contractList/edit.vue
index f8a821fd..e03a5b69 100644
--- a/src/views/foodManage/purchaseManage/contractList/edit.vue
+++ b/src/views/foodManage/purchaseManage/contractList/edit.vue
@@ -116,6 +116,7 @@
添加货品
+ 导入采购订单
删除
@@ -226,6 +227,57 @@
取 消
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+ {{(queryParams2.pageNum - 1) * queryParams2.pageSize + scope.$index + 1}}
+
+
+
+
+
+
+ {{ (scope.row.orderAmount/100).toFixed(2) }}
+
+
+
+
+
+
+ 导入
+
+
+
+
+
+
+
@@ -234,6 +286,7 @@ import { imgUpLoadTwo } from '@/api/system/upload'
import { systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi } from "@/api/base/stall";
import { systemMaterialTreeApi,getMaterialListApi,supplierPageApi } from "@/api/foodManage/purchaseManage";
import { getPurchaseContractInfoApi,addPurchaseContractApi,editPurchaseContractApi,delPurchaseContractApi } from "@/api/foodManage/purchaseManage";
+import { purchaseOrderPageApi,getPurchaseOrderInfoApi } from "@/api/foodManage/purchaseManage";
export default {
name: "ContractEdit",
dicts: [],
@@ -296,7 +349,18 @@ export default {
tableListData: [],//货品弹窗-货品表格数据
batchChosenMaterial:[],//货品弹窗-货品表格-选中的货品数组
noMaterial:false,
-
+ //导入功能
+ openImportDialog:false,
+ queryParams2: { // 货品弹窗-货品表格-查询参数
+ pageNum: 1,
+ pageSize: 10,
+ orderGoodsCode:null
+ },
+ loading2:false,
+ total2: 0, // 总条数
+ tableListData2: [],//导入弹窗-表格数据
+ importRow:{},//导入弹窗-表格数据-选中数据
+ materialDetailsData: [],//导入弹窗-明细数据
};
},
created() {
@@ -626,7 +690,84 @@ export default {
}
});
},
-
+ //导入
+ importPurchaseOrder(){
+ if(this.baseInfo.areaId!=undefined||this.baseInfo.deliveryWarehouseId!=undefined||this.baseInfo.supplierId!=undefined){
+ this.openImportDialog=true
+ this.resetQuery2()
+ // setTimeout(()=>{
+ // this.$refs.multipleTable2.clearSelection()
+ // },300)
+ }else{
+ this.$modal.msgError("请先选择区域,供应商");
+ }
+ },
+ /** 搜索按钮操作 */
+ handleQuery2() {
+ this.queryParams2.pageNum = 1;
+ this.getList2();
+ },
+ /** 重置按钮操作 */
+ resetQuery2() {
+ this.queryParams2 = {
+ pageNum: 1,
+ pageSize: 10,
+ }
+ this.resetForm("queryForm2");
+ this.handleQuery2();
+ },
+ /** 查询列表 */
+ getList2() {
+ this.loading2 = true;
+ let param = {
+ "pageSize": this.queryParams2.pageSize,
+ "pageNum": this.queryParams2.pageNum,
+ "orderGoodsCode": this.queryParams2.orderGoodsCode,
+ "orderStatus":2,
+ // "isInspect":2,
+ "areaId": this.baseInfo.areaId,
+ // "warehouseId": this.baseInfo.deliveryWarehouseId,
+ "supplierId": this.baseInfo.supplierId,
+ }
+ purchaseOrderPageApi(param).then(response => {
+ this.tableListData2 = response.rows;
+ this.total2 = Number(response.total);
+ this.loading2 = false;
+ });
+ },
+ confirmImport(row){
+ console.log(row)
+ this.importRow = row;
+ let param = {
+ orderGoodsId:this.importRow.orderGoodsId
+ }
+ getPurchaseOrderInfoApi(param).then((response) => {
+ this.materialDetailsData = response.data.orderGoodsDetailList||[];
+ this.$modal.confirm('是否确认导入采购订单?').then(()=>{
+ if(this.materialDetailsData.length>0){
+ this.contractMaterialList = this.materialDetailsData;
+ this.contractMaterialList.forEach(item=>{
+ this.$set(item,"singlePrice",Number(item.singlePrice/100))
+ this.$set(item,"orderNum",item.orderNum)
+ // if(item.totalQualifiedNum&&item.totalQualifiedNum>0){
+ // this.$set(item,"deliveryNum",Number(item.orderNum)-Number(item.totalQualifiedNum))
+ // this.$set(item,"qualifiedNum",Number(item.orderNum)-Number(item.totalQualifiedNum))
+ // }else{
+ // this.$set(item,"deliveryNum",Number(item.orderNum))
+ // this.$set(item,"qualifiedNum",Number(item.orderNum))
+ // }
+ })
+ // this.baseInfo.relateOrderGoodsId = this.importRow.orderGoodsCode;
+ this.$set(this.baseInfo,"remark","导入采购订单")
+ setTimeout(()=>{
+ this.openImportDialog=false
+ },500)
+ }else{
+ this.$modal.msgError("采购订单明细无货品!");
+ }
+ }).catch(() => {});
+ });
+ },
//附件上传
fileUpLoad(param){
param.type = 'canteen'
diff --git a/src/views/foodManage/purchaseManage/goodsInquiry/index.vue b/src/views/foodManage/purchaseManage/goodsInquiry/index.vue
index 48cc1ea4..acc426e9 100644
--- a/src/views/foodManage/purchaseManage/goodsInquiry/index.vue
+++ b/src/views/foodManage/purchaseManage/goodsInquiry/index.vue
@@ -97,12 +97,12 @@
-
+
-
-
-
-
+
+
+
+
-
+
-
+
{{ (scope.row.unitPrice/100).toFixed(2) }}
@@ -169,7 +169,7 @@
multiple: true,
emitPath: false,// 若设置 false,则只返回该节点的值,只返回最后选择的id
checkStrictly: false,//来设置父子节点取消选中关联,从而达到选择任意一级选项的目的
- value:'id',label:'categoryName'
+ value:'id',label:'categoryName'
}" collapse-tags>
@@ -332,7 +332,7 @@ export default {
{ required: true, message: "验货人不能为空", trigger: "blur" }
],
inspectAttachmentList: [
- { required: true, message: "合同附件不能为空", trigger: "change" }
+ { required: true, message: "查验附件不能为空", trigger: "change" }
],
},
treeAreaOptions:[],
@@ -564,66 +564,68 @@ export default {
//保存草稿
confirmSave(){
this.$refs["baseInfo"].validate(valid => {
- if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.deliveryDate = this.formatDate(this.baseInfo.deliveryDate)
- param.deliveryTotalNum = 0;//送货总数量
- param.inspectQualifiedNum = 0;//验货合格总数量
- param.status=1
- param.inspectGoodsDetails = []
- param.inspectAttachment = ""
- if(this.attachmentList.length>0){
- let arr = this.attachmentList.map(item=>item.url)
- param.inspectAttachment = arr.join(',')
- console.log(param)
- }
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.orderNum>item.totalQualifiedNum){
- if(Number(item.deliveryNum)==0 || Number(item.qualifiedNum)==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- param.deliveryTotalNum = param.deliveryTotalNum+Number(obj.deliveryNum)//送货总数量
- param.inspectQualifiedNum = param.inspectQualifiedNum+Number(obj.qualifiedNum)//验货合格总数量
- param.inspectGoodsDetails.push(obj)
- }
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入单价和数量!");
- }else{
- this.noMaterial = true;
+ if (valid) {
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.deliveryDate = this.formatDate(this.baseInfo.deliveryDate)
+ param.deliveryTotalNum = 0;//送货总数量
+ param.inspectQualifiedNum = 0;//验货合格总数量
+ param.status=1
+ param.inspectGoodsDetails = []
+ param.inspectAttachment = ""
+ if(this.attachmentList.length>0){
+ let arr = this.attachmentList.map(item=>item.url)
+ param.inspectAttachment = arr.join(',')
+ console.log(param)
+ }
+ this.noMaterial = false;
if(this.materialList.length>0){
- this.noMaterial = false;
- }
- console.log(param)
+ this.materialList.forEach(item=>{
+ if(item.orderNum>item.totalQualifiedNum){
+ if(Number(item.deliveryNum)==0 || Number(item.qualifiedNum)==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ param.deliveryTotalNum = param.deliveryTotalNum+Number(obj.deliveryNum)//送货总数量
+ param.inspectQualifiedNum = param.inspectQualifiedNum+Number(obj.qualifiedNum)//验货合格总数量
+ param.inspectGoodsDetails.push(obj)
+ }
+ }
+ })
+ }
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入单价和数量!");
}else{
- this.loadingBtn=true;
- if (this.baseInfo.inspectGoodsId != undefined) {
- editPurchaseInspectApi(param).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- } else {
- addPurchaseInspectApi(param).then((response) => {
- this.$modal.msgSuccess("保存成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- }
-
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ if (this.baseInfo.inspectGoodsId != undefined) {
+ editPurchaseInspectApi(param).then((response) => {
+ this.$modal.msgSuccess("修改成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ } else {
+ addPurchaseInspectApi(param).then((response) => {
+ this.$modal.msgSuccess("保存成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ }
+
+ }
}
- }
+ },500)
}
});
},
@@ -631,65 +633,67 @@ export default {
confirmSubmit(){
this.$refs["baseInfo"].validate(valid => {
if (valid) {
- let param = Object.assign({},this.baseInfo);
- param.deliveryDate = this.formatDate(this.baseInfo.deliveryDate)
- param.deliveryTotalNum = 0;//送货总数量
- param.inspectQualifiedNum = 0;//验货合格总数量
- param.status=2
- param.inspectGoodsDetails = []
- param.inspectAttachment = ""
- if(this.attachmentList.length>0){
- let arr = this.attachmentList.map(item=>item.url)
- param.inspectAttachment = arr.join(',')
- console.log(param)
- }
- this.noMaterial = false;
- if(this.materialList.length>0){
- this.materialList.forEach(item=>{
- if(item.orderNum>item.totalQualifiedNum){
- if(Number(item.deliveryNum)==0 || Number(item.qualifiedNum)==0){
- this.noMaterial = true
- }else{
- let obj = Object.assign({}, item)
- param.deliveryTotalNum = param.deliveryTotalNum+Number(obj.deliveryNum)//送货总数量
- param.inspectQualifiedNum = param.inspectQualifiedNum+Number(obj.qualifiedNum)//验货合格总数量
- param.inspectGoodsDetails.push(obj)
- }
- }
- })
- }
- if(this.noMaterial){
- this.$modal.msgError("请输入表格数据!");
- }else{
- this.noMaterial = true;
- if(this.materialList.length>0){
- this.noMaterial = false;
+ setTimeout(()=>{
+ let param = Object.assign({},this.baseInfo);
+ param.deliveryDate = this.formatDate(this.baseInfo.deliveryDate)
+ param.deliveryTotalNum = 0;//送货总数量
+ param.inspectQualifiedNum = 0;//验货合格总数量
+ param.status=2
+ param.inspectGoodsDetails = []
+ param.inspectAttachment = ""
+ if(this.attachmentList.length>0){
+ let arr = this.attachmentList.map(item=>item.url)
+ param.inspectAttachment = arr.join(',')
+ console.log(param)
+ }
+ this.noMaterial = false;
+ if(this.materialList.length>0){
+ this.materialList.forEach(item=>{
+ if(item.orderNum>item.totalQualifiedNum){
+ if(Number(item.deliveryNum)==0 || Number(item.qualifiedNum)==0){
+ this.noMaterial = true
+ }else{
+ let obj = Object.assign({}, item)
+ param.deliveryTotalNum = param.deliveryTotalNum+Number(obj.deliveryNum)//送货总数量
+ param.inspectQualifiedNum = param.inspectQualifiedNum+Number(obj.qualifiedNum)//验货合格总数量
+ param.inspectGoodsDetails.push(obj)
+ }
+ }
+ })
}
- console.log(param)
if(this.noMaterial){
- this.$modal.msgError("请添加货品!");
+ this.$modal.msgError("请输入表格数据!");
}else{
- this.loadingBtn=true;
- if (this.baseInfo.inspectGoodsId != undefined) {
- editPurchaseInspectApi(param).then((response) => {
- this.$modal.msgSuccess("修改成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- } else {
- addPurchaseInspectApi(param).then((response) => {
- this.$modal.msgSuccess("保存成功");
- this.loadingBtn=false
- this.jumpList()
- }).catch(() => {
- this.loadingBtn=false
- });
- }
-
+ this.noMaterial = true;
+ if(this.materialList.length>0){
+ this.noMaterial = false;
+ }
+ console.log(param)
+ if(this.noMaterial){
+ this.$modal.msgError("请添加货品!");
+ }else{
+ this.loadingBtn=true;
+ if (this.baseInfo.inspectGoodsId != undefined) {
+ editPurchaseInspectApi(param).then((response) => {
+ this.$modal.msgSuccess("修改成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ } else {
+ addPurchaseInspectApi(param).then((response) => {
+ this.$modal.msgSuccess("保存成功");
+ this.loadingBtn=false
+ this.jumpList()
+ }).catch(() => {
+ this.loadingBtn=false
+ });
+ }
+
+ }
}
- }
+ },500)
}
});
},
@@ -828,14 +832,16 @@ export default {
setTimeout(()=>{
if(Number(row.deliveryNum)>(Number(row.orderNum)-Number(row.totalQualifiedNum))){
row.deliveryNum = Number(row.orderNum)-Number(row.totalQualifiedNum)
+ row.qualifiedNum = Number(row.orderNum)-Number(row.totalQualifiedNum)
}
- },500)
+ },200)
}else{
setTimeout(()=>{
- if(Number(row.deliveryNum)>Number(row.orderNum)){
+ if(Number(row.deliveryNum)>Number(row.orderNum)){
row.deliveryNum = Number(row.orderNum)
+ row.qualifiedNum = Number(row.orderNum)
}
- },500)
+ },200)
}
},
patternValue2(row){
@@ -848,7 +854,7 @@ export default {
if(Number(row.qualifiedNum)>Number(row.deliveryNum)){
row.qualifiedNum = Number(row.deliveryNum)
}
- },500)
+ },200)
},
//日期
formatDate(date) {
diff --git a/src/views/foodManage/purchaseManage/purchasePlan/edit.vue b/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
index 694e2aee..6f30736b 100644
--- a/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
+++ b/src/views/foodManage/purchaseManage/purchasePlan/edit.vue
@@ -421,9 +421,9 @@ export default {
},
//获取参考价
async checkMaterialPrice(){
- if(this.batchChosenMaterial.length>0){
- console.log(this.batchChosenMaterial)
- let arr = this.batchChosenMaterial.map(item=>item.materialId)
+ if(this.materialList.length>0){
+ console.log(this.materialList)
+ let arr = this.materialList.map(item=>item.materialId)
let param = {
materialIds:arr,
type:3
@@ -434,8 +434,8 @@ export default {
console.log(res)
this.$modal.msgSuccess("获取成功!");
res.data.forEach(item=>{
- let index = this.batchChosenMaterial.findIndex(v=>v.materialId==item.materialId)
- this.$set(this.batchChosenMaterial[index],"unitPrice",item.unitPrice/100)
+ let index = this.materialList.findIndex(v=>v.materialId==item.materialId)
+ this.$set(this.materialList[index],"unitPrice",item.unitPrice/100)
})
}
}else{
diff --git a/src/views/foodManage/stockManage/warehouseIn/edit.vue b/src/views/foodManage/stockManage/warehouseIn/edit.vue
index da55c9e8..5aaa1901 100644
--- a/src/views/foodManage/stockManage/warehouseIn/edit.vue
+++ b/src/views/foodManage/stockManage/warehouseIn/edit.vue
@@ -9,13 +9,13 @@
-
+
-
+
@@ -75,9 +75,9 @@
:label="item.supplierName"
:value="item.supplierId"
>
-
+
-
+
-
+
{{ scope.row.unitPrice }}
- (scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
+ (scope.row.unitPrice=v.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1'))"/>
@@ -116,9 +116,9 @@
{{scope.row.intoNum}}
-
+
-
+
@@ -409,16 +409,16 @@ export default {
this.getSupplierData()
},
/** 查询供应商下拉结构 */
- getWareHouseData() {
+ getWareHouseData() {
drpWareHousePageApi({ areaId:this.baseInfo.areaId }).then((response) => {
this.wareHouseOptions = response.rows||[];
if(this.wareHouseOptions.length>0){
this.$set(this.baseInfo,"warehouseId",this.wareHouseOptions[0].warehouseId)
}
});
- },
+ },
/** 查询供应商下拉结构 */
- getSupplierData() {
+ getSupplierData() {
supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
this.supplierOptions = response.rows||[];
});
@@ -448,7 +448,7 @@ export default {
this.materialList.splice(index,1)
}
})
- setTimeout(()=>{
+ setTimeout(()=>{
this.$refs.multipleTable.clearSelection()
},300)
},
@@ -498,7 +498,7 @@ export default {
},
handleSelectionChange2(selection) {
this.batchChosenMaterial = [];
- selection.forEach(item=>{
+ selection.forEach(item=>{
let obj = Object.assign({}, item)
obj.unitPrice = item.unitPrice/100;
this.$set(obj,"purNum",0)
@@ -526,7 +526,7 @@ export default {
this.loading = false
this.openDialog=false
},500)
- }
+ }
}
},
//保存草稿
@@ -542,6 +542,7 @@ export default {
this.noMaterial = false;
if(this.materialList.length>0){
this.materialList.forEach(item=>{
+ this.$set(item,"purNum",Number(item.purNum))
if(item.unitPrice==0 || item.purNum==0 || item.supplierId==null || !item.productDate|| !item.expireTime){
this.noMaterial = true
}else{
@@ -602,6 +603,7 @@ export default {
this.noMaterial = false;
if(this.materialList.length>0){
this.materialList.forEach(item=>{
+ this.$set(item,"purNum",Number(item.purNum))
if(item.unitPrice==0 || item.purNum==0 || item.supplierId==null || !item.productDate|| !item.expireTime){
this.noMaterial = true
}else{
@@ -683,7 +685,7 @@ export default {
"pageNum": this.queryParams2.pageNum,
"orderGoodsCode": this.queryParams2.orderGoodsCode,
"orderStatus":2,
- "ifAllInto":2,
+ "ifAllInto":2,
"areaId": this.baseInfo.areaId,
"warehouseId": this.baseInfo.warehouseId,
"supplierId": this.baseInfo.deliverySupplierId,
@@ -727,13 +729,13 @@ export default {
},
patternValue(row){
row.purNum = row.purNum.replace(/[^\d.]/g, '').replace(/^(\d*\.\d{2}).*$/, '$1')
- if(row.intoNum&&row.intoNum>0){
+ if(row.intoNum&&row.intoNum>0){
setTimeout(()=>{
if(Number(row.purNum)>(Number(row.totalQualifiedNum)-Number(row.intoNum))){
row.purNum = Number(row.totalQualifiedNum)-Number(row.intoNum)
}
},500)
- }else{
+ }else{
setTimeout(()=>{
if(Number(row.purNum)>Number(row.totalQualifiedNum)){
row.purNum = Number(row.totalQualifiedNum)
diff --git a/src/views/foodManage/stockReport/expiredWarning/index.vue b/src/views/foodManage/stockReport/expiredWarning/index.vue
index 2aa1d6e1..acd5db51 100644
--- a/src/views/foodManage/stockReport/expiredWarning/index.vue
+++ b/src/views/foodManage/stockReport/expiredWarning/index.vue
@@ -28,7 +28,7 @@
-
+
diff --git a/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue b/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
index 8142e383..53ae0b3f 100644
--- a/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
+++ b/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
@@ -89,7 +89,7 @@
From cdfa2ec3da00abf7d0450e13509eab1bdbdcdb7b Mon Sep 17 00:00:00 2001
From: jiask <1069621233@qq.com>
Date: Thu, 11 Sep 2025 15:13:02 +0800
Subject: [PATCH 06/12] JSK
---
src/api/healthCenter/index.js | 11 ++
.../healthCenter/examinationReport/index.vue | 120 +++++++++---------
2 files changed, 73 insertions(+), 58 deletions(-)
diff --git a/src/api/healthCenter/index.js b/src/api/healthCenter/index.js
index e4946d57..9be5acab 100644
--- a/src/api/healthCenter/index.js
+++ b/src/api/healthCenter/index.js
@@ -157,6 +157,17 @@ export function delHealthInfoApi(data) {
data: data
})
}
+
+export function getHealthReportPageApi(data) {
+ return request({
+ url: '/smart-canteen/health_person_medical_report/list',
+ method: 'get',
+ headers: {
+ //"merchant-id":"378915229716713472",
+ },
+ params:data
+ })
+}
// 模板-列表
export function getModelListApi() {
return request({
diff --git a/src/views/canteen/healthCenter/examinationReport/index.vue b/src/views/canteen/healthCenter/examinationReport/index.vue
index 71550f5b..2bc4b2e1 100644
--- a/src/views/canteen/healthCenter/examinationReport/index.vue
+++ b/src/views/canteen/healthCenter/examinationReport/index.vue
@@ -42,8 +42,6 @@
-
-
轻劳动
@@ -70,7 +68,7 @@
@pagination="getList"
/>
-
+
删除
-
+
@@ -302,7 +300,7 @@
From ae8c8f584e023cbe1d2f8df3f3e2886c31ab3668 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Fri, 12 Sep 2025 17:56:54 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierQuotation/detail.vue | 23 ++++++++++---------
.../supplierQuotation/edit.vue | 3 ++-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue b/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
index 53ae0b3f..df789204 100644
--- a/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
+++ b/src/views/foodManage/supplierFunction/supplierQuotation/detail.vue
@@ -36,7 +36,7 @@
总金额
- {{ baseInfo.bidTotalPrice }}
+ {{ (baseInfo.quoteAmount/100).toFixed(2) }}
备注
@@ -95,7 +95,7 @@ export default {
dicts: [],
data() {
return {
- goodsInquiryData:{},//页面传参
+ supplierQuotationData:{},//页面传参
loading:false,
loadingBtn:false,
baseInfo: {
@@ -153,15 +153,16 @@ export default {
};
},
created() {
- if(this.$route.query.goodsInquiryData){
- this.goodsInquiryData = JSON.parse(this.$route.query.goodsInquiryData)
+ if(this.$route.query.supplierQuotationData){
+ this.supplierQuotationData = JSON.parse(this.$route.query.supplierQuotationData)
+ console.log(this.supplierQuotationData)
this.getContractInfo()
}
},
watch:{
- '$route.query.goodsInquiryData':function(newId, oldId) {
+ '$route.query.supplierQuotationData':function(newId, oldId) {
if(newId){
- this.goodsInquiryData = JSON.parse(newId)
+ this.supplierQuotationData = JSON.parse(newId)
this.getContractInfo()
}else{
this.baseInfo={}
@@ -177,16 +178,16 @@ export default {
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
},
getContractInfo(){
- console.log(this.goodsInquiryData)
+ console.log(this.supplierQuotationData)
let param = {
- inquiryId:this.goodsInquiryData.inquiryId,
- // supplierId:row.supplierId
+ inquiryId:this.supplierQuotationData.inquiryId,
+ supplierId:this.supplierQuotationData.supplierId
}
//查询
getGoodsInquiryDetailInfoApi(param).then((response) => {
- this.baseInfo = response.data;
+ this.baseInfo = this.supplierQuotationData;
// this.$set(this.baseInfo,'dateRange',[this.baseInfo.startTime,this.baseInfo.endTime])
- this.materialList = this.baseInfo.detailList;
+ this.materialList = response.data;
// supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
// this.supplierOptions = response.rows||[];
// });
diff --git a/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue b/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
index 0ad092db..1679a712 100644
--- a/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
+++ b/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
@@ -255,6 +255,7 @@ export default {
this.getMaterialTree()
if(this.$route.query.supplierQuotationData){
this.supplierQuotationData = JSON.parse(this.$route.query.supplierQuotationData)
+ console.log(this.supplierQuotationData)
this.getContractInfo()
}
},
@@ -277,7 +278,7 @@ export default {
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
},
getContractInfo(){
- console.log(this.supplierQuotationData)
+
let param = {
inquiryId:this.supplierQuotationData.inquiryId
}
From c9ad37f556db6d05d3b263dac45fade06f791501 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Fri, 12 Sep 2025 18:16:08 +0800
Subject: [PATCH 12/12] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=E4=BF=AE=E6=94=B93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/foodManage/supplierFunction/supplierQuotation/edit.vue | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue b/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
index 1679a712..3aa1c80d 100644
--- a/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
+++ b/src/views/foodManage/supplierFunction/supplierQuotation/edit.vue
@@ -278,7 +278,6 @@ export default {
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
},
getContractInfo(){
-
let param = {
inquiryId:this.supplierQuotationData.inquiryId
}