diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue
index 2e35115..d077b2b 100644
--- a/src/views/device/sparePartsApplicationRecord/index.vue
+++ b/src/views/device/sparePartsApplicationRecord/index.vue
@@ -9,6 +9,22 @@
v-show="showSearch"
label-width="98px"
>
+
+
+
+
+
+
+
+
+
-
+
@@ -49,14 +73,6 @@
@keyup.enter.native="handleQuery"
/>
-->
-
-
-
+
{{ parseTime(scope.row.applyTime) }}
-
{
if (valid) {
+ console.log("this.form",this.form);
if (this.form.applyId != null) {
updateSparePartsApplicationRecord(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@@ -639,6 +658,7 @@ export default {
this.getList();
});
} else {
+ console.log("this.form",this.form);
if (
this.form.amount - this.form.storageAmount <
this.form.spareQuantity
diff --git a/src/views/device/sparePartsLedger/index.vue b/src/views/device/sparePartsLedger/index.vue
index 8754f59..f84b564 100644
--- a/src/views/device/sparePartsLedger/index.vue
+++ b/src/views/device/sparePartsLedger/index.vue
@@ -76,38 +76,41 @@
-
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
-
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
{{ parseTime(scope.row.gmtCreate, "{y}-{m}-{d}") }}
-
-
+
+
{{ parseTime(scope.row.gmtModified, "{y}-{m}-{d}") }}
@@ -232,9 +329,10 @@
/>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -->
+
+
+
@@ -470,7 +747,9 @@ export default {
spareConversionRatio: null,
spareInventoryFloor: null,
spareInventoryUpper: null,
- ownEquipmentName : null,
+ ownEquipmentName: null,
+ ownEquipmentCode: null,
+ unitPrice: null,
},
options: [
{
@@ -562,6 +841,7 @@ export default {
spareConversionRatio: null,
spareInventoryFloor: null,
spareInventoryUpper: null,
+ unitPrice: null,
};
this.resetForm("form");
},
@@ -601,6 +881,7 @@ export default {
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
+ this.form.spareName = this.form.materialDesc;
if (this.form.storageId != null) {
updateSparePartsLedger(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
@@ -643,7 +924,6 @@ export default {
`sparePartsLedger_${new Date().getTime()}.xlsx`
);
},
-
},
};
-
+
\ No newline at end of file