|
|
@@ -135,7 +135,10 @@
|
|
|
:show-overflow-tooltip="true"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="单价" prop="price" align="center">
|
|
|
+ <el-table-column label="单价" prop="price" align="center"
|
|
|
+ v-if="isPrice == 1"
|
|
|
+
|
|
|
+ >
|
|
|
<template slot-scope="{ row }">
|
|
|
<template>
|
|
|
{{ row.price ? row.price : ' ' + '元' }}/{{
|
|
|
@@ -145,7 +148,10 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="金额" align="center" prop="totalMoney" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column label="金额" align="center" prop="totalMoney" :show-overflow-tooltip="true"
|
|
|
+ v-if="isPrice == 1"
|
|
|
+
|
|
|
+ >
|
|
|
<template slot-scope="{ row, $index }">
|
|
|
{{ row.totalMoney ? row.totalMoney : 0 }}
|
|
|
</template>
|
|
|
@@ -270,6 +276,7 @@ import selectTree from '@/components/selectTree';
|
|
|
import AssetsDialog from './components/AssetsDialog.vue';
|
|
|
import { deepClone } from '@/components/FormGenerator/utils/index';
|
|
|
import { mapGetters } from 'vuex';
|
|
|
+import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
|
|
|
export default {
|
|
|
@@ -350,7 +357,8 @@ export default {
|
|
|
trigger: 'change'
|
|
|
}
|
|
|
},
|
|
|
- llrLsit: []
|
|
|
+ llrLsit: [],
|
|
|
+ isPrice:1
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -360,7 +368,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
-
|
|
|
+ //仓库出入库是否显示金额(0:不显示 1:显示)
|
|
|
+ parameterGetByCode({
|
|
|
+ code: 'wms_price'
|
|
|
+ }).then((res) => {
|
|
|
+ this.isPrice = res.value;
|
|
|
+ });
|
|
|
this.getFieldModel();
|
|
|
this.getListItems();
|
|
|
this.initDeptData().then(() => {
|