From c3cd0e704ed76a9fe1ac7b88fc5b1b2b6eaf9950 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Tue, 29 Oct 2024 13:33:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/product/category.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/product/category.vue b/src/views/product/category.vue index 650c31f..7d44ce2 100644 --- a/src/views/product/category.vue +++ b/src/views/product/category.vue @@ -25,18 +25,18 @@ @change="showChange($event, scope.row)"> - + @@ -352,7 +352,6 @@ - + + + + +
@@ -592,7 +624,7 @@ import { tbConsInfoFlowstock } from "@/api/consumable"; import AddConsTakin from "../components/addConsTakin"; -import { tbConsInfodownload, tbConsInfoinputStock } from '@/api/invoicing' +import { tbConsInfodownload, tbConsInfoinputStock, unittbConsInfo } from '@/api/invoicing' import { downloadFile } from "@/utils"; import UploadExcel from '@/components/UploadExcel' import consRecordDetail from "../components/cons_record_detail"; @@ -676,6 +708,9 @@ export default { total: 0 }, ruleFormLoading: false, + dialogtitleunit: false, + unitItem: { switchs: 2 }, + switchs: 2, ruleForms: [], ruleForm: { conCode: "", @@ -768,6 +803,15 @@ export default { } }) }, + async submitUnit() { + const res = await unittbConsInfo([{ + conUnitTwoConvert: this.unitItem.conUnitTwoConvert * 1, + conUnitTwo: this.unitItem.conUnitTwo, + id: this.unitItem.id + }]) + this.unitItem = {} + this.dialogtitleunit = false + }, //跳转订单列表 toGoodslist(orderNo) { this.$router.push({ @@ -842,13 +886,18 @@ export default { console.log(error); } }, + // 单位编辑 + editorHandles(row) { + this.unitItem = row; + this.dialogtitleunit = true; + }, + // 编辑 editorHandle(row) { this.dialogtitle = "编辑"; for (let key in this.ruleForm) { this.ruleForm[key] = row[key]; } - console.log(row, '调试1') this.ruleForm.id = row.id; this.dialogshow = true; }, @@ -1305,4 +1354,70 @@ export default { } } } + +.unitStyle { + display: flex; + align-items: center; + border-radius: 2px 2px 2px 2px; + + >div:first-child { + width: 95px; + height: 42px; + line-height: 42px; + text-align: center; + border-right: 1px solid #DDDFE6; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #999999; + } + + >div:nth-child(2) { + width: 120px; + height: 42px; + line-height: 42px; + text-align: center; + border-right: 1px solid #DDDFE6; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #3F9EFF; + } + + >div:last-child { + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #999999; + + >input { + width: 39px; + height: 28px; + background: #FFFFFF; + border-radius: 2px 2px 2px 2px; + border: 1px solid #DDDFE6; + margin: 0 16px; + } + + } +} + +.unitStyleBottom { + margin-top: 30px; + line-height: 42px; + text-align: center; + font-family: Source Han Sans CN, Source Han Sans CN; + font-weight: 400; + font-size: 14px; + color: #3F9EFF; + + +} + +.unitWidth { + // width: 418px; + height: 42px; + border-radius: 2px 2px 2px 2px; + border: 1px solid #DDDFE6; +} diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index 612add2..5339e28 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -122,6 +122,15 @@
原价¥{{ scope.row.costPrice }}/{{ scope.row.conUnit }}
+ + + + + +