|
|
@ -130,12 +130,7 @@ |
|
|
|
:columnList="columnList" |
|
|
|
:columnList="columnList" |
|
|
|
></edittablehead> |
|
|
|
></edittablehead> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
<el-dialog title="二维码" :visible.sync="dialogVisibleF" width="780px" v-model="dialogVisibleF"> |
|
|
|
title="二维码" |
|
|
|
|
|
|
|
:visible.sync="dialogVisibleF" |
|
|
|
|
|
|
|
width="780px" |
|
|
|
|
|
|
|
v-model="dialogVisibleF" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<div v-html="html"></div> |
|
|
|
<div v-html="html"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -145,7 +140,6 @@ |
|
|
|
<el-button @click="dialogVisibleF = false">取 消</el-button> |
|
|
|
<el-button @click="dialogVisibleF = false">取 消</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -192,7 +186,57 @@ export default { |
|
|
|
sortable: false, |
|
|
|
sortable: false, |
|
|
|
head: false, |
|
|
|
head: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'waybillNumber', |
|
|
|
|
|
|
|
label: '运单号', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '130', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: true, |
|
|
|
|
|
|
|
sortable: false, |
|
|
|
|
|
|
|
head: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'materialCode', |
|
|
|
|
|
|
|
label: '物料编码', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'trainNumber', |
|
|
|
|
|
|
|
label: '配送车次', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// prop: 'materialName', |
|
|
|
|
|
|
|
// label: '配送时间', |
|
|
|
|
|
|
|
// type: 2, |
|
|
|
|
|
|
|
// values: '', |
|
|
|
|
|
|
|
// width: '150', |
|
|
|
|
|
|
|
// checkarr: [], |
|
|
|
|
|
|
|
// fixed: false, |
|
|
|
|
|
|
|
// sortable: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// prop: 'materialName', |
|
|
|
|
|
|
|
// label: '签收时间', |
|
|
|
|
|
|
|
// type: 2, |
|
|
|
|
|
|
|
// values: '', |
|
|
|
|
|
|
|
// width: '150', |
|
|
|
|
|
|
|
// checkarr: [], |
|
|
|
|
|
|
|
// fixed: false, |
|
|
|
|
|
|
|
// sortable: true, |
|
|
|
|
|
|
|
// }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
prop: 'warehouse', |
|
|
|
prop: 'warehouse', |
|
|
|
label: '仓库', |
|
|
|
label: '仓库', |
|
|
@ -266,7 +310,6 @@ export default { |
|
|
|
head: false, |
|
|
|
head: false, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
prop: 'firsts', |
|
|
|
prop: 'firsts', |
|
|
|
label: '一级品', |
|
|
|
label: '一级品', |
|
|
@ -383,7 +426,6 @@ export default { |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
isshowSummary: true, |
|
|
|
isshowSummary: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
drawerShow: false, |
|
|
|
drawerShow: false, |
|
|
|
height: 0, |
|
|
|
height: 0, |
|
|
@ -508,12 +550,12 @@ export default { |
|
|
|
this.$message.warning('请选择包件'); |
|
|
|
this.$message.warning('请选择包件'); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
const data = this.selectionList.map((item)=>{ |
|
|
|
const data = this.selectionList.map(item => { |
|
|
|
return item.id; |
|
|
|
return item.id; |
|
|
|
}); |
|
|
|
}); |
|
|
|
let qr = { |
|
|
|
let qr = { |
|
|
|
ids:data.join(',') |
|
|
|
ids: data.join(','), |
|
|
|
} |
|
|
|
}; |
|
|
|
this.html = ''; |
|
|
|
this.html = ''; |
|
|
|
showOrderPackgeCode(qr).then(res => { |
|
|
|
showOrderPackgeCode(qr).then(res => { |
|
|
|
// this.orderPackageCode = res.data |
|
|
|
// this.orderPackageCode = res.data |
|
|
@ -521,8 +563,6 @@ export default { |
|
|
|
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.dialogVisibleF = true; |
|
|
|
this.dialogVisibleF = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
//查看二维码 |
|
|
|
//查看二维码 |
|
|
|
handleQRCode(scope) { |
|
|
|
handleQRCode(scope) { |
|
|
@ -541,7 +581,6 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.dialogVisibleF = true; |
|
|
|
this.dialogVisibleF = true; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
handleExportInfo() { |
|
|
|
handleExportInfo() { |
|
|
|
let row = {}; |
|
|
|
let row = {}; |
|
|
@ -584,7 +623,6 @@ export default { |
|
|
|
if (value === '') delete this.query.orderPackageGroundingStatus; |
|
|
|
if (value === '') delete this.query.orderPackageGroundingStatus; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (row.prop === 'orderPackageStatusName') { |
|
|
|
if (row.prop === 'orderPackageStatusName') { |
|
|
|
this.query.orderPackageStatus = value; |
|
|
|
this.query.orderPackageStatus = value; |
|
|
|
if (value === '') delete this.query.orderPackageStatus; |
|
|
|
if (value === '') delete this.query.orderPackageStatus; |
|
|
@ -751,16 +789,13 @@ export default { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
getpage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
getpage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|
console.log(res, '获取到的页面初始值'); |
|
|
|
console.log(res, '获取到的页面初始值'); |
|
|
|
res.data.data.records.forEach(item => { |
|
|
|
res.data.data.records.forEach(item => { |
|
|
|
if (item.warehouseEntryTimeEnd) { |
|
|
|
if (item.warehouseEntryTimeEnd) { |
|
|
|
item.warehouseEntryTimeEnd= this.formatDateTime(item.warehouseEntryTimeEnd) |
|
|
|
item.warehouseEntryTimeEnd = this.formatDateTime(item.warehouseEntryTimeEnd); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}) |
|
|
|
|
|
|
|
this.page.total = data.total; |
|
|
|
this.page.total = data.total; |
|
|
|
this.data = data.records.map(val => { |
|
|
|
this.data = data.records.map(val => { |
|
|
|
val.conditionsType = val.conditions === 1 ? '定制品' : '库存品'; |
|
|
|
val.conditionsType = val.conditions === 1 ? '定制品' : '库存品'; |
|
|
|