From c18b61164fa4d9dcbeaa471ba3043334c576b1bc Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 28 二月 2024 17:25:18 +0800
Subject: [PATCH] 主生产计划
---
src/views/equipment/mould/index.vue | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue
index c9f1616..ed98b27 100644
--- a/src/views/equipment/mould/index.vue
+++ b/src/views/equipment/mould/index.vue
@@ -2,7 +2,9 @@
<div class="mod-config">
<basic-container>
<ttable
+ @handleSelectionChange="handleSelectionChange"
:table="table"
+ :uploadInfo="uploadInfo"
:ajaxFun="ajaxFun"
:prelang="prelang"
:options="options"
@@ -40,6 +42,7 @@
export default {
data(){
return {
+ diaPrintTab: false,
editRules: {
code: [{required:true,message:'璇疯緭鍏ユā鍏风紪鍙�',trigger:'blur'}],
name: [{required:true,message:'璇疯緭鍏ユā鍏峰悕绉�',trigger:'blur'}]
@@ -48,9 +51,17 @@
code: null,
name: null,
},
+ uploadInfo: {
+ // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
+ isShow: true,
+ url: '/mes/mould/upload',
+ download: true,
+ fileName: '妯″叿缁熻琛�'
+ },
dialogVisible: false,
ajaxFun: fetchList,
prelang: 'moudle',
+ multipleSelection: [],
dataListLoading: false,
options: {
height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
@@ -132,7 +143,6 @@
},
components: {
ttable,
- TableForm
},
watch: {
dialogVisible(newVal){
@@ -152,13 +162,6 @@
fun: this.addOrUpdateHandle
})
}
- if(this.permissions.equipment_mould_lableprint){
- this.table.toolbar.push({
- text: '鏍囩鎵撳嵃',
- type: 'primary',
- fun: this.lableprint
- })
- }
if(this.permissions.equipment_mould_del){
this.table.operator = [{
text: '鍒犻櫎',
@@ -171,6 +174,9 @@
},
methods: {
+ handleSelectionChange(val) {
+ this.multipleSelection = val
+ },
deleteHandle(row){
this.$confirm('鏄惁纭鍒犻櫎妯″叿鍚嶇О涓�' + row.name, '鎻愮ず', {
confirmButtonText: '纭畾',
@@ -184,9 +190,6 @@
this.$message.success('鍒犻櫎鎴愬姛')
this.getData()
})
- },
- lableprint(){
-
},
confirmSaveOrUpdateMould(){
this.$refs.editForm.validate(valid=>{
--
Gitblit v1.9.3