From 72d0396410f791d9de2d0cd79629ceeea7ce24c3 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 20 九月 2023 14:26:31 +0800
Subject: [PATCH] 1.工序设置100%
---
src/views/materialManager/inventoryList.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/materialManager/inventoryList.vue b/src/views/materialManager/inventoryList.vue
index 7d4a5d4..206d0fe 100644
--- a/src/views/materialManager/inventoryList.vue
+++ b/src/views/materialManager/inventoryList.vue
@@ -61,8 +61,9 @@
<div
style=" width:calc(100% - 300px);"
>
- <div class="bodyTopButtonGroup">
+ <div class="bodyTopButtonGroup" style="justify-content: space-between">
<el-button v-waves type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">鏂板</el-button>
+ <el-button v-waves type="success" icon="el-icon-download" @click="$router.push('./../systemSetting/dataImport?fileCode=8')">瀵煎叆</el-button>
</div>
<div class="bodyTopFormGroup">
@@ -704,6 +705,9 @@
i.idparent = i.idparent ? i.idparent : '-1'
})
this.treeLeftArr = res.data
+ this.treeLeftArr.forEach(e => {
+ e.name = e.code + ' ' + e.name
+ })
this.treeLeft = arrayToTree(this.treeLeft.concat(res.data), {
parentProperty: 'idparent',
customID: 'code',
@@ -863,6 +867,9 @@
dialogVisibleConfirm() {
this.$refs.dialogForm.validate(valid => {
if (valid) {
+ if (!(this.dialogForm.isPurchase || this.dialogForm.isSale || this.dialogForm.isMadeSelf || this.dialogForm.isMaterial || this.dialogForm.isMadeRequest)) {
+ return this.$message.info('瀛樿揣灞炴�т笉鑳戒负绌猴紒')
+ }
this.dialogForm.isPurchase = this.dialogForm.isPurchase ? '1' : '0'
this.dialogForm.isSale = this.dialogForm.isSale ? '1' : '0'
this.dialogForm.isMadeSelf = this.dialogForm.isMadeSelf ? '1' : '0'
@@ -906,7 +913,7 @@
treeEditClick(node, data, operation) {
this.dialogClassForm.data_sources = data.data_sources
this.dialogClassForm.inventoryclasscode = data.code
- this.dialogClassForm.inventoryclassname = data.name
+ this.dialogClassForm.inventoryclassname = data.name.split(' ')[1]
this.dialogClassForm.parentcode = data.idparent === '-1' ? '' : data.idparent
this.dialogClassForm.OperType = 'Update'
this.operation = operation
--
Gitblit v1.9.3