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