From b136c0a80500d929897a8e24f920efad47e2e307 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 01 十一月 2023 19:03:01 +0800
Subject: [PATCH] 变更公海 的接口传参修改
---
src/views/other/payment/saleInvoice/addSaleInvoice.vue | 93 ++++++++++++++++++++++------------------------
1 files changed, 45 insertions(+), 48 deletions(-)
diff --git a/src/views/other/payment/saleInvoice/addSaleInvoice.vue b/src/views/other/payment/saleInvoice/addSaleInvoice.vue
index 3ad8f2c..44889e2 100644
--- a/src/views/other/payment/saleInvoice/addSaleInvoice.vue
+++ b/src/views/other/payment/saleInvoice/addSaleInvoice.vue
@@ -154,22 +154,25 @@
}
"
value-key="number"
+ :disabled="this.editCommonConfig.infomation.id?true:false"
@select="handleSelectClient('serviceContract', $event)"
style="width: 100%"
></el-autocomplete>
- <div class="common-select-btn" @click="selClientClick('serviceContract')">
- <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
- </div>
- <div
- v-if="
- editConfig.infomation.serviceContract_Number &&
- editConfig.infomation.serviceContract_Number.length > 0
- "
- class="common-select-btn"
- @click="clearupClient('serviceContract')"
- >
- <i class="el-icon-remove-outline" title="娓呴櫎"></i>
- </div>
+ <template v-if='!this.editCommonConfig.infomation.id'>
+ <div class="common-select-btn" @click="selClientClick('serviceContract')">
+ <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
+ </div>
+ <div
+ v-if="
+ editConfig.infomation.serviceContract_Number &&
+ editConfig.infomation.serviceContract_Number.length > 0
+ "
+ class="common-select-btn"
+ @click="clearupClient('serviceContract')"
+ >
+ <i class="el-icon-remove-outline" title="娓呴櫎"></i>
+ </div>
+ </template>
</div>
</el-form-item>
</el-col>
@@ -177,26 +180,29 @@
<el-form-item label="鍚堝悓璁㈠崟">
<div class="custom-name">
<el-autocomplete
- v-model="editConfig.infomation.number"
+ v-model="editConfig.infomation.contract_number"
:fetch-suggestions="
(queryString, callback) => {
querySearchAsync(queryString, callback, 'contract')
}
"
value-key="number"
+ :disabled="this.editCommonConfig.infomation.id?true:false"
@select="handleSelectClient('contract', $event)"
style="width: 100%"
></el-autocomplete>
- <div class="common-select-btn" @click="selClientClick('contract')">
- <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
- </div>
- <div
- v-if="editConfig.infomation.number && editConfig.infomation.number.length > 0"
- class="common-select-btn"
- @click="clearupClient('contract')"
- >
- <i class="el-icon-remove-outline" title="娓呴櫎"></i>
- </div>
+ <template v-if='!this.editCommonConfig.infomation.id'>
+ <div class="common-select-btn" @click="selClientClick('contract')">
+ <i class="el-icon-circle-plus-outline" title="閫夋嫨"></i>
+ </div>
+ <div
+ v-if="editConfig.infomation.contract_number && editConfig.infomation.contract_number.length > 0"
+ class="common-select-btn"
+ @click="clearupClient('contract')"
+ >
+ <i class="el-icon-remove-outline" title="娓呴櫎"></i>
+ </div>
+ </template>
</div>
</el-form-item>
</el-col>
@@ -467,7 +473,7 @@
infomation: {}
},
clientId: this.editCommonConfig.infomation.client_id,
- SalesDetailsId: this.editCommonConfig.infomation.SalesDetailsId,
+ SalesDetailsId: this.editCommonConfig.infomation.id,
serviceContractId: this.editCommonConfig.infomation.id,
tableData: []
}
@@ -486,9 +492,6 @@
this.formInfo()
}
},
- 'editCommonConfig.infomation.codeStandID'(){
- this.formInfo()
- }
},
methods: {
formInfo(){
@@ -508,33 +511,26 @@
this.getInvoiceTypeList()
this.getInvoiceStatusList()
this.getCourierCompanyList()
+ this.$set(this.editConfig.infomation,'serviceContract_Number',this.editCommonConfig.infomation.keyword)
+ this.$set(this.editConfig.infomation,'contract_number',this.editCommonConfig.infomation.keyword)
},
async getInvoiceTypeList() {
- await getInvoiceTypeList().then((res) => {
- console.log("绁ㄦ嵁绫诲瀷")
- console.log(res.data)
- if (res.data.code === 200) {
- this.invoiceTypeOptions = res.data.data.data
+ const res=await getInvoiceTypeList()
+ if (res.code == 200) {
+ this.invoiceTypeOptions = res.data.data
}
- })
},
async getInvoiceStatusList() {
- await getInvoiceStatusList().then((res) => {
- console.log("绁ㄦ嵁鐘舵��")
- console.log(res.data)
- if (res.data.code === 200) {
- this.invoiceStatusOptions = res.data.data.data
+ const res=await getInvoiceStatusList()
+ if (res.code == 200) {
+ this.invoiceStatusOptions = res.data.data
}
- })
},
async getCourierCompanyList() {
- await getCourierCompanyList().then((res) => {
- console.log("鐗╂祦鍏徃")
- console.log(res.data)
- if (res.data.code === 200) {
- this.courierCompanyOptions = res.data.data.data
+ const res=await getCourierCompanyList()
+ if (res.code == 200) {
+ this.courierCompanyOptions = res.data.data
}
- })
},
// 淇濆瓨
saveClick(formName) {
@@ -594,6 +590,7 @@
products: this.tableData,
sourceId: this.editConfig.sourceType === 1 ? this.SalesDetailsId : this.serviceContractId,
sourceType: this.editConfig.sourceType,
+ number:data.number || "",
subject: data.subject || "",
taxpayerIdNumber: data.taxpayerIdNumber || ""
}
@@ -652,7 +649,7 @@
this.editConfig.infomation.serviceContract_Number = row.number
this.serviceContractId = row.id
} else if (value === "contract") {
- this.editConfig.infomation.number = row.number
+ this.editConfig.infomation.contract_number = row.number
this.SalesDetailsId = row.id
}
},
@@ -665,7 +662,7 @@
this.editConfig.infomation.serviceContract_Number = ""
this.serviceContractId = 0
} else if (value === "contract") {
- this.editConfig.infomation.number = ""
+ this.editConfig.infomation.contract_number = ""
this.SalesDetailsId = 0
}
},
--
Gitblit v1.8.0