This commit is contained in:
jjLv 2024-10-18 15:09:15 +08:00
parent 5d717b8709
commit fbdecf5129
6 changed files with 16 additions and 13 deletions

View File

@ -160,7 +160,7 @@ export function delUnitPerson(unitId) {
// 单位类型-列表 // 单位类型-列表
export function unitTypeList(query) { export function unitTypeList(query) {
return request({ return request({
url: '/material/bm_unit_type/list', url: '/system/dict/data/type/bm_unit_type',
method: 'get', method: 'get',
params: query params: query
}) })
@ -168,7 +168,7 @@ export function unitTypeList(query) {
// 单位类型-列表-下拉 // 单位类型-列表-下拉
export function unitTypeListAll(query) { export function unitTypeListAll(query) {
return request({ return request({
url: '/material/bm_unit_type/list', url: '/system/dict/data/type/bm_unit_type',
method: 'get', method: 'get',
params: query params: query
}) })

View File

@ -252,8 +252,8 @@
</template> </template>
<script> <script>
import { addUnit, delUnit, unitInfoAll, updateUnit } from '@/api/base/base' import { addUnit, delUnit, unitInfoAll, updateUnit,getTypeList } from '@/api/base/base'
// import { unitTypeListAll } from '@/api/base/base' import { unitTypeListAll } from '@/api/base/base'
import { deptTreeSelect } from '@/api/system/user' import { deptTreeSelect } from '@/api/system/user'
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
@ -332,7 +332,7 @@ export default {
created() { created() {
// this.getType() // this.getType()
// this.getDeptTree() // this.getDeptTree()
// this.getList() this.getList()
}, },
methods: { methods: {
// //
@ -374,7 +374,7 @@ export default {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true this.loading = true
unitInfoAll(this.queryParams).then((response) => { getTypeList(this.queryParams).then((response) => {
this.unitList = response.rows this.unitList = response.rows
this.total = response.total this.total = response.total
this.loading = false this.loading = false

View File

@ -500,8 +500,8 @@ export default {
} }
}, },
created() { created() {
// this.getList(); this.getList();
// this.getUserList() this.getUserList()
}, },
methods: { methods: {

View File

@ -375,6 +375,7 @@ export default {
// //
typeList: [], typeList: [],
unitList:[], unitList:[],
projectStatuses:[],
// //
deptOptions: undefined, deptOptions: undefined,
// //
@ -383,6 +384,7 @@ export default {
open: false, open: false,
// //
dateRange: [], dateRange: [],
projectNatures:[],
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,

View File

@ -501,6 +501,7 @@
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.imageUrl = res.data.fileUrl this.imageUrl = res.data.fileUrl
console.log('imageUrl',this.imageUrl)
this.businessLicenseFileList.push(this.imageUrl); this.businessLicenseFileList.push(this.imageUrl);
} else { } else {
// this.$msgError(res.msg) // this.$msgError(res.msg)

View File

@ -77,7 +77,7 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['machinery:type:add']" v-hasPermi="['ma:type:add']"
>新增</el-button >新增</el-button
> >
</el-col> </el-col>
@ -118,8 +118,8 @@
<el-table-column <el-table-column
label="仓库信息" label="仓库信息"
align="center" align="center"
key="parentOneLevelName" key="houseName"
prop="parentOneLevelName" prop="houseName"
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column <el-table-column
@ -176,7 +176,7 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['machinery:type:edit']" v-hasPermi="['ma:type:edit']"
> >
编辑 编辑
</el-button> </el-button>
@ -185,7 +185,7 @@
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['machinery:type:del']" v-hasPermi="['ma:type:remove']"
> >
删除 删除
</el-button> </el-button>