|
@@ -737,6 +737,22 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ //当前时间
|
|
|
+ getNowFormatDate() {
|
|
|
+ var date = new Date();
|
|
|
+ var seperator1 = "-";
|
|
|
+ var year = date.getFullYear();
|
|
|
+ var month = date.getMonth() + 1;
|
|
|
+ var strDate = date.getDate();
|
|
|
+ if (month >= 1 && month <= 9) {
|
|
|
+ month = "0" + month;
|
|
|
+ }
|
|
|
+ if (strDate >= 0 && strDate <= 9) {
|
|
|
+ strDate = "0" + strDate;
|
|
|
+ }
|
|
|
+ var currentdate = year + seperator1 + month + seperator1 + strDate;
|
|
|
+ return currentdate;
|
|
|
+ },
|
|
|
//根据用户单位 查询对应选择的用户主管 根据用户单位 字段 查找对应的多个主管 返回 Sysuser的集合(id,name)
|
|
|
checkCategoryPromotion(oneId) {
|
|
|
|
|
@@ -1039,6 +1055,9 @@ export default {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = this.$t('新增') + " " + this.$t('工作票');
|
|
|
+ this.form.kprq = this.getNowFormatDate()
|
|
|
+ this.form.qfsj = '8:30'
|
|
|
+ this.form.zypzt = "10"
|
|
|
this.form.xpxp = "10"
|
|
|
this.isxp = false
|
|
|
},
|