@@ -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 }}
+
+
+
+
+
+
+
+
+
原价¥{{ scope.row.costPrice }}/{{ scope.row.conUnit }}
+