From d12ecff83dc07baecfb458bce3d501485b03f2df Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Fri, 5 Jul 2024 09:43:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E8=80=97=E6=9D=90=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=9F=A5=E8=AF=A2=E6=89=80=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoicing/consumable/cons_record.vue | 90 +++++++++++++++++++ .../invoicing/consumable/information.vue | 23 +++-- 2 files changed, 100 insertions(+), 13 deletions(-) create mode 100644 src/views/invoicing/consumable/cons_record.vue diff --git a/src/views/invoicing/consumable/cons_record.vue b/src/views/invoicing/consumable/cons_record.vue new file mode 100644 index 0000000..cd2487e --- /dev/null +++ b/src/views/invoicing/consumable/cons_record.vue @@ -0,0 +1,90 @@ + + + + + + + + + 查询 + 重置 + + + + + + + + {{ scope.row.bizType }}{{ scope.row.amount + }} + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index 1b12965..c152800 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -60,15 +60,12 @@ {{ dayjs(scope.row.createdAt).format('YYYY-MM-DD HH:mm:ss') }} - - - 查看 - - + 耗材记录 - 编辑 + - + @@ -258,8 +255,8 @@ export default { conCode: '', conName: '', conTypeId: '', - price:"", - conNames:"", + price: "", + conNames: "", // surplusStock: '', conUnit: '', conWarning: '', @@ -390,7 +387,7 @@ export default { tableDatatypetable(item) { console.log(item, '调试-选择完的数据') this.ruleForm.conCode = item.conTypeCode - this.ruleForm.conNames = item.conTypeName + this.ruleForm.conNames = item.conTypeName this.ruleForm.conTypeId = item.id this.typedialogshow = false }, @@ -439,7 +436,7 @@ export default { this.$refs[formName].validate(async (valid) => { if (valid) { if (this.dialogtitle == '编辑') { - + await postapitbConsInfo({ id: this.ruleForm.id, conCode: this.ruleForm.conCode, @@ -453,9 +450,9 @@ export default { this.dialogshow = false } else {//添加 await posttbConsInfo({ - ...this.ruleForm + ...this.ruleForm }) - this.$message({type:'success',message:'添加成功'}) + this.$message({ type: 'success', message: '添加成功' }) } this.dialogshow = false this.$refs[formName].resetFields()