|
@@ -268,7 +268,17 @@
|
|
|
</a-form-model-item>
|
|
|
|
|
|
</a-col>
|
|
|
- <a-col :span="8" >
|
|
|
+ <a-col :span="8">
|
|
|
+ <a-form-model-item label="U8开票日期" prop="orderRemarks">
|
|
|
+ <a-date-picker
|
|
|
+ placeholder="请选择"
|
|
|
+ format="YYYY-MM-DD"
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="formState.invoicingDate"
|
|
|
+ />
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6" >
|
|
|
<a-form-model-item label="部门" prop="department">
|
|
|
<a-input v-model="formState.department" placeholder="请输入" readOnly></a-input>
|
|
|
</a-form-model-item>
|
|
@@ -311,6 +321,7 @@
|
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
|
import JDictSelectTag from "@/components/dict/JDictSelectTag"
|
|
|
import JUpload from '@/components/jeecg/JUpload'
|
|
|
+ import moment from 'moment'
|
|
|
import { putAction,getAction } from '@/api/manage'
|
|
|
import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
|
|
|
export default {
|
|
@@ -319,7 +330,8 @@
|
|
|
components: {
|
|
|
JDictSelectTag,
|
|
|
JUpload,
|
|
|
- JSearchSelectTag
|
|
|
+ JSearchSelectTag,
|
|
|
+ moment
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -433,11 +445,18 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ moment,
|
|
|
getHeaderList(id){
|
|
|
getAction('/oa/incidentTicket/queryById', {id:id}).then((res) => {
|
|
|
if(res.success){
|
|
|
var zhuId = '' //主表id
|
|
|
this.formState=res.result //详情
|
|
|
+ if(this.formState.invoicingDate=='' || !this.formState.invoicingDate){
|
|
|
+ this.formState.invoicingDate = moment(new Date())
|
|
|
+ }else{
|
|
|
+ this.formState.invoicingDate = moment(this.formState.invoicingDate)
|
|
|
+ }
|
|
|
+
|
|
|
this.accessory2 = this.formState.accessory2?JSON.parse(this.formState.accessory2):[]
|
|
|
var accessory2Z =[]
|
|
|
this.accessory2.map(item=>{
|
|
@@ -470,6 +489,7 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getCurrentData(){ return new Date().toLocaleDateString(); },
|
|
|
getTable(id){
|
|
|
getAction('/oa/incidentTicket/queryIncidentTicketChildrenByMainId', {id:id}).then((res) => {
|
|
|
if(res.success){
|