|
|
@@ -109,7 +109,11 @@
|
|
|
/^(-)*(\d+)\.(\d\d\d\d\d\d).*$/,
|
|
|
'$1$2.$3'
|
|
|
))
|
|
|
- "></el-input>
|
|
|
+ ">
|
|
|
+ <template slot="append">{{ row.unit }}</template>
|
|
|
+ </el-input>
|
|
|
+
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:action="{ row }">
|
|
|
@@ -335,7 +339,8 @@ export default {
|
|
|
|
|
|
{
|
|
|
label: '计量单位',
|
|
|
- prop: 'unit'
|
|
|
+ prop: 'unit',
|
|
|
+
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -345,15 +350,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- label: '采购数量',
|
|
|
+ label: '领料数量',
|
|
|
slot: 'purchaseQuantity',
|
|
|
- action: 'purchaseQuantity'
|
|
|
+ action: 'purchaseQuantity',
|
|
|
+ width: 160,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
- width: 70,
|
|
|
+ width: 90,
|
|
|
align: 'center',
|
|
|
resizable: false,
|
|
|
slot: 'action',
|
|
|
@@ -386,14 +392,21 @@ export default {
|
|
|
methods: {
|
|
|
async open(type, row) {
|
|
|
this.type = type;
|
|
|
+ this.visible = true;
|
|
|
+
|
|
|
if (row) {
|
|
|
this.getDetail(row.id)
|
|
|
+ } else {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.table.setData([]);
|
|
|
+ })
|
|
|
}
|
|
|
- this.visible = true;
|
|
|
+
|
|
|
},
|
|
|
|
|
|
|
|
|
getDetail(id) {
|
|
|
+
|
|
|
getById(id).then(res => {
|
|
|
this.$set(this.formData, 'name', res.name)
|
|
|
this.$set(this.formData, 'remark', res.remark)
|