@@ -190,7 +197,7 @@
:header-cell-style="{background:'#f5f7fa',color:'#606266'}"
@current-change="handleDisCurrentChange"
>
-
+
-
-
-
-
-
+
+
+
+
+
-
+
{{ parseFloat(scope.row.plan_qty).toFixed(3) }}
-
-
-
-
-
+
+
+
+
+
-
+
-
-
+
+
@@ -259,7 +282,9 @@ export default {
},
openArray: {
type: Array,
- default: () => { return [] }
+ default: () => {
+ return []
+ }
},
storId: {
type: String,
@@ -268,6 +293,7 @@ export default {
},
data() {
return {
+ cascaderValue: [],
dialogVisible: false,
loadingAlldiv: false,
loadingAutodiv: false,
@@ -297,8 +323,7 @@ export default {
},
sects: [],
pointList: [],
- rules: {
- }
+ rules: {}
}
},
watch: {
@@ -322,11 +347,25 @@ export default {
methods: {
open() {
crudSectattr.getSectCode({ 'stor_id': this.storId }).then(res => {
- debugger
this.sects = res.content
+ if (this.sects && this.sects.length > 0) {
+ const firstOption = this.sects[0]
+ if (firstOption.children && firstOption.children.length > 0) {
+ this.cascaderValue = [firstOption.value, firstOption.children[0].value]
+ } else {
+ this.cascaderValue = [firstOption.value]
+ }
+ this.sectQueryChange(this.cascaderValue)
+ }
})
crudRegion.getRegionList(this.mstrow).then(res => {
this.pointList = res
+ if (this.pointList && this.pointList.length > 0) {
+ const foundPoint = this.pointList.find(r => r.region_name.includes('出'))
+ if (foundPoint) {
+ this.form2.point_code = foundPoint.region_code
+ }
+ }
})
},
close() {
@@ -355,6 +394,9 @@ export default {
})
},
sectQueryChange(val) {
+ if (!val || val.length === 0) {
+ val = this.cascaderValue
+ }
if (val.length === 1) {
this.mstrow.stor_code = val[0]
this.mstrow.sect_code = ''
@@ -528,18 +570,19 @@ export default {
.crud-opts2 .el-dialog__title2 {
line-height: 24px;
- font-size:20px;
- color:#303133;
+ font-size: 20px;
+ color: #303133;
}
.crud-opts2 .role-span {
padding: 10px 0px 10px 0px;
}
+
.crud-opts2 .crud-opts-form {
padding: 10px 0px 0px 20px;
}
-.input-with-select {
+.input-with-select {
background-color: #fff;
}
diff --git a/nladmin-ui/src/views/wms/statement/record/index.vue b/nladmin-ui/src/views/wms/statement/record/index.vue
index 850841e..1d445a1 100644
--- a/nladmin-ui/src/views/wms/statement/record/index.vue
+++ b/nladmin-ui/src/views/wms/statement/record/index.vue
@@ -81,7 +81,7 @@
- {{ scope.row.growth }}
+ {{ scope.row.growth ? '是' : '否' }}