Browse Source

结算9个输出报表的功能调整加测试

branch_ccpg_220107
44673626 3 years ago
parent
commit
4960cff4c8
  1. 185
      vue/src/views/ux/billManage/InvoiceSettledDetailDiff/index.vue
  2. 71
      vue/src/views/ux/billManage/InvoiceSettledDiff/index.vue
  3. 127
      vue/src/views/ux/billManage/IssuedUnsettled/index.vue
  4. 62
      vue/src/views/ux/billManage/SettleDoorPanel/index.vue
  5. 63
      vue/src/views/ux/billManage/UnInvoiceSettledDetailDiff/index.vue
  6. 132
      vue/src/views/ux/billManage/UnSettleDiffExport/index.vue
  7. 125
      vue/src/views/ux/billManage/UnSettledDiff/index.vue
  8. 272
      vue/src/views/ux/billManage/kanBanWithCode/index.vue
  9. 190
      vue/src/views/ux/billManage/sparePart/index.vue

185
vue/src/views/ux/billManage/InvoiceSettledDetailDiff/index.vue

@ -19,6 +19,22 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
<el-button
class="filter-item"
type="success"
icon="el-icon-check"
size="mini"
@click="handleCreateBills()"
>生成出库单(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -60,8 +76,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -369,7 +387,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="物料组(车型)" /> <el-form-item label="物料组(车型)" />
</el-col> </el-col>
@ -378,9 +396,12 @@
<el-select <el-select
v-model="formCount.materialGroupValue" v-model="formCount.materialGroupValue"
size="medium" size="medium"
collapse-tags
multiple
filterable filterable
clearable clearable
style="width: 188px; margin-right: 15px" @change="valueChange"
style="width: 350px; margin-right: 15px"
placeholder="请选择" placeholder="请选择"
> >
<el-option <el-option
@ -398,12 +419,13 @@
<el-form-item label="CP5时间:" /> <el-form-item label="CP5时间:" />
</el-col> </el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px"> <el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item prop="cp5startTime"> <el-form-item>
<el-date-picker <el-date-picker
v-model="formCount.cp5startTime" v-model="cp5startTime"
:picker-options="pickerOptions2"
type="datetime" type="datetime"
size="small" size="small"
@change="cp5getdateValue" @change="getdateValueCp5"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00" default-time="00:00:00"
> >
@ -411,12 +433,13 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="10" :xs="24" style="margin-left: -40px"> <el-col :md="10" :xs="24" style="margin-left: -40px">
<el-form-item prop="cp5endTime"> <el-form-item>
<el-date-picker <el-date-picker
v-model="formCount.cp5endTime" v-model="cp5endTime"
:picker-options="pickerOptions3"
type="datetime" type="datetime"
size="small" size="small"
@change="cp5getdateValue" @change="getdateValCp5"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
default-time="23:59:59" default-time="23:59:59"
> >
@ -466,7 +489,7 @@
style="color: #37b328" style="color: #37b328"
></i> ></i>
</template> </template>
<el-row> <!-- <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="KEEN号" /> <el-form-item label="KEEN号" />
</el-col> </el-col>
@ -495,6 +518,23 @@
></el-button> ></el-button>
</el-tooltip> </el-tooltip>
</el-col> </el-col>
</el-row> -->
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="KEEN号" />
</el-col>
<el-col :md="20" :xs="24" style="margin-left: -80px">
<el-form-item prop="kennCode">
<el-input
type="textarea"
v-model="formCount.kennCode"
style="width: 450px"
:rows="4"
placeholder="多个KENN号,请以回车换行形式添加!"
/>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -651,6 +691,19 @@ export default {
return time.getTime() <= new Date(this.startTime).getTime(); return time.getTime() <= new Date(this.startTime).getTime();
}, },
}, },
pickerOptions2: {
disabledDate: (time) => {
//if (this.endTime != "") {
return time.getTime() > new Date(this.cp5endTime).getTime();
//}
},
},
pickerOptions3: {
disabledDate: (time) => {
return time.getTime() <= new Date(this.cp5startTime).getTime();
},
},
pickerOptionsCp7: { pickerOptionsCp7: {
disabledDate: (time) => { disabledDate: (time) => {
let now = new Date(); let now = new Date();
@ -712,6 +765,8 @@ export default {
// kennCode: "", // kennCode: "",
// version: "", // version: "",
}, },
cp5startTime: "",
cp5endTime: "",
dataKenCode: "", dataKenCode: "",
datachassisNumber: "", datachassisNumber: "",
datamaterialCode: "", datamaterialCode: "",
@ -743,7 +798,7 @@ export default {
listQuery: { listQuery: {
taskId: "", taskId: "",
name: "", name: "",
type:"" type: "",
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -836,6 +891,107 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleCreateBills(row){
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/wms/WmsJitOutPut", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -931,12 +1087,13 @@ export default {
this.getbalanceIndexData(); this.getbalanceIndexData();
}, },
cp5getdateValue(val) { //cp5
getdateValueCp5(val) {
this.cp5startTime = val; this.cp5startTime = val;
this.getbalanceIndexData(); this.getbalanceIndexData();
}, },
cp5getdateValue(val) { getdateValCp5(val) {
this.cp5startTime = val; this.cp5endTime = val;
this.getbalanceIndexData(); this.getbalanceIndexData();
}, },
getCurrentMonthFirst() { getCurrentMonthFirst() {
@ -1045,8 +1202,6 @@ export default {
"大众发票与结算核对明细表-导出条件:" + "大众发票与结算核对明细表-导出条件:" +
JSON.stringify(this.listExportQuery) JSON.stringify(this.listExportQuery)
); );
this.formLoading = false;
this.dialogFormVisible = false;
this.$axios this.$axios
.gets( .gets(
"/api/settleaccount/ReportMakeService/InvoiceSettledDetailDiff-Make", "/api/settleaccount/ReportMakeService/InvoiceSettledDetailDiff-Make",

71
vue/src/views/ux/billManage/InvoiceSettledDiff/index.vue

@ -19,6 +19,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -58,10 +66,12 @@
stripe stripe
border border
highlight-current-row highlight-current-row
@selection-change="handleSelectionChange"
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -515,6 +525,7 @@ export default {
], ],
customerInfos: "", customerInfos: "",
searchContent: "", // searchContent: "", //
getmaterialGroupValue: "",
form: {}, form: {},
formCount: { formCount: {
name: "未结算对比", name: "未结算对比",
@ -549,12 +560,12 @@ export default {
materialGroup: undefined, materialGroup: undefined,
begin: undefined, begin: undefined,
end: undefined, end: undefined,
sapCode: undefined sapCode: undefined,
}, },
listQuery: { listQuery: {
taskId: "", taskId: "",
name: "", name: "",
type:"" type: "",
}, },
page: 1, page: 1,
JobversionValue: "", JobversionValue: "",
@ -608,7 +619,7 @@ export default {
/* 主表头 */ /* 主表头 */
getDefaultField() { getDefaultField() {
var tempsTabs = []; var tempsTabs = [];
tempsTabs.push({ tempsTabs.push({
label: "版本号", label: "版本号",
prop: "type", prop: "type",
width: 85, width: 85,
@ -633,7 +644,7 @@ tempsTabs.push({
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({ tempsTabs.push({
label: "说明", label: "说明",
prop: "remark", prop: "remark",
width: 220, width: 220,
@ -652,6 +663,58 @@ tempsTabs.push({
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
valueChange(data) { valueChange(data) {
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.getmaterialGroupValue += data + ","; this.getmaterialGroupValue += data + ",";

127
vue/src/views/ux/billManage/IssuedUnsettled/index.vue

@ -19,6 +19,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -60,8 +68,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -397,7 +407,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" /> <el-form-item label="CP5时间:" />
</el-col> </el-col>
@ -416,6 +426,40 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> -->
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" />
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item prop="startTime">
<el-date-picker
v-model="formCount.startTime"
type="datetime"
size="small"
:picker-options="pickerOptions0"
@change="getdateValue"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -40px">
<el-form-item prop="endTime">
<el-date-picker
v-model="formCount.endTime"
type="datetime"
:picker-options="pickerOptions1"
size="small"
@change="getdateVal"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="23:59:59"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -717,6 +761,58 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
// //
JobVersionValue(params) { JobVersionValue(params) {
// //
@ -844,18 +940,23 @@ export default {
if (this.formCount.kennCode != "") { if (this.formCount.kennCode != "") {
this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN
} }
var getdate5 = JSON.stringify(this.datetime5); // var getdate5 = JSON.stringify(this.datetime5);
if (getdate5 != "[]") { // if (getdate5 != "[]") {
this.listExportQuery.begin = this.datetime5 // this.listExportQuery.begin = this.datetime5
? this.datetime5[0] || undefined // ? this.datetime5[0] || undefined
: undefined; // : undefined;
this.listExportQuery.end = this.datetime5 // this.listExportQuery.end = this.datetime5
? this.datetime5[1] || undefined // ? this.datetime5[1] || undefined
: undefined; // : undefined;
} else { // } else {
this.listExportQuery.begin = undefined; // this.listExportQuery.begin = undefined;
this.listExportQuery.end = undefined; // this.listExportQuery.end = undefined;
} // }
//cp5
this.listExportQuery.begin = this.startTime
? this.startTime
: undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined;
if (this.formCount.chassisNumber != "") { if (this.formCount.chassisNumber != "") {
this.listExportQuery.chassisNumber = this.formCount.chassisNumber; // this.listExportQuery.chassisNumber = this.formCount.chassisNumber; //
} }

62
vue/src/views/ux/billManage/SettleDoorPanel/index.vue

@ -19,6 +19,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -60,8 +68,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -793,6 +803,58 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
valueChange(data) { valueChange(data) {
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.getmaterialGroupValue += data + ","; this.getmaterialGroupValue += data + ",";

63
vue/src/views/ux/billManage/UnInvoiceSettledDetailDiff/index.vue

@ -19,6 +19,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -60,8 +68,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -789,6 +799,58 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
valueChange(data) { valueChange(data) {
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.getmaterialGroupValue += data + ","; this.getmaterialGroupValue += data + ",";
@ -830,7 +892,6 @@ export default {
}, },
getdateValue(val) { getdateValue(val) {
this.startTime = val; this.startTime = val;
alert(this.startTime);
this.getbalanceIndexData(); this.getbalanceIndexData();
}, },
getdateVal(val) { getdateVal(val) {

132
vue/src/views/ux/billManage/UnSettleDiffExport/index.vue

@ -20,6 +20,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -61,8 +69,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -398,7 +408,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" /> <el-form-item label="CP5时间:" />
</el-col> </el-col>
@ -417,6 +427,40 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> -->
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" />
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item prop="startTime">
<el-date-picker
v-model="formCount.startTime"
type="datetime"
size="small"
:picker-options="pickerOptions0"
@change="getdateValue"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -40px">
<el-form-item prop="endTime">
<el-date-picker
v-model="formCount.endTime"
type="datetime"
:picker-options="pickerOptions1"
size="small"
@change="getdateVal"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="23:59:59"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -620,7 +664,7 @@ export default {
materialGroup: undefined, materialGroup: undefined,
begin: undefined, begin: undefined,
end: undefined, end: undefined,
sapCode:undefined sapCode: undefined,
}, },
listQuery: { listQuery: {
taskId: "", taskId: "",
@ -717,6 +761,58 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
valueChange(data) { valueChange(data) {
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.getmaterialGroupValue += data + ","; this.getmaterialGroupValue += data + ",";
@ -839,25 +935,29 @@ export default {
this.listExportQuery.materialCode = this.formCount.materialCode; // this.listExportQuery.materialCode = this.formCount.materialCode; //
} }
if (this.formCount.sapMaterialCode != "") { if (this.formCount.sapMaterialCode != "") {
this.listExportQuery.sapCode = this.listExportQuery.sapCode = this.formCount.sapMaterialCode; //
this.formCount.sapMaterialCode; //
} }
if (this.formCount.kennCode != "") { if (this.formCount.kennCode != "") {
this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN
} }
//CP5 //CP5
var getdate5 = JSON.stringify(this.datetime5); // var getdate5 = JSON.stringify(this.datetime5);
if (getdate5 != "[]") { // if (getdate5 != "[]") {
this.listExportQuery.begin = this.datetime5 // this.listExportQuery.begin = this.datetime5
? this.datetime5[0] || undefined // ? this.datetime5[0] || undefined
: undefined; // : undefined;
this.listExportQuery.end = this.datetime5 // this.listExportQuery.end = this.datetime5
? this.datetime5[1] || undefined // ? this.datetime5[1] || undefined
: undefined; // : undefined;
} else { // } else {
this.listExportQuery.begin = undefined; // this.listExportQuery.begin = undefined;
this.listExportQuery.end = undefined; // this.listExportQuery.end = undefined;
} // }
//CP5
this.listExportQuery.begin = this.startTime
? this.startTime
: undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined;
if (this.formCount.chassisNumber != "") { if (this.formCount.chassisNumber != "") {
this.listExportQuery.chassisNumber = this.formCount.chassisNumber; // this.listExportQuery.chassisNumber = this.formCount.chassisNumber; //
} }

125
vue/src/views/ux/billManage/UnSettledDiff/index.vue

@ -19,6 +19,14 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -59,9 +67,11 @@
border border
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@selection-change="handleSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -397,7 +407,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" /> <el-form-item label="CP5时间:" />
</el-col> </el-col>
@ -416,6 +426,39 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> -->
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="CP5时间:" />
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item prop="startTime">
<el-date-picker
v-model="formCount.startTime"
type="datetime"
size="small"
:picker-options="pickerOptions0"
@change="getdateValue"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -40px">
<el-form-item prop="endTime">
<el-date-picker
v-model="formCount.endTime"
type="datetime"
:picker-options="pickerOptions1"
size="small"
@change="getdateVal"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="23:59:59"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
@ -716,6 +759,58 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
valueChange(data) { valueChange(data) {
this.getmaterialGroupValue = ""; this.getmaterialGroupValue = "";
this.getmaterialGroupValue += data + ","; this.getmaterialGroupValue += data + ",";
@ -843,18 +938,22 @@ export default {
if (this.formCount.kennCode != "") { if (this.formCount.kennCode != "") {
this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN this.listExportQuery.kenncode = this.formCount.kennCode; //KEEN
} }
var getdate5 = JSON.stringify(this.datetime5); // var getdate5 = JSON.stringify(this.datetime5);
if (getdate5 != "[]") { // if (getdate5 != "[]") {
this.listExportQuery.begin = this.datetime5 // this.listExportQuery.begin = this.datetime5
? this.datetime5[0] || undefined // ? this.datetime5[0] || undefined
: undefined; // : undefined;
this.listExportQuery.end = this.datetime5 // this.listExportQuery.end = this.datetime5
? this.datetime5[1] || undefined // ? this.datetime5[1] || undefined
: undefined; // : undefined;
} else { // } else {
this.listExportQuery.begin = undefined; // this.listExportQuery.begin = undefined;
this.listExportQuery.end = undefined; // this.listExportQuery.end = undefined;
} // }
this.listExportQuery.begin = this.startTime
? this.startTime
: undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined;
if (this.formCount.chassisNumber != "") { if (this.formCount.chassisNumber != "") {
this.listExportQuery.chassisNumber = this.formCount.chassisNumber; // this.listExportQuery.chassisNumber = this.formCount.chassisNumber; //
} }

272
vue/src/views/ux/billManage/kanBanWithCode/index.vue

@ -5,6 +5,12 @@
<!-- 搜索 --> <!-- 搜索 -->
<div style="float: left"> <div style="float: left">
<flexbox class="content-header"> <flexbox class="content-header">
<JobSelectVerson
:options="JobVersionList"
style="width: 150px; margin-left: -10px"
class="search-container"
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button <el-button
class="filter-item" class="filter-item"
size="mini" size="mini"
@ -13,6 +19,22 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
<el-button
class="filter-item"
type="success"
icon="el-icon-check"
size="mini"
@click="handleCreateBills()"
>生成出库单(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -54,8 +76,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -372,9 +396,12 @@
<el-select <el-select
v-model="formCount.materialGroupValue" v-model="formCount.materialGroupValue"
size="medium" size="medium"
collapse-tags
multiple
filterable filterable
clearable clearable
style="width: 188px; margin-right: 15px" @change="valueChange"
style="width: 350px; margin-right: 15px"
placeholder="请选择" placeholder="请选择"
> >
<el-option <el-option
@ -387,17 +414,88 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="日期查询:" />
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item prop="startTime">
<el-date-picker
v-model="formCount.startTime"
type="datetime"
size="small"
:picker-options="pickerOptions0"
@change="getdateValue"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="00:00:00"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col :md="10" :xs="24" style="margin-left: -40px">
<el-form-item prop="endTime">
<el-date-picker
v-model="formCount.endTime"
type="datetime"
:picker-options="pickerOptions1"
size="small"
@change="getdateVal"
value-format="yyyy-MM-dd HH:mm:ss"
default-time="23:59:59"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="看板号" /> <el-form-item label="看板号" />
</el-col> </el-col>
<el-col :md="10" :xs="24" style="margin-left: -80px"> <el-col :md="10" :xs="24" style="margin-left: -80px">
<el-form-item> <el-form-item>
<el-input v-model="formCount.kanBan" style="width: 300px" /> <el-input
type="textarea"
style="width: 450px"
v-model="formCount.kanBan"
:rows="5"
placeholder="多个看板号,请以回车换行形式添加!"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :md="4" :xs="24">
<el-form-item label="客户零件号" />
</el-col>
<el-col :md="20" :xs="24" style="margin-left: -80px">
<el-form-item prop="materialCode">
<el-input
type="textarea"
v-model="formCount.materialCode"
:rows="5"
style="width: 450px"
placeholder="多个客户零件号,请以回车换行形式添加!"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :md="4" :xs="24">
<el-form-item label="厂内零件号" />
</el-col>
<el-col :md="20" :xs="24" style="margin-left: -80px">
<el-form-item prop="sapMaterialCode">
<el-input
v-model="formCount.sapMaterialCode"
:rows="5"
style="width: 450px"
type="textarea"
placeholder="多个厂内零件号,请以回车换行形式添加!"
/>
</el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<el-col :md="4" :xs="24"> <el-col :md="4" :xs="24">
<el-form-item label="客户零件号" /> <el-form-item label="客户零件号" />
</el-col> </el-col>
@ -414,7 +512,7 @@
<el-input v-model="formCount.sapMaterialCode" /> <el-input v-model="formCount.sapMaterialCode" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row> -->
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- <el-button type="text" @click="dialogFormVisible = false" <!-- <el-button type="text" @click="dialogFormVisible = false"
@ -435,10 +533,11 @@ import permission from "@/directive/permission/index.js";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import moment from "moment"; import moment from "moment";
import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
export default { export default {
name: "KanBanWithCode", name: "KanBanWithCode",
components: { Pagination, CRMTableHead }, components: { Pagination, CRMTableHead, JobSelectVerson },
directives: { permission }, directives: { permission },
data() { data() {
@ -494,6 +593,8 @@ export default {
datetime5: [], datetime5: [],
datetime7: [], datetime7: [],
checkedCities: [0], checkedCities: [0],
JobVersionList: [],
getmaterialGroupValue: "",
selectValue: "", selectValue: "",
selectNameValue: "", selectNameValue: "",
radio: "0", //0 1 radio: "0", //0 1
@ -526,6 +627,8 @@ export default {
], ],
customerInfos: "", customerInfos: "",
searchContent: "", // searchContent: "", //
JobversionValue: "",
JobversionValueVerson: "",
form: {}, form: {},
formCount: { formCount: {
name: "未结算对比", name: "未结算对比",
@ -605,6 +708,7 @@ export default {
this.getAllVersionList(); this.getAllVersionList();
this.getMaterialGroup(); this.getMaterialGroup();
this.getList(); this.getList();
this.getJobVersionInfo();
// this.getCurrentMonthFirst(); // this.getCurrentMonthFirst();
// this.getCurrentMonthLast(); // this.getCurrentMonthLast();
}, },
@ -616,7 +720,11 @@ export default {
/* 主表头 */ /* 主表头 */
getDefaultField() { getDefaultField() {
var tempsTabs = []; var tempsTabs = [];
tempsTabs.push({
label: "版本号",
prop: "type",
width: 85,
});
tempsTabs.push({ tempsTabs.push({
label: "单据流水号", label: "单据流水号",
prop: "taskId", prop: "taskId",
@ -637,6 +745,11 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({ // tempsTabs.push({
// label: "", // label: "",
// prop: "actionName", // prop: "actionName",
@ -651,6 +764,146 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
//
handleCreateBills(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/wms/WmsJitOutPut", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
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) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); this.getbalanceIndexData();
@ -710,7 +963,7 @@ export default {
response.items.forEach((element) => { response.items.forEach((element) => {
let options = {}; let options = {};
options.value = element.description; options.value = element.description;
options.label = element.description; options.label = element.description + "/" + element.value;
this.materialGroupList.push(options); this.materialGroupList.push(options);
}); });
}) })
@ -742,9 +995,12 @@ export default {
this.formCount.sapMaterialCode; // this.formCount.sapMaterialCode; //
} }
if (this.formCount.materialGroupValue != "") { if (this.formCount.materialGroupValue != "") {
this.listExportQuery.estimateTypeDesc = this.listExportQuery.materialGroup = this.getmaterialGroupValue; //
this.formCount.materialGroupValue; //
} }
this.listExportQuery.begin = this.startTime
? this.startTime
: undefined;
this.listExportQuery.end = this.endTime ? this.endTime : undefined;
console.log( console.log(
"大众看板结算与交货核对明细表-导出条件:" + "大众看板结算与交货核对明细表-导出条件:" +
JSON.stringify(this.listExportQuery) JSON.stringify(this.listExportQuery)

190
vue/src/views/ux/billManage/sparePart/index.vue

@ -5,6 +5,12 @@
<!-- 搜索 --> <!-- 搜索 -->
<div style="float: left"> <div style="float: left">
<flexbox class="content-header"> <flexbox class="content-header">
<JobSelectVerson
:options="JobVersionList"
style="width: 150px; margin-left: -10px"
class="search-container"
@value-change="JobVersionValue"
></JobSelectVerson>
<el-button <el-button
class="filter-item" class="filter-item"
size="mini" size="mini"
@ -13,6 +19,22 @@
@click="handleCreate" @click="handleCreate"
>统计 >统计
</el-button> </el-button>
<el-button
class="filter-item"
type="danger"
icon="el-icon-delete"
size="mini"
@click="handleDelete()"
>删除(支持批量)</el-button
>
<el-button
class="filter-item"
type="success"
icon="el-icon-check"
size="mini"
@click="handleCreateBills()"
>生成出库单(支持批量)</el-button
>
</flexbox> </flexbox>
</div> </div>
<!-- 刷新 --> <!-- 刷新 -->
@ -54,8 +76,10 @@
highlight-current-row highlight-current-row
style="width: 100%" style="width: 100%"
@row-click="handleRowClick" @row-click="handleRowClick"
@selection-change="handleSelectionChange"
@filter-change="filterChange" @filter-change="filterChange"
> >
<el-table-column type="selection" width="44px"></el-table-column>
<el-table-column <el-table-column
v-for="(item, index) in getDefaultField" v-for="(item, index) in getDefaultField"
:key="index" :key="index"
@ -499,16 +523,11 @@ import permission from "@/directive/permission/index.js";
import { downloadFile } from "@/utils/crmindex.js"; import { downloadFile } from "@/utils/crmindex.js";
import CRMTableHead from "../../components/CRMTableHead"; import CRMTableHead from "../../components/CRMTableHead";
import moment from "moment"; import moment from "moment";
const cityOptions = [ import JobSelectVerson from "@/components/CreateCom/Job-Select.vue";
{ id: 0, name: "未结" },
{ id: 1, name: "部分结算" },
{ id: 2, name: "已结" },
/* { id: 3, name: "预批量" }, */
];
export default { export default {
name: "SparePartReport", name: "SparePartReport",
components: { Pagination, CRMTableHead }, components: { Pagination, CRMTableHead, JobSelectVerson },
directives: { permission }, directives: { permission },
data() { data() {
@ -562,9 +581,9 @@ export default {
}, },
}, },
datetime5: [], datetime5: [],
JobVersionList: [],
datetime7: [], datetime7: [],
checkedCities: [0], checkedCities: [0],
cities: cityOptions,
selectValue: "", selectValue: "",
selectNameValue: "", selectNameValue: "",
radio: "0", //0 1 radio: "0", //0 1
@ -673,6 +692,7 @@ export default {
this.getAllVersionList(); this.getAllVersionList();
this.getMaterialGroup(); this.getMaterialGroup();
this.getList(); this.getList();
this.getJobVersionInfo();
// this.getCurrentMonthFirst(); // this.getCurrentMonthFirst();
// this.getCurrentMonthLast(); // this.getCurrentMonthLast();
}, },
@ -684,7 +704,11 @@ export default {
/* 主表头 */ /* 主表头 */
getDefaultField() { getDefaultField() {
var tempsTabs = []; var tempsTabs = [];
tempsTabs.push({
label: "版本号",
prop: "type",
width: 85,
});
tempsTabs.push({ tempsTabs.push({
label: "单据流水号", label: "单据流水号",
prop: "taskId", prop: "taskId",
@ -705,6 +729,11 @@ export default {
prop: "createdAt", prop: "createdAt",
width: 150, width: 150,
}); });
tempsTabs.push({
label: "说明",
prop: "remark",
width: 220,
});
// tempsTabs.push({ // tempsTabs.push({
// label: "", // label: "",
// prop: "actionName", // prop: "actionName",
@ -719,6 +748,146 @@ export default {
}, },
}, },
methods: { methods: {
handleSelectionChange(val) {
this.multipleSelection = val;
},
//
handleDelete(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否删除" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/Job/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "删除成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
//
handleCreateBills(row) {
if (this.multipleSelection.length == 0) {
this.$message({
message: "至少选择一行!",
type: "warning",
});
return;
}
var params = [];
let myalert = ""; //使
if (row) {
//
params.push(row.id);
myalert = row.name;
} else {
//
this.multipleSelection.forEach((element) => {
let id = element.id;
params.push(id);
});
myalert = "选中项";
}
this.$confirm("是否确认出库" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios
.posts("/api/settleaccount/wms/WmsJitOutPut", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "生成成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
},
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) { getdateValue(val) {
this.startTime = val; this.startTime = val;
this.getbalanceIndexData(); this.getbalanceIndexData();
@ -832,8 +1001,7 @@ export default {
this.formCount.materialGroupValue; // this.formCount.materialGroupValue; //
} }
console.log( console.log(
"大众备件结算核对-导出条件:" + "大众备件结算核对-导出条件:" + JSON.stringify(this.listExportQuery)
JSON.stringify(this.listExportQuery)
); );
this.$axios this.$axios
.gets( .gets(

Loading…
Cancel
Save