Commit 7d6d824b authored by 我在何方's avatar 我在何方

bug修复

parent ee723e17
...@@ -84,7 +84,6 @@ ...@@ -84,7 +84,6 @@
label-width="0" label-width="0"
style="margin-bottom: 0" style="margin-bottom: 0"
prop="remark" prop="remark"
:rules="{ required: true, trigger: ['blur', 'change'], message: '备注不能为空' }"
> >
<el-input v-model="form.remark" placeholder="备注"></el-input> <el-input v-model="form.remark" placeholder="备注"></el-input>
</el-form-item> </el-form-item>
...@@ -136,7 +135,7 @@ ...@@ -136,7 +135,7 @@
</el-table-column> </el-table-column>
<el-table-column label="优惠金额" align="center"> <el-table-column label="优惠金额" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.discountTotal ? `${scope.row.discountTotal}(${scope.row.discountRemark})` : 0 }} {{ scope.row.discountTotal ? `${scope.row.discountTotal}`:0}}{{scope.row.discountRemark?('('+scope.row.discountRemark+')'): '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
...@@ -608,10 +607,10 @@ ...@@ -608,10 +607,10 @@
{{ selectListRow.totalAmount - (discountForm.discountTotal || 0) }} {{ selectListRow.totalAmount - (discountForm.discountTotal || 0) }}
<dict-tag :type="DICT_TYPE.BOX_SHIPPING_PRICE_UNIT" :value="selectListRow.currencyId" /> <dict-tag :type="DICT_TYPE.BOX_SHIPPING_PRICE_UNIT" :value="selectListRow.currencyId" />
</el-form-item> </el-form-item>
<el-form-item label="操作人"> <el-form-item v-if="opnotice" label="操作人">
{{ discountForm.author }} {{ discountForm.author }}
</el-form-item> </el-form-item>
<el-form-item label="操作时间"> <el-form-item v-if="opnotice" label="操作时间">
{{ discountForm.time }} {{ discountForm.time }}
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -657,6 +656,7 @@ export default { ...@@ -657,6 +656,7 @@ export default {
list: [], list: [],
// fileList: [], // fileList: [],
orderData: [], orderData: [],
opnotice:false,
dialogTableKey: 0, dialogTableKey: 0,
total: 0, total: 0,
headers: { headers: {
...@@ -1022,12 +1022,23 @@ export default { ...@@ -1022,12 +1022,23 @@ export default {
this.$set(this.discountForm, 'discountTotal', res.data.discountTotal) this.$set(this.discountForm, 'discountTotal', res.data.discountTotal)
this.$set(this.discountForm, 'discountRemark', res.data.discountRemark) this.$set(this.discountForm, 'discountRemark', res.data.discountRemark)
this.$set(this.discountForm, 'author', res.data.creatorName) this.$set(this.discountForm, 'author', res.data.creatorName)
this.opnotice = true
}else{
this.opnotice = false
} }
}) })
}, },
saveDiscount() { saveDiscount() {
console.log(this.discountForm) console.log(this.discountForm)
// this.selectListRow.id // this.selectListRow.id
if (this.discountForm.discountTotal === 0||!this.discountForm.discountTotal) {
this.$modal.msgError("优惠金额不能为空");
return
}
if (this.discountForm.discountRemark === 0||!this.discountForm.discountRemark) {
this.$modal.msgError("优惠原因不能为空");
return
}
const params = { const params = {
id: this.selectListRow.id, id: this.selectListRow.id,
discountTotal: this.discountForm.discountTotal, discountTotal: this.discountForm.discountTotal,
...@@ -1075,7 +1086,8 @@ export default { ...@@ -1075,7 +1086,8 @@ export default {
this.open = false; this.open = false;
}, },
submitForm(addType) { submitForm(addType) {
const params = {...this.form, addType} const params = {...this.form}
params.addType = addType
params.receiptAccountList.length = params.receiptAccountList.length - 1 params.receiptAccountList.length = params.receiptAccountList.length - 1
params.receiptAccountList.map(v => { params.receiptAccountList.map(v => {
delete v.discountTotal delete v.discountTotal
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<el-option <el-option
v-for="item in bankData" v-for="item in bankData"
:key="item.id" :key="item.id"
:label="item.baAccountName + '(' + item.baAccountNum + ')'" :label="item.bankName + '(' + item.bankNameAccount+ ')'"
:value="item.id" :value="item.id"
/> />
</el-select> </el-select>
...@@ -414,7 +414,6 @@ import { DICT_TYPE } from "@/utils/dict"; ...@@ -414,7 +414,6 @@ import { DICT_TYPE } from "@/utils/dict";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { getChannelList } from "@/api/ecw/channel"; import { getChannelList } from "@/api/ecw/channel";
import CustomerSelector from "@/components/CustomerSelector"; import CustomerSelector from "@/components/CustomerSelector";
import { getBankAccountPage } from "@/api/ecw/bankAccount";
import { listSimpleDepts } from "@/api/system/dept"; import { listSimpleDepts } from "@/api/system/dept";
import { getTradeCityList } from "@/api/ecw/region"; import { getTradeCityList } from "@/api/ecw/region";
import { getSupplierPage } from "@/api/ecw/supplier"; import { getSupplierPage } from "@/api/ecw/supplier";
...@@ -482,9 +481,9 @@ export default { ...@@ -482,9 +481,9 @@ export default {
listSimpleUsers().then((res) => (that.creatorData = res.data)); listSimpleUsers().then((res) => (that.creatorData = res.data));
getChannelList().then((res) => (that.channelList = res.data)); getChannelList().then((res) => (that.channelList = res.data));
getTradeCityList().then((res) => (that.tradeCityList = res.data)); getTradeCityList().then((res) => (that.tradeCityList = res.data));
getBankAccountPage(that.params).then( // getBankAccountPage(that.params).then(
(res) => (that.bankData = res.data.list) // (res) => (that.bankData = res.data.list)
); // );
getSupplierPage({ pageNo: "1", pageSize: "10000" }).then((res) => { getSupplierPage({ pageNo: "1", pageSize: "10000" }).then((res) => {
const { data } = res; const { data } = res;
this.allSupplier = data.list; this.allSupplier = data.list;
...@@ -595,7 +594,9 @@ export default { ...@@ -595,7 +594,9 @@ export default {
}, },
selectChange(val) { selectChange(val) {
const t = this.allSupplier.find(v => v.id == val) const t = this.allSupplier.find(v => v.id == val)
t && (this.form.supplierName = t.companyZh) t && (this.form.supplierName = t.companyZh)
t && (this.bankData = t.bankList)
}, },
handleQuery() {}, handleQuery() {},
handleSelectionChange(val) { handleSelectionChange(val) {
...@@ -635,7 +636,7 @@ export default { ...@@ -635,7 +636,7 @@ export default {
var chineseStr = ''; var chineseStr = '';
//分离金额后用的数组,预定义 //分离金额后用的数组,预定义
var parts; var parts;
// 传入的参数为空情况 // 传入的参数为空情况
if(money === '') { if(money === '') {
return ''; return '';
} }
...@@ -643,7 +644,7 @@ export default { ...@@ -643,7 +644,7 @@ export default {
if(money >= maxNum){ if(money >= maxNum){
return '' return ''
} }
// 传入的参数为0情况 // 传入的参数为0情况
if (money === 0) { if (money === 0) {
chineseStr = cnNums[0] + cnIntLast + cnInteger; chineseStr = cnNums[0] + cnIntLast + cnInteger;
return chineseStr return chineseStr
...@@ -678,7 +679,7 @@ export default { ...@@ -678,7 +679,7 @@ export default {
chineseStr += cnNums[parseInt(n)] + cnIntRadice[m]; chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
} }
if(m == 0 && zeroCount < 4){ if(m == 0 && zeroCount < 4){
chineseStr += cnIntUnits[q]; chineseStr += cnIntUnits[q];
} }
} }
// 最后+ 元 // 最后+ 元
......
...@@ -85,12 +85,12 @@ ...@@ -85,12 +85,12 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('重货方数')" align="center" v-if="type=='order_heavy_cargo_exception'"> <el-table-column :label="$t('重货方数')" align="center" v-if="type=='order_heavy_cargo_exception'">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.warehouseInInfoVO?(scope.row.warehouseInInfoVO.heavyNumber||0):0}}CBM</span> <span>{{scope.row.wVolume||0}}CBM</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('泡货方数')" align="center" v-else > <el-table-column :label="$t('泡货方数')" align="center" v-else >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.warehouseInInfoVO?(scope.row.warehouseInInfoVO.lightNumber||0):0}}CBM</span> <span>{{scope.row.vWeight||0}}CBM</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('最后操作时间')" scope="handlerTime" /> <el-table-column :label="$t('最后操作时间')" scope="handlerTime" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment