diff --git a/src/views/main/BookingLedger/detail/modules/rightContent.vue b/src/views/main/BookingLedger/detail/modules/rightContent.vue index 80b28ec..d562726 100644 --- a/src/views/main/BookingLedger/detail/modules/rightContent.vue +++ b/src/views/main/BookingLedger/detail/modules/rightContent.vue @@ -77,9 +77,10 @@ - - - + + + + @@ -331,11 +332,19 @@ export default { StatusVisibleForm: this.$form.createForm(this), labelCol: { xs: { span: 24 }, - sm: { span: 7 } + sm: { span: 8 } }, wrapperCol: { xs: { span: 24 }, - sm: { span: 15 } + sm: { span: 16 } + }, + labelCol2: { + xs: { span: 24 }, + sm: { span: 4 } + }, + wrapperCol2: { + xs: { span: 24 }, + sm: { span: 20 } } // serviceData: [] } @@ -380,9 +389,9 @@ export default { immediate: true, handler(nD, oD) { console.log(nD) - BookingOrderGetGoodsStatusList({ bookingId: nD.id }).then(res => { - this.booGoodsStatusItem = res.data - }) + // BookingOrderGetGoodsStatusList({ bookingId: nD.id }).then(res => { + // this.booGoodsStatusItem = res.data + // }) this.id = this.$route.query.id if (!nD.id) { // 切换路由需要修改 @@ -627,11 +636,11 @@ export default { date = new Date(+new Date(values.finishTime) + 8 * 3600 * 1000) } } - + console.log(values) let data = { finishTime: date.toISOString(), remark: values.remark, - extData: values.remark + extData: values.extData } let AData = { ...this.GoodsStatusEditData, ...data } @@ -663,21 +672,22 @@ export default { BookingOrderSaveGoodsStatus(ApiData) .then(res => { if (res.success) { - let data = [] - this.booGoodsStatusItem.forEach(item => { - let type = true - ApiData.item.forEach(item2 => { - if (item.systemCode == item2.systemCode) { - type = false - data.push(item2) - } - }) - if (type) { - data.push(item) - } - }) + // let data = [] + // this.booGoodsStatusItem.forEach(item => { + // let type = true + // ApiData.item.forEach(item2 => { + // if (item.systemCode == item2.systemCode) { + // type = false + // data.push(item2) + // } + // }) + // if (type) { + // data.push(item) + // } + // }) this.$nextTick(() => { - this.booGoodsStatusItem = data + this.booGoodsStatusItem = res.data + this.details.goodsStatus = res.data }) this.$message.success('货物状态设置成功') this.GoodsStatusVisible = false @@ -759,12 +769,8 @@ export default { BookingOrderSaveGoodsStatus(ApiData) .then(res => { if (res.success) { - if (type == 'push') { - this.details.goodsStatus.push({ - ...data, - finishTime: new Date(+new Date() + 8 * 3600 * 1000).toISOString() - }) - } + this.booGoodsStatusItem = res.data + this.details.goodsStatus = res.data } }) .catch(err => { diff --git a/src/views/system/log/oplog/index.vue b/src/views/system/log/oplog/index.vue index d43f7c3..b12d630 100644 --- a/src/views/system/log/oplog/index.vue +++ b/src/views/system/log/oplog/index.vue @@ -5,8 +5,8 @@ - - + + @@ -18,29 +18,51 @@ - - {{ item.value }} + + {{ item.value }} - + + format="YYYY-MM-DD HH:mm:ss" + /> + + + + + + + + + + - + + :style="(advanced && { float: 'right', overflow: 'hidden' }) || {}" + > 查询 - 重置 + 重置 {{ advanced ? '收起' : '展开' }} @@ -57,8 +79,9 @@ :columns="columns" :data="loadData" :alert="true" - :rowKey="(record) => record.id" - :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"> + :rowKey="record => record.id" + :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" + >