diff --git a/src/api/store/tools.js b/src/api/store/tools.js index 9e9f63e..87e8d7d 100644 --- a/src/api/store/tools.js +++ b/src/api/store/tools.js @@ -1,288 +1,288 @@ -import request from "@/utils/request"; +import request from '@/utils/request' //机具类型管理 export function getMaTypeList(query) { - return request({ - url: "/material/base/type/getMaTypeList", - method: "get", - params: query, - }); + return request({ + url: '/material/base/type/getMaTypeList', + method: 'get', + params: query, + }) } //获取机具类型列表 export function getListByMaType(query) { - return request({ - url: "/material/base/type/getListByMaType", - method: "get", - params: query, - }); + return request({ + url: '/material/base/type/getListByMaType', + method: 'get', + params: query, + }) } //获取机具类型树2 export function equipmentTypeTree(query) { - return request({ - url: "/material/base/type/equipmentType", - method: "get", - params: query, - }); + return request({ + url: '/material/base/type/equipmentType', + method: 'get', + params: query, + }) } //机具类型-详情 export function getMaType(typeId) { - return request({ - url: "/material/base/type/" + typeId, - method: "get", - }); + return request({ + url: '/material/base/type/' + typeId, + method: 'get', + }) } //获取基层单位 export function getunitInfoAll(query) { - return request({ - url: "/material/base/bmUnitInfo/unitInfoAll", - method: "get", - params: query, - }); + return request({ + url: '/material/base/bmUnitInfo/unitInfoAll', + method: 'get', + params: query, + }) } //机具类型--新增 export function addMaType(data) { - return request({ - url: "/material/base/type", - method: "post", - data: data, - }); + return request({ + url: '/material/base/type', + method: 'post', + data: data, + }) } // 机具类型--修改 export function updateMaType(data) { - return request({ - url: "/material/base/type", - method: "put", - data: data, - }); + return request({ + url: '/material/base/type', + method: 'put', + data: data, + }) } //供应商管理--删除 export function delMaType(typeId) { - return request({ - url: "/material/base/type/" + typeId, - method: "delete", - }); + return request({ + url: '/material/base/type/' + typeId, + method: 'delete', + }) } //供应商管理-列表 export function listSupplierInfo(query) { - return request({ - url: "/material/base/supplierInfo/list", - method: "get", - params: query, - }); + return request({ + url: '/material/base/supplierInfo/list', + method: 'get', + params: query, + }) } //供应商管理-详情 export function getSupplierInfo(supplierId) { - return request({ - url: "/material/base/supplierInfo/" + supplierId, - method: "get", - }); + return request({ + url: '/material/base/supplierInfo/' + supplierId, + method: 'get', + }) } //供应商管理--新增 export function addSupplier(data) { - return request({ - url: "/material/base/supplierInfo", - method: "post", - data: data, - }); + return request({ + url: '/material/base/supplierInfo', + method: 'post', + data: data, + }) } // 供应商管理--修改 export function updateSupplier(data) { - return request({ - url: "/material/base/supplierInfo", - method: "put", - data: data, - }); + return request({ + url: '/material/base/supplierInfo', + method: 'put', + data: data, + }) } //供应商管理--删除 export function delSupplier(supplierIds) { - return request({ - url: "/material/base/supplierInfo/" + supplierIds, - method: "delete", - }); + return request({ + url: '/material/base/supplierInfo/' + supplierIds, + method: 'delete', + }) } //供应商管理-下拉数据 export function supplierInfoList(query) { - return request({ - url: "/material/base/supplierInfo/supplierInfoList", - method: "get", - params: query, - }); + return request({ + url: '/material/base/supplierInfo/supplierInfoList', + method: 'get', + params: query, + }) } //机具设备管理-列表 export function listMachine(query) { - return request({ - url: "/material/base/machine/getMachine", - method: "get", - params: query, - }); + return request({ + url: '/material/base/machine/getMachine', + method: 'get', + params: query, + }) } //机具设备管理-详情 export function getMachine(maId) { - return request({ - url: "/material/base/machine/" + maId, - method: "get", - }); + return request({ + url: '/material/base/machine/' + maId, + method: 'get', + }) } //机具设备管理--新增 export function addMachine(data) { - return request({ - url: "/material/base/machine", - method: "post", - data: data, - }); + return request({ + url: '/material/base/machine', + method: 'post', + data: data, + }) } // 机具设备管理--修改 export function updateMachine(data) { - return request({ - url: "/material/base/machine", - method: "put", - data: data, - }); + return request({ + url: '/material/base/machine', + method: 'put', + data: data, + }) } //机具设备管理--删除 export function delMachine(maIds) { - return request({ - url: "/material/base/machine/" + maIds, - method: "delete", - }); + return request({ + url: '/material/base/machine/' + maIds, + method: 'delete', + }) } // // //配件管理-列表 export function listPartType(query) { - return request({ - url: "/material/base/maPartType/list", - method: "get", - params: query, - }); + return request({ + url: '/material/base/maPartType/list', + method: 'get', + params: query, + }) } //配件管理--新增 export function addPartType(data) { - return request({ - url: "/material/base/maPartType", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maPartType', + method: 'post', + data: data, + }) } //配件管理--新增 export function addMaPartType(data) { - return request({ - url: "/material/base/maPartType", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maPartType', + method: 'post', + data: data, + }) } // 配件管理--修改 export function updatePartType(data) { - return request({ - url: "/material/base/maPartType", - method: "put", - data: data, - }); + return request({ + url: '/material/base/maPartType', + method: 'put', + data: data, + }) } // 配件管理--修改 export function updatePartTypeById(data) { - return request({ - url: "/material/base/maPartType/updateById", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maPartType/updateById', + method: 'post', + data: data, + }) } //配件管理--删除 export function delPartType(maIds) { - return request({ - url: "/material/base/maPartType/" + maIds, - method: "delete", - }); + return request({ + url: '/material/base/maPartType/' + maIds, + method: 'delete', + }) } //配件管理--查询 export function getPartType(maIds) { - return request({ - url: "/material/base/maPartType/" + maIds, - method: "get", - }); + return request({ + url: '/material/base/maPartType/' + maIds, + method: 'get', + }) } // 获取库管员配置列表 export function warehouseKeeperInfoAll(query) { - return request({ - url: "/material/base/maWarehouseKeeper/warehouseKeeperInfoAll", - method: "get", - params: query, - }); + return request({ + url: '/material/base/maWarehouseKeeper/warehouseKeeperInfoAll', + method: 'get', + params: query, + }) } //库管员配置-根据人员名称查询左侧列表 export function getMaUserList(query) { - return request({ - url: "/material/base/maWarehouseKeeper/getMaUserList", - method: "get", - params: query, - }); + return request({ + url: '/material/base/maWarehouseKeeper/getMaUserList', + method: 'get', + params: query, + }) } //库管员配置-保存 export function addHouseKeeper(data) { - return request({ - url: "/material/base/maWarehouseKeeper/addList", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maWarehouseKeeper/addList', + method: 'post', + data: data, + }) } //库管员配置-删除 export function delHouseKeeper(data) { - return request({ - url: "/material/base/maWarehouseKeeper/remove", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maWarehouseKeeper/remove', + method: 'post', + data: data, + }) } // 获取维修班配置列表 export function wareRepairerInfoAll(query) { - return request({ - url: "/material/base/maintenanceGang/maintenanceGangInfoAll", - method: "get", - params: query, - }); + return request({ + url: '/material/base/maintenanceGang/maintenanceGangInfoAll', + method: 'get', + params: query, + }) } //维修班配置-根据人员名称查询左侧列表 export function getRepairerList(query) { - return request({ - url: "/material/base/maintenanceGang/getMaUserList", - method: "get", - params: query, - }); + return request({ + url: '/material/base/maintenanceGang/getMaUserList', + method: 'get', + params: query, + }) } //维修班配置-保存 export function addRepairer(data) { - return request({ - url: "/material/base/maintenanceGang/addList", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maintenanceGang/addList', + method: 'post', + data: data, + }) } //维修班配置-删除 export function delRepairer(data) { - return request({ - url: "/material/base/maintenanceGang/remove", - method: "post", - data: data, - }); + return request({ + url: '/material/base/maintenanceGang/remove', + method: 'post', + data: data, + }) } //机具厂家-下拉数据 export function getDeviceFactoryCbx(data) { - return request({ - url: "/material/base/select/getDeviceFactoryCbx", - method: "post", - data: data, - }); + return request({ + url: '/material/base/select/getDeviceFactoryCbx', + method: 'post', + data: data, + }) } diff --git a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue index 44b48d7..7483784 100644 --- a/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue +++ b/src/views/claimAndreturn/picking/apply/component/AddPicking1.vue @@ -870,7 +870,6 @@ export default { } let canSave = true - if (this.leaseApplyDetails.length > 0) { this.queryParams.leaseApplyDetails = this.leaseApplyDetails diff --git a/src/views/cost/csotSettlement/component/finishAndDetails.vue b/src/views/cost/csotSettlement/component/finishAndDetails.vue index a4dac2b..ff195d9 100644 --- a/src/views/cost/csotSettlement/component/finishAndDetails.vue +++ b/src/views/cost/csotSettlement/component/finishAndDetails.vue @@ -7,7 +7,11 @@
工程名称:{{ currRowInfo.projectName }}
总合计:{{ totalAmount }}元
- 导出全部明细表
diff --git a/src/views/cost/csotSettlement/component/finishTable.vue b/src/views/cost/csotSettlement/component/finishTable.vue index 4896851..18c6b87 100644 --- a/src/views/cost/csotSettlement/component/finishTable.vue +++ b/src/views/cost/csotSettlement/component/finishTable.vue @@ -34,6 +34,7 @@ type="warning" v-if="!isEdit" @click="handleExport" + v-hasPermi="['cost:settlement:export']" >导出 批量导出 @@ -83,7 +84,10 @@ 明细 - 导出明细表 diff --git a/src/views/cost/csotSettlement/costApplyList.vue b/src/views/cost/csotSettlement/costApplyList.vue index f13af02..9c0bfe5 100644 --- a/src/views/cost/csotSettlement/costApplyList.vue +++ b/src/views/cost/csotSettlement/costApplyList.vue @@ -143,6 +143,7 @@ type="primary" style="padding: 5px 10px" @click="handleMonthRecord(row)" + v-hasPermi="['month:record:query']" >月结记录 {{ row.isSlt == 1 ? '结算明细' : '完工结算' }} { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) }, diff --git a/src/views/store/newBuy/newDevices/newDevicesCode.vue b/src/views/store/newBuy/newDevices/newDevicesCode.vue index 0b8c6a1..cd67d40 100644 --- a/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -1,25 +1,43 @@ diff --git a/src/views/store/tools/devices.vue b/src/views/store/tools/devices.vue index e6fad4f..0d5b153 100644 --- a/src/views/store/tools/devices.vue +++ b/src/views/store/tools/devices.vue @@ -640,15 +640,15 @@ export default { //选择物品种类 selectItem(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.typeList = response.data + getListByMaType({ typeId: id, level: '3' }).then((response) => { + this.typeList = response.data.rows }) }, //选择设备类型 selectDevice(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) }, /** 查询资产属性下拉 */ diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 5b230e4..a49a033 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -115,7 +115,11 @@ align="center" prop="noticeTitle" :show-overflow-tooltip="true" - /> + > + + { - this.typeList = response.data + getListByMaType({ typeId: id, level: '3' }).then((response) => { + this.typeList = response.data.rows }) }, //选择设备类型 selectDevice(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) }, /** 查询资产属性下拉 */ diff --git a/src/views/warehouseManage/machinery/coding/index.vue b/src/views/warehouseManage/machinery/coding/index.vue index d6d87ad..2d89687 100644 --- a/src/views/warehouseManage/machinery/coding/index.vue +++ b/src/views/warehouseManage/machinery/coding/index.vue @@ -637,15 +637,15 @@ export default { //选择物品种类 selectItem(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.typeList = response.data + getListByMaType({ typeId: id, level: '3' }).then((response) => { + this.typeList = response.data.rows }) }, //选择设备类型 selectDevice(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) }, /** 查询资产属性下拉 */ diff --git a/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue b/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue index e67874f..629ca47 100644 --- a/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue +++ b/src/views/warehouseManage/newPurchase/toolsAcceptance/component/codingTools.vue @@ -485,8 +485,8 @@ export default { }, selectType(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) }, /** 查询列表 */ diff --git a/src/views/warehouseManage/tagBind/bind/index.vue b/src/views/warehouseManage/tagBind/bind/index.vue index 567d644..5f2b265 100644 --- a/src/views/warehouseManage/tagBind/bind/index.vue +++ b/src/views/warehouseManage/tagBind/bind/index.vue @@ -642,8 +642,8 @@ export default { //选择设备类型 selectDevice(id) { console.log(id) - getListByMaType({ typeId: id }).then((response) => { - this.modelList = response.data + getListByMaType({ typeId: id, level: '0' }).then((response) => { + this.modelList = response.data.rows }) },