| | |
| | | <el-form-item label-width="78px"> |
| | | <el-button type="primary" icon="el-icon-search" @click="handleQuery"> 搜 索</el-button> |
| | | <el-button icon="el-icon-circle-close" @click="resetQuery">重 置</el-button> |
| | | <el-button type="primary" icon="el-icon-search" @click="set_ResCnz">重新同步</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-search" @click="set_ResCnz">重新同步</el-button> --> |
| | | </el-form-item> |
| | | <el-collapse v-model="activeSeach"> |
| | | <el-collapse-item title="更多" name="1"> |
| | |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit-outline" size="mini" :disabled="single" |
| | | @click="set_CheckBill(1, form = rowForm)">审核</el-button> |
| | | @click="set_CheckBill(0, form = rowForm)">审核</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit-outline" size="mini" :disabled="single" |
| | | @click="set_CheckBill(2, form = rowForm)">返审核</el-button> |
| | | @click="set_CheckBill(1, form = rowForm)">返审核</el-button> |
| | | </el-col> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">导出</el-button> |
| | |
| | | components: { RowSettings, Edit, PrintList }, |
| | | props: { |
| | | openPage: { type: String, }, |
| | | propHBeginAddrName:{}, |
| | | propHBeginHEndAddrName:{}, |
| | | propHCarTypeName:{}, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | queryParams: { |
| | | HBillNo: '', |
| | | HBillno2: '', |
| | | HInitTimeCycle: 29, |
| | | HInitTimeCycle: 0, |
| | | HDeptID: '', |
| | | |
| | | HSourceBillNo: '', |
| | |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'" |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'" |
| | | } |
| | | if (this.propHBeginAddrName) { |
| | | this.sWhere += " and 始发地 = '" + this.propHBeginAddrName + "'" |
| | | } |
| | | if (this.propHBeginHEndAddrName) { |
| | | this.sWhere += " and 目的地 = '" + this.propHBeginHEndAddrName + "'" |
| | | } |
| | | if (this.propHCarTypeName) { |
| | | this.sWhere += " and 运输方式 = '" + this.propHCarTypeName + "'" |
| | | } |
| | | console.log(this.sWhere) |
| | | if (this.pageSize == 0) { |
| | | this.pageSize = 50 |
| | | } |
| | |
| | | }, |
| | | //选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | | if (this.ids.includes(row.hmainid)) { |
| | | // 使用 HInterID 判断 |
| | | if (this.ids.includes(row.HInterID)) { |
| | | return { "background": "#ecf5ff" } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | this.ids = selection.map(item => item.hmainid) |
| | | this.ids = selection.map(item => item.HInterID) |
| | | this.single = selection.length != 1 |
| | | this.multiple = !selection.length |
| | | if (!this.single) { |
| | |
| | | this.getList() |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | //Delete%EF%BB%BFBill |
| | | handleDelete() { |
| | | console.log("删除", this.rowForm.HInterID.toString()) |
| | | this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => { |
| | | axios.get(this.$baseUrl + "/Cg_ContractTransportBillListController/Delete%EF%BB%BFBill", { |
| | | params: { 'HInterID': this.rowForm.hmainid.toString() } |
| | | params: { 'HInterID': this.rowForm.HInterID.toString(), 'user': sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | if (response.data.count == 1) { |
| | | this.getList() |
| | |
| | | }, |
| | | // 反审核/审核数据 |
| | | set_CheckBill(num, form) { |
| | | var InterID = form.hmainid || form.HInterID |
| | | var InterID = this.rowForm.HInterID.toString() |
| | | //逻辑审核方法 |
| | | axios.get(this.$baseUrl + "/Cg_ContractTransportBillEdit/AuditCg_ContractTransportBillEdit", { |
| | | params: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] } |
| | | params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.count == 1) { |