称重日期

szh_zidingyibiaoti
lilu 2 years ago
parent f52171c24e
commit 087f8a4cc4

@ -472,30 +472,30 @@ export default {
)
}
},
// {
// field: 'weighdate',
// key: 'weighdate',
// title: '',
// align: 'left',
// width: 120,
// edit: false,
// renderBodyCell: ({ row, column, rowIndex }, h) => {
// return (
// <a-date-picker on-change={(date, dateString) => {
// console.log('== ==', dateString)
// this.tableData[rowIndex].weighdate = dateString
// row['weighdate'] = dateString
// }} />
// )
// },
// renderHeaderCell: ({ column }, h) => {
// return (
// <span class="text-bold" style="text-align: center;">
// {this.rules.weightype.required ? <i style="color: #f00">*</i> : ''} {column.title}
// </span>
// )
// }
// },
{
field: 'weighdate',
key: 'weighdate',
title: '称重日期',
align: 'left',
width: 120,
edit: false,
renderBodyCell: ({ row, column, rowIndex }, h) => {
return (
<a-date-picker value={row['weighdate']} on-change={(date, dateString) => {
console.log('== 选择日期 ==', dateString)
this.tableData[rowIndex].weighdate = dateString
row['weighdate'] = dateString
}} />
)
},
renderHeaderCell: ({ column }, h) => {
return (
<span class="text-bold" style="text-align: center;">
{this.rules.weightype.required ? <i style="color: #f00">*</i> : ''} {column.title}
</span>
)
}
},
],
modelColumns: [
{
@ -1017,7 +1017,7 @@ export default {
watch: {
details: {
handler(nval, oval) {
console.log('=== 修改table内容 ===', nval.ctnInputs, this.pType, this.inTableLoad)
// console.log('=== table ===', nval.ctnInputs, this.pType, this.inTableLoad)
if (!this.inSave && !this.inTableLoad) {
this.$emit('changeDetail', {
detail: nval,
@ -1216,6 +1216,7 @@ export default {
this.tableData = arr
this.tableLoaded = true
this.totalCtnall = ''
console.log('== 箱信息 ==', this.tableData)
} else {
this.tableData = []
this.tableLoaded = true
@ -1262,6 +1263,7 @@ export default {
tareweight: '',
weightype: '累加',
weighkgs: '',
weighdate: '',
rowKey: this.tableData.length > 0 ? Number(this.tableData[this.tableData.length - 1].rowKey) + 1 : 0
}
this.tableData.push(data)
@ -1479,7 +1481,8 @@ export default {
cbm: item.CBM,
tareweight: item.TAREWEIGHT,
weightype: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].weightype,
weighkgs: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].weighkgs
weighkgs: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].weighkgs,
weighdate: item.WEIGHDATE
}
} else {
const _data = {
@ -1494,7 +1497,8 @@ export default {
cbm: item.CBM,
tareweight: item.TAREWEIGHT,
weightype: '',
weighkgs: ''
weighkgs: '',
weighdate: item.WEIGHDATE
}
addTable.push(_data)
}
@ -1634,7 +1638,8 @@ export default {
cbm: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].cbm,
tareweight: item.TAREWEIGHT,
weightype: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].weightype,
weighkgs: setWeighkgs
weighkgs: setWeighkgs,
weighdate: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].weighdate
}
} else {
const _data = {
@ -1649,7 +1654,8 @@ export default {
cbm: '',
tareweight: item.TAREWEIGHT,
weightype: '',
weighkgs: ''
weighkgs: '',
weighdate: ''
}
addTable.push(_data)
}

Loading…
Cancel
Save