This commit is contained in:
parent
5d717b8709
commit
fbdecf5129
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -500,8 +500,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.getList();
|
this.getList();
|
||||||
// this.getUserList()
|
this.getUserList()
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue