|
|
@@ -76,8 +76,7 @@
|
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
|
- <el-button type="success" size="small" @click="allClick('导入')"
|
|
|
- :disabled="!form.id">导入</el-button>
|
|
|
+ <el-button type="success" size="small" @click="allClick('导入')" :disabled="!form.id">导入</el-button>
|
|
|
<el-button type="info" size="small" @click="allClick('启用')"
|
|
|
:disabled="selectionList.length == 0">启用</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
|
@@ -170,13 +169,11 @@
|
|
|
<i class="el-icon-coin"></i>
|
|
|
<span>应付费用</span>
|
|
|
</div>
|
|
|
- <el-button type="info" plain size="small" :disabled="false"
|
|
|
- @click="allClick('费用一键保存')">一键保存</el-button>
|
|
|
- <el-button type="info" plain size="small" :disabled="false"
|
|
|
- @click="allClick('费用一键编辑')">一键编辑</el-button>
|
|
|
- <el-button type="danger" plain size="small" :disabled=" selectionfeecList.length == 0"
|
|
|
+ <el-button type="info" plain size="small" :disabled="false" @click="allClick('费用一键保存')">一键保存</el-button>
|
|
|
+ <el-button type="info" plain size="small" :disabled="false" @click="allClick('费用一键编辑')">一键编辑</el-button>
|
|
|
+ <el-button type="danger" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
@click="allClick('费用批量删除')">批量删除</el-button>
|
|
|
- <el-button type="primary" plain size="small" :disabled=" selectionfeecList.length == 0"
|
|
|
+ <el-button type="primary" plain size="small" :disabled="selectionfeecList.length == 0"
|
|
|
@click="allClick('费用申请')">请核费用</el-button>
|
|
|
<!-- <el-button type="primary" plain size="small" @click="$refs.printC.openDialog()">打印账单</el-button> -->
|
|
|
</template>
|
|
|
@@ -255,8 +252,7 @@
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
- <el-button size="small" icon="el-icon-delete" type="text"
|
|
|
- @click="polRowDel(row, index)">删 除</el-button>
|
|
|
+ <el-button size="small" icon="el-icon-delete" type="text" @click="polRowDel(row, index)">删 除</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
</el-card>
|
|
|
@@ -336,7 +332,8 @@ import {
|
|
|
submitFeeList,
|
|
|
enable,
|
|
|
copyAgent,
|
|
|
- pleaseVerifyCost
|
|
|
+ pleaseVerifyCost,
|
|
|
+ getAccurate
|
|
|
} from "@/api/boxManagement/buyContainer/index.js";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
@@ -1184,50 +1181,57 @@ export default {
|
|
|
this.roleName = localStorage.getItem('roleName').split(',')
|
|
|
this.option = await this.getColumnData(this.getColumnName(235.1), this.optionBack);
|
|
|
this.feecOption = await this.getColumnData(this.getColumnName(235.2), this.feecOptionBack);
|
|
|
- if (this.detailData&&this.detailData.id) {
|
|
|
+ if (this.detailData && this.detailData.id) {
|
|
|
// this.editButton = true
|
|
|
// this.editDisabled = true
|
|
|
// this.optionForm.disabled = true
|
|
|
this.getDetail(this.detailData.id)
|
|
|
}
|
|
|
- if (this.detailData&&this.detailData.copyId) {
|
|
|
+ if (this.detailData && this.detailData.copyId) {
|
|
|
this.getCopydate(this.detailData.copyId)
|
|
|
}
|
|
|
this.saveLocalCurrency(this.deptId)
|
|
|
},
|
|
|
methods: {
|
|
|
- verifyChange(name, row) {
|
|
|
- const regex = /^([a-zA-Z]{4})([0-9]{7})$/;
|
|
|
- if (regex.test(row[name])) {
|
|
|
- if (this.calculateCheckDigit(row[name]) == row[name][10]) {
|
|
|
- // this.$message.success('集装箱校验正确!')
|
|
|
- } else {
|
|
|
- this.$confirm(`箱号:${row[name]}是否强制加入系统?`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- // this.$message({
|
|
|
- // type: 'success',
|
|
|
- // message: '删除成功!'
|
|
|
- // });
|
|
|
- }).catch(() => {
|
|
|
- this.$set(row, [name], null)
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$confirm(`箱号:${row[name]}是否强制加入系统?`, '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- // this.$message({
|
|
|
- // type: 'success',
|
|
|
- // message: '删除成功!'
|
|
|
- // });
|
|
|
- }).catch(() => {
|
|
|
- this.$set(row, [name], null)
|
|
|
- });
|
|
|
+ verifyChange(name, row) {
|
|
|
+ if (row[name]) {
|
|
|
+ getAccurate({ accurate: row[name] }).then(res => {
|
|
|
+ if (res.data.data.records.length == 0) {
|
|
|
+ const regex = /^([a-zA-Z]{4})([0-9]{7})$/;
|
|
|
+ if (regex.test(row[name])) {
|
|
|
+ if (this.calculateCheckDigit(row[name]) == row[name][10]) {
|
|
|
+ // this.$message.success('集装箱校验正确!')
|
|
|
+ } else {
|
|
|
+ this.$confirm(`箱号:${row[name]}是否强制加入系统?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'success',
|
|
|
+ // message: '删除成功!'
|
|
|
+ // });
|
|
|
+ }).catch(() => {
|
|
|
+ this.$set(row, [name], null)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$confirm(`箱号:${row[name]}是否强制加入系统?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'success',
|
|
|
+ // message: '删除成功!'
|
|
|
+ // });
|
|
|
+ }).catch(() => {
|
|
|
+ this.$set(row, [name], null)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
calculateCheckDigit(containerNo) {
|
|
|
@@ -1588,8 +1592,8 @@ export default {
|
|
|
row.amountUSD = row.amount
|
|
|
row.amountCNY = 0
|
|
|
}
|
|
|
- if(row.auditStatus>0){
|
|
|
- this.editDisabled=true
|
|
|
+ if (row.auditStatus > 0) {
|
|
|
+ this.editDisabled = true
|
|
|
this.optionForm.disabled = true
|
|
|
}
|
|
|
})
|