From 72ae3c97c344694addc7990b42ea0fc8ef513e7f Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期五, 01 十二月 2023 15:24:53 +0800 Subject: [PATCH] new file: src/api/quality/packageInspect.js modified: src/router/views/index.js modified: src/views/plan/productionschedul/index.vue modified: src/views/quality/Packaging_ledger/index.vue modified: src/views/quality/Packaging_ledger/pack-from.vue new file: src/views/quality/packageinspect/index.vue new file: src/views/quality/packageinspect/packageInspect-form.vue modified: vue.config.js --- src/views/quality/Packaging_ledger/index.vue | 39 +++++++++++++++++++++++++-------------- 1 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/views/quality/Packaging_ledger/index.vue b/src/views/quality/Packaging_ledger/index.vue index 0e0f2f0..e740452 100644 --- a/src/views/quality/Packaging_ledger/index.vue +++ b/src/views/quality/Packaging_ledger/index.vue @@ -20,7 +20,7 @@ <div slot="header"> <el-row> <el-col :span="8"> - <span>鏍囧噯鍙傛暟</span> + <span>瑁呯鏄庣粏</span> </el-col> <el-col :span="8" :offset="4"> <!-- <el-button @@ -118,7 +118,7 @@ <!-- 鏂板 --> <packfrom :currshowlist.sync="addOrUpdateVisible" - > + @refreshDataList="getData"> </packfrom> <packfromadd :currshowlist.sync="increase" @@ -131,7 +131,7 @@ </template> <script> -import { pagedata,dropById,list,saveList,deledata} from '@/api/quality/Packaging_ledger' +import { pagedata,dropById,list,saveList,deledata,sAuditstatus} from '@/api/quality/Packaging_ledger' import ttable from '@/views/common/ztt-table.vue' import packfrom from './pack-from.vue' import packfromadd from './pack-fromadd.vue' @@ -243,11 +243,11 @@ size: 'small', fun: this.deleteHandle },{ - text: 'xx', + text: '妫�楠�', icon: 'el-icon-delete', type: 'text', size: 'small', - // fun: this.deleteHandle + fun: this.check } ], operatorConfig: { @@ -265,13 +265,7 @@ packfromadd }, watch: { - // renovate() { - // if (this.innerVisible = false) { - // this.$nextTick(() => { - // this.getData() - // }) - // } - // } + }, methods: { // 鑾峰彇鏁版嵁鍒楄〃 @@ -302,13 +296,16 @@ }, //璇︽儏娣诲姞 relateOperationParam(){ + this.increase = true + }, preserve(datalist){ console.log(datalist); this.testStandardParams = datalist }, + //鍙宠竟淇濆瓨 addpreserve(){ console.log(this.testStandardParams,"淇濆瓨鏁版嵁"); this.testStandardParams.forEach(el => { @@ -316,18 +313,32 @@ }); console.log(this.testStandardParams,"niaho"); saveList(this.testStandardParams).then((res) =>{ - console.log(res,"淇濆瓨鐨�"); this.$message.success('淇濆瓨鎴愬姛') this.testStandardParams }) }, + //鍒犻櫎 deleteadd(row){ console.log(row,""); deledata({id:row.id}).then((res)=>{ this.$message.success('鍒犻櫎鎴愬姛') this.testStandardParams }) - } + }, + //瀹℃牳 + check(row){ + console.log(row,"瀹℃牳"); + let packageBox = { + id:row.id, + packageNo:row.packageNo, + contractNo:row.contractNo, + customerId:row.customerId, + } + sAuditstatus(packageBox).then((res) =>{ + this.getData() + this.$message.success('妫�楠屾垚鍔�') + }) + }, }, computed: { }, -- Gitblit v1.9.3