From 025dafb9892a8ff8f8a855343660f837a0f231d3 Mon Sep 17 00:00:00 2001 From: haoyahui <2032914783@qq.com> Date: 星期一, 20 十一月 2023 16:31:11 +0800 Subject: [PATCH] 库存管理前端 --- admin-web/src/views/stock/transfer/transferApplication/index.vue | 69 ++++++++++++++-------------------- 1 files changed, 29 insertions(+), 40 deletions(-) diff --git a/admin-web/src/views/stock/transfer/transferApplication/index.vue b/admin-web/src/views/stock/transfer/transferApplication/index.vue index 64f853c..6720ce6 100644 --- a/admin-web/src/views/stock/transfer/transferApplication/index.vue +++ b/admin-web/src/views/stock/transfer/transferApplication/index.vue @@ -62,9 +62,7 @@ <div class="box"> <span class="span-two">鐢宠璋冩嫧鏃堕棿锛�</span>{{ item.createTime | formatTime }} </div> - <div class="box"> - <span class="span-two">鎺ユ敹鏃堕棿锛�</span>{{ item.inTime | formatTime }} - </div> + <div class="box"><span class="span-two">鎺ユ敹鏃堕棿锛�</span>{{ item.inTime | formatTime }}</div> </div> <div class="one-hed"> <div class="box"><span class="span-two">璋冩嫧鏈烘瀯锛�</span>{{ item.outAgencyName }}</div> @@ -158,24 +156,6 @@ defaultValue: '', }, { - type: 'cascader', - dataIndex: 'outAgencyId', - label: '璋冩嫧鏈烘瀯', - placeholder: '璇烽�夋嫨', - optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null }, - defaultValue: '', - options: [], - }, - { - type: 'cascader', - dataIndex: 'inAgencyId', - label: '鎺ユ敹鏈烘瀯', - placeholder: '璇烽�夋嫨', - optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null }, - defaultValue: '', - options: [], - }, - { type: 'select', dataIndex: 'states', label: '鐘舵��', @@ -208,14 +188,13 @@ defaultValue: '', }, ], - filterFrom:{ - } + filterFrom: {}, }; }, created() { this.filterFrom = { - operatorId:this.userInfo.id - } + inAgencyId: this.userInfo.tenantId, + }; this.fetchData(); this.items.map((v) => { if (v.label == '鐘舵��') { @@ -238,33 +217,43 @@ console.log(this.list); }); }, - + // 鍏ュ簱 handleIncome(row) { - this.$confirm(`鎮ㄧ‘瀹� 鍗曞彿锛�${row.businessFormCode} 璋冩嫧鍑哄簱鍚�?`, '璋冩嫧鍑哄簱').then(() => { - transfeIncome({ id: row.id }) - .then((res) => { - this.$message.success('璋冩嫧鍑哄簱鎴愬姛锛�'); - this.search(1); - }) + this.$confirm(`鎮ㄧ‘瀹� 鍗曞彿锛�${row.businessFormCode} 鎺ユ敹鍏ュ簱鍚�?`, '鎺ユ敹鍏ュ簱', { + beforeClose: (action, instance, done) => { + if (action == 'confirm') { + instance.confirmButtonLoading = true; + instance.confirmButtonText = '鎵ц涓�...'; + transfeIncome({ id: row.id }) + .then((res) => { + this.$message.success('鎺ユ敹鍏ュ簱鎴愬姛锛�'); + done(); + instance.confirmButtonLoading = false; + this.search(1); + }) + .catch(() => { + done(); + }); + } else { + done(); + } + }, }); }, // 瀵煎嚭 handleExport(row) { - transferExport({id:row.id}).then(res=>{ - - }) + transferExport({ id: row.id }).then((res) => {}); }, // 鎾ら攢 handleRevoke(row) { this.$confirm(`鎮ㄧ‘瀹氭挙閿�鍗曞彿涓�"${row.businessFormCode}" 鐨勬暟鎹悧?`, '鎾ら攢').then(() => { - transferUpdStatus({ id: row.id }) - .then((res) => { - this.$message.success('鎾ら攢鎴愬姛锛�'); - this.search(1); - }) + transferUpdStatus({ id: row.id }).then((res) => { + this.$message.success('鎾ら攢鎴愬姛锛�'); + this.search(1); + }); }); }, fifterForm(params) { -- Gitblit v1.9.1