|
|
@@ -101,7 +101,14 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<template v-slot:taxRate="{ row, $index }">
|
|
|
- <el-form-item v-if="status !== 'Detail'">
|
|
|
+ <el-form-item
|
|
|
+ v-if="status !== 'Detail'"
|
|
|
+ :rules="{
|
|
|
+ required: isTaxRate==1 ? true : '',
|
|
|
+ message: '请输入税率',
|
|
|
+ trigger: 'change'
|
|
|
+ }"
|
|
|
+ >
|
|
|
<el-input
|
|
|
v-model="row.taxRate"
|
|
|
style="width: 100%"
|
|
|
@@ -163,10 +170,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:supplierProductCode="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.supplierProductCode"
|
|
|
:disabled="status == 'Detail'"
|
|
|
@@ -174,18 +178,12 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:deliveryDays="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input v-model="scope.row.deliveryDays"></el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:guaranteePeriod="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.guaranteePeriod"
|
|
|
:disabled="status == 'Detail'"
|
|
|
@@ -193,10 +191,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:guaranteePeriodUnitCode="scope">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<DictSelection
|
|
|
dictName="质保期单位"
|
|
|
clearable
|
|
|
@@ -229,10 +224,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:notaxSinglePrice="scope">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.notaxSinglePrice"
|
|
|
placeholder="请输入"
|
|
|
@@ -268,7 +260,7 @@
|
|
|
}}</span>
|
|
|
</template>
|
|
|
<template v-slot:provenance="scope">
|
|
|
- <el-form-item >
|
|
|
+ <el-form-item>
|
|
|
<DictSelection
|
|
|
dictName="产地"
|
|
|
clearable
|
|
|
@@ -280,10 +272,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
<template v-slot:modelType="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.modelType"
|
|
|
:disabled="status == 'Detail'"
|
|
|
@@ -292,10 +281,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:specification="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.specification"
|
|
|
:disabled="status == 'Detail'"
|
|
|
@@ -304,10 +290,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:remark="scope" v-if="status !== 'Detail'">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item style="margin-bottom: 20px">
|
|
|
<el-input
|
|
|
v-model="scope.row.remark"
|
|
|
type="textarea"
|
|
|
@@ -333,305 +316,8 @@
|
|
|
import { getInventoryTotalAPI } from '@/api/wms';
|
|
|
import { listByContactId } from '@/api/saleManage/contact';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
- const defaultColumns = [
|
|
|
- {
|
|
|
- width: 50,
|
|
|
- label: '序号',
|
|
|
- type: 'index',
|
|
|
- columnKey: 'index',
|
|
|
- align: 'center',
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'supplierName',
|
|
|
- label: '供应商',
|
|
|
- slot: 'supplierName',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- isMerge: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'supplierTotalPrice',
|
|
|
- label: '总价',
|
|
|
- slot: 'supplierTotalPrice',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- isMerge: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'preferentialPrice',
|
|
|
- label: '优惠后总价',
|
|
|
- slot: 'preferentialPrice',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- isMerge: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'settlementMode',
|
|
|
- label: '结算方式',
|
|
|
- slot: 'settlementMode',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- isMerge: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 160,
|
|
|
- prop: 'deliveryDate',
|
|
|
- label: '交货日期',
|
|
|
- slot: 'deliveryDate',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- isMerge: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 100,
|
|
|
- prop: 'productCode',
|
|
|
- label: '编码',
|
|
|
- slot: 'productCode',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 100,
|
|
|
- prop: 'productName',
|
|
|
- label: '产品名称',
|
|
|
- slot: 'productName',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 100,
|
|
|
- prop: 'isWinner',
|
|
|
- label: '是否中标',
|
|
|
- slot: 'isWinner',
|
|
|
- align: 'center',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 140,
|
|
|
- prop: 'supplierProductCode',
|
|
|
- label: '供应商产品编码',
|
|
|
- slot: 'supplierProductCode',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 160,
|
|
|
- prop: 'supplierProductName',
|
|
|
- label: '供应商产品名称',
|
|
|
- slot: 'supplierProductName',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 130,
|
|
|
- prop: 'reqTotalCount',
|
|
|
- label: '需求数量',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 130,
|
|
|
- prop: 'totalCount',
|
|
|
- label: '购买数量',
|
|
|
- slot: 'totalCount',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'availableCountBase',
|
|
|
- label: '库存数量',
|
|
|
- slot: 'availableCountBase',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'measuringUnit',
|
|
|
- label: '单位',
|
|
|
- slot: 'measuringUnit',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'modelType',
|
|
|
- label: '型号',
|
|
|
- slot: 'modelType',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'specification',
|
|
|
- label: '规格',
|
|
|
- slot: 'specification',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'minimumOrderQuantity',
|
|
|
- label: '最低订购量',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'doneTotalCount',
|
|
|
- label: '已采数量',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'waitTotalCount',
|
|
|
- label: '待采数量',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- minWidth: 140,
|
|
|
- prop: 'singlePrice',
|
|
|
- label: '采购单价',
|
|
|
- slot: 'singlePrice',
|
|
|
- headerSlot: 'isRequired',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 180,
|
|
|
- prop: 'notaxSinglePrice',
|
|
|
- label: '不含税单价',
|
|
|
- slot: 'notaxSinglePrice',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'totalPrice',
|
|
|
- label: '采购金额',
|
|
|
- slot: 'totalPrice',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 150,
|
|
|
- prop: 'taskName',
|
|
|
- label: '工序',
|
|
|
- slot: 'taskName',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- width: 110,
|
|
|
- prop: 'batchNo',
|
|
|
- label: '批次号',
|
|
|
- slot: 'batchNo',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'provenance',
|
|
|
- label: '产地',
|
|
|
- slot: 'provenance',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 200
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- // {
|
|
|
- // width: 130,
|
|
|
- // prop: 'brand',
|
|
|
- // label: '品牌',
|
|
|
- // slot: 'brand'
|
|
|
- // },
|
|
|
- {
|
|
|
- minWidth: 80,
|
|
|
- prop: 'deliveryDays',
|
|
|
- label: '交期(天)',
|
|
|
- slot: 'deliveryDays',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 100,
|
|
|
- prop: 'guaranteePeriod',
|
|
|
- label: '质保期',
|
|
|
- slot: 'guaranteePeriod',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'guaranteePeriodUnitCode',
|
|
|
- label: '质保期单位',
|
|
|
- slot: 'guaranteePeriodUnitCode',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- // {
|
|
|
- // width: 120,
|
|
|
- // prop: 'produceType',
|
|
|
- // align: 'center',
|
|
|
- // label: '属性类型',
|
|
|
- // showOverflowTooltip: true,
|
|
|
- // formatter: (row, column) => {
|
|
|
- // return row.produceType && row.produceType.length
|
|
|
- // ? row.produceType
|
|
|
- // .map((item) => this.getDictValue('生产类型', item + ''))
|
|
|
- // .join(',')
|
|
|
- // : '';
|
|
|
- // }
|
|
|
- // },
|
|
|
- {
|
|
|
- minWidth: 120,
|
|
|
- prop: 'packingSpecification',
|
|
|
- align: 'center',
|
|
|
- label: '包装规格',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 220,
|
|
|
- prop: 'remark',
|
|
|
- label: '备注',
|
|
|
- slot: 'remark',
|
|
|
- showOverflowTooltip: true,
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 90,
|
|
|
- prop: 'taxRate',
|
|
|
- label: '税率',
|
|
|
- slot: 'taxRate',
|
|
|
- align: 'center',
|
|
|
- // isMerge: true,
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- minWidth: 220,
|
|
|
- prop: 'files',
|
|
|
- label: '附件',
|
|
|
- slot: 'files',
|
|
|
- align: 'center',
|
|
|
- isMerge: true,
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
- ];
|
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
|
components: {
|
|
|
@@ -641,8 +327,8 @@
|
|
|
},
|
|
|
props: {
|
|
|
obj: {
|
|
|
- default: ()=>{
|
|
|
- return {}
|
|
|
+ default: () => {
|
|
|
+ return {};
|
|
|
}
|
|
|
},
|
|
|
status: {
|
|
|
@@ -694,10 +380,311 @@
|
|
|
dataList: [],
|
|
|
spanArr: [],
|
|
|
|
|
|
- columns: [...defaultColumns]
|
|
|
+ isTaxRate: 0
|
|
|
};
|
|
|
},
|
|
|
- computed: {},
|
|
|
+ computed: {
|
|
|
+ columns() {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ width: 50,
|
|
|
+ label: '序号',
|
|
|
+ type: 'index',
|
|
|
+ columnKey: 'index',
|
|
|
+ align: 'center',
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'supplierName',
|
|
|
+ label: '供应商',
|
|
|
+ slot: 'supplierName',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ isMerge: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'supplierTotalPrice',
|
|
|
+ label: '总价',
|
|
|
+ slot: 'supplierTotalPrice',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ isMerge: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'preferentialPrice',
|
|
|
+ label: '优惠后总价',
|
|
|
+ slot: 'preferentialPrice',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ isMerge: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'settlementMode',
|
|
|
+ label: '结算方式',
|
|
|
+ slot: 'settlementMode',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ isMerge: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 160,
|
|
|
+ prop: 'deliveryDate',
|
|
|
+ label: '交货日期',
|
|
|
+ slot: 'deliveryDate',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ isMerge: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 100,
|
|
|
+ prop: 'productCode',
|
|
|
+ label: '编码',
|
|
|
+ slot: 'productCode',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 100,
|
|
|
+ prop: 'productName',
|
|
|
+ label: '产品名称',
|
|
|
+ slot: 'productName',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 100,
|
|
|
+ prop: 'isWinner',
|
|
|
+ label: '是否中标',
|
|
|
+ slot: 'isWinner',
|
|
|
+ align: 'center',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 140,
|
|
|
+ prop: 'supplierProductCode',
|
|
|
+ label: '供应商产品编码',
|
|
|
+ slot: 'supplierProductCode',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 160,
|
|
|
+ prop: 'supplierProductName',
|
|
|
+ label: '供应商产品名称',
|
|
|
+ slot: 'supplierProductName',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 130,
|
|
|
+ prop: 'reqTotalCount',
|
|
|
+ label: '需求数量',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 130,
|
|
|
+ prop: 'totalCount',
|
|
|
+ label: '购买数量',
|
|
|
+ slot: 'totalCount',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'availableCountBase',
|
|
|
+ label: '库存数量',
|
|
|
+ slot: 'availableCountBase',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'measuringUnit',
|
|
|
+ label: '单位',
|
|
|
+ slot: 'measuringUnit',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'modelType',
|
|
|
+ label: '型号',
|
|
|
+ slot: 'modelType',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'specification',
|
|
|
+ label: '规格',
|
|
|
+ slot: 'specification',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'minimumOrderQuantity',
|
|
|
+ label: '最低订购量',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'doneTotalCount',
|
|
|
+ label: '已采数量',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'waitTotalCount',
|
|
|
+ label: '待采数量',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ minWidth: 140,
|
|
|
+ prop: 'singlePrice',
|
|
|
+ label: '采购单价',
|
|
|
+ slot: 'singlePrice',
|
|
|
+ headerSlot: 'isRequired',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 180,
|
|
|
+ prop: 'notaxSinglePrice',
|
|
|
+ label: '不含税单价',
|
|
|
+ slot: 'notaxSinglePrice',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'totalPrice',
|
|
|
+ label: '采购金额',
|
|
|
+ slot: 'totalPrice',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 150,
|
|
|
+ prop: 'taskName',
|
|
|
+ label: '工序',
|
|
|
+ slot: 'taskName',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 110,
|
|
|
+ prop: 'batchNo',
|
|
|
+ label: '批次号',
|
|
|
+ slot: 'batchNo',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'provenance',
|
|
|
+ label: '产地',
|
|
|
+ slot: 'provenance',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 200
|
|
|
+ },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // width: 130,
|
|
|
+ // prop: 'brand',
|
|
|
+ // label: '品牌',
|
|
|
+ // slot: 'brand'
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ minWidth: 80,
|
|
|
+ prop: 'deliveryDays',
|
|
|
+ label: '交期(天)',
|
|
|
+ slot: 'deliveryDays',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 100,
|
|
|
+ prop: 'guaranteePeriod',
|
|
|
+ label: '质保期',
|
|
|
+ slot: 'guaranteePeriod',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'guaranteePeriodUnitCode',
|
|
|
+ label: '质保期单位',
|
|
|
+ slot: 'guaranteePeriodUnitCode',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // width: 120,
|
|
|
+ // prop: 'produceType',
|
|
|
+ // align: 'center',
|
|
|
+ // label: '属性类型',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // formatter: (row, column) => {
|
|
|
+ // return row.produceType && row.produceType.length
|
|
|
+ // ? row.produceType
|
|
|
+ // .map((item) => this.getDictValue('生产类型', item + ''))
|
|
|
+ // .join(',')
|
|
|
+ // : '';
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ minWidth: 120,
|
|
|
+ prop: 'packingSpecification',
|
|
|
+ align: 'center',
|
|
|
+ label: '包装规格',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 220,
|
|
|
+ prop: 'remark',
|
|
|
+ label: '备注',
|
|
|
+ slot: 'remark',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 90,
|
|
|
+ prop: 'taxRate',
|
|
|
+ label: '税率',
|
|
|
+ slot: 'taxRate',
|
|
|
+ align: 'center',
|
|
|
+ headerSlot: this.isTaxRate==1 ? 'isRequired' : '',
|
|
|
+ // isMerge: true,
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 220,
|
|
|
+ prop: 'files',
|
|
|
+ label: '附件',
|
|
|
+ slot: 'files',
|
|
|
+ align: 'center',
|
|
|
+ isMerge: true,
|
|
|
+ showOverflowTooltip: true
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
radio(n, v) {
|
|
|
this.radio1 = n;
|
|
|
@@ -705,13 +692,19 @@
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
+ parameterGetByCode({
|
|
|
+ code: 'eom_purchasingManage_inquiryManage_taxRate'
|
|
|
+ }).then((res) => {
|
|
|
+ this.isTaxRate = res.value;
|
|
|
+ console.log(this.isTaxRate,'this.isTaxRate')
|
|
|
+ });
|
|
|
this.obj.resultList.forEach((item) => {
|
|
|
this.obj['deliveryDate'] =
|
|
|
this.obj.deliveryDate || item.expectReceiveDate;
|
|
|
});
|
|
|
this.form = copyObj(this.obj);
|
|
|
console.log(this.form, '');
|
|
|
-
|
|
|
+
|
|
|
this.radio1 = this.radio;
|
|
|
this.getSpanArr();
|
|
|
this.setDeliveryDays();
|
|
|
@@ -807,7 +800,8 @@
|
|
|
},
|
|
|
deliveryDateChange(row) {
|
|
|
this.$emit('deliveryDateChange', (data) => {
|
|
|
- let is = false;
|
|
|
+ let is = false,
|
|
|
+ iSexpectReceiveDate = false;
|
|
|
|
|
|
if (data.length > 0) {
|
|
|
data.forEach((item) => {
|
|
|
@@ -817,10 +811,13 @@
|
|
|
) {
|
|
|
is = true;
|
|
|
}
|
|
|
+ if (item.expectReceiveDate) {
|
|
|
+ iSexpectReceiveDate = true;
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
- if (is) {
|
|
|
- this.$message.error('交货日期大于到货日期');
|
|
|
+ if (is && iSexpectReceiveDate) {
|
|
|
+ this.$message.warning('交货日期大于到货日期');
|
|
|
}
|
|
|
});
|
|
|
this.setDeliveryDays();
|