From 93da7c40400fee1be58016c35928f67cd458f34b Mon Sep 17 00:00:00 2001 From: jxj_yjl <1490736767@qq.com> Date: Wed, 26 Apr 2023 11:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BB=BA=E4=BA=94=E5=B1=80-=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/api/materialManagement.js | 9 ++-- src/router/index.js | 8 ++++ src/store/index.js | 16 +++---- .../inspectionWarehousing.vue | 43 +++++++++++-------- .../recordsModule/inspectionRecord.vue | 30 ++++++------- 5 files changed, 63 insertions(+), 43 deletions(-) diff --git a/src/assets/js/api/materialManagement.js b/src/assets/js/api/materialManagement.js index 39df1148..90c017d6 100644 --- a/src/assets/js/api/materialManagement.js +++ b/src/assets/js/api/materialManagement.js @@ -63,12 +63,15 @@ export const deletGtMaterialSupplierEvaluationRecordApi = data => post('/xmgl/gt export const editGtMaterialSupplierEvaluationRecordApi = data => post('/xmgl/gt/gtMaterialSupplierEvaluationRecord/edit', data); export const gettGMaterialSupplierEvaluationRecordPageApi = data => get('/xmgl/gt/gtMaterialSupplierEvaluationRecord/page', data); -//出入库管理_ -export const addGtMaterialInOutWarehouseApi = data => post('/xmgl/gt/gtMaterialInOutWarehouse/add', data); + +//出入库管理 +export const addGtMaterialInOutWarehouseApi = data => post('/xmgl/gt/gtMaterialInOutWarehouse/addWithMaterial', data); export const deletGtMaterialInOutWarehouseApi = data => post('/xmgl/gt/gtMaterialInOutWarehouse/delete', data); export const editGtMaterialInOutWarehouseApi = data => post('/xmgl/gt/gtMaterialInOutWarehouse/edit', data); -export const gettGMaterialInOutWarehouseAPageApi = data => get('/xmgl/gt/gtMaterialInOutWarehouse/page', data); +export const gettGMaterialInOutWarehousePageApi = data => get('/xmgl/gt/gtMaterialInOutWarehouse/page', data);//查询表单数据 +export const gettGMaterialInOutWarehouseListApi = data => get('/xmgl/gt/gtMaterialPointCheckIntoWarehouseDetail/list', data);//根据id查物料 + diff --git a/src/router/index.js b/src/router/index.js index a4289a0e..9abf1d7e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1442,6 +1442,12 @@ const routes2 = [ name: '信息播报', component: resolve => require(['@/views/projectFront/informatioBroadcast/broadcast.vue'], resolve) }, + //质量标准 + { + path: '/project/basicSetup/checkItem', + name: '质量管理质量标准', + component: resolve => require(['@/views/companyAdmin/basicSetup/checkItem.vue'], resolve) + }, ], }, @@ -2555,6 +2561,8 @@ const routes2 = [ component: resolve => require(['@/views/projectFront/quality/recordsCenter.vue'], resolve) }, + + // 材料管理 { path: '/projectQu/materialManage/constructionTeamManage', diff --git a/src/store/index.js b/src/store/index.js index 068d7d2e..75e8f066 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -48,12 +48,12 @@ export default new Vuex.Store({ BASEURL: baseUrl ? baseUrl : window.location.protocol + "//" + window.location.host + "/", //正式环境 - // UPLOADURL: - // window.location.protocol + - // "//" + - // window.location.host + - // "/upload/image", //正式环境 - // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 + UPLOADURL: + window.location.protocol + + "//" + + window.location.host + + "/upload/image", //正式环境 + FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //正式环境 //--------------------------------------------------------------------------------------------- // BASEURL: baseUrl // ? baseUrl @@ -89,8 +89,8 @@ export default new Vuex.Store({ // FILEURL: 'http://182.90.224.147:100/image/',//演示平台 // UPLOADURL: 'http://192.168.34.221:8070/upload/image',//演示平台郭圣雄本地 // FILEURL: 'http://192.168.34.221:8070/image/',//演示平台郭圣雄本地 - UPLOADURL: 'http://192.168.34.221:30000/upload/image',//郭圣雄本地 - FILEURL: 'http://192.168.34.221:30000/image/',//郭圣雄本地 + // UPLOADURL: 'http://192.168.34.221:30000/upload/image',//郭圣雄本地 + // FILEURL: 'http://192.168.34.221:30000/image/',//郭圣雄本地 // UPLOADURL: 'http://101.43.164.214:12345/upload/image',//内蒙古 // FILEURL: 'http://101.43.164.214:12345/image/',//内蒙古 diff --git a/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue b/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue index 52d152c3..a9e3e4cf 100644 --- a/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue +++ b/src/views/projectFront/inOutboundManagement/inspectionWarehousing.vue @@ -12,7 +12,7 @@ - + - + @@ -49,6 +49,7 @@ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" + value-format="yyyy-MM-dd" > @@ -594,7 +595,8 @@ import { addGtMaterialInOutWarehouseApi, deletGtMaterialInOutWarehouseApi, editGtMaterialInOutWarehouseApi, - gettGMaterialInOutWarehouseAPageApi + gettGMaterialInOutWarehousePageApi,//查询表单数据 + gettGMaterialInOutWarehouseListApi,//根据id查询物料 } from '@/assets/js/api/materialManagement.js' export default { mounted() { @@ -606,14 +608,15 @@ export default { detailData:{}, searchForm: { number: "", - // test1:"",//货号 + stuffNumber:"",//货号 warehouse: "", department: "", category: "", handler: "", - test: "",//助查码 - // 开始结束 :"", + lookupCode: "",//助查码 vendor: "", + startTime:'',//开始时间 + endTime:'',//结束时间 },//查询 addForm: { createTime: "", @@ -664,7 +667,7 @@ export default { importMaterial() { let statusType = true; this.orderMaterialList.forEach((item) => { - if (item.name == "" || item.specifications == "" || item.unit == "" || item.materialNum == "" || item.unitPrice == "" || item.computeUnit == "" || item.remark == "") { + if (item.name == "" || item.specifications == "" || item.unit == "" || item.quantity == "" || item.unitPrice == "" || item.amount == "" || item.remark == "") { this.$message({ message: "请完善信息后在添加", type: "warning", @@ -695,12 +698,18 @@ export default { }, //查询仓库数据 getList() { - getStuffWarehousePageApi({ + gettGMaterialInOutWarehousePageApi({ pageNo: this.pagInfo.pageNo, pageSize: this.pagInfo.pageSize, projectSn: this.$store.state.projectSn, - warehouseName: this.searchForm.warehouseName, - warehousePos: this.searchForm.warehousePos, + number: this.searchForm.number, + stuffNumber: this.searchForm.stuffNumber, + warehouse: this.searchForm.warehouse, + department: this.searchForm.department, + category: this.searchForm.category, + handler: this.searchForm.handler, + lookupCode: this.searchForm.lookupCode, + vendor: this.searchForm.vendor, }).then((result) => { if (result.success) { this.List = result.result.records @@ -710,14 +719,14 @@ export default { }, add() { - this.title = '新增' + this.title = '新增入库' this.dialogShow = true this.orderMaterialList = [] this.close() }, edit(obj) { - this.title = '编辑' + this.title = '编辑入库' this.dialogShow = true this.addEditForm = JSON.parse(JSON.stringify(obj)) }, @@ -726,16 +735,16 @@ export default { params.projectSn = this.$store.state.projectSn this.$refs.addEditForm.validate((valid) => { if (valid) { - if (this.title == '新增仓库') { - addStuffWarehouseApi(params).then((result) => { + if (this.title == '新增入库') { + addGtMaterialInOutWarehouseApi(params).then((result) => { if (result.success) { this.$message.success(result.message) this.getList() } }) - } else if (this.title === '编辑仓库') { + } else if (this.title === '编辑入库') { console.log('编辑信息', this.addEditForm) - editStuffWarehouseApi(params).then((result) => { + editGtMaterialInOutWarehouseApi(params).then((result) => { if (result.success) { this.$message.success(result.message) this.getList() @@ -755,7 +764,7 @@ export default { type: "warning", }) .then(() => { - deleteStuffWarehouseApi({ id: obj.id }).then((res) => { + deletGtMaterialInOutWarehouseApi({ id: obj.id }).then((res) => { if (res.success) { this.getList() this.$message({ diff --git a/src/views/projectFront/quality/recordsModule/inspectionRecord.vue b/src/views/projectFront/quality/recordsModule/inspectionRecord.vue index d1d3dd8c..4e6d3b07 100644 --- a/src/views/projectFront/quality/recordsModule/inspectionRecord.vue +++ b/src/views/projectFront/quality/recordsModule/inspectionRecord.vue @@ -352,20 +352,7 @@ :model="addForm1" label-width="120px" > - - - {{ $t('message.quality.positionOnTheDrawing') }} - - + + + + + {{ $t('message.quality.positionOnTheDrawing') }} +