Commit ad8138da authored by lanbaoming's avatar lanbaoming

2024-05-13二批问题处理和BUG修复

parent a663b9f5
......@@ -25,9 +25,10 @@ export default {
companyType: String,
value: Number,
allSupplier: Array,
//0-國内供應商,1-國外供應商 lanbm 2024-05-11 添加注释
areaType: {
type: Number,
default: 0
default: 0,
},
},
model: {
......@@ -39,13 +40,27 @@ export default {
},
computed: {
getSuppliers() {
//alert(this.areaType);
//alert(this.companyType);
let allSupplier = this.allSupplier.filter(
(item) => item.areaType == this.areaType
);
if(this.areaType == 1 || !this.companyType) return allSupplier;
//0-國内供應商,1-國外供應商 lanbm 2024-05-11 添加注释
//if(this.areaType == 1 || !this.companyType) return allSupplier;
//lanbm 2024-05-11 把或改且,解决空运供应商获取是海运供应商问题
//
if (this.areaType == 1) return allSupplier;
if (
this.companyType == null ||
this.companyType == "" ||
this.companyType == undefined
) {
return allSupplier;
} else {
return allSupplier.filter((item) =>
item.companyTypes.includes(this.companyType)
);
}
},
},
methods: {
......
......@@ -12,7 +12,7 @@
</div>
</el-form-item>
<el-form-item :label="$t('报关公司名称')">
<supplierSelect v-model="cusDeclarationObj.dcCompanyId" :companyType="'2'" :placeholder="$t('请选择报关公司名称')" :allSupplier="this.$attrs.allSupplier" />
<supplierSelect v-model="cusDeclarationObj.dcCompanyId" :companyType="'7'" :placeholder="$t('请选择报关公司名称')" :allSupplier="this.$attrs.allSupplier" />
</el-form-item>
<el-form-item :label="$t('截关时间')">
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="cusDeclarationObj.dcCutOffTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
......@@ -26,7 +26,7 @@
</el-radio-group>
</el-form-item>
<!-- 查验 -->
<div v-show="cusDeclarationObj.dcCustomsStatus === '3'">
<el-form-item :label="$t('查验')">
<el-radio-group v-model="cusDeclarationObj.dcCheckStatus" :disabled="inReview || inOverReview || isCheckDeal('check')">
......@@ -213,6 +213,8 @@ import dayjs from 'dayjs'
/**
* 报关
* lanbm 2024-05-11 把 报关公司名称 下拉列表中的
* company_type 有2 改为7 解决下来框中的公司是海运公司类型的BUG
*/
export default {
name: 'cusDeclaration',
......
......@@ -64,7 +64,7 @@
type="primary"
plain
icon="el-icon-plus"
v-show="false"
v-show="true"
size="mini"
@click="TestFun"
>
......@@ -165,7 +165,10 @@ import {
} from "@/api/report/vz";
import Treeselect from "@riophae/vue-treeselect";
import "@/assets/styles/vue-treeselect.css";
//弹出消息框
import { MessageBox } from "element-ui";
//日期库函数
import dayjs from "dayjs";
//2024-05-01合并
export default {
......@@ -351,9 +354,32 @@ export default {
.catch(() => {});
},
TestFun() {
var bR= dayjs('2024-05-11').isBefore(dayjs('2024-05-12'));
alert(bR);
//获取当前日期
var now = dayjs().format('YYYY-MM-DD dddd HH:mm:ss.SSS A');
MessageBox(now);
//dayjs("2019-01-25").toArray(); // [ 2019, 0, 25, 0, 0, 0, 0 ]
var dJs = dayjs("2019-01-25").toJSON(); //'2019-01-25T02:00:00.000Z'
//MessageBox(dJs);
//dayjs 使用的相关参考
//https://segmentfault.com/a/1190000040835957?sort=newest
//https://dayjs.fenxianglu.cn/category/plugin.html#advancedformat
//年 : dayjs().year()
//月 : dayjs().month()
//日 : dayjs().date()
//星期 : dayjs().day()
//时 : dayjs().hour()
//分 : dayjs().minute()
//秒 : dayjs().second()
//毫秒 : dayjs().millisecond()
//调用后台函数
/*
test().then((response) => {
this.$modal.msgSuccess("测试发送");
});
});*/
},
/** 导出按钮操作 */
handleExport() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment