diff --git a/src/api/basic/basic.js b/src/api/basic/basic.js index a11370bf..edbebf39 100644 --- a/src/api/basic/basic.js +++ b/src/api/basic/basic.js @@ -46,7 +46,7 @@ export function updateProject(data) { export function delProject(proId) { return request({ url: '/material/bm_project/' + proId, - method: 'post' + method: 'delete' }) } @@ -90,7 +90,7 @@ export function updateProjectLot(data) { export function delProjectLot(lotId) { return request({ url: '/material/base/bmProjectLot/' + lotId, - method: 'post' + method: 'delete' }) } //工程项目下拉数据 @@ -131,7 +131,7 @@ export function updateUnit(data) { export function delUnit(unitId) { return request({ url: '/material/bm_unit/' + unitId, - method: 'post' + method: 'delete' }) } @@ -266,7 +266,7 @@ export function statusUnitType(data) { export function delUnitType(typeIds) { return request({ url: '/material/bm_unit_type/' + typeIds, - method: 'post' + method: 'delete' }) } @@ -301,7 +301,7 @@ export function updatePropInfo(data) { export function delPropInfo(id) { return request({ url: `/material/bm_asset_attributes/${id}`, - method: 'post' + method: 'delete' }) } diff --git a/src/api/ma/base.js b/src/api/ma/base.js index 437b5301..b27a734f 100644 --- a/src/api/ma/base.js +++ b/src/api/ma/base.js @@ -74,7 +74,7 @@ export function queryKeeperNameApi(query) { export function delMaType(typeId) { return request({ url: '/material/ma_type/' + typeId, - method: 'post', + method: 'delete', }) } diff --git a/src/api/ma/device.js b/src/api/ma/device.js index 93d795b8..c5d052e2 100644 --- a/src/api/ma/device.js +++ b/src/api/ma/device.js @@ -40,7 +40,7 @@ export function getZichanType(query) { export function delDevice(id) { return request({ url: '/material/ma_machine/' + id, - method: 'post', + method: 'delete', }) } diff --git a/src/api/ma/partType.js b/src/api/ma/partType.js index 871ffb9a..1c20e51d 100644 --- a/src/api/ma/partType.js +++ b/src/api/ma/partType.js @@ -76,6 +76,6 @@ export function updateMaType(data) { export function delMaType(id) { return request({ url: '/material/ma_part_type/' + id, - method: 'post', + method: 'delete', }) } \ No newline at end of file diff --git a/src/api/ma/supplier.js b/src/api/ma/supplier.js index 001dfe47..a18efdec 100644 --- a/src/api/ma/supplier.js +++ b/src/api/ma/supplier.js @@ -32,7 +32,7 @@ export function getFacturerDetail(id) { export function delFacturer(id) { return request({ url: '/material/ma_supplier_info/' + id, - method: 'post', + method: 'delete', }) } diff --git a/src/api/ma/whHouse.js b/src/api/ma/whHouse.js index 2446b140..1815f1bb 100644 --- a/src/api/ma/whHouse.js +++ b/src/api/ma/whHouse.js @@ -31,7 +31,7 @@ export function queryKeeperNameApi(query) { export function delHouse(id) { return request({ url: '/material/wh_house_info/' + id, - method: 'post', + method: 'delete', }) } diff --git a/src/views/material/lease/protocol/index.vue b/src/views/material/lease/protocol/index.vue index 2e117f94..c4e69904 100644 --- a/src/views/material/lease/protocol/index.vue +++ b/src/views/material/lease/protocol/index.vue @@ -390,7 +390,7 @@ list-type="picture-card" accept=".png, .jpg, .jpeg, .pdf" :on-change="handleChangeBusinessList" - :class="{ disabled: uploadDisabled }" + :class="{ disabled: true }" :on-preview="picturePreview" :on-remove="handleRemoveElectricianImgList" :disabled="isEdits" @@ -425,7 +425,7 @@ - + - diff --git a/src/views/material/ma/supplier/index.vue b/src/views/material/ma/supplier/index.vue index 5533a04f..2157aecf 100644 --- a/src/views/material/ma/supplier/index.vue +++ b/src/views/material/ma/supplier/index.vue @@ -24,10 +24,10 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['ma:info:add']" >新增 - + 编辑 @@ -76,7 +76,7 @@ type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" - v-hasPermi="['machinery:type:del']" + v-hasPermi="['ma:info:remove']" > 删除 diff --git a/src/views/material/ma/type/index.vue b/src/views/material/ma/type/index.vue index f03e9261..446bcb9d 100644 --- a/src/views/material/ma/type/index.vue +++ b/src/views/material/ma/type/index.vue @@ -185,7 +185,7 @@ type="text" icon="el-icon-edit" @click="handleView(scope.row)" - v-hasPermi="['machinery:type:config']" + v-hasPermi="['ma:type:query']" > 查看 @@ -806,15 +806,20 @@ export default { getTreeData() { getMaTypeList().then((response) => { this.treeOptions = response.data; - if ( - this.treeOptions.length > 0 && - this.treeOptions[0].children.length > 0 - ) { - const firstNode = this.treeOptions[0].children[0]; - this.queryParams.typeId = firstNode.id; - this.queryParams.level = 1; - this.queryParams.houseId = firstNode.houseId; - this.getList(); + console.log(this.treeOptions) + if (this.treeOptions.length > 0 ){ + if(this.treeOptions[0].children&&this.treeOptions[0].children.length > 0) { + const firstNode = this.treeOptions[0].children[0]; + this.queryParams.typeId = firstNode.id; + this.queryParams.level = 1; + this.queryParams.houseId = firstNode.houseId; + this.getList(); + }else{ + this.queryParams.typeId = this.treeOptions[0].id; + this.queryParams.level = 0; + this.queryParams.houseId = this.treeOptions[0].id; + this.getList(); + } } }); }, diff --git a/src/views/material/ma/typeConfigKeeper/index.vue b/src/views/material/ma/typeConfigKeeper/index.vue index cd83b7be..670afa72 100644 --- a/src/views/material/ma/typeConfigKeeper/index.vue +++ b/src/views/material/ma/typeConfigKeeper/index.vue @@ -105,7 +105,7 @@ icon="el-icon-plus" size="mini" @click="handleBind" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['ma:keeper:add']" >绑定 @@ -116,7 +116,7 @@ icon="el-icon-minus" size="mini" @click="handleNoBind" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['ma:keeper:remove']" >解绑 diff --git a/src/views/material/ma/typeConfigRepair/index.vue b/src/views/material/ma/typeConfigRepair/index.vue index bde7c34a..786e0d57 100644 --- a/src/views/material/ma/typeConfigRepair/index.vue +++ b/src/views/material/ma/typeConfigRepair/index.vue @@ -105,7 +105,7 @@ icon="el-icon-plus" size="mini" @click="handleBind" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['ma:repair:add']" >绑定 @@ -116,7 +116,7 @@ icon="el-icon-minus" size="mini" @click="handleNoBind" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['ma:repair:remove']" >解绑 diff --git a/src/views/material/ma/whHouse/index.vue b/src/views/material/ma/whHouse/index.vue index f97137f1..c8465c35 100644 --- a/src/views/material/ma/whHouse/index.vue +++ b/src/views/material/ma/whHouse/index.vue @@ -39,7 +39,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['machinery:type:add']" + v-hasPermi="['warehouse:info:add']" >新增 @@ -118,7 +118,7 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['machinery:type:edit']" + v-hasPermi="['warehouse:info:edit']" > 编辑 @@ -127,7 +127,7 @@ type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" - v-hasPermi="['machinery:type:del']" + v-hasPermi="['warehouse:info:remove']" > 删除 diff --git a/src/views/material/purchase/goodsAccept/index.vue b/src/views/material/purchase/goodsAccept/index.vue index ad4bd623..dfa2cf5c 100644 --- a/src/views/material/purchase/goodsAccept/index.vue +++ b/src/views/material/purchase/goodsAccept/index.vue @@ -428,12 +428,12 @@ print() { this.$refs.remarksPrintRef.print() }, - - handleExport() { - // this.download('/material/ma_machine/export', { - // ...this.queryParams - // }, `仓库管理_${new Date().getTime()}.xlsx`) + this.download( + "/material/purchase_check_info/export", + { ...this.queryParams }, + `新购到货验收_${new Date().getTime()}.xlsx` + ); }, diff --git a/src/views/material/purchase/goodsArrived/component/addTools.vue b/src/views/material/purchase/goodsArrived/component/addTools.vue index 598c772f..9c312965 100644 --- a/src/views/material/purchase/goodsArrived/component/addTools.vue +++ b/src/views/material/purchase/goodsArrived/component/addTools.vue @@ -40,7 +40,6 @@ v-model="maForm.productionTime" style="width: 240px" value-format="yyyy-MM-dd" - :picker-options="pickerOptions" type="date" placeholder="请选择出厂日期" @change="productionTimeChange" @@ -261,7 +260,7 @@