From f71832a6389efa2f851b8b7bd7a615ed2d3250e4 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 28 三月 2024 13:16:16 +0800
Subject: [PATCH] 完成模具页面
---
src/views/quality/Packaging_ledger/pack-from.vue | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/views/quality/Packaging_ledger/pack-from.vue b/src/views/quality/Packaging_ledger/pack-from.vue
index d761510..1587f27 100644
--- a/src/views/quality/Packaging_ledger/pack-from.vue
+++ b/src/views/quality/Packaging_ledger/pack-from.vue
@@ -1,7 +1,7 @@
<template>
<el-dialog
width="60%"
- title="鍙傛暟"
+ title="鏂板"
top="5vh"
:visible.sync="innerVisible"
:show="currshowlist"
@@ -11,11 +11,11 @@
>
<ttable
:table="table"
- @handleSelectionChange="handleSelectionChange"
+ @currentChange="Getdata"
:prelang="prelang"
:options="options"
:ajaxFun="ajaxFun"
- :bottomOffset="350"
+ :bottomOffset="150"
ref="paramTable"
>
<template #toolbar></template>
@@ -38,7 +38,7 @@
},
data() {
return {
- datalistid:"",
+ datalistid:{},
ajaxFun: customerpage,
currentRow: false,
typeOptions: [],
@@ -59,7 +59,8 @@
border: true, // 鏄惁鏈夌旱鍚戣竟妗�
lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
- multiSelect: true, //
+ multiSelect: false, //
+ isEdit:false,
seqNo: true,
isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
@@ -127,7 +128,6 @@
},
watch: {
currshowlist() {
- console.log(22211);
this.innerVisible = this.currshowlist
if (this.currshowlist) {
this.$nextTick(() => {
@@ -140,31 +140,31 @@
// ...mapGetters(['permissions'])
},
created() {
- this.getParamType()
+ // this.getParamType()
},
methods: {
// 鑾峰彇鏁版嵁鍒楄〃
- getData() {
- this.$refs.paramTable.getDataList()
- },
- handleSelectionChange(val){
- let data = val
- data.forEach(el => {
- this.datalistid = el
- });
- console.log(this.datalistid);
+ // getData() {
+ // this.$refs.paramTable.getDataList()
+ // },
+ Getdata(val){
+ this.datalistid = val
},
saveSelectRow() {
- pagedataadd ({customerId:this.datalistid.id,contractNo:this.datalistid.contractNo}).then((res =>{
- console.log(res);
+ let packageBox = {
+ customerId:this.datalistid.id,
+ contractNo:this.datalistid.contractNo
+ }
+ pagedataadd (packageBox).then((res =>{
if (res.status === 200) {
this.$message.success('鏂板鎴愬姛')
+ this.$emit('refreshDataList')
}else{
this.$message.error('鍒涘缓澶辫触')
}
}))
this.innerVisible = false
- this.$emit('handleSelectionChange',this.innerVisible )
+ this.$emit('wayapi',this.innerVisible )
},
}
}
--
Gitblit v1.9.3