|
@@ -193,7 +193,7 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column field="usageSituation" title="使用情况" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="usageSituation" title="使用情况" width="160" :edit-render="{autoFocus: true}">
|
|
<template #header>
|
|
<template #header>
|
|
<span>使用情况</span>
|
|
<span>使用情况</span>
|
|
<span @click="getEqptTableFilter(eqptPageData, 'usageSituation'), autoSaveBatch()">
|
|
<span @click="getEqptTableFilter(eqptPageData, 'usageSituation'), autoSaveBatch()">
|
|
@@ -206,13 +206,13 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
<template #edit="{ row }">
|
|
<template #edit="{ row }">
|
|
- <el-select v-model="row.usageSituation" placeholder="使用情况" filterable allow-create size="small">
|
|
|
|
- <el-option label="在用" value="在用"></el-option>
|
|
|
|
- <el-option label="闲置" value="闲置"></el-option>
|
|
|
|
- <el-option label="无实物" value="无实物"></el-option>
|
|
|
|
- <el-option label="已损坏" value="已损坏"></el-option>
|
|
|
|
- <el-option label="已报废" value="已报废"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <vxe-select v-model="row.usageSituation" placeholder="使用情况" clearable filterable allow-create>
|
|
|
|
+ <vxe-option label="在用" value="在用"></vxe-option>
|
|
|
|
+ <vxe-option label="闲置" value="闲置"></vxe-option>
|
|
|
|
+ <vxe-option label="无实物" value="无实物"></vxe-option>
|
|
|
|
+ <vxe-option label="已损坏" value="已损坏"></vxe-option>
|
|
|
|
+ <vxe-option label="已报废" value="已报废"></vxe-option>
|
|
|
|
+ </vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column field="quantity" title="数量" width="160" :edit-render="{ name: 'VxeNumberInput', props: { controls: false } }">
|
|
<vxe-column field="quantity" title="数量" width="160" :edit-render="{ name: 'VxeNumberInput', props: { controls: false } }">
|
|
@@ -343,7 +343,7 @@
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-colgroup>
|
|
</vxe-colgroup>
|
|
- <vxe-column field="economicServiceLife" title="经济使用年数" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="economicServiceLife" title="经济使用年数" width="160" :edit-render="{autoFocus: true}">
|
|
<template #header>
|
|
<template #header>
|
|
<span>经济使用年数</span>
|
|
<span>经济使用年数</span>
|
|
<span @click="getEqptTableFilter(eqptPageData, 'economicServiceLife'), autoSaveBatch()">
|
|
<span @click="getEqptTableFilter(eqptPageData, 'economicServiceLife'), autoSaveBatch()">
|
|
@@ -369,7 +369,7 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column field="remainingUsefulLife" title="尚可使用年限" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="remainingUsefulLife" title="尚可使用年限" width="160" :edit-render="{autoFocus: true}">
|
|
<template #edit="{ $rowIndex, row }">
|
|
<template #edit="{ $rowIndex, row }">
|
|
<vxe-number-input v-model="row.remainingUsefulLife" @change="countDepreciationRate(row)" placeholder="整数类型" type="integer" :controls="false"></vxe-number-input>
|
|
<vxe-number-input v-model="row.remainingUsefulLife" @change="countDepreciationRate(row)" placeholder="整数类型" type="integer" :controls="false"></vxe-number-input>
|
|
</template>
|
|
</template>
|
|
@@ -414,7 +414,7 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column field="equipmentType" title="设备类型" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="equipmentType" title="设备类型" width="160" :edit-render="{autoFocus: true}">
|
|
<template #header>
|
|
<template #header>
|
|
<span>设备类型</span>
|
|
<span>设备类型</span>
|
|
<span @click="getEqptTableFilter(eqptPageData, 'equipmentType'), autoSaveBatch()">
|
|
<span @click="getEqptTableFilter(eqptPageData, 'equipmentType'), autoSaveBatch()">
|
|
@@ -434,7 +434,7 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column field="valuationMethod" title="作价方法" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="valuationMethod" title="作价方法" width="160" :edit-render="{autoFocus: true}">
|
|
<template #header>
|
|
<template #header>
|
|
<span>作价方法</span>
|
|
<span>作价方法</span>
|
|
<span @click="getEqptTableFilter(eqptPageData, 'valuationMethod'), autoSaveBatch()">
|
|
<span @click="getEqptTableFilter(eqptPageData, 'valuationMethod'), autoSaveBatch()">
|
|
@@ -454,7 +454,7 @@
|
|
</vxe-select>
|
|
</vxe-select>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
- <vxe-column field="inquiryBasis" title="询价依据" width="300" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="inquiryBasis" title="询价依据" width="300" :edit-render="{autoFocus: true}">
|
|
<template #edit="{ row }">
|
|
<template #edit="{ row }">
|
|
<el-select v-if="row.valuationMethod === '物价指数调整法'" v-model="row.inquiryBasis" placeholder="Select" filterable allow-create @change="countPrice(row)" size="small">
|
|
<el-select v-if="row.valuationMethod === '物价指数调整法'" v-model="row.inquiryBasis" placeholder="Select" filterable allow-create @change="countPrice(row)" size="small">
|
|
<el-option-group v-for="group in ppiOptions" :label="group.ppiType">
|
|
<el-option-group v-for="group in ppiOptions" :label="group.ppiType">
|
|
@@ -675,7 +675,7 @@
|
|
<vxe-column field="productCode" title="商品编号" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
<vxe-column field="productCode" title="商品编号" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
<vxe-column field="currency" title="合同结算币种" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
<vxe-column field="currency" title="合同结算币种" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
<vxe-column field="address" title="生产国/进口国" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
<vxe-column field="address" title="生产国/进口国" width="160" :edit-render="{ name: 'VxeInput' }"></vxe-column>
|
|
- <vxe-column field="transactionMethod" title="成交方式" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="transactionMethod" title="成交方式" width="160" :edit-render="{autoFocus: true}">
|
|
<template #edit="{ row }">
|
|
<template #edit="{ row }">
|
|
<el-select v-model="row.transactionMethod" placeholder="成交方式" clearable style="width: 130px;">
|
|
<el-select v-model="row.transactionMethod" placeholder="成交方式" clearable style="width: 130px;">
|
|
<el-option label="CIF" value="CIF"></el-option>
|
|
<el-option label="CIF" value="CIF"></el-option>
|
|
@@ -705,7 +705,7 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-colgroup>
|
|
</vxe-colgroup>
|
|
<vxe-column field="tariffRate" title="关税税率%" width="160" :edit-render="{ name: 'VxeNumberInput', props: { controls: false } }"></vxe-column>
|
|
<vxe-column field="tariffRate" title="关税税率%" width="160" :edit-render="{ name: 'VxeNumberInput', props: { controls: false } }"></vxe-column>
|
|
- <vxe-column field="tariffRatePicture" title="关税税率截图" width="160" :edit-render="{}">
|
|
|
|
|
|
+ <vxe-column field="tariffRatePicture" title="关税税率截图" width="160" :edit-render="{autoFocus: true}">
|
|
<template #edit="{ row, $rowIndex }">
|
|
<template #edit="{ row, $rowIndex }">
|
|
<el-input v-model="row.tariffRatePicture" placeholder="粘贴关税税率截图" @paste.native="(e) => { return imagePaste(e, row, 'tariffRatePicture'); }" />
|
|
<el-input v-model="row.tariffRatePicture" placeholder="粘贴关税税率截图" @paste.native="(e) => { return imagePaste(e, row, 'tariffRatePicture'); }" />
|
|
</template>
|
|
</template>
|
|
@@ -1760,8 +1760,7 @@ export default {
|
|
verify = false
|
|
verify = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (verify) {
|
|
|
|
- updateBatch(this.eqptPageData).then((res) => {
|
|
|
|
|
|
+ updateBatch(this.eqptPageData).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
ElMessage({
|
|
ElMessage({
|
|
showClose: true,
|
|
showClose: true,
|
|
@@ -1769,9 +1768,9 @@ export default {
|
|
type: 'success',
|
|
type: 'success',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- let message = '经济年限成新率结果<15%时,尚可使用年限必填,设备序号:'
|
|
|
|
|
|
+ })
|
|
|
|
+ if (verify) {
|
|
|
|
+ let message = '设备序号:的经济年限成新率<15%,请及时补充尚可使用年限'
|
|
for (let index = 0; index < sort.length; index++) {
|
|
for (let index = 0; index < sort.length; index++) {
|
|
message += sort[index]
|
|
message += sort[index]
|
|
if (index !== sort.length - 1) {
|
|
if (index !== sort.length - 1) {
|