称重日期

szh_zidingyibiaoti
lilu 2 years ago
parent f52171c24e
commit 087f8a4cc4

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

Loading…
Cancel
Save