|
|
@@ -100,6 +100,7 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import { lbjtList } from '@/enum/dict.js';
|
|
|
import { levelList,pricingWayList } from '@/enum/dict.js';
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
|
export default {
|
|
|
// components: { fileMain },
|
|
|
@@ -107,13 +108,56 @@
|
|
|
|
|
|
props: {
|
|
|
form: { type: Object, default: () => {} },
|
|
|
- detailData: { type: Object, default: () => {} }
|
|
|
+ detailData: { type: Object, default: () => {} },
|
|
|
+ taskDefinitionKey: { type: String, default: '' }
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
reviewStatusEnum,
|
|
|
- columns: [
|
|
|
+ isHidePrice: 0
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ columns() {
|
|
|
+ const tempList = [
|
|
|
+ {
|
|
|
+ width: 160,
|
|
|
+ prop: 'singlePrice',
|
|
|
+ label: '单价',
|
|
|
+ slot: 'singlePrice',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 150,
|
|
|
+ prop: 'notaxSinglePrice',
|
|
|
+ label: '不含税单价',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 160,
|
|
|
+ prop: 'discountSinglePrice',
|
|
|
+ label: '折后单价',
|
|
|
+ slot: 'discountSinglePrice',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 120,
|
|
|
+ prop: 'totalPrice',
|
|
|
+ label: '合计',
|
|
|
+ slot: 'totalPrice',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 160,
|
|
|
+ prop: 'discountTotalPrice',
|
|
|
+ label: '折后合计',
|
|
|
+ slot: 'discountTotalPrice',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ ]
|
|
|
+
|
|
|
+ const list = [
|
|
|
{
|
|
|
width: 45,
|
|
|
type: 'index',
|
|
|
@@ -342,13 +386,6 @@
|
|
|
},
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'singlePrice',
|
|
|
- label: '单价',
|
|
|
- slot: 'singlePrice',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'taxRate',
|
|
|
@@ -358,33 +395,7 @@
|
|
|
},
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- width: 150,
|
|
|
- prop: 'notaxSinglePrice',
|
|
|
- label: '不含税单价',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'discountSinglePrice',
|
|
|
- label: '折后单价',
|
|
|
- slot: 'discountSinglePrice',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 120,
|
|
|
- prop: 'totalPrice',
|
|
|
- label: '合计',
|
|
|
- slot: 'totalPrice',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'discountTotalPrice',
|
|
|
- label: '折后合计',
|
|
|
- slot: 'discountTotalPrice',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+
|
|
|
{
|
|
|
prop: 'provenance',
|
|
|
label: '产地',
|
|
|
@@ -486,12 +497,19 @@
|
|
|
align: 'center'
|
|
|
}
|
|
|
]
|
|
|
- };
|
|
|
+ return this.taskDefinitionKey == 'storeManagerApprove' && this.isHidePrice == 0 ? list : [...list, ...tempList]
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
console.log(this.detailData, 'detailData');
|
|
|
this.requestDict('产地');
|
|
|
this.requestDict('生产类型');
|
|
|
+ //批次号是否必填//0否 1是
|
|
|
+ parameterGetByCode({
|
|
|
+ code: 'eom_purchase_invoice_approval_price'
|
|
|
+ }).then((res) => {
|
|
|
+ this.isHidePrice = res.value;
|
|
|
+ });
|
|
|
},
|
|
|
methods: {}
|
|
|
};
|