From 53a636b260e4a879d51e526cd8e98a72e8b1b6a5 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 04 十二月 2023 17:14:48 +0800 Subject: [PATCH] 修复工序 --- src/views/quality/Packaging_ledger/index.vue | 56 +++++++++++++++++++++++++++++++++----------------------- 1 files changed, 33 insertions(+), 23 deletions(-) diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue index e740452..0b27c4a 100644 --- a/src/views/quality/Packaging_ledger/index.vue +++ b/src/views/quality/Packaging_ledger/index.vue @@ -9,7 +9,7 @@ :prelang="prelang" :ajaxFun="ajaxFun" :options="options" - @handleSelectionChange="handleCurrentChange" + @currentChange="handleCurrentChange" ref="processconfiguration" > <template #toolbar></template> @@ -41,6 +41,7 @@ </el-col> <el-col :span="2"> <el-button + v-if="!isCheck" style="float: right; padding: 3px 0" type="text" @click="relateOperationParam()" @@ -53,7 +54,7 @@ :data="testStandardParams" id="testStandardParamTable" ref="testStandardParam" - :default-sort="{ prop: 'index' }" + highlight-current-row height="700" style="width: 100%" @@ -62,7 +63,7 @@ stripe > <el-table-column - prop="index" + type ="index" label="搴忓彿" align="center" width="50" @@ -92,12 +93,12 @@ </el-table-column> <el-table-column label="鏁伴噺" - prop="parameterFormat" + prop="number" align="center" width="80" > <template slot-scope="scope"> - <el-input v-model="scope.row.parameterFormat"></el-input> + <el-input v-model="scope.row.number"></el-input> </template> </el-table-column> <el-table-column label="鍗曚綅" prop="unit" align="center" /> @@ -138,6 +139,8 @@ export default { data(){ return { + isCheck: false, + dataway:{}, goid:'', testStandardParams: [], packageBoxId:{}, @@ -237,17 +240,17 @@ ], operator: [ { + text: '妫�楠�', + icon: 'el-icon-position', + type: 'text', + size: 'small', + fun: this.check + },{ text: '鍒犻櫎', icon: 'el-icon-delete', type: 'text', size: 'small', fun: this.deleteHandle - },{ - text: '妫�楠�', - icon: 'el-icon-delete', - type: 'text', - size: 'small', - fun: this.check } ], operatorConfig: { @@ -272,6 +275,9 @@ getData() { this.$refs.processconfiguration.refreshData() }, + wayRenovate(){ + this.getData() + }, //add addOrUpdateHandle(){ this.addOrUpdateVisible = true @@ -280,28 +286,32 @@ deleteHandle(row){ dropById({id:row.id}).then((res) =>{ this.getData() - this.$message.error('鍒犻櫎鎴愬姛') + this.$message.success('鍒犻櫎鎴愬姛') }) }, handleCurrentChange(row){ - console.log(row,"id"); - this.packageBoxId = { - packageBoxId:row[0].id + console.log(row,"涓�琛�"); + if(row.state=='宸叉姤妫�'){ + this.isCheck = true } - this.goid = row[0].id - list({packageBoxId:row[0].id}).then((res) =>{ + this.dataway = row + this.packageBoxId = { + packageBoxId:row.id + } + this.goid = row.id + this.rightquery() + }, + rightquery(){ + list({packageBoxId:this.goid}).then((res) =>{ console.log(res,"nihaoa"); this.testStandardParams = res.data.data }) }, //璇︽儏娣诲姞 relateOperationParam(){ - this.increase = true - }, preserve(datalist){ - console.log(datalist); this.testStandardParams = datalist }, @@ -311,10 +321,10 @@ this.testStandardParams.forEach(el => { el.packageBoxId =this.goid }); - console.log(this.testStandardParams,"niaho"); saveList(this.testStandardParams).then((res) =>{ + console.log(res,"淇濆瓨鎴愬姛"); this.$message.success('淇濆瓨鎴愬姛') - this.testStandardParams + this.rightquery() }) }, //鍒犻櫎 @@ -322,7 +332,7 @@ console.log(row,""); deledata({id:row.id}).then((res)=>{ this.$message.success('鍒犻櫎鎴愬姛') - this.testStandardParams + this.rightquery() }) }, //瀹℃牳 -- Gitblit v1.9.3