| | |
| | | </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> |
| | |
| | | components: { RowSettings, Edit, PrintList }, |
| | | props: { |
| | | openPage: { type: String, }, |
| | | propHBeginAddrName:{}, |
| | | propHBeginHEndAddrName:{}, |
| | | propHCarTypeName:{}, |
| | | propHBeginAddrName: {}, |
| | | propHBeginHEndAddrName: {}, |
| | | propHCarTypeName: {}, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | tableData: [],//列表(分页显示) |
| | | dataList: [], |
| | | titleData: [],//不需要显示的字段 可扩展 |
| | | pageSizes: [ 10,50, 500, 5000, 50000], |
| | | pageSizes: [10, 50, 500, 5000, 50000], |
| | | page: 1, |
| | | pageSize: 0, |
| | | total: 0, |
| | | total: 0, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | |
| | | methods: { |
| | | //重新同步 |
| | | set_ResCnz(){ |
| | | set_ResCnz() { |
| | | axios.get(this.$baseUrl + "/Cg_POOrderBill/Resynchronize", { |
| | | params: { "HBillNo": '', "HBillType": 1117 } |
| | | }).then(response => { |
| | |
| | | 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//总数据 |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | 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] |
| | | } |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | |
| | | 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(() => { }) |
| | | }, |
| | | // 反审核/审核数据 |