Browse Source

失效日期自动选择

master
Enzo 5 years ago
parent
commit
47f47eab6e
  1. 24
      supplier/pages/offer/index.vue

24
supplier/pages/offer/index.vue

@ -70,10 +70,6 @@
wybTable wybTable
}, },
data(){ data(){
// PS 30
var date1 = new Date();
var date2 = new Date(date1);
date2.setDate(date1.getDate() + 30);
return { return {
headers: [{ headers: [{
label: '物资名称', label: '物资名称',
@ -167,6 +163,22 @@
} }
}, },
methods: { methods: {
//
pickerChange(event, current_name){
console.log(current_name)
if(current_name == 'deadline_start') {
// PS 30
var date1 = new Date(event.detail.value);
var date2 = new Date(date1);
date2.setDate(date1.getDate() + 30);
console.log(this.$shared.recordTime(date2, '-', 'date'))
this[current_name] = event.detail.value;
this.deadline_end = this.$shared.recordTime(date2, '-', 'date')
}else {
this[current_name] = event.detail.value;
}
},
// //
getMaterialList(){ getMaterialList(){
this.$http(this.API.API_SUPPLIER_MATERIALLIST).then(res => { this.$http(this.API.API_SUPPLIER_MATERIALLIST).then(res => {
@ -318,10 +330,6 @@
}) })
} }
}, },
//
pickerChange(event, current_name){
this[current_name] = event.detail.value;
},
// modal // modal
switchRelation(){ switchRelation(){
if(this.type == 1) return this.$msg('编辑不可更换关联食堂哦'); if(this.type == 1) return this.$msg('编辑不可更换关联食堂哦');

Loading…
Cancel
Save