|
@@ -577,6 +577,7 @@ export default {
|
|
|
queryItemType(){
|
|
|
this.$store.dispatch('optiontypeselect','itemtype').then(res => {
|
|
|
this.itemtype = res.data
|
|
|
+ this.form.itemtype[0] = res.data[0].value
|
|
|
})
|
|
|
},
|
|
|
/*修改折扣数据*/
|
|
@@ -635,6 +636,9 @@ export default {
|
|
|
mounted() {
|
|
|
const date = new Date()
|
|
|
this.form.billdate = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()
|
|
|
+ let endDate = new Date(date.setDate(date.getDate() + 30)).toLocaleDateString()
|
|
|
+ endDate = endDate.replace(/\//g,'-')
|
|
|
+ this.form.date = [this.form.billdate,endDate]
|
|
|
this.form.sa_projectid = this.data.sa_projectid
|
|
|
this.form.projectname = this.data.projectname
|
|
|
this.form.projectnum = this.data.projectnum
|