From 5e10fe06e80c7d146cbb5eb8f7b3e1e447a80b88 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期五, 17 十一月 2023 17:07:53 +0800 Subject: [PATCH] 部门物品:物品分发,物品报废静态。调拨管理联调,price由元改为分,仓库管理库管员 --- admin-web/src/views/departmentitem/itemdis/distribution/index.vue | 84 ++++++++++-------------------------------- 1 files changed, 20 insertions(+), 64 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..d94c697 100644 --- a/admin-web/src/views/departmentitem/itemdis/distribution/index.vue +++ b/admin-web/src/views/departmentitem/itemdis/distribution/index.vue @@ -10,7 +10,7 @@ <el-col> <!--鍒楄〃--> <div class="table-tool-bar" style="margin-bottom: 15px"> - <my-button name="鏂板" @click="handleAdd" site="tools" size="medium" /> + <my-button name="鐗╁搧鍒嗗彂" @click="handleAdd" site="tools" size="medium" icon="el-icon-edit-outline" /> <my-button name="瀵煎叆" @click="importSetting.dialogShow = true" site="tools" size="medium" /> </div> <div :style="{ 'overflow-y': 'auto', height: `${clientHeight - 320}px` }" v-loading="loading"> @@ -20,42 +20,20 @@ <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 > </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"> @@ -136,9 +114,17 @@ { type: 'text', dataIndex: 'businessFormCode', - label: '鍏ュ簱鍗曞彿', + label: '鍒嗗彂鍗曞彿', placeholder: '璇疯緭鍏�', defaultValue: '', + }, + { + type: 'select', + dataIndex: 'agencyId', + label: '鍒嗗彂閮ㄩ棬', + placeholder: '璇烽�夋嫨', + defaultValue: '', + options: [], }, { type: 'text', @@ -148,46 +134,16 @@ defaultValue: '', }, { - type: 'cascader', - dataIndex: 'agencyId', - label: '鏈烘瀯', - placeholder: '璇烽�夋嫨', - optionsConfig: { url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null }, - defaultValue: '', - options: [], - }, - { 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: '', }, { @@ -247,19 +203,19 @@ callBack(); }; }, - // 鍏ュ簱 + // 鍒嗗彂 handleIncome(row) { - this.$confirm(`鎮ㄧ‘瀹� 鍗曞彿锛�${row.businessFormCode} 鍏ュ簱鍚�?`, '閲囪喘鍏ュ簱').then(() => { + this.$confirm(`鎮ㄧ‘瀹� 鍗曞彿锛�${row.businessFormCode} 鍒嗗彂鍚�?`, '鍒嗗彂鍒嗗彂').then(() => { procureIncome({ id: row.id }) .then((res) => { - this.$message.success('鍏ュ簱鎴愬姛锛�'); + this.$message.success('鍒嗗彂鎴愬姛锛�'); this.search(); }) .catch(() => {}); }); }, del(row) { - this.$modal.confirm('鏄惁纭鍒犻櫎鍏ュ簱鍗曞彿涓�"' + row.businessFormCode + '"鐨勬暟鎹悧锛�').then( () => { + this.$modal.confirm('鏄惁纭鍒犻櫎鍒嗗彂鍗曞彿涓�"' + row.businessFormCode + '"鐨勬暟鎹悧锛�').then( () => { procureDel({ id: row.id }) .then((res) => { this.$message.success('鍒犻櫎鎴愬姛锛�'); -- Gitblit v1.9.1