From 3f69b4dfc585c4dfbc3c07a6acf5cdd838033636 Mon Sep 17 00:00:00 2001 From: liuguocan <527956374@qq.com> Date: 星期二, 28 十一月 2023 14:45:49 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- admin-web/src/views/departmentitem/itemdis/distribution/index.vue | 148 ++++++++----------------------------------------- 1 files changed, 25 insertions(+), 123 deletions(-) diff --git a/admin-web/src/views/departmentitem/itemdis/distribution/index.vue b/admin-web/src/views/departmentitem/itemdis/distribution/index.vue index 0c1733b..5dfbca1 100644 --- a/admin-web/src/views/departmentitem/itemdis/distribution/index.vue +++ b/admin-web/src/views/departmentitem/itemdis/distribution/index.vue @@ -11,51 +11,26 @@ <!--鍒楄〃--> <div class="table-tool-bar" style="margin-bottom: 15px"> <my-button name="鏂板" @click="handleAdd" site="tools" size="medium" /> - <my-button name="瀵煎叆" @click="importSetting.dialogShow = true" site="tools" size="medium" /> </div> - <div :style="{ 'overflow-y': 'auto', height: `${clientHeight - 320}px` }" v-loading="loading"> + <div :style="{ 'overflow-y': 'auto', height: `calc(100vh - 320px)` }" v-loading="loading"> <el-row v-if="list.length" class="card" :gutter="5"> <el-col v-for="(item, index) in list" :key="index" class="cm-item"> <el-card class="card-data"> <div class="card-container"> <div class="card-header"> <div class="card-header-left"> - <span>鍏ュ簱鍗曞彿锛�</span> + <span>鍒嗗彂鍗曞彿锛�</span> <span class="value">{{ item.businessFormCode }}</span> - <div class="states" :class="item.states == 1 ? '' : 'states-success'"> - {{ item.states == 1 ? '寰呭叆搴�' : '宸插叆搴�' }} - </div> </div> <div class="card-header-right"> - <template v-if="item.states == 1"> - <el-button name="缂栬緫" site="form" type="success" size="mini" @click="handleEdit(item)" - >缂栬緫</el-button - > - <el-button name="鍏ュ簱" site="form" type="primary" size="mini" @click="handleIncome(item)" - >鍏ュ簱</el-button - > - <el-button name="鍒犻櫎" site="form" type="danger" size="mini" @click="del(item)" - >鍒犻櫎</el-button - > - </template> - <template v-if="item.states != 1"> - <el-button site="form" type="success" size="mini" @click="handleExport(item)" - >瀵煎嚭鍏ュ簱鍗�</el-button - > - </template> - <el-button name="鏌ョ湅璇︽儏" site="form" type="info" size="mini" @click="handleDetail(item)" - >鏌ョ湅璇︽儏</el-button - > + <el-button name="鏌ョ湅璇︽儏" site="form" type="primary" size="mini" @click="handleDetail(item)">鏌ョ湅璇︽儏</el-button> </div> </div> <div class="one-hed"> - <div class="box"><span class="span-two">鏈烘瀯锛�</span>{{ item.agencyId }}</div> - <div class="box"><span class="span-two">鎿嶄綔浜猴細</span>{{ item.buyerName }}</div> + <div class="box"><span class="span-two">閮ㄩ棬锛�</span>{{ item.agencyId }}</div> + <div class="box"><span class="span-two">鍒嗗彂浜猴細</span>{{ item.buyerName }}</div> <div class="box"> - <span class="span-two">閲囪喘鏃堕棿锛�</span>{{ item.procureTime | formatTime }} - </div> - <div class="box"> - <span class="span-two">鍏ュ簱鏃堕棿锛�</span>{{ item.incomeTime | formatTime }} + <span class="span-two">鍒嗗彂鏃堕棿锛�</span>{{ item.procureTime | formatTime }} </div> </div> <div class="card-end"> @@ -104,11 +79,6 @@ @close="detailSetting.show = false" ref="detailRef" ></detail> - <my-import - :import-setting="importSetting" - :dialog-show="importSetting.dialogShow" - :dialog-title="importSetting.dialogTitle" - /> </div> </template> @@ -120,7 +90,7 @@ import edit from './edit'; import detail from './detail'; import { getBaseUrl } from '@/utils/base'; -import listPage from '../../../mixins/listPage' +import listPage from '../../../mixins/listPage'; export default { name: 'index', @@ -136,21 +106,27 @@ { type: 'text', dataIndex: 'businessFormCode', - label: '鍏ュ簱鍗曞彿', + label: '鍒嗗彂鍗曞彿', placeholder: '璇疯緭鍏�', defaultValue: '', }, { - type: 'text', - dataIndex: 'goodsTemplateName', + type: 'select', + dataIndex: 'goodsTemplateId', label: '鐗╁搧鍚嶇О', - placeholder: '鍙ā绯婃悳绱�', + placeholder: '璇疯緭鍏�', defaultValue: '', + options: [], + optionsConfig: { + label: 'goodsName', + value: 'id', + url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate', + }, }, { type: 'cascader', dataIndex: 'agencyId', - label: '鏈烘瀯', + label: '鍒嗗彂閮ㄩ棬', placeholder: '璇烽�夋嫨', optionsConfig: { url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null }, defaultValue: '', @@ -159,35 +135,14 @@ { type: 'text', dataIndex: 'createName', - label: '鍒涘缓浜�', + label: '鍒嗗彂浜�', placeholder: '璇疯緭鍏�', defaultValue: '', }, { - type: 'select', - dataIndex: 'states', - label: '鐘舵��', - placeholder: '璇烽�夋嫨', - defaultValue: '', - options: [ - { - label: '鍏ㄩ儴', - value: '', - }, - { - label: '寰呭叆搴�', - value: '1', - }, - { - label: '宸插叆搴�', - value: '2', - }, - ], - }, - { type: 'date-picker', dataIndex: 'incomeTimeStart', - label: '鍏ュ簱鏃堕棿', + label: '鍒嗗彂鏃堕棿', defaultValue: '', }, { @@ -198,26 +153,11 @@ }, ], // 鏍戞暟鎹� - treeDataList: [], - // 瀵煎叆 - importSetting: { - dialogTitle: '瀵煎叆', - dialogShow: false, - fileSettings: { - data: {}, - uploadUrl: getBaseUrl() + '/pc/fin/sys/tenant/import', // 涓婁紶鍦板潃 - accept: '.xls', // 鏍煎紡 - type: 'text', // 鍥炴樉褰㈠紡 - loading: false, // 瀵煎叆鏁堟灉 - }, - /* 妯℃澘涓嬭浇 */ - templateSettings: { - templateName: '瀵煎叆妯℃澘.xls', // 鍚嶇О - templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate', // 涓嬭浇鍦板潃 - }, - onSuccess: null, - }, + treeDataList: [] }; + }, + created(){ + this.fetchData() }, methods: { fetchData() { @@ -233,41 +173,6 @@ console.log(this.list); }); }, - - //瀵煎叆 - importOrg() { - this.importSetting.dialogShow = true; - this.importSetting.onSuccess = (response, callBack) => { - if (response.code === 1) { - this.$message.success(response.msg); - this.search(1); - } else { - this.$message.warning(response.msg); - } - callBack(); - }; - }, - // 鍏ュ簱 - handleIncome(row) { - this.$confirm(`鎮ㄧ‘瀹� 鍗曞彿锛�${row.businessFormCode} 鍏ュ簱鍚�?`, '閲囪喘鍏ュ簱').then(() => { - procureIncome({ id: row.id }) - .then((res) => { - this.$message.success('鍏ュ簱鎴愬姛锛�'); - this.search(); - }) - .catch(() => {}); - }); - }, - del(row) { - this.$modal.confirm('鏄惁纭鍒犻櫎鍏ュ簱鍗曞彿涓�"' + row.businessFormCode + '"鐨勬暟鎹悧锛�').then( () => { - procureDel({ id: row.id }) - .then((res) => { - this.$message.success('鍒犻櫎鎴愬姛锛�'); - this.search(); - }) - .catch(() => {}); - }); - }, fifterForm(params) { this.filterFrom = Object.assign(this.filterFrom, params); if (this.filterFrom.incomeTimeStart) { @@ -276,9 +181,6 @@ if (this.filterFrom.incomeTimeEnd) { this.filterFrom.incomeTimeEnd = this.filterFrom.incomeTimeEnd.replace(/\-/g, ''); } - if (this.filterFrom.agencyId && this.filterFrom.agencyId.length) { - this.filterFrom.agencyId = this.filterFrom.agencyId[this.filterFrom.agencyId.length - 1]; - } this.search(1); }, }, @@ -286,5 +188,5 @@ </script> <style scoped lang="scss"> -@import url(../../../../styles/store.scss); + //@import url(../../../../styles/index.scss); </style> -- Gitblit v1.9.1