From e3ad877d4f643e0a9207a42fb5e23d1fb40f7c30 Mon Sep 17 00:00:00 2001
From: 陈婷婷 <506607603@qq.com>
Date: 星期五, 03 四月 2026 13:14:41 +0800
Subject: [PATCH] 运单选择承运合同的时候列表单选
---
src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue | 65 +++++++++++++++++++-------------
1 files changed, 39 insertions(+), 26 deletions(-)
diff --git a/src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue b/src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue
index 60cee36..e25c83c 100644
--- a/src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue
+++ b/src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue
@@ -163,13 +163,14 @@
</el-table-column>
</template>
</el-table>
- <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" @pagination="getList" />
+ <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes"
+ @pagination="getList" />
<el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
<RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
</el-dialog>
<!-- 缂栬緫 -->
<el-dialog title="缂栬緫" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
- <edit :OperationType=OperationType :linterid=this.rowForm.HInterID||this.rowForm.hmainid
+ <edit :OperationType=OperationType :linterid=this.rowForm.HInterID || this.rowForm.hmainid
:HSouceBillType=this.rowForm.HSourceBillType :copyType="copyType" @editClose="editClose" v-if="editShow" />
</el-dialog>
<el-dialog title="鎵撳嵃妯℃澘閫夋嫨" :visible.sync="openPrintList" width="800px" append-to-body>
@@ -193,9 +194,9 @@
components: { RowSettings, Edit, PrintList },
props: {
openPage: { type: String, },
- propHBeginAddrName:{},
- propHBeginHEndAddrName:{},
- propHCarTypeName:{},
+ propHBeginAddrName: {},
+ propHBeginHEndAddrName: {},
+ propHCarTypeName: {},
},
data() {
return {
@@ -288,10 +289,10 @@
tableData: [],//鍒楄〃(鍒嗛〉鏄剧ず)
dataList: [],
titleData: [],//涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
- pageSizes: [ 10,50, 500, 5000, 50000],
+ pageSizes: [10, 50, 500, 5000, 50000],
page: 1,
pageSize: 0,
- total: 0,
+ total: 0,
};
},
created() {
@@ -301,7 +302,7 @@
methods: {
//閲嶆柊鍚屾
- set_ResCnz(){
+ set_ResCnz() {
axios.get(this.$baseUrl + "/Cg_POOrderBill/Resynchronize", {
params: { "HBillNo": '', "HBillType": 1117 }
}).then(response => {
@@ -396,9 +397,9 @@
params: {
"sWhere": this.sWhere,
"user": sessionStorage["HUserName"],
- "Page":this.page,
- "size":this.pageSize,
- "Type":1117
+ "Page": this.page,
+ "size": this.pageSize,
+ "Type": 1117
},
}).then(response => {
this.tyResList = response.data.data//鎬绘暟鎹�
@@ -606,11 +607,23 @@
},
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
- this.ids = selection.map(item => item.HInterID)
- this.single = selection.length != 1
- this.multiple = !selection.length
- if (!this.single) {
+ if (this.openPage) {
+ //鍒楄〃鍗曢��
+ if (selection.length > 1) {
+ const del_row = selection.shift()
+ this.$refs.tableData.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+ }
+ this.rowForm = {}
+ this.ids = selection.map(item => item.HItemID)
this.rowForm = selection[0]
+ this.$emit('deptEmit', this.rowForm, 16)
+ } else {
+ this.ids = selection.map(item => item.HInterID)
+ this.single = selection.length != 1
+ this.multiple = !selection.length
+ if (!this.single) {
+ this.rowForm = selection[0]
+ }
}
},
/** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -752,17 +765,17 @@
console.log("鍒犻櫎", this.rowForm.HInterID.toString())
this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
axios.get(this.$baseUrl + "/Cg_ContractTransportBillListController/Delete%EF%BB%BFBill", {
- params: { 'HInterID': this.rowForm.HInterID.toString(), 'user': sessionStorage["HUserName"] }
- }).then(response => {
- if (response.data.count == 1) {
- this.getList()
- this.$modal.msgSuccess("鍒犻櫎鎴愬姛")
- } else {
- this.$modal.msgError("閿欒:" + result.code + result.Message);
- }
- }).catch(error => {
- this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
- });
+ params: { 'HInterID': this.rowForm.HInterID.toString(), 'user': sessionStorage["HUserName"] }
+ }).then(response => {
+ if (response.data.count == 1) {
+ this.getList()
+ this.$modal.msgSuccess("鍒犻櫎鎴愬姛")
+ } else {
+ this.$modal.msgError("閿欒:" + result.code + result.Message);
+ }
+ }).catch(error => {
+ this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+ });
}).catch(() => { })
},
// 鍙嶅鏍�/瀹℃牳鏁版嵁
--
Gitblit v1.9.1