|
|
@ -33,11 +33,11 @@ |
|
|
|
@click="handleDelete()" |
|
|
|
>删除出库单(支持批量) |
|
|
|
</el-button> |
|
|
|
<!-- <el-input |
|
|
|
<el-input |
|
|
|
v-model="searchContent" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
placeholder="按照零件号搜索..." |
|
|
|
placeholder="按照SAP号搜索..." |
|
|
|
style="width: 230px" |
|
|
|
class="search-container" |
|
|
|
@keyup.enter.native="handleFilter" |
|
|
@ -48,7 +48,7 @@ |
|
|
|
icon="el-icon-search" |
|
|
|
@click="handleFilter" |
|
|
|
>搜索 |
|
|
|
</el-button> --> |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
@ -58,13 +58,13 @@ |
|
|
|
>全部导出 |
|
|
|
</el-button> |
|
|
|
<!--表格头组件,filter查询--> |
|
|
|
<c-r-m-table-head |
|
|
|
<!-- <c-r-m-table-head |
|
|
|
ref="crmTableHead" |
|
|
|
:crm-type="crmType" |
|
|
|
@handle="handleHandle" |
|
|
|
@filter="handleFilters" |
|
|
|
> |
|
|
|
</c-r-m-table-head> |
|
|
|
</c-r-m-table-head> --> |
|
|
|
</flexbox> |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table |
|
|
@ -187,7 +187,7 @@ import { downloadFile } from "@/utils/crmindex.js"; |
|
|
|
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "sendUnsettledDiffReport", |
|
|
|
name: "HQkboutput", |
|
|
|
components: { Pagination, CRMTableHead, CRMTableHead, JobSelectVerson }, |
|
|
|
directives: { permission }, |
|
|
|
props: { |
|
|
@ -200,7 +200,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
crmType: "sparepartOutOrder", |
|
|
|
crmType: "hqkboutput", |
|
|
|
rules: { |
|
|
|
//前端定义的规则,后端也有验证 |
|
|
|
erpMaterialCode: [ |
|
|
@ -251,6 +251,7 @@ export default { |
|
|
|
SkipCount: 0, |
|
|
|
MaxResultCount: 15, |
|
|
|
billNum: "", |
|
|
|
version: "", |
|
|
|
}, |
|
|
|
listOutPutQuery: { |
|
|
|
version: "", |
|
|
@ -330,7 +331,7 @@ export default { |
|
|
|
prop: "materialDesc", |
|
|
|
width: 220, |
|
|
|
}); |
|
|
|
|
|
|
|
tempsTabs.push({ label: "是否备件", prop: "isBack", width: 100 }); |
|
|
|
tempsTabs.push({ label: "寄售库存", prop: "sockQty", width: 100 }); |
|
|
|
tempsTabs.push({ label: "结算数量", prop: "qty", width: 100 }); |
|
|
|
tempsTabs.push({ |
|
|
@ -346,14 +347,14 @@ export default { |
|
|
|
//导出全部功能 |
|
|
|
handleDownload(command) { |
|
|
|
this.listLoading = true; |
|
|
|
this.listOutPutQuery.version = this.customerInfo.version; |
|
|
|
this.listOutPutQuery.billNum = this.customerInfo.parentId; |
|
|
|
this.listQuery.version = this.customerInfo.version; |
|
|
|
this.listQuery.billNum = this.customerInfo.parentId; |
|
|
|
|
|
|
|
console.log( |
|
|
|
"大众备件出库单导出:" + JSON.stringify(this.listOutPutQuery) |
|
|
|
"红旗一轿车库单导出:" + JSON.stringify(this.listQuery) |
|
|
|
); |
|
|
|
this.$axios |
|
|
|
.posts("/api/settleaccount/WmsHQKBOutput/Export", this.listOutPutQuery) |
|
|
|
.posts("/api/settleaccount/WmsHQKBOutput/Export", this.listQuery) |
|
|
|
.then((res) => { |
|
|
|
let fileNameOfProject = res; |
|
|
|
this.$axios |
|
|
@ -626,6 +627,12 @@ export default { |
|
|
|
4: "取消出库", |
|
|
|
}[row[column.property]]; |
|
|
|
} |
|
|
|
if (column.property == "isBack") { |
|
|
|
return { |
|
|
|
0: "批量", |
|
|
|
1: "备件", |
|
|
|
}[row[column.property]]; |
|
|
|
} |
|
|
|
return row[column.property] || "--"; |
|
|
|
}, |
|
|
|
importExcelData() { |
|
|
@ -667,7 +674,7 @@ export default { |
|
|
|
this.getList(); |
|
|
|
this.listQuery.Filters = []; |
|
|
|
if (this.searchContent != "") { |
|
|
|
var column = "materialCode"; |
|
|
|
var column = "sapMaterialCode"; |
|
|
|
let filter = { |
|
|
|
logic: 0, |
|
|
|
column: column, |
|
|
|