From a30a15f292e24f3e93253aec6dcc41b5cc3cc420 Mon Sep 17 00:00:00 2001 From: cy <1664593601@qq.com> Date: 星期二, 31 十月 2023 11:27:40 +0800 Subject: [PATCH] feat: 盘点单/进出库流水总表/库存物品详情/物品仓库保管记录 实体类 --- admin-web/src/views/foundation/classification/index.vue | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/admin-web/src/views/foundation/classification/index.vue b/admin-web/src/views/foundation/classification/index.vue index 026e52c..785bf7a 100644 --- a/admin-web/src/views/foundation/classification/index.vue +++ b/admin-web/src/views/foundation/classification/index.vue @@ -38,8 +38,7 @@ import edit from './edit' import * as finsystenant from '@/api/baseSetting/finsystenant' import myImport from '@/views/components/myImport' -import {updStatus} from "@/api/baseSetting/finsystenant"; -import {getBaseUrl, getUploadUrl} from '@/utils/base'; +import {getBaseUrl} from '@/utils/base'; export default { name: "index", @@ -55,7 +54,7 @@ tenantId: null, userName: null, userPhone: null, - status: 1 + states: 1 }, // 瀵煎叆 importSetting: { @@ -85,7 +84,7 @@ table: { showIndex: true, // 鏄惁鏄剧ず搴忓彿 expand: false, // 鏄惁鏄剧ず璇︽儏鏁版嵁 - url: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/select/list', // 璇锋眰鍦板潃 + url: SettingIplatform.apiBaseURL + '/pc/base/category/list', // 璇锋眰鍦板潃 // 宸ュ叿鏉� tools: { columnsCtrl: {// 鍒楁帶鍒舵寜閽� @@ -106,9 +105,9 @@ }, // 鍒椾俊鎭� columns: [ - {title: '鍒嗙被鍚嶇О', field: 'category_Name', align: 'center'}, + {title: '鍒嗙被鍚嶇О', field: 'categoryName', align: 'center'}, {title: '绫诲埆', field: 'classification', align: 'left'}, - {title: '鏄剧ず椤哄簭', field: 'order_Number', align: 'center', width: '80px'}, + {title: '鏄剧ず椤哄簭', field: 'orderNumber', align: 'center', width: '80px'}, { field: 'states', title: '鐘舵��', @@ -116,7 +115,7 @@ width: 100, switch: row => { const result = {} - if (row.status == 1) { + if (row.states == 1) { Object.assign(result, { value: true, // 寮� label: '鏄�', // 寮�鐨勬弿杩� @@ -190,23 +189,25 @@ // 宸︿晶鏍戝垵濮嬪寲 initTreeData() { finsystenant.getTree().then(res => { + console.log(res, 'restree'); + console.log(this.importSetting,'this.importSetting'); const content = res || [] - this.treeDataList.splice(0, this.treeDataList.length) + // this.treeDataList.splice(0, this.treeDataList.length) this.treeDataList = content - if (content.length > 0) { - this.importSetting.fileSettings.data = {pid: content[0].id} - } + // if (content.length > 0) { + // this.importSetting.fileSettings.data = {pid: content[0].id} + // } }) }, updState(row) { let vm = this - let text = row.status == 0 ? "鍚敤" : "绂佺敤"; - vm.$modal.confirm('纭瑕�' + text + '"' + row.name + '"鍚楋紵').then(function () { + let text = row.states == 0 ? "鍚敤" : "绂佺敤"; + vm.$modal.confirm('纭瑕�' + text + '"' + row.categoryName + '"鍚楋紵').then(function () { let params = Object.assign({}, row) - params.status = row.status == 1 ? 0 : 1 + params.states = row.states == 1 ? 0 : 1 finsystenant.edit(params).then(res => { if (res) { - row.status = row.status === 1 ? 0 : 1 + row.states = row.states === 1 ? 0 : 1 vm.$modal.msgSuccess(text + "鎴愬姛"); vm.search() } @@ -215,7 +216,7 @@ }, del(row) { this.$modal - .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.name + '"鐨勬満鏋勫悧锛�') + .confirm('鏄惁纭鍒犻櫎鍚嶇О涓�"' + row.categoryName + '"鐨勬満鏋勫悧锛�') .then(function () { finsystenant.del({id: row.id}).then((res) => { }); @@ -244,6 +245,7 @@ this.editSetting.show = true; }, nodeClick(param) { + console.log(param, 'param'); param = param || {} this.p = Object.assign({}, { id: param.id, -- Gitblit v1.9.1