Compare commits

3 Commits

Author SHA1 Message Date
xiaozhiyong
1973d1f0ac Merge 2023-03-17 15:06:53 +08:00
xiaozhiyong
778f1626f5 更新 2023-03-17 15:05:10 +08:00
f9ea54767b Merge pull request 'bug修复' (#5) from caolc into master
Reviewed-on: #5
2023-03-16 05:59:19 +00:00
4 changed files with 39 additions and 30 deletions

View File

@@ -11,7 +11,11 @@
<div class="generalDetails_card_container">
<div v-for="(item, index) in dataPage" :key="index">
<el-card class="generalDetails_card">
<div @click="isShow(item)" class="generalDetails_card_header" slot="header">
<div
@click="isShow(item)"
class="generalDetails_card_header"
slot="header"
>
<div>
<span class="generalDetails-card-header-icon">
<svg-icon style="color: #118dde" :icon-class="item.iconClass" />
@@ -21,18 +25,30 @@
}}</span>
</div>
<div class="fold">
<i :style="{
transform: `rotate(${item.isFold ? 0 : 180}deg)`,
}" class="el-icon-arrow-down generalDetails_card_arrow_down"></i>
<i
:style="{
transform: `rotate(${item.isFold ? 0 : 180}deg)`,
}"
class="el-icon-arrow-down generalDetails_card_arrow_down"
></i>
</div>
</div>
<div :style="{ maxHeight: item.isFold ? '100vh' : '0px' }" class="my-cell">
<template v-if="item.listData.length && item.listData[0].field !== 'table'">
<div
:style="{ maxHeight: item.isFold ? '100vh' : '0px' }"
class="my-cell"
>
<template
v-if="item.listData.length && item.listData[0].field !== 'table'"
>
<div v-for="(i, x) in item.listData" :key="x" class="cell-item">
<span :title="i.remark" class="color-999 test-tst">
{{ i.label }}
<i v-if="i.remark" class="header-icon el-icon-info"></i>
<i @click="isCopy($event)" v-if="i.isCopy" class="el-icon-document-copy"></i>
<i
@click="isCopy($event)"
v-if="i.isCopy"
class="el-icon-document-copy"
></i>
</span>
<br />
<slot class="inner-data" :name="`${i.field}`">
@@ -110,7 +126,7 @@ export default {
let value =
(typeof carItem.value == "function" &&
carItem.value(shineData)) ||
shineData[carItem.value] == 0
shineData[carItem.value] == 0
? 0
: shineData[carItem.value] || carItem.fieldDefault || "";
return {
@@ -156,7 +172,6 @@ export default {
.title_bottom {
margin-top: 20px;
}
.fold {
display: flex;
justify-content: flex-end;

View File

@@ -227,13 +227,10 @@ export default {
this.billListMeth()
// this.$set(this.billData.list,this.billData.index,this.billAddData)
this.$message.success(res.msg)
this.dialogDelivery = false;
console.log('更新前',this.billData)
this.$emit('billOfLading', this.billData, 2);
this.$forceUpdate()
this.dialogDelivery = false
}
});
this.$emit('billOfLading', this.billData, 2)
},
billSubmit(e, index) {
if (e.deliveryStatus == 'PLATENUM_SUCCESS') {
@@ -278,41 +275,39 @@ export default {
this.dialogBillAdd = true
},
//创建修改提货单
async billAddSave(e, item) {
billAddSave(e, item) {
if (!e) {
this.$refs["form"].validate( async (valid) => {
this.$refs["form"].validate((valid) => {
if (valid) {
this.billAddData.orderId = this.controlWindows.addInfo.id
this.billAddData.productMeasurement = this.controlWindows.addInfo.productMeasurement
await order.billSave(this.billAddData).then(res => {
order.billSave(this.billAddData).then(res => {
if (res.code == 20000) {
this.billAddData.deliveryStatus = 'SUBMITED'
this.billData.list.push(this.billAddData)
this.billListMeth()
this.$message.success(res.msg)
this.dialogBillAdd = false;
this.$emit('billOfLading', this.billData.orderInfo, 2)
}
})
}
})
} else {
this.$confirm(`确定${e == 1 ? '修改' : '锁定'}提货单?`, '提示', { type: 'error' }).then( async () => {
} else {
this.$confirm(`确定${e==1?'修改':'锁定'}提货单?`, '提示', { type: 'error' }).then(() => {
// this.billAddData = item ? JSON.parse(JSON.stringify(item)) : {};
this.billAddData.deliveryStatus = e == 2 ? 'PLATENUM_LOCKED' : '';
console.log(this.billAddData, 'this.billAddData')
await order.update(this.billAddData).then(res => {
console.log(this.billAddData,'this.billAddData')
order.update(this.billAddData).then(res => {
if (res.code == 20000) {
this.billListMeth()
this.$message.success(res.msg)
this.dialogBillAdd = false;
this.$emit('billOfLading', this.billData.orderInfo, 2)
}
})
})
};
console.log('代码底部');
}
this.$emit('billOfLading', this.billData.orderInfo, 2)
},
//更新提货单数据
billListMeth() {

View File

@@ -363,7 +363,6 @@ export default {
}
if(!selectIndex||selectIndex==2){
await order.findByOrderId(row.id).then((res) => {
console.log('更新',res)
this.billData.orderInfo = Object.assign(res.data,{id:row.id})
});
}

View File

@@ -238,8 +238,8 @@ export default {
},
//table list
getByPage() {
let data = Object.assign(this.parameter,{enableMark: 'ENABLE'});
serve.getByPage(data).then((res) => {
this.parameter.params["enableMark"] = "ENABLE";
serve.getByPage(this.parameter).then((res) => {
this.tableData = res.data.list;
this.parameter.total = res.data.totalCount;
});