Commit 7a0c98e1 authored by dragondean@qq.com's avatar dragondean@qq.com
parents 97c24f24 27d65488
...@@ -720,7 +720,9 @@ export default { ...@@ -720,7 +720,9 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.id; const id = row.id;
this.$modal.confirm(this.$t('是否确认删除客户编号为"') + id + this.$t('"的数据项?')).then(function() { const name = row.name;
const number = row.number;
this.$modal.confirm(this.$t('是否确认删除客户编号为"') + number + this.$t('"的数据项?')).then(function() {
return deleteCustomer(id); return deleteCustomer(id);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -100,10 +100,14 @@ ...@@ -100,10 +100,14 @@
<el-input v-model="mingServantFrom[0].refund"></el-input> <el-input v-model="mingServantFrom[0].refund"></el-input>
</div> </div>
<div> <div>
<custom-selectors-dictionary v-model="mingServantFrom[0].refundCurrency" <el-select v-model="mingServantFrom[0].refundCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="mingServantFrom[0].refundCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div> <div>
<custom-selectors-dictionary v-model="mingServantFrom[0].refundUnit" label-key="titleZh" value-key="id" <custom-selectors-dictionary v-model="mingServantFrom[0].refundUnit" label-key="titleZh" value-key="id"
:options="weightList"></custom-selectors-dictionary> :options="weightList"></custom-selectors-dictionary>
</div> </div>
...@@ -133,8 +137,11 @@ ...@@ -133,8 +137,11 @@
<el-input v-model="item.darkCommission"></el-input> <el-input v-model="item.darkCommission"></el-input>
</div> </div>
<div class="custom"> <div class="custom">
<custom-selectors-dictionary v-model="item.darkCurrency" <el-select v-model="item.darkCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="item.darkCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div class="custom"> <div class="custom">
<custom-selectors-dictionary v-model="item.darkUnit" label-key="titleZh" value-key="id" <custom-selectors-dictionary v-model="item.darkUnit" label-key="titleZh" value-key="id"
...@@ -158,8 +165,11 @@ ...@@ -158,8 +165,11 @@
<el-input v-model="item.amount"></el-input> <el-input v-model="item.amount"></el-input>
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="item.amountCurrency" <el-select v-model="item.amountCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="item.amountCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="item.amountUnit" <custom-selectors-dictionary v-model="item.amountUnit"
...@@ -172,8 +182,11 @@ ...@@ -172,8 +182,11 @@
<el-input v-model="item.refund"></el-input> <el-input v-model="item.refund"></el-input>
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="item.refundCurrency" <el-select v-model="item.refundCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="item.refundCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="item.refundUnit" <custom-selectors-dictionary v-model="item.refundUnit"
...@@ -191,8 +204,11 @@ ...@@ -191,8 +204,11 @@
<el-input v-model="mingServantAnddarkServant[0].refund"></el-input> <el-input v-model="mingServantAnddarkServant[0].refund"></el-input>
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="mingServantAnddarkServant[0].refundCurrency" <el-select v-model="mingServantAnddarkServant[0].refundCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="mingServantAnddarkServant[0].refundCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="mingServantAnddarkServant[0].refundUnit" <custom-selectors-dictionary label-key="titleZh" value-key="id" v-model="mingServantAnddarkServant[0].refundUnit"
...@@ -210,8 +226,11 @@ ...@@ -210,8 +226,11 @@
<el-input v-model="mingServantAnddarkServant[0].darkAdjustCommission"></el-input> <el-input v-model="mingServantAnddarkServant[0].darkAdjustCommission"></el-input>
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="mingServantAnddarkServant[0].darkAdjustCurrency" <el-select v-model="mingServantAnddarkServant[0].darkAdjustCurrency">
:options="getDictDatas(DICT_TYPE.COMMISSION_CURRENCY_TYPE)"></custom-selectors-dictionary> <el-option v-for="item in currencyList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <custom-selectors-dictionary v-model="mingServantAnddarkServant[0].darkAdjustCurrency"
:options="currencyList"></custom-selectors-dictionary> -->
</div> </div>
<div class="item"> <div class="item">
<custom-selectors-dictionary v-model="mingServantAnddarkServant[0].darkAdjustUnit" label-key="titleZh" value-key="id" <custom-selectors-dictionary v-model="mingServantAnddarkServant[0].darkAdjustUnit" label-key="titleZh" value-key="id"
...@@ -251,6 +270,8 @@ import CustomersSelector from "@/components/CustomersSelector"; ...@@ -251,6 +270,8 @@ import CustomersSelector from "@/components/CustomersSelector";
import {getUnitList} from "@/api/ecw/unit"; import {getUnitList} from "@/api/ecw/unit";
import ChooseContactDialog from '@/components/ChooseContactDialog' import ChooseContactDialog from '@/components/ChooseContactDialog'
import {getProductTypeList} from "@/api/ecw/productType"; import {getProductTypeList} from "@/api/ecw/productType";
import { getCurrencyPage } from "@/api/ecw/currency";
export default { export default {
name: "CustomerCommissionInfo", name: "CustomerCommissionInfo",
components: { components: {
...@@ -285,7 +306,7 @@ export default { ...@@ -285,7 +306,7 @@ export default {
mingServantFrom: [ mingServantFrom: [
{ {
refund: '', refund: '',
refundCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value), refundCurrency:null,
refundUnit:undefined, refundUnit:undefined,
} }
], ],
...@@ -295,7 +316,7 @@ export default { ...@@ -295,7 +316,7 @@ export default {
productType:0,//商品类型 productType:0,//商品类型
productAttr: 0,//暗佣 产品属性 productAttr: 0,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣 货币 darkCurrency: null,// 暗佣 货币
darkUnit:undefined,// 暗佣 单位 darkUnit:undefined,// 暗佣 单位
} }
], ],
...@@ -303,10 +324,10 @@ export default { ...@@ -303,10 +324,10 @@ export default {
darkServantAndRebateForm: [ darkServantAndRebateForm: [
{ {
amount: '',// 暗佣-满减金额 amount: '',// 暗佣-满减金额
amountCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣-满减金额对应货币 amountCurrency:null,// 暗佣-满减金额对应货币
amountUnit:undefined,// 暗佣-满减金额对应单位, amountUnit:undefined,// 暗佣-满减金额对应单位,
refund: '',//暗佣-满之后返还金额 refund: '',//暗佣-满之后返还金额
refundCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),//暗佣-满之后返还金额的货币 refundCurrency:null,//暗佣-满之后返还金额的货币
refundUnit:undefined,//暗佣-满之后返还金额的单位 refundUnit:undefined,//暗佣-满之后返还金额的单位
} }
], ],
...@@ -314,10 +335,10 @@ export default { ...@@ -314,10 +335,10 @@ export default {
mingServantAnddarkServant: [ mingServantAnddarkServant: [
{ {
refund: '',// 暗佣+明佣 上调金额 refund: '',// 暗佣+明佣 上调金额
refundCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣+明佣 上调对应的货币 refundCurrency: null,// 暗佣+明佣 上调对应的货币
refundUnit: undefined,//暗佣+明佣 上调对应的单位 refundUnit: undefined,//暗佣+明佣 上调对应的单位
darkAdjustCommission: '',//暗佣+明佣 上调金额 darkAdjustCommission: '',//暗佣+明佣 上调金额
darkAdjustCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),//暗佣+明佣 上调对应的货币 darkAdjustCurrency: null,//暗佣+明佣 上调对应的货币
darkAdjustUnit:undefined,//暗佣+明佣 上调对应的单位 darkAdjustUnit:undefined,//暗佣+明佣 上调对应的单位
} }
], ],
...@@ -336,7 +357,12 @@ export default { ...@@ -336,7 +357,12 @@ export default {
customerShow: true, customerShow: true,
id:undefined,//佣金id id:undefined,//佣金id
weightList:[], weightList:[],
productAttrList:[] productAttrList:[],
params: {
page: 1,
rows: 20,
},
currencyList:[]
}; };
}, },
computed:{ computed:{
...@@ -352,38 +378,50 @@ export default { ...@@ -352,38 +378,50 @@ export default {
console.log(response.data,'response.data') console.log(response.data,'response.data')
this.productAttrList = response.data this.productAttrList = response.data
}) })
getCurrencyPage(this.params).then(res => {
this.currencyList = res.data.list
var id = this.currencyList[0].id
this.mingServantFrom[0].refundCurrency = id
this.darkServantAndProductForm[0].darkCurrency = id
this.darkServantAndRebateForm[0].amountCurrency = id
this.darkServantAndRebateForm[0].darkAdjustCurrency = id
this.mingServantAnddarkServant[0].refundCurrency = id
this.mingServantAnddarkServant[0].darkAdjustCurrency = id
})
//重量单位 //重量单位
getUnitList().then(r =>{ getUnitList().then(r =>{
if(r.code === 0){ if(r.code === 0){
this.weightList = r.data this.weightList = r.data
this.$set(this.mingServantFrom,0, { this.$set(this.mingServantFrom,0, {
refund: '', refund: '',
refundCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value), refundCurrency:parseInt(this.currencyList[0].id),
refundUnit: parseInt(this.weightList[0].id),}) refundUnit: parseInt(this.weightList[0].id),})
this.$set(this.darkServantAndProductForm, 0, this.$set(this.darkServantAndProductForm, 0,
{ {
productType: 0,//商品类型 productType: 0,//商品类型
productAttr: 0,//暗佣 产品属性 productAttr: 0,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣 货币 darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币
darkUnit: parseInt(this.weightList[0].id),// 暗佣 单位 darkUnit: parseInt(this.weightList[0].id),// 暗佣 单位
}) })
this.$set(this.darkServantAndRebateForm, 0, this.$set(this.darkServantAndRebateForm, 0,
{ {
amount: '',// 暗佣-满减金额 amount: '',// 暗佣-满减金额
amountCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣-满减金额对应货币 amountCurrency:parseInt(this.currencyList[0].id),// 暗佣-满减金额对应货币
amountUnit:parseInt (this.weightList[0].id),// 暗佣-满减金额对应单位, amountUnit:parseInt (this.weightList[0].id),// 暗佣-满减金额对应单位,
refund: '',//暗佣-满之后返还金额 refund: '',//暗佣-满之后返还金额
refundCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),//暗佣-满之后返还金额的货币 refundCurrency:parseInt(this.currencyList[0].id),//暗佣-满之后返还金额的货币
refundUnit:parseInt(this.weightList[0].id),//暗佣-满之后返还金额的单位 refundUnit:parseInt(this.weightList[0].id),//暗佣-满之后返还金额的单位
}) })
this.$set(this.mingServantAnddarkServant, 0, this.$set(this.mingServantAnddarkServant, 0,
{ {
refund: '',// 暗佣+明佣 上调金额 refund: '',// 暗佣+明佣 上调金额
refundCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣+明佣 上调对应的货币 refundCurrency: parseInt(this.currencyList[0].id),// 暗佣+明佣 上调对应的货币
refundUnit: parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位 refundUnit: parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位
darkAdjustCommission: '',//暗佣+明佣 上调金额 darkAdjustCommission: '',//暗佣+明佣 上调金额
darkAdjustCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),//暗佣+明佣 上调对应的货币 darkAdjustCurrency: parseInt(this.currencyList[0].id),//暗佣+明佣 上调对应的货币
darkAdjustUnit:parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位 darkAdjustUnit:parseInt(this.weightList[0].id),//暗佣+明佣 上调对应的单位
}) })
} }
...@@ -481,16 +519,16 @@ export default { ...@@ -481,16 +519,16 @@ export default {
productType:0,//商品类型 productType:0,//商品类型
productAttr:0,//暗佣 产品属性 productAttr:0,//暗佣 产品属性
darkCommission: '',//暗佣 佣金 darkCommission: '',//暗佣 佣金
darkCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣 货币 darkCurrency: parseInt(this.currencyList[0].id),// 暗佣 货币
darkUnit:this.darkServantAndProductForm[0].darkUnit,// 暗佣 单位 darkUnit:this.darkServantAndProductForm[0].darkUnit,// 暗佣 单位
}) })
}else { }else {
this.darkServantAndRebateForm.push( { this.darkServantAndRebateForm.push( {
amount: '',// 暗佣-满减金额 amount: '',// 暗佣-满减金额
amountCurrency:parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),// 暗佣-满减金额对应货币 amountCurrency:parseInt(this.currencyList[0].id),// 暗佣-满减金额对应货币
amountUnit: parseInt(this.weightList[0].id),// 暗佣-满减金额对应单位, amountUnit: parseInt(this.weightList[0].id),// 暗佣-满减金额对应单位,
refund: '',//暗佣-满之后返还金额 refund: '',//暗佣-满之后返还金额
refundCurrency: parseInt(this.getDictDatas(this.DICT_TYPE.COMMISSION_CURRENCY_TYPE)[0].value),//暗佣-满之后返还金额的货币 refundCurrency: parseInt(this.currencyList[0].id),//暗佣-满之后返还金额的货币
refundUnit: this.darkServantAndRebateForm[0].refundUnit,//暗佣-满之后返还金额的单位 refundUnit: this.darkServantAndRebateForm[0].refundUnit,//暗佣-满之后返还金额的单位
}) })
} }
......
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
<el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'"> <el-form-item v-for="(item,index) in this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS)" v-if="advanceType.indexOf(item.value) > -1" :key="item.value" :label="item.label + '预计金额'">
<el-input style="width: 300px;" v-model="specialNeedsList[index].transFee"> <el-input style="width: 300px;" v-model="specialNeedsList[index].transFee">
<div style="width: 100px;" slot="append" > <div style="width: 100px;" slot="append" >
<dict-selector v-model="specialNeedsList[index].transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector> <!-- <dict-selector v-model="specialNeedsList[index].transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector> -->
<el-select v-model="specialNeedsList[index].transCurrency">
<el-option v-for="item in JSON.parse(currency)" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
</div> </div>
</el-input> </el-input>
<div style="display: inline-block;margin-left: 20px;"> <div style="display: inline-block;margin-left: 20px;">
...@@ -35,6 +38,7 @@ ...@@ -35,6 +38,7 @@
<script> <script>
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import {specialNeedCreate,getSpecialListByOrderId} from "@/api/ecw/order"; import {specialNeedCreate,getSpecialListByOrderId} from "@/api/ecw/order";
export default { export default {
name: "specialNeeds", name: "specialNeeds",
props:{ props:{
...@@ -43,6 +47,7 @@ export default { ...@@ -43,6 +47,7 @@ export default {
}, },
orderNo:[String,Number], orderNo:[String,Number],
show:Boolean, show:Boolean,
currency:String
}, },
computed:{ computed:{
...@@ -56,8 +61,10 @@ export default { ...@@ -56,8 +61,10 @@ export default {
specialNeedsList:[], specialNeedsList:[],
todoDetail:'', todoDetail:'',
echoList:[], echoList:[],
} }
}, },
methods:{ methods:{
submit(){ submit(){
this.specialNeedsList.forEach(i => { this.specialNeedsList.forEach(i => {
......
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
getOrder(res.data.orderIds).then(r =>{ getOrder(res.data.orderIds).then(r =>{
this.FeeDetails = r.data this.FeeDetails = r.data
this.FeeDetails.details = JSON.parse(res.data.details) this.FeeDetails.details = JSON.parse(res.data.details)
const orderItem = this.FeeDetails.orderItemVOList.find(e => e.brand === this.FeeDetails.details.brand) const orderItem = this.FeeDetails.orderItemVOList.find(e => e.orderItemId === this.FeeDetails.details.orderItemId)
if (orderItem){ if (orderItem){
this.prodName = orderItem.prodTitleZh + '(' + orderItem.prodTitleEn + ')' this.prodName = orderItem.prodTitleZh + '(' + orderItem.prodTitleEn + ')'
} }
......
...@@ -28,7 +28,10 @@ ...@@ -28,7 +28,10 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('货币类型')"> <el-table-column :label="$t('货币类型')">
<template v-slot:default = 'scope'> <template v-slot:default = 'scope'>
<dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="scope.row.applicationFeeCurrency" /> <el-select :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.applicationFeeCurrency">
<el-option v-for="item in JSON.parse(currencys)" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
<!-- <dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="scope.row.applicationFeeCurrency" /> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款类型')"> <el-table-column :label="$t('付款类型')">
...@@ -91,7 +94,8 @@ export default { ...@@ -91,7 +94,8 @@ export default {
dialogVisible:{ dialogVisible:{
type:Boolean, type:Boolean,
default:false, default:false,
} },
currencys:String
}, },
data(){ data(){
return { return {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-form-item label=""> <el-form-item label="">
<dict-selector :type="DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME" v-model="dateFilterType" defaultable style="width: 150px; margin-right: 5px" /> <dict-selector :type="DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME" v-model="dateFilterType" defaultable style="width: 150px; margin-right: 5px" />
<el-date-picker v-model="dateFilter" <el-date-picker v-model="dateFilter"
type="daterange" range-separator="-" type="daterange" range-separator="-"
:start-placeholder="$t('开始日期')" :start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')" :end-placeholder="$t('结束日期')"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
...@@ -370,14 +370,14 @@ ...@@ -370,14 +370,14 @@
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.rows"
@pagination="getList" /> @pagination="getList" />
<special-needs :orderNo="orderNo" :show.sync="isShow" :order-id="orderId" @determine="getList" ></special-needs> <special-needs :orderNo="orderNo" :show.sync="isShow" :currency="JSON.stringify(currencyList)" :order-id="orderId" @determine="getList" ></special-needs>
<print-tag v-if="printTagOrderId !== null" :order-id="printTagOrderId" @close="printTagOrderId=null" /> <print-tag v-if="printTagOrderId !== null" :order-id="printTagOrderId" @close="printTagOrderId=null" />
<print-warehouse-receipt v-if="printWarehouseReceiptOrderId !== null" :order-id="printWarehouseReceiptOrderId" @close="printWarehouseReceiptOrderId=null" /> <print-warehouse-receipt v-if="printWarehouseReceiptOrderId !== null" :order-id="printWarehouseReceiptOrderId" @close="printWarehouseReceiptOrderId=null" />
<print-lading-bill v-if="printLadingBillOrderId !== null" :order-id="printLadingBillOrderId" @close="printLadingBillOrderId=null" /> <print-lading-bill v-if="printLadingBillOrderId !== null" :order-id="printLadingBillOrderId" @close="printLadingBillOrderId=null" />
<batch-pickup v-if="showBatchPickup" @close="onBatchClose" @success="onBatchClose"/> <batch-pickup v-if="showBatchPickup" @close="onBatchClose" @success="onBatchClose"/>
<withdrawal v-if="show" :dialog-visible="show" :orderId="orderId" ></withdrawal> <withdrawal v-if="show" :dialog-visible="show" :orderId="orderId" ></withdrawal>
<batch-single-application :order-list="orderId" :dialog-visible.sync="warehouseBol"></batch-single-application> <batch-single-application :order-list="orderId" :dialog-visible.sync="warehouseBol"></batch-single-application>
<fee-application :order-id="orderId" :dialog-visible.sync="feeApplicationBol"></fee-application> <fee-application :order-id="orderId" :currencys="JSON.stringify(currencyList)" :dialog-visible.sync="feeApplicationBol"></fee-application>
<merge-log :order-no="showMergedLogOrderNo" v-if="showMergedLogOrderNo !== null" @close="showMergedLogOrderNo=null" /> <merge-log :order-no="showMergedLogOrderNo" v-if="showMergedLogOrderNo !== null" @close="showMergedLogOrderNo=null" />
<pickup-log v-if="showPickupLogOrderNo" :order-no="showPickupLogOrderNo" @close="showPickupLogOrderNo=null" @delete="getList" /> <pickup-log v-if="showPickupLogOrderNo" :order-no="showPickupLogOrderNo" @close="showPickupLogOrderNo=null" @delete="getList" />
</div> </div>
...@@ -414,6 +414,7 @@ import FeeApplication from "@/views/ecw/order/feeApplication"; ...@@ -414,6 +414,7 @@ import FeeApplication from "@/views/ecw/order/feeApplication";
import MergeLog from '@/views/ecw/order/components/MergeLog' import MergeLog from '@/views/ecw/order/components/MergeLog'
import PickupLog from './components/PickupLog' import PickupLog from './components/PickupLog'
import {getWarehouseList} from '@/api/ecw/warehouse' import {getWarehouseList} from '@/api/ecw/warehouse'
import { getCurrencyPage } from "@/api/ecw/currency";
export default { export default {
name: "EcwOrderIndex", name: "EcwOrderIndex",
components: { components: {
...@@ -477,7 +478,12 @@ export default { ...@@ -477,7 +478,12 @@ export default {
multipleSelection:[], multipleSelection:[],
transportId: null, // 指定运输方式 transportId: null, // 指定运输方式
orderNo:'' orderNo:'',
params: {
page: 1,
rows: 20,
},
currencyList:[]
}; };
}, },
computed: { computed: {
...@@ -529,6 +535,8 @@ export default { ...@@ -529,6 +535,8 @@ export default {
getProductAttrList().then(res => this.productAttrList = res.data) getProductAttrList().then(res => this.productAttrList = res.data)
// getTradeCityList().then(res => this.tradeCityList = res.data) // getTradeCityList().then(res => this.tradeCityList = res.data)
getWarehouseList().then(res => this.warehouseList = res.data) getWarehouseList().then(res => this.warehouseList = res.data)
getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
}, },
methods: { methods: {
// 提取路径中的运输方式 // 提取路径中的运输方式
......
...@@ -624,8 +624,8 @@ export default { ...@@ -624,8 +624,8 @@ export default {
orderItemId: this.warehousing.orderItemId, orderItemId: this.warehousing.orderItemId,
orderNo: this.warehousing.orderNo, orderNo: this.warehousing.orderNo,
num: this.warehousing.num, num: this.warehousing.num,
volume: this.warehousing.volume?.toFixed(2) || '', volume: (+this.warehousing.volume)?.toFixed(2) || '',
weight: this.warehousing.weight?.toFixed(2) || '', weight: (+this.warehousing.weight)?.toFixed(2) || '',
prodId: this.warehousing.prodId, prodId: this.warehousing.prodId,
"orderWarehouseInUpdateItemDoList": this.tableData.map(e => { "orderWarehouseInUpdateItemDoList": this.tableData.map(e => {
return { return {
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
:label="$t('状态')"> :label="$t('状态')">
<dict-tag v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.diffType" :type="DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS" :value="row.warehouseInInfoVO.diffType" class="red" :class="{green: row.warehouseInInfoVO.diffType === 4}"/> <dict-tag v-if="row.warehouseInInfoVO && row.warehouseInInfoVO.diffType" :type="DICT_TYPE.ORDER_WAREHOUSE_IN_STATUS" :value="row.warehouseInInfoVO.diffType" class="red" :class="{green: row.warehouseInInfoVO.diffType === 4}"/>
<span class="red" v-else-if="row.warehouseInInfoVO && row.warehouseInInfoVO.cartonsNumDiff">{{ row.warehouseInInfoVO.cartonsNumDiff }}{{$t('箱')}}</span> <span class="red" v-else-if="row.warehouseInInfoVO && row.warehouseInInfoVO.cartonsNumDiff">{{ row.warehouseInInfoVO.cartonsNumDiff }}{{$t('箱')}}</span>
<span v-else>{{ $t('待入仓') }}</span> <span :class="{red: row.itemStatus === 3}" v-else>{{ row.itemStatus === 3 ? ($t('少了') + row.num + $t('箱')) : $t('待入仓') }}</span>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
......
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