|
@@ -115,7 +115,7 @@
|
|
|
<el-option v-for="item in invoice_type" :key="item.value" :label="item.label"
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
- <span v-else>{{ form.invoiceContent }}</span>
|
|
|
+ <span v-else>{{ invoiceContent(form.invoiceContent) }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
@@ -683,6 +683,15 @@
|
|
|
form.value = response.data
|
|
|
})
|
|
|
}
|
|
|
+const invoiceContent = (invoiceContent) =>{
|
|
|
+ if(invoiceContent !== null){
|
|
|
+ const map = invoice_type.value.reduce((pre, cur) => {
|
|
|
+ pre[cur.id] = cur.label;
|
|
|
+ return pre
|
|
|
+ }, {})
|
|
|
+ return map[invoiceContent];
|
|
|
+ }
|
|
|
+}
|
|
|
const statusFormat = (invoiceStatus)=>{
|
|
|
switch (invoiceStatus){
|
|
|
case 0:
|