|
@ -9,36 +9,11 @@ |
|
|
v-show="showSearch" |
|
|
v-show="showSearch" |
|
|
:inline="true" |
|
|
:inline="true" |
|
|
> |
|
|
> |
|
|
<el-form-item> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item prop="billNum" label="装箱单号"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="listQuery.billNum" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
style="width: 140px" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<el-form-item prop="partType" label="零件类型"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="listQuery.partType" |
|
|
|
|
|
placeholder="" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="small" |
|
|
|
|
|
style="width: 140px" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="大众顺序号"> |
|
|
<el-form-item label="大众顺序号"> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="HostSN"> |
|
|
<el-form-item prop="beginHostSN"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="listQuery.HostSN" |
|
|
v-model="listQuery.beginHostSN" |
|
|
placeholder="" |
|
|
placeholder="" |
|
|
clearable |
|
|
clearable |
|
|
size="small" |
|
|
size="small" |
|
@ -47,7 +22,7 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<!-- <el-col class="line" :span="2">-</el-col> |
|
|
<el-col class="line" :span="2" style="width: 12px; text-align: center">-</el-col> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="endHostSN"> |
|
|
<el-form-item prop="endHostSN"> |
|
|
<el-input |
|
|
<el-input |
|
@ -60,23 +35,22 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
--> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<!-- <el-form-item label="底盘号码"> |
|
|
<el-form-item label="底盘号码"> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="Vin"> |
|
|
<el-form-item prop="beginVin"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="listQuery.Vin" |
|
|
v-model="listQuery.beginVin" |
|
|
placeholder="" |
|
|
placeholder="" |
|
|
clearable |
|
|
clearable |
|
|
size="small" |
|
|
size="small" |
|
|
style="width: 140px" |
|
|
style="width: 140px" |
|
|
@keyup.enter.native="handleQuery" |
|
|
@keyup.enter.native="handleQuery" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> --> |
|
|
</el-form-item> |
|
|
<!-- </el-col> --> |
|
|
</el-col> |
|
|
<!-- <el-col class="line" :span="2">-</el-col> |
|
|
<el-col class="line" :span="2" style="width: 12px; text-align: center">-</el-col> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="endVin"> |
|
|
<el-form-item prop="endVin"> |
|
|
<el-input |
|
|
<el-input |
|
@ -89,20 +63,19 @@ |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item> --> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="打印日期"> |
|
|
<el-form-item label="上线日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="PrintTimeValue" |
|
|
v-model="listQuery.onlineTimeValue" |
|
|
size="small" |
|
|
size="small" |
|
|
style="width: 380px" |
|
|
style="width: 380px" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
type="datetimerange" |
|
|
type="datetimerange" |
|
|
|
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
range-separator="-" |
|
|
range-separator="-" |
|
|
start-placeholder="开始日期" |
|
|
start-placeholder="开始日期" |
|
|
end-placeholder="结束日期" |
|
|
end-placeholder="结束日期" |
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
|
|
|
></el-date-picker> |
|
|
></el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
@ -125,9 +98,10 @@ |
|
|
size="mini" |
|
|
size="mini" |
|
|
type="success" |
|
|
type="success" |
|
|
icon="el-icon-s-shop" |
|
|
icon="el-icon-s-shop" |
|
|
@click="handleUpdate()" |
|
|
@click="handleReplenishPrint()" |
|
|
>补打</el-button |
|
|
>补打(支持多选)</el-button |
|
|
> |
|
|
> |
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</flexbox> |
|
|
</flexbox> |
|
@ -152,47 +126,7 @@ |
|
|
:expand-row-keys="expands" |
|
|
:expand-row-keys="expands" |
|
|
@expand-change="exChange" |
|
|
@expand-change="exChange" |
|
|
> |
|
|
> |
|
|
<el-table-column type="selection" width="44px"></el-table-column> |
|
|
<el-table-column type="selection" width="44px" sortable="false"></el-table-column> |
|
|
<el-table-column type="expand" prop="details" label="详表"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-table :data="scope.row.details"> |
|
|
|
|
|
<el-table-column prop="knr" label="KNR订单号"></el-table-column> |
|
|
|
|
|
<el-table-column prop="vin" label="底盘号"></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="hostSN" |
|
|
|
|
|
label="大众顺序号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="vehicleModel_DoorPlankCode" |
|
|
|
|
|
label="车型门板代码" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="topBoxPositionNum" |
|
|
|
|
|
label="上箱位号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="topSAPMaterialNum" |
|
|
|
|
|
label="上箱位 SAP物料号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="topMaterialDescription" |
|
|
|
|
|
label="上箱位 物料描述" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="belowBoxPositionNum" |
|
|
|
|
|
label="下箱位号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="belowSAPMaterialNum" |
|
|
|
|
|
label="下箱位 SAP物料号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="belowMaterialDescription " |
|
|
|
|
|
label="下箱位 物料描述" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
</template> |
|
|
|
|
|
</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" |
|
@ -200,7 +134,7 @@ |
|
|
:label="item.label" |
|
|
:label="item.label" |
|
|
:min-width="item.width" |
|
|
:min-width="item.width" |
|
|
:formatter="fieldFormatter" |
|
|
:formatter="fieldFormatter" |
|
|
sortable="custom" |
|
|
|
|
|
show-overflow-tooltip |
|
|
show-overflow-tooltip |
|
|
:gutter="0" |
|
|
:gutter="0" |
|
|
> |
|
|
> |
|
@ -237,7 +171,7 @@ import { downloadFile } from "@/utils/crmindex.js"; |
|
|
import qs from "qs"; |
|
|
import qs from "qs"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "M100Online-MB", |
|
|
name: "M100Online-budaMB", |
|
|
components: { Pagination, CRMTableHead, importExcel, Detail }, |
|
|
components: { Pagination, CRMTableHead, importExcel, Detail }, |
|
|
directives: { permission }, |
|
|
directives: { permission }, |
|
|
filters: { |
|
|
filters: { |
|
@ -254,19 +188,13 @@ export default { |
|
|
customerInfosMB: { |
|
|
customerInfosMB: { |
|
|
type: Array, |
|
|
type: Array, |
|
|
default: () => { |
|
|
default: () => { |
|
|
|
|
|
|
|
|
return []; |
|
|
return []; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
const validVersion = (rule, value, callback) => { |
|
|
|
|
|
let numberReg = /^\d{6}$/; |
|
|
|
|
|
if (!numberReg.test(value)) { |
|
|
|
|
|
callback(new Error("只能为6位数字!")); |
|
|
|
|
|
} else { |
|
|
|
|
|
callback(); |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
return { |
|
|
return { |
|
|
crmType: "M100Online-MB", |
|
|
crmType: "M100Online-MB", |
|
|
getRowKeys: (row) => { |
|
|
getRowKeys: (row) => { |
|
@ -301,12 +229,12 @@ export default { |
|
|
listQuery: { |
|
|
listQuery: { |
|
|
SkipCount: 0, |
|
|
SkipCount: 0, |
|
|
MaxResultCount: 15, |
|
|
MaxResultCount: 15, |
|
|
billNum: undefined, |
|
|
beginVin: undefined, |
|
|
partType: undefined, |
|
|
endVin: undefined, |
|
|
Vin: undefined, |
|
|
beginHostSN: undefined, |
|
|
HostSN: undefined, |
|
|
endHostSN: undefined, |
|
|
beginPrintDate: undefined, |
|
|
OnlineTimeBegin: undefined, |
|
|
endPrintDate: undefined, |
|
|
OnlineTimeEnd: undefined, |
|
|
}, |
|
|
}, |
|
|
listPLQuery: { |
|
|
listPLQuery: { |
|
|
BillType: 2, |
|
|
BillType: 2, |
|
@ -318,14 +246,18 @@ export default { |
|
|
hostCheckQuery: { |
|
|
hostCheckQuery: { |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
productLine: undefined, |
|
|
productLine: undefined, |
|
|
Vin: undefined, |
|
|
beginHostSN: undefined, |
|
|
HostSN: undefined, |
|
|
endHostSN: undefined, |
|
|
|
|
|
beginVin: undefined, |
|
|
|
|
|
endVin: undefined, |
|
|
}, |
|
|
}, |
|
|
hostPrintQuery: { |
|
|
hostPrintQuery: { |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
printType: undefined, //0:打印;1:重打;2:补打; |
|
|
productLine: undefined, |
|
|
productLine: undefined, |
|
|
Vin: undefined, |
|
|
beginHostSN: undefined, |
|
|
HostSN: undefined, |
|
|
endHostSN: undefined, |
|
|
|
|
|
beginVin: undefined, |
|
|
|
|
|
endVin: undefined, |
|
|
}, |
|
|
}, |
|
|
fileQuery: { |
|
|
fileQuery: { |
|
|
dataname: undefined, |
|
|
dataname: undefined, |
|
@ -366,12 +298,13 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
customerInfosMB: { |
|
|
customerInfosMB: { |
|
|
handler(newVal) { |
|
|
handler(newVal) { |
|
|
|
|
|
|
|
|
console.log("门板-接收的父组件的值:" + JSON.stringify(newVal)); |
|
|
console.log("门板-接收的父组件的值:" + JSON.stringify(newVal)); |
|
|
if (newVal == "" || newVal == "undefined") { |
|
|
if (newVal == "" || newVal == "undefined") { |
|
|
//TODO |
|
|
//TODO |
|
|
} else { |
|
|
} else { |
|
|
newVal.forEach((element) => { |
|
|
newVal.forEach((element) => { |
|
|
this.customerInfo.printType = element.PrintType; |
|
|
this.customerInfo.printType = 2; //2时补打 |
|
|
this.customerInfo.productLine = element.ProductLine; |
|
|
this.customerInfo.productLine = element.ProductLine; |
|
|
}); |
|
|
}); |
|
|
if (this.customerInfo.productLine != "") { |
|
|
if (this.customerInfo.productLine != "") { |
|
@ -385,58 +318,79 @@ export default { |
|
|
computed: { |
|
|
computed: { |
|
|
getDefaultField() { |
|
|
getDefaultField() { |
|
|
var tempsTabs = []; |
|
|
var tempsTabs = []; |
|
|
tempsTabs.push({ label: "装箱单号", prop: "billNum", width: 140 }); |
|
|
tempsTabs.push({ label: "大众顺序号", prop: "hostSN", width: 80 }); |
|
|
tempsTabs.push({ label: "单据顺号", prop: "billSerialNum", width: 120 }); |
|
|
|
|
|
tempsTabs.push({ label: "起始顺序号", prop: "beginHostSN", width: 120 }); |
|
|
|
|
|
tempsTabs.push({ label: "结束顺序号", prop: "endHostSN", width: 120 }); |
|
|
|
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "左或右", |
|
|
label: "底盘号", |
|
|
prop: "billLocation", |
|
|
prop: "vin", |
|
|
width: 150, |
|
|
width: 160, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "供应商厂家代码", |
|
|
label: "KNR", |
|
|
prop: "providerCode", |
|
|
prop: "knr", |
|
|
width: 150, |
|
|
width: 100, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "零件类型", |
|
|
label: "M100上线时间", |
|
|
prop: "partType", |
|
|
prop: "onlineTime", |
|
|
width: 180, |
|
|
width: 150, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "器具容量", |
|
|
label: "M100接收时间", |
|
|
prop: "capacity", |
|
|
prop: "receiveTime", |
|
|
width: 150, |
|
|
width: 150, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "打印日期", |
|
|
label: "车型代码", |
|
|
prop: "printDate", |
|
|
prop: "vehicleModelCode", |
|
|
width: 180, |
|
|
width: 100, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "打印类型", |
|
|
label: "版本", |
|
|
prop: "printType", |
|
|
prop: "version", |
|
|
width: 120, |
|
|
width: 100, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "生产线", |
|
|
label: "产线", |
|
|
prop: "productLine", |
|
|
prop: "productLine", |
|
|
width: 120, |
|
|
width: 80, |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
tempsTabs.push({ |
|
|
|
|
|
label: "状态", |
|
|
|
|
|
prop: "billStatus", |
|
|
|
|
|
width: 80, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "起始底盘号", |
|
|
label: "备注", |
|
|
prop: "beginVin", |
|
|
prop: "remark", |
|
|
width: 160, |
|
|
width: 80, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
tempsTabs.push({ |
|
|
tempsTabs.push({ |
|
|
label: "结束底盘号", |
|
|
label: "R100上线时间", |
|
|
prop: "endVin", |
|
|
prop: "r100OnlineTime", |
|
|
width: 160, |
|
|
width: 150, |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
tempsTabs.push({ |
|
|
|
|
|
label: "R100接收时间", |
|
|
|
|
|
prop: "r100ReceiveTime", |
|
|
|
|
|
width: 150, |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
return tempsTabs; |
|
|
return tempsTabs; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...mapGetters(["userInfo"]), //获取当前用户信息 |
|
|
...mapGetters(["userInfo"]), //获取当前用户信息 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
@ -474,10 +428,12 @@ export default { |
|
|
window.URL.revokeObjectURL(ifr.src); // 释放URL 对象 |
|
|
window.URL.revokeObjectURL(ifr.src); // 释放URL 对象 |
|
|
this.dialogFormVisible = false; |
|
|
this.dialogFormVisible = false; |
|
|
}, |
|
|
}, |
|
|
handleRowClick(row, column, event) { |
|
|
|
|
|
this.$refs.multipleTable.clearSelection(); |
|
|
/** |
|
|
this.$refs.multipleTable.toggleRowSelection(row); |
|
|
* DataGrid只展开当前行 |
|
|
}, |
|
|
* @param {Object} row |
|
|
|
|
|
* @param {Object} rowList |
|
|
|
|
|
*/ |
|
|
exChange(row, rowList) { |
|
|
exChange(row, rowList) { |
|
|
//this.listLoading = true; |
|
|
//this.listLoading = true; |
|
|
|
|
|
|
|
@ -491,65 +447,43 @@ export default { |
|
|
that.expands = []; |
|
|
that.expands = []; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//门板 |
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 取列表数据 |
|
|
|
|
|
* @param {Object} data |
|
|
|
|
|
*/ |
|
|
getList(data) { |
|
|
getList(data) { |
|
|
|
|
|
debugger |
|
|
this.listLoading = true; |
|
|
this.listLoading = true; |
|
|
|
|
|
let inputParam = {}; |
|
|
if (data != undefined) { |
|
|
if (data != undefined) { |
|
|
this.listQuery.SkipCount = (this.page - 1) * data.limit; |
|
|
inputParam.SkipCount = (this.page - 1) * data.limit; |
|
|
} else { |
|
|
} else { |
|
|
this.listQuery.SkipCount = (this.page - 1) * 15; |
|
|
inputParam.SkipCount = (this.page - 1) * 15; |
|
|
} |
|
|
|
|
|
if (this.listQuery.billNum != "") { |
|
|
|
|
|
this.listQuery.billNum = this.listQuery.billNum; |
|
|
|
|
|
} |
|
|
|
|
|
if (this.listQuery.Vin != "") { |
|
|
|
|
|
this.listQuery.Vin = this.listQuery.Vin; |
|
|
|
|
|
} |
|
|
} |
|
|
if (this.listQuery.HostSN != "") { |
|
|
inputParam.vinBegin = this.listQuery.beginVin; |
|
|
this.listQuery.HostSN = this.listQuery.HostSN; |
|
|
inputParam.vinEnd = this.listQuery.endVin; |
|
|
} |
|
|
inputParam.hostSNBegin = this.listQuery.beginHostSN; |
|
|
this.listQuery.partType = this.listQuery.partType; |
|
|
inputParam.hostSNEnd = this.listQuery.endHostSN; |
|
|
var getdate5 = JSON.stringify(this.PrintTimeValue); |
|
|
|
|
|
if (getdate5 != "[]") { |
|
|
if (this.listQuery.onlineTimeValue !== undefined) { |
|
|
this.listQuery.beginPrintDate = this.PrintTimeValue |
|
|
inputParam.onlineTimeBegin = this.listQuery.onlineTimeValue[0]; |
|
|
? this.PrintTimeValue[0] || undefined |
|
|
inputParam.onlineTimeEnd = this.listQuery.onlineTimeValue[1]; |
|
|
: undefined; |
|
|
|
|
|
this.listQuery.endPrintDate = this.PrintTimeValue |
|
|
|
|
|
? this.PrintTimeValue[1] || undefined |
|
|
|
|
|
: undefined; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.listQuery.beginPrintDate = undefined; |
|
|
|
|
|
this.listQuery.endPrintDate = undefined; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.customerInfo.productLine != "") { |
|
|
if (this.customerInfo.productLine != "") { |
|
|
this.listQuery.ProductLine = this.customerInfo.productLine; |
|
|
inputParam.productLine = this.customerInfo.productLine; |
|
|
} |
|
|
} |
|
|
console.log(JSON.stringify(this.listQuery)); |
|
|
|
|
|
|
|
|
console.log('replenish-print-list方法输入参数:' + JSON.stringify(this.listQuery)); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts( |
|
|
.gets( |
|
|
"/api/newjit/MenBanPackingList/MenBanPackingList-List", |
|
|
"/api/newjit/bill-m100/replenish-print-list", |
|
|
this.listQuery |
|
|
inputParam |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
|
|
|
|
|
|
response.items.forEach((item)=>{ |
|
|
|
|
|
if(item.printType == 0) |
|
|
|
|
|
{ |
|
|
|
|
|
item.printType = "正常打印"; |
|
|
|
|
|
} |
|
|
|
|
|
else if(item.printType == 1) |
|
|
|
|
|
{ |
|
|
|
|
|
item.printType = "重打"; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
item.printType = "补打"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
this.list = response.items; |
|
|
this.list = response.items; |
|
|
this.totalCount = response.totalCount; |
|
|
this.totalCount = response.totalCount; |
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
//大数据量加载时 |
|
|
//大数据量加载时 |
|
|
this.listLoading = false; |
|
|
this.listLoading = false; |
|
@ -559,35 +493,36 @@ export default { |
|
|
this.listLoading = false; |
|
|
this.listLoading = false; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
//重新打印-门板 |
|
|
//补打-门板 |
|
|
handleUpdate(row) { |
|
|
handleReplenishPrint() { |
|
|
var MBVin1 = []; |
|
|
debugger |
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
this.isEdit = true; |
|
|
if (row) { |
|
|
if (this.multipleSelection == null || this.multipleSelection.length == 0) { |
|
|
//单行 |
|
|
this.$message({ |
|
|
MBVin1.push(row.id); |
|
|
message: "请选择要补打的单据!", |
|
|
myalert = row.name; |
|
|
type: "warning", |
|
|
} else { |
|
|
|
|
|
//多选 |
|
|
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
|
|
let id = element.id; |
|
|
|
|
|
MBVin1.push(id); |
|
|
|
|
|
}); |
|
|
}); |
|
|
myalert = "选中项"; |
|
|
return; |
|
|
} |
|
|
} else { |
|
|
// let MBVin1 = this.multipleSelection[0].id; |
|
|
//补打方法 |
|
|
let MBId = MBVin1; |
|
|
let beginVin1 = this.multipleSelection[0].vin; |
|
|
|
|
|
let endVin1 = this.multipleSelection[this.multipleSelection.length -1].vin; |
|
|
var params = { |
|
|
var params = { |
|
|
printType: 1, |
|
|
printType: 2, |
|
|
productLine: this.customerInfo.productLine, |
|
|
productLine: this.customerInfo.productLine, |
|
|
reportIdList: MBId, |
|
|
beginVin: beginVin1, |
|
|
|
|
|
endVin: endVin1, |
|
|
|
|
|
m100IdList: [] |
|
|
}; |
|
|
}; |
|
|
console.log("门板打印-主界面传过来的值:" + JSON.stringify(params)); |
|
|
this.multipleSelection.forEach(itm => { |
|
|
|
|
|
params.m100IdList.push(itm.id); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
console.log("门板补打输入参数:" + JSON.stringify(params)); |
|
|
this.$axios |
|
|
this.$axios |
|
|
.posts("/api/newjit/bill-m100/print-menban-packing-list", params) |
|
|
.posts("/api/newjit/bill-m100/print-menban-packing-list", params) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
//alert(response.status); |
|
|
|
|
|
const index = this.list.indexOf(row); |
|
|
|
|
|
if (response.status === false) { |
|
|
if (response.status === false) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: response.message, |
|
|
message: response.message, |
|
@ -607,148 +542,28 @@ export default { |
|
|
) |
|
|
) |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
this.printpdf(response); //打印我文件流 |
|
|
this.printpdf(response); //打印我文件流 |
|
|
|
|
|
this.getList(); //刷新列表 |
|
|
}); |
|
|
}); |
|
|
this.getList(); |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
.catch(() => {}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.isEdit = true; |
|
|
|
|
|
// if (this.multipleSelection.length != 1) { |
|
|
|
|
|
// this.$message({ |
|
|
|
|
|
// message: "重新打印必须选择单行,不能多选!", |
|
|
|
|
|
// type: "warning", |
|
|
|
|
|
// }); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } else { |
|
|
|
|
|
// //this.fetchData(this.multipleSelection[0].id); |
|
|
|
|
|
// //重新打印方法 |
|
|
|
|
|
// let MBVin1 = this.multipleSelection[0].id; |
|
|
|
|
|
// let MBId = [MBVin1]; |
|
|
|
|
|
// var params = { |
|
|
|
|
|
// printType: 1, |
|
|
|
|
|
// productLine: this.customerInfo.productLine, |
|
|
|
|
|
// reportIdList: MBId, |
|
|
|
|
|
// }; |
|
|
|
|
|
// console.log("门板打印-主界面传过来的值:" + JSON.stringify(params)); |
|
|
|
|
|
// this.$axios |
|
|
|
|
|
// .posts("/api/newjit/bill-m100/print-menban-packing-list", params) |
|
|
|
|
|
// .then((response) => { |
|
|
|
|
|
// //alert(response.status); |
|
|
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
|
|
// if (response.status === false) { |
|
|
|
|
|
// this.$message({ |
|
|
|
|
|
// message: response.message, |
|
|
|
|
|
// type: "error", |
|
|
|
|
|
// }); |
|
|
|
|
|
// return; |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
|
|
// console.log( |
|
|
|
|
|
// "门板-调用Handlers/Handler1.ashx?report=menban传的值:" + |
|
|
|
|
|
// JSON.stringify(this.fileQuery.dataname) |
|
|
|
|
|
// ); |
|
|
|
|
|
// this.$axios |
|
|
|
|
|
// .posts( |
|
|
|
|
|
// "/Handlers/Handler1.ashx?report=menban", |
|
|
|
|
|
// qs.stringify(this.fileQuery) |
|
|
|
|
|
// ) |
|
|
|
|
|
// .then((response) => { |
|
|
|
|
|
// this.printpdf(response); //打印我文件流 |
|
|
|
|
|
// }); |
|
|
|
|
|
// this.getList(); |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
// .catch(() => {}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
//作废操作,支持批量操作-门板 |
|
|
|
|
|
handleDelete(row) { |
|
|
|
|
|
//批量删除 |
|
|
|
|
|
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/newjit/MenBanPackingList/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: "已取消操作", |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
fetchData(id) { |
|
|
|
|
|
//循环动态 |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.gets("/api/newjit/assembly-cfg-erp/" + id) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
this.form = response.item; |
|
|
|
|
|
//this.details = response.item.details; |
|
|
|
|
|
//console.log(this.details); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 重置按钮操作 */ |
|
|
/** 重置按钮操作 */ |
|
|
resetQuery(refName) { |
|
|
resetQuery(refName) { |
|
|
this.$refs[refName].resetFields(); |
|
|
this.$refs[refName].resetFields(); |
|
|
this.PrintTimeValue = []; |
|
|
this.listQuery.OnlineTimeValue = []; |
|
|
this.handleQuery(); |
|
|
this.handleQuery(); |
|
|
this.getProductLine(); |
|
|
|
|
|
}, |
|
|
}, |
|
|
/** 搜索按钮操作 */ |
|
|
/** 搜索按钮操作 */ |
|
|
handleQuery() { |
|
|
handleQuery() { |
|
|
this.listQuery.SkipCount = 1; |
|
|
this.listQuery.SkipCount = 1; |
|
|
//this.getList(); |
|
|
//this.getList(); |
|
|
}, |
|
|
}, |
|
|
selectValue(params) { |
|
|
|
|
|
//版本下拉选择 |
|
|
|
|
|
this.versionValue = params.value; |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
selectOptionsChange(item) { |
|
|
/** DataGrid格式化显示字段 */ |
|
|
this.getList(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** 刷新列表 */ |
|
|
|
|
|
handleHandle(data) { |
|
|
|
|
|
if (data.type !== "edit") { |
|
|
|
|
|
this.getList(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
/** 格式化字段 */ |
|
|
|
|
|
fieldFormatter(row, column) { |
|
|
fieldFormatter(row, column) { |
|
|
if (column.property === "billStatus") { |
|
|
if (column.property === "billStatus") { |
|
|
return { 1: "未匹配", 2: "未打印", 3: "已打印" }[row[column.property]]; |
|
|
return { 1: "未匹配", 2: "未打印", 3: "已打印" }[row[column.property]]; |
|
@ -762,15 +577,19 @@ export default { |
|
|
} |
|
|
} |
|
|
return row[column.property] || "--"; |
|
|
return row[column.property] || "--"; |
|
|
}, |
|
|
}, |
|
|
roleFilter(type) { |
|
|
|
|
|
return projectTypeKeyValue[type]; |
|
|
/** |
|
|
}, |
|
|
* 搜索按钮单击事件 |
|
|
//门板 |
|
|
*/ |
|
|
handleFilter() { |
|
|
handleFilter() { |
|
|
this.page = 1; |
|
|
this.page = 1; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* DataGrid列排序事件(未使用) |
|
|
|
|
|
* @param {Object} data |
|
|
|
|
|
*/ |
|
|
sortChange(data) { |
|
|
sortChange(data) { |
|
|
const { prop, order } = data; |
|
|
const { prop, order } = data; |
|
|
if (!prop || !order) { |
|
|
if (!prop || !order) { |
|
@ -780,10 +599,17 @@ export default { |
|
|
this.listQuery.Sorting = prop + " " + order; |
|
|
this.listQuery.Sorting = prop + " " + order; |
|
|
this.handleFilter(); |
|
|
this.handleFilter(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* DataGrid多选触发事件 |
|
|
|
|
|
* @param {Object} val |
|
|
|
|
|
*/ |
|
|
handleSelectionChange(val) { |
|
|
handleSelectionChange(val) { |
|
|
this.multipleSelection = val; |
|
|
this.multipleSelection = val; |
|
|
}, |
|
|
}, |
|
|
/** 通过回调控制style */ |
|
|
/** |
|
|
|
|
|
* DataGrid通过回调控制style |
|
|
|
|
|
*/ |
|
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
|
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
|
|
if (column.property === "qty") { |
|
|
if (column.property === "qty") { |
|
|
return { textAlign: "right" }; |
|
|
return { textAlign: "right" }; |
|
@ -791,7 +617,7 @@ export default { |
|
|
return { textAlign: "left" }; |
|
|
return { textAlign: "left" }; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
/** 通过回调控制表头style */ |
|
|
/** DataGrid通过回调控制表头style */ |
|
|
headerRowStyle({ row, column, rowIndex, columnIndex }) { |
|
|
headerRowStyle({ row, column, rowIndex, columnIndex }) { |
|
|
if (column.property === "qty") { |
|
|
if (column.property === "qty") { |
|
|
return { textAlign: "right", background: "#FAFAFA" }; |
|
|
return { textAlign: "right", background: "#FAFAFA" }; |
|
@ -799,6 +625,13 @@ export default { |
|
|
return { textAlign: "left", background: "#FAFAFA" }; |
|
|
return { textAlign: "left", background: "#FAFAFA" }; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* DataGrid行单击事件 |
|
|
|
|
|
* @param {Object} row |
|
|
|
|
|
* @param {Object} column |
|
|
|
|
|
* @param {Object} event |
|
|
|
|
|
*/ |
|
|
handleRowClick(row, column, event) { |
|
|
handleRowClick(row, column, event) { |
|
|
//this.$refs.multipleTable.clearSelection(); |
|
|
//this.$refs.multipleTable.clearSelection(); |
|
|
this.$refs.multipleTable.toggleRowSelection(row); |
|
|
this.$refs.multipleTable.toggleRowSelection(row); |
|
|