|
@@ -184,7 +184,7 @@
|
|
|
<el-table-column prop="goods.price" align="center" label="销售价格"></el-table-column>
|
|
|
<el-table-column prop="goods.saleAmount" align="center" label="销售金额" >
|
|
|
<template slot-scope="scope" v-if="scope.row.salesQty && scope.row.goods && scope.row.goods.price">
|
|
|
- {{(scope.row.goods.price * 100) * scope.row.salesQty / 100}}
|
|
|
+ {{(scope.row.goods.price * 100) * (scope.row.salesQty*100) / 10000}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="right" width="140">
|
|
@@ -438,6 +438,7 @@
|
|
|
})
|
|
|
},
|
|
|
confirm(){
|
|
|
+ const that = this
|
|
|
this.$confirm(`请确定是否确认提货, 是否继续?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -449,12 +450,13 @@
|
|
|
}).then(res => {
|
|
|
if(res.code == 200){
|
|
|
this.$message.success('确认提货成功!')
|
|
|
- this.goBack()
|
|
|
+ that.goBack()
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
save(){
|
|
|
+ const that = this
|
|
|
this.$refs.formData.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
if(this.formType == 0){
|
|
@@ -473,7 +475,7 @@
|
|
|
}).then(res => {
|
|
|
if(res.code == 200){
|
|
|
this.$message.success('提交成功!')
|
|
|
- this.goBack()
|
|
|
+ that.goBack()
|
|
|
}
|
|
|
})
|
|
|
}else if(this.formType == 1){
|
|
@@ -494,7 +496,7 @@
|
|
|
if(res.code == 200){
|
|
|
this.dataList = []
|
|
|
this.$message.success('提交成功!')
|
|
|
- this.goBack()
|
|
|
+ that.goBack()
|
|
|
}
|
|
|
})
|
|
|
}
|