refactor(contract): 统一合同编号字段名从contractNo改为contractCode

修改多个组件中合同编号字段名以保持一致性,移除未使用的props和清理冗余代码
This commit is contained in:
砂糖
2026-04-14 10:03:16 +08:00
parent 9f3d402174
commit 54bea01416
6 changed files with 25 additions and 60 deletions

View File

@@ -23,9 +23,7 @@
<!-- 右侧下方Tab标签页 -->
<div class="tab-panel" ref="tabPanel" style="flex: 1; overflow-y: auto;">
<ContractTabs :orderId="form.orderId" :customerId="form.customerId" :financeList="financeList"
:objectionList="objectionList" :wmsDeliveryWaybills="wmsDeliveryWaybills" :coilList="coilList"
:tabLoading="tabLoading" :contract-attachment="form.businessAnnex" :technical-agreement="form.techAnnex"
<ContractTabs :orderId="form.orderId" :deliveryWaybillList="wmsDeliveryWaybills" :coilList="coilList" :contract-attachment="form.businessAnnex" :technical-agreement="form.techAnnex"
:other-attachment="form.productionSchedule" :currentOrder="form" />
</div>
</div>
@@ -339,15 +337,10 @@ export default {
/** 行点击事件 */
handleRowClick(row) {
this.form = row;
// this.tabLoading = true;
this.getCoilList();
// listContractOrderObjection(row.contractId).then(response => {
// this.financeList = response.data.financeList || [];
// this.objectionList = response.data.oobjectionList || [];
// this.wmsDeliveryWaybills = response.data.wmsDeliveryWaybills || [];
// }).finally(() => {
// this.tabLoading = false;
// })
listDeliveryWaybill({ orderId: row.orderId, pageNum: 1, pageSize: 50 }).then(res => {
this.wmsDeliveryWaybills = res.rows || [];
})
},
/** 查询合同配卷列表 */
getCoilList() {
@@ -360,7 +353,7 @@ export default {
this.form = {
contractId: undefined,
contractName: '产品销售合同',
contractNo: undefined,
contractCode: undefined,
supplier: '嘉祥科伦普重工有限公司',
customer: undefined,
signTime: undefined,
@@ -478,8 +471,12 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
this.buttonLoading = true;
const payload = {
...this.form,
orderCode: this.form.contractCode,
}
if (this.form.orderId != null) {
updateOrder(this.form).then(response => {
updateOrder(payload).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.$refs.orderList.getList();
@@ -487,7 +484,7 @@ export default {
this.buttonLoading = false;
});
} else {
addOrder(this.form).then(response => {
addOrder(payload).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.$refs.orderList.getList();