From 0ff4be6c9cb9bc215acd4b4c78122da7e0d7140f Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 13:55:50 +0800 Subject: [PATCH] feat: 部门物品退回 --- admin-web/src/views/departmentitem/itemret/returnNote/index.vue | 48 ++++++++++++++++++++++++++++-------------------- 1 files changed, 28 insertions(+), 20 deletions(-) diff --git a/admin-web/src/views/departmentitem/itemret/returnNote/index.vue b/admin-web/src/views/departmentitem/itemret/returnNote/index.vue index 47b57af..85cfa78 100644 --- a/admin-web/src/views/departmentitem/itemret/returnNote/index.vue +++ b/admin-web/src/views/departmentitem/itemret/returnNote/index.vue @@ -27,7 +27,7 @@ </div> </div> <div class="one-hed"> - <div class="box"><span class="span-two">閮ㄩ棬锛�</span>{{ item.agencyName }}</div> + <div class="box"><span class="span-two">閮ㄩ棬锛�</span>{{ item.departmentName }}</div> <div class="box"><span class="span-two">鎿嶄綔浜猴細</span>{{ item.operatorName }}</div> <div class="box"> <span class="span-two">閫�鍥炴椂闂达細</span>{{ item.dealTime | formatTime }} @@ -72,12 +72,14 @@ </template> <script> -import { outputList } from '@/api/stock/accessStock'; +import {outputList} from '@/api/stock/accessStock'; import MyButton from '@/components/myButton/myButton'; import myImport from '@/views/components/myImport'; import edit from './edit'; import detail from './detail'; -import listPage from '../../../mixins/listPage' +import listPage from '@/views/mixins/listPage' +import {getUserDetail} from "@/utils/auth"; +import SettingIplatform from "@/utils/settingIplatform"; export default { name: 'index', @@ -96,11 +98,30 @@ defaultValue: '', }, { - type: 'text', - dataIndex: 'goodsName', - label: '鐗╁搧鍚嶇О', - placeholder: '鍙ā绯婃悳绱�', + type: 'select', + dataIndex: 'inAgencyId', + label: '鍒嗗彂閮ㄩ棬', + placeholder: '璇烽�夋嫨', + optionsConfig: { + url: `/pc/fin/sys/tenant/department/list/all?tenantId=${getUserDetail().tenantId}`, + label: 'name', + value: 'id', + }, defaultValue: '', + options: [], + }, + { + type: 'select', + dataIndex: 'goodsTemplateId', + label: '鐗╁搧鍚嶇О', + placeholder: '璇烽�夋嫨', + defaultValue: '', + options: [], + optionsConfig: { + label: 'goodsName', + value: 'id', + url: SettingIplatform.apiBaseURL + `/pc/base/goods/template/query/goodsTemplate?tenantId=${getUserDetail().tenantId}`, + }, }, { type: 'date-picker', @@ -129,19 +150,6 @@ this.total = res.totalRows; this.loading = false; }); - }, - fifterForm(params) { - this.filterFrom = Object.assign(this.filterFrom, params); - if (this.filterFrom.startTime) { - this.filterFrom.startTime = this.filterFrom.startTime.replace(/\-/g, ''); - } - if (this.filterFrom.endTime) { - this.filterFrom.endTime = this.filterFrom.endTime.replace(/\-/g, ''); - } - if (this.filterFrom.agencyId&&this.filterFrom.agencyId.length) { - this.filterFrom.agencyId = this.filterFrom.agencyId[this.filterFrom.agencyId.length - 1]; - } - this.search(1); }, }, }; -- Gitblit v1.9.1