|
|
@ -6,6 +6,12 @@ |
|
|
|
<!-- 搜索 --> |
|
|
|
<div style="float: left"> |
|
|
|
<flexbox class="content-header"> |
|
|
|
<JobSelectVerson |
|
|
|
:options="JobVersionList" |
|
|
|
style="width: 150px; margin-left: -10px" |
|
|
|
class="search-container" |
|
|
|
@value-change="JobVersionValue" |
|
|
|
></JobSelectVerson> |
|
|
|
<el-button |
|
|
|
class="filter-item" |
|
|
|
size="mini" |
|
|
@ -373,9 +379,12 @@ |
|
|
|
<el-select |
|
|
|
v-model="formCount.materialGroupValue" |
|
|
|
size="medium" |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
style="width: 188px; margin-right: 15px" |
|
|
|
@change="valueChange" |
|
|
|
style="width: 350px; margin-right: 15px" |
|
|
|
placeholder="请选择" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -416,7 +425,12 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :md="10" :xs="24" style="margin-left: -80px"> |
|
|
|
<el-form-item prop="kennCode"> |
|
|
|
<el-input v-model="formCount.kennCode" /> |
|
|
|
<el-input |
|
|
|
type="textarea" |
|
|
|
v-model="formCount.kennCode" |
|
|
|
:rows="4" |
|
|
|
placeholder="多个KENN号,请以回车换行形式添加!" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :md="4" :xs="24"> |
|
|
@ -424,7 +438,12 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :md="10" :xs="24" style="margin-left: -95px"> |
|
|
|
<el-form-item prop="chassisNumber"> |
|
|
|
<el-input v-model="formCount.chassisNumber" /> |
|
|
|
<el-input |
|
|
|
v-model="formCount.chassisNumber" |
|
|
|
type="textarea" |
|
|
|
:rows="4" |
|
|
|
placeholder="多个底盘号,请以回车换行形式添加!" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -433,19 +452,29 @@ |
|
|
|
<el-col :md="4" :xs="24"> |
|
|
|
<el-form-item label="客户零件号" /> |
|
|
|
</el-col> |
|
|
|
<el-col :md="20" :xs="24" style="margin-left: -80px"> |
|
|
|
<el-col :md="10" :xs="24" style="margin-left: -80px"> |
|
|
|
<el-form-item prop="materialCode"> |
|
|
|
<el-input v-model="formCount.materialCode" style="width: 450px" /> |
|
|
|
<el-input |
|
|
|
v-model="formCount.materialCode" |
|
|
|
type="textarea" |
|
|
|
:rows="4" |
|
|
|
placeholder="多个客户零件号,请以回车换行形式添加!" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- <el-col :md="4" :xs="24"> |
|
|
|
<el-col :md="4" :xs="24"> |
|
|
|
<el-form-item label="厂内零件号" /> |
|
|
|
</el-col> |
|
|
|
<el-col :md="10" :xs="24" style="margin-left: -95px"> |
|
|
|
<el-form-item prop="sapMaterialCode"> |
|
|
|
<el-input v-model="formCount.sapMaterialCode" /> |
|
|
|
<el-input |
|
|
|
v-model="formCount.sapMaterialCode" |
|
|
|
type="textarea" |
|
|
|
:rows="4" |
|
|
|
placeholder="多个厂内零件号,请以回车换行形式添加!" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> --> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@ -467,16 +496,11 @@ import permission from "@/directive/permission/index.js"; |
|
|
|
import { downloadFile } from "@/utils/crmindex.js"; |
|
|
|
import CRMTableHead from "../../components/CRMTableHead"; |
|
|
|
import moment from "moment"; |
|
|
|
const cityOptions = [ |
|
|
|
{ id: 0, name: "未结" }, |
|
|
|
{ id: 1, name: "部分结算" }, |
|
|
|
{ id: 2, name: "已结" }, |
|
|
|
/* { id: 3, name: "预批量" }, */ |
|
|
|
]; |
|
|
|
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "UnSettleDiffExport", |
|
|
|
components: { Pagination, CRMTableHead }, |
|
|
|
components: { Pagination, CRMTableHead, JobSelectVerson }, |
|
|
|
directives: { permission }, |
|
|
|
|
|
|
|
data() { |
|
|
@ -530,8 +554,9 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
datetime5: [], |
|
|
|
JobVersionList: [], |
|
|
|
getmaterialGroupValue: "", |
|
|
|
checkedCities: [0], |
|
|
|
cities: cityOptions, |
|
|
|
selectValue: "", |
|
|
|
selectNameValue: "", |
|
|
|
radio: "0", //结算状态:0未结 1部分结算 |
|
|
@ -595,12 +620,15 @@ export default { |
|
|
|
materialGroup: undefined, |
|
|
|
begin: undefined, |
|
|
|
end: undefined, |
|
|
|
sapCode:undefined |
|
|
|
}, |
|
|
|
listQuery: { |
|
|
|
taskId: "", |
|
|
|
name: "", |
|
|
|
}, |
|
|
|
page: 1, |
|
|
|
JobversionValue: "", |
|
|
|
JobversionValueVerson: "", |
|
|
|
dialogFormVisible: false, |
|
|
|
multipleSelection: [], |
|
|
|
tableHeight: document.documentElement.clientHeight - 260, |
|
|
@ -638,6 +666,7 @@ export default { |
|
|
|
this.getAllVersionList(); |
|
|
|
this.getMaterialGroup(); |
|
|
|
this.getList(); |
|
|
|
this.getJobVersionInfo(); |
|
|
|
// this.getCurrentMonthFirst(); |
|
|
|
// this.getCurrentMonthLast(); |
|
|
|
}, |
|
|
@ -649,7 +678,11 @@ export default { |
|
|
|
/* 主表头 */ |
|
|
|
getDefaultField() { |
|
|
|
var tempsTabs = []; |
|
|
|
|
|
|
|
tempsTabs.push({ |
|
|
|
label: "版本号", |
|
|
|
prop: "type", |
|
|
|
width: 85, |
|
|
|
}); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "单据流水号", |
|
|
|
prop: "taskId", |
|
|
@ -670,11 +703,11 @@ export default { |
|
|
|
prop: "createdAt", |
|
|
|
width: 150, |
|
|
|
}); |
|
|
|
// tempsTabs.push({ |
|
|
|
// label: "操作名称", |
|
|
|
// prop: "actionName", |
|
|
|
// width: 120, |
|
|
|
// }); |
|
|
|
tempsTabs.push({ |
|
|
|
label: "说明", |
|
|
|
prop: "remark", |
|
|
|
width: 220, |
|
|
|
}); |
|
|
|
// tempsTabs.push({ |
|
|
|
// label: "状态", |
|
|
|
// prop: "stateName", |
|
|
@ -684,6 +717,45 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
valueChange(data) { |
|
|
|
this.getmaterialGroupValue = ""; |
|
|
|
this.getmaterialGroupValue += data + ","; |
|
|
|
this.getmaterialGroupValue = this.getmaterialGroupValue.substring( |
|
|
|
0, |
|
|
|
this.getmaterialGroupValue.length - 1 |
|
|
|
); |
|
|
|
}, |
|
|
|
//版本下拉列表选择项 |
|
|
|
JobVersionValue(params) { |
|
|
|
//版本下拉选择 |
|
|
|
this.JobversionValue = params.value; |
|
|
|
this.getList(); |
|
|
|
}, |
|
|
|
getJobVersionInfo() { |
|
|
|
//取版本列表信息 |
|
|
|
//this.listLoading = true; |
|
|
|
this.listQuery.SkipCount = (this.page - 1) * 1000; |
|
|
|
this.$axios |
|
|
|
.posts("/api/settleaccount/Job/versionlist", this.listQuery) |
|
|
|
.then((response) => { |
|
|
|
this.JobVersionList = []; |
|
|
|
response.forEach((element) => { |
|
|
|
let options = {}; |
|
|
|
options.value = element; |
|
|
|
options.label = element; |
|
|
|
this.JobVersionList.push(options); |
|
|
|
}); |
|
|
|
if (JSON.stringify(this.JobVersionList) != "[]") { |
|
|
|
//因版本下拉有默认值,所以详表要自动绑定子表数据 |
|
|
|
this.JobversionValue = this.JobVersionList[0].value; |
|
|
|
this.JobversionValueVerson = this.JobVersionList[0].label; |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
//this.listLoading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
getdateValue(val) { |
|
|
|
this.startTime = val; |
|
|
|
this.getbalanceIndexData(); |
|
|
@ -743,7 +815,7 @@ export default { |
|
|
|
response.items.forEach((element) => { |
|
|
|
let options = {}; |
|
|
|
options.value = element.description; |
|
|
|
options.label = element.description; |
|
|
|
options.label = element.description + "/" + element.value; |
|
|
|
this.materialGroupList.push(options); |
|
|
|
}); |
|
|
|
}) |
|
|
@ -766,13 +838,14 @@ export default { |
|
|
|
if (this.formCount.materialCode != "") { |
|
|
|
this.listExportQuery.materialCode = this.formCount.materialCode; //物料号 |
|
|
|
} |
|
|
|
// if (this.formCount.sapMaterialCode != "") { |
|
|
|
// this.listExportQuery.sapMaterialCode = |
|
|
|
// this.formCount.sapMaterialCode; //厂内物料号 |
|
|
|
// } |
|
|
|
if (this.formCount.sapMaterialCode != "") { |
|
|
|
this.listExportQuery.sapCode = |
|
|
|
this.formCount.sapMaterialCode; //厂内物料号 |
|
|
|
} |
|
|
|
if (this.formCount.kennCode != "") { |
|
|
|
this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN号 |
|
|
|
} |
|
|
|
//CP5 |
|
|
|
var getdate5 = JSON.stringify(this.datetime5); |
|
|
|
if (getdate5 != "[]") { |
|
|
|
this.listExportQuery.begin = this.datetime5 |
|
|
@ -789,8 +862,7 @@ export default { |
|
|
|
this.listExportQuery.chassisNumber = this.formCount.chassisNumber; //底盘号 |
|
|
|
} |
|
|
|
if (this.formCount.materialGroupValue != "") { |
|
|
|
this.listExportQuery.materialGroup = |
|
|
|
this.formCount.materialGroupValue; //物料组车型 |
|
|
|
this.listExportQuery.materialGroup = this.getmaterialGroupValue; //物料组车型 |
|
|
|
} |
|
|
|
|
|
|
|
console.log( |
|
|
@ -949,6 +1021,7 @@ export default { |
|
|
|
this.listLoading = true; |
|
|
|
//导入界面中超链接过来的参数 |
|
|
|
this.listQuery.name = "大众准时化未结差异比对表"; |
|
|
|
this.listQuery.type = this.JobversionValue; |
|
|
|
this.$axios |
|
|
|
.posts("/api/settleaccount/Job/list", this.listQuery) |
|
|
|
.then((response) => { |
|
|
|