Commit f3197757 authored by dcy's avatar dcy

Merge remote-tracking branch 'origin/dev' into dev

parents 95ef0c58 d337293c
...@@ -10,7 +10,7 @@ tests/**/coverage/ ...@@ -10,7 +10,7 @@ tests/**/coverage/
tests/e2e/reports tests/e2e/reports
selenium-debug.log selenium-debug.log
# 提取的需要翻译的文件列表 # 提取的需要翻译的文件列表
messages.txt i18n-messages.txt
# Editor directories and files # Editor directories and files
.idea .idea
.vscode .vscode
......
...@@ -2,6 +2,7 @@ const fs = require('fs'); ...@@ -2,6 +2,7 @@ const fs = require('fs');
const root = "./src" const root = "./src"
let allFiles = [] let allFiles = []
function getFiles(dir){ function getFiles(dir){
let files = fs.readdirSync(dir) let files = fs.readdirSync(dir)
files.forEach(file => { files.forEach(file => {
...@@ -16,12 +17,12 @@ getFiles(root) ...@@ -16,12 +17,12 @@ getFiles(root)
let messages = new Set() let messages = new Set()
allFiles.forEach(file => { allFiles.forEach(file => {
let data = fs.readFileSync(file, {encoding: 'utf-8'}) let data = fs.readFileSync(file, {encoding: 'utf-8'})
let matched = data.matchAll(/\$t\([\'\"]{1}([^\"\']+)[\'\"]{1}\)/g) let matched = data.matchAll(/\$t\([\'\"]{1}([^\"\']+)[\'\"]{1}/g)
let i = 0 let i = 0
for(let item of matched){ for(let item of matched){
i ++ i ++
messages.add(item[1]) messages.add(item[1])
} }
}) })
fs.writeFileSync("./messages.txt", Array.from(messages).join("\n")) fs.writeFileSync("./i18n-messages.txt", Array.from(messages).join("\n"))
console.log("done!") console.log("done!")
\ No newline at end of file
...@@ -478,3 +478,8 @@ export default { ...@@ -478,3 +478,8 @@ export default {
} }
}; };
</script> </script>
<style scoped>
.my-process-designer{
height: calc(100vh - 84px - 40px);
}
</style>
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
:key="dict.value" :label="dict.label" :value="dict.value"/> :key="dict.value" :label="dict.label" :value="dict.value"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="流程名称" prop="processName"> <el-form-item label="任务名称" prop="processName">
<el-input v-model="queryParams.processName" placeholder="请输入流程名称" clearable/> <el-input v-model="queryParams.processName" placeholder="请输入任务名称" clearable/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('创建时间')"> <el-form-item :label="$t('创建时间')">
<el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.categoryId" /> <dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.categoryId" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="流程名称" align="center" prop="processName"/> <el-table-column label="任务名称" align="center" prop="processName"/>
<el-table-column label="流程发起人" align="center" prop="originatorName"/> <el-table-column label="流程发起人" align="center" prop="originatorName"/>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="app-container"> <div class="app-container">
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item :label="$t('流程名')" prop="name"> <el-form-item :label="$t('任务名称')" prop="name">
<el-input v-model="queryParams.name" :placeholder="$t('请输入流程名')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.name" :placeholder="$t('请输入任务名称')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('创建时间')"> <el-form-item :label="$t('创建时间')">
<el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd"
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
</el-table-column> </el-table-column>
<el-table-column label="价税合计(RMB)" align="center" prop="total" > <el-table-column label="价税合计(RMB)" align="center" prop="total" >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.total = (scope.row.totalAmount * scope.row.exchangeRate) + (scope.row.totalAmount * scope.row.exchangeRate) * (scope.row.taxRate/100) }}</span> <span>{{ scope.row.total = ((scope.row.totalAmount * scope.row.exchangeRate) + (scope.row.totalAmount * scope.row.exchangeRate) * (scope.row.taxRate/100)).toFixed(6) }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
</el-card> </el-card>
<div slot="footer" style="margin: 20px 0"> <div slot="footer" style="margin: 20px 0">
<!-- <el-button type="primary" @click="submitDraft">保 存</el-button> --> <!-- <el-button type="primary" @click="submitDraft">保 存</el-button> -->
<el-button type="primary" @click="submitForm">新 增</el-button> <el-button type="primary" @click="submitForm">{{id==0?'新 增':'编 辑'}}</el-button>
</div> </div>
<el-dialog <el-dialog
:visible.sync="open" :visible.sync="open"
...@@ -542,7 +542,7 @@ export default { ...@@ -542,7 +542,7 @@ export default {
const index = sums.length - 1 const index = sums.length - 1
sums[index - 1] = '价税合计大写' sums[index - 1] = '价税合计大写'
const t = data.map(v => v.total).reduce((prev, curr) => { const t = data.map(v => v.total).reduce((prev, curr) => {
return prev + curr; return parseFloat(prev) + parseFloat(curr);
}, 0) }, 0)
sums[index] = this.convertCurrency(t) sums[index] = this.convertCurrency(t)
return sums; return sums;
......
This diff is collapsed.
...@@ -98,7 +98,11 @@ ...@@ -98,7 +98,11 @@
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="付款单号" align="center" prop="paymentNo" /> <el-table-column label="付款单号" align="center" prop="paymentNo" >
<template slot-scope="scope">
<span style="color: #1890ff;" @click="paymentDetail(scope.row)">{{scope.row.paymentNo}}</span>
</template>
</el-table-column>
<el-table-column label="供应商" align="center" prop="supplierName" /> <el-table-column label="供应商" align="center" prop="supplierName" />
<el-table-column label="创建时间" align="center" prop="createTime"> <el-table-column label="创建时间" align="center" prop="createTime">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -119,7 +123,7 @@ ...@@ -119,7 +123,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.ECW_PAYMENT_STATE" :type="DICT_TYPE.ECW_PAYMENT_STATE"
:value="scope.row.state" :value="scope.row.state"
/> />
</template> </template>
</el-table-column> </el-table-column>
...@@ -137,7 +141,7 @@ ...@@ -137,7 +141,7 @@
<el-button v-if="scope.row.state == 4" size="mini" type="text" @click="verificationCancelClick(scope.row)">反核销</el-button> <el-button v-if="scope.row.state == 4" size="mini" type="text" @click="verificationCancelClick(scope.row)">反核销</el-button>
<!-- <el-button v-if="scope.row.state == 3" size="mini" type="text">开票</el-button> --> <!-- <el-button v-if="scope.row.state == 3" size="mini" type="text">开票</el-button> -->
<el-button size="mini" type="text" @click="toprint(scope.row.id)">打印</el-button> <el-button size="mini" type="text" @click="toprint(scope.row.id)">打印</el-button>
<el-button v-if="scope.row.state == 1 || scope.row.state == 3" size="mini" type="text" @click="deleteClick(scope.row)">删除</el-button> <el-button v-if="scope.row.state == 1 || scope.row.state == 3" size="mini" type="text" @click="deleteClick(scope.row)">删除</el-button>
<!-- <el-button size="mini" type="text" @click="open = true">导出订单</el-button> --> <!-- <el-button size="mini" type="text" @click="open = true">导出订单</el-button> -->
...@@ -198,7 +202,7 @@ export default { ...@@ -198,7 +202,7 @@ export default {
}, },
data() { data() {
return { return {
open: false, open: false,
showSearch: true, showSearch: true,
loadings: false, loadings: false,
form: {}, form: {},
...@@ -256,6 +260,10 @@ export default { ...@@ -256,6 +260,10 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
paymentDetail(row){
const id = row.id;
return this.$router.push("paymentDetail?id=" + id);
},
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.page = 1; this.queryParams.page = 1;
......
...@@ -120,12 +120,12 @@ ...@@ -120,12 +120,12 @@
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="自编号" align="center" prop="orderNo" /> --> <!-- <el-table-column label="自编号" align="center" prop="orderNo" /> -->
<el-table-column label="订单号" align="center" prop="orderNo"> <!-- <el-table-column label="订单号" align="center" prop="orderNo"> -->
<template slot-scope="scope"> <!-- <template slot-scope="scope"> -->
<span style="color: #1890ff;" @click="verificationCancelClick(scope.row)">{{scope.row.orderNo}}</span> <!-- <span style="color: #1890ff;" @click="verificationCancelClick(scope.row)">{{scope.row.orderNo}}</span> -->
<!-- <el-button size="mini" type="text" @click="verificationCancelClick(scope.row)">{{ scope.row.receiptNo }}</el-button> --> <!-- <el-button size="mini" type="text" @click="verificationCancelClick(scope.row)">{{ scope.row.receiptNo }}</el-button> -->
</template> <!-- </template> -->
</el-table-column> <!-- </el-table-column> -->
<el-table-column label="客户名称" align="center" prop="customerName" /> <el-table-column label="客户名称" align="center" prop="customerName" />
<el-table-column label="创建日期" align="center" prop="createTime"> <el-table-column label="创建日期" align="center" prop="createTime">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -1021,6 +1021,7 @@ export default { ...@@ -1021,6 +1021,7 @@ export default {
console.log('产品未选择', item) console.log('产品未选择', item)
calcable = false calcable = false
} }
item.brandType = item.brand
}) })
if(this.calculating || !calcable) return false if(this.calculating || !calcable) return false
this.calculating = true this.calculating = true
......
This diff is collapsed.
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
<div v-if="orderExceptionData.orderExceptionType!='order_doc_exception'&&orderExceptionData.orderExceptionType!='order_consignor_exception'&&orderExceptionData.orderExceptionType!='order_other_exception'"> <div v-if="orderExceptionData.orderExceptionType!='order_doc_exception'&&orderExceptionData.orderExceptionType!='order_consignor_exception'&&orderExceptionData.orderExceptionType!='order_other_exception'">
<el-row> <el-row>
<el-form-item :label="$t('填单参数')+':'"> <el-form-item :label="$t('填单参数')+':'">
{{(shopData.num||0)+$t('')+(shopData.volume||0)+''+(shopData.weight||0)+'kg '+(shopData.quantity||0)+$t('')}} {{(orderData.costVO.totalNum||0)+$t('')+(orderData.costVO.totalVolume||0)+''+(orderData.costVO.totalWeight||0)+'kg '+(orderData.costVO.totalQuantity||0)+$t('')}}
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item :label="$t('入仓参数')+':'"> <el-form-item :label="$t('入仓参数')+':'">
<span>{{(shopData.warehouseInInfoVO?shopData.warehouseInInfoVO.cartonsNum:0)+$t('')+(shopData.warehouseInInfoVO?shopData.warehouseInInfoVO.volume:0)+''+(shopData.warehouseInInfoVO?shopData.warehouseInInfoVO.weight:0)+'kg '+(shopData.warehouseInInfoVO?shopData.warehouseInInfoVO.quantityAll:0) +$t('')}}</span> <span>{{(orderData.sumNum||0)+$t('')+(orderData.sumVolume||0)+''+(orderData.sumWeight||0)+'kg '+(orderData.sumQuantity||0) +$t('')}}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row :span="12"> <el-row :span="12">
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</el-row> </el-row>
<el-row v-if="orderExceptionData.orderExceptionType=='order_pay_exception'"> <el-row v-if="orderExceptionData.orderExceptionType=='order_pay_exception'">
<el-form-item :label="$t('收费参数')+':'"> <el-form-item :label="$t('收费参数')+':'">
<span>{{orderData.entryNum||0}}{{$t('')}} {{orderData.entryVolume||0}}{{orderData.entryWeight||0}}Kg {{orderData.entryQuantity||0}}{{$t('')}}</span> <span>{{orderData.sumNum||0}}{{$t('')}} {{orderData.wvolume||0}}{{orderData.vweight||0}}Kg {{orderData.sumQuantity||0}}{{$t('')}}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<!-- <el-row :span="12"> <!-- <el-row :span="12">
...@@ -78,10 +78,15 @@ ...@@ -78,10 +78,15 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('收入类型')"> <el-table-column :label="$t('收入类型')">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="scope.row.feeType"></dict-tag> <dict-tag :type="DICT_TYPE.FEE_TYPE" :value="scope.row.feeType"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('应收金额')" prop="totalAmount" /> <el-table-column :label="$t('应收金额')" prop="totalAmount" >
<template slot-scope="{row}">
{{row.totalAmount}}
{{ currentMap[row.currencyId] }}
</template>
</el-table-column>
<!-- <el-table-column label="总金额美元" align="center" prop="totalAmount"> <!-- <el-table-column label="总金额美元" align="center" prop="totalAmount">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{row.totalAmount}}({{row.exchangeRate}}) {{row.totalAmount}}({{row.exchangeRate}})
...@@ -123,9 +128,21 @@ ...@@ -123,9 +128,21 @@
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.cartonsNum:0}} {{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.cartonsNum:0}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('方数')" prop="volume" /> <el-table-column :label="$t('方数')" prop="volume">
<el-table-column :label="$t('重量')" prop="weight" /> <template slot-scope="scope">
<el-table-column :label="$t('数量')" prop="quantity" /> {{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.volume:0}}
</template>
</el-table-column>
<el-table-column :label="$t('重量')" prop="weight">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.weight:0}}
</template>
</el-table-column>
<el-table-column :label="$t('数量')" prop="quantity">
<template slot-scope="scope">
{{scope.row.warehouseInInfoVO?scope.row.warehouseInInfoVO.quantityAll:0}}
</template>
</el-table-column>
<el-table-column :label="$t('货值')" prop="worth" /> <el-table-column :label="$t('货值')" prop="worth" />
</el-table> </el-table>
<el-form :model="handlerParams" ref="queryForms" size="small" :inline="true" label-width="120px" class="card"> <el-form :model="handlerParams" ref="queryForms" size="small" :inline="true" label-width="120px" class="card">
...@@ -271,6 +288,7 @@ ...@@ -271,6 +288,7 @@
import FileUpload from '@/components/FileUpload' import FileUpload from '@/components/FileUpload'
import {getDictData, getDictDatas} from '@/utils/dict' import {getDictData, getDictDatas} from '@/utils/dict'
import {getOrder} from '@/api/ecw/order' import {getOrder} from '@/api/ecw/order'
import { getCurrencyList } from '@/api/ecw/currency'
import {getExceptionById,handlerExceptionByExceptionId,getOrderItemById,getOrderFeeById} from "@/api/ecw/orderException" import {getExceptionById,handlerExceptionByExceptionId,getOrderItemById,getOrderFeeById} from "@/api/ecw/orderException"
import {getFirstReceivableListByOrderId} from '@/api/ecw/financial' import {getFirstReceivableListByOrderId} from '@/api/ecw/financial'
...@@ -301,7 +319,8 @@ ...@@ -301,7 +319,8 @@
routerList:[], routerList:[],
multipleSelection:[], multipleSelection:[],
preException:[], preException:[],
orderFee:[] orderFee:[],
currencyList:[],
}; };
}, },
created() { created() {
...@@ -311,6 +330,16 @@ ...@@ -311,6 +330,16 @@
this.getList() this.getList()
} }
getCurrencyList().then(res => this.currencyList = res.data)
},
computed: {
currentMap(){
let map = {}
this.currencyList.forEach(item => {
map[item.id] = this.$l(item, 'title')
})
return map
},
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
...@@ -325,9 +354,9 @@ ...@@ -325,9 +354,9 @@
that.loading = false; that.loading = false;
that.orderId = response.data.orderId that.orderId = response.data.orderId
that.getOrderData() that.getOrderData()
if(response.data.hasOwnProperty('orderItemId')){ // if(response.data.hasOwnProperty('orderItemId')){
that.getShopData(response.data.orderItemId) // that.getShopData(response.data.orderItemId)
} // }
if(that.orderExceptionData.orderExceptionType == 'order_pay_exception'){ if(that.orderExceptionData.orderExceptionType == 'order_pay_exception'){
that.getOrderFeeByIdData() that.getOrderFeeByIdData()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-dialog <el-dialog
:title="title + ' - ' + warehousing.orderNo" :title="title + ' - ' + warehousing.orderNo"
:visible.sync="opened" :visible.sync="opened"
width="1080px" width="1280px"
> >
<el-tabs v-model="activeName" type="card" @tab-click="handleTabs"> <el-tabs v-model="activeName" type="card" @tab-click="handleTabs">
<el-tab-pane :label="edit ? '货物修改' : '货物入仓'" name="first"> <el-tab-pane :label="edit ? '货物修改' : '货物入仓'" name="first">
...@@ -73,6 +73,9 @@ ...@@ -73,6 +73,9 @@
:data="tableData" :data="tableData"
style="width: 100%"> style="width: 100%">
<el-table-column label="箱数" width="150px"> <el-table-column label="箱数" width="150px">
<template v-slot:header>
<span style="color: red">*</span> 箱数
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item :rules="tableFormRules.cartonsNum" :prop="$index + '.cartonsNum'"> <el-form-item :rules="tableFormRules.cartonsNum" :prop="$index + '.cartonsNum'">
<span v-if="tableData[$index].id && !edit"> <span v-if="tableData[$index].id && !edit">
...@@ -86,6 +89,9 @@ ...@@ -86,6 +89,9 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="包装类型" width="100px"> <el-table-column label="包装类型" width="100px">
<template v-slot:header>
<span style="color: red">*</span> 包装类型
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item> <el-form-item>
<span v-if="tableData[$index].id && !edit">{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGING_TYPE, tableData[$index].unit) }}</span> <span v-if="tableData[$index].id && !edit">{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGING_TYPE, tableData[$index].unit) }}</span>
...@@ -118,22 +124,31 @@ ...@@ -118,22 +124,31 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="体积(m³)"> <el-table-column label="体积(m³)">
<template v-slot:header>
<span style="color: red">*</span> 体积(m³)
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item :rules="tableFormRules.volume" :prop="$index + '.volume'"> <el-form-item :rules="tableFormRules.volume" :prop="$index + '.volume'">
<span v-if="tableData[$index].id && !edit">{{ tableData[$index].volume }}</span> <span v-if="tableData[$index].id && !edit">{{ tableData[$index].volume }}</span>
<el-input v-else v-model.number="tableData[$index].volume" placeholder=""></el-input> <el-input v-else v-model="tableData[$index].volume" placeholder="" type="number"></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="重量(Kg)"> <el-table-column label="重量(Kg)">
<template v-slot:header>
<span style="color: red">*</span> 重量(Kg)
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item :rules="tableFormRules.weight" :prop="$index + '.weight'"> <el-form-item :rules="tableFormRules.weight" :prop="$index + '.weight'">
<span v-if="tableData[$index].id && !edit">{{ tableData[$index].weight }}</span> <span v-if="tableData[$index].id && !edit">{{ tableData[$index].weight }}</span>
<el-input v-else v-model.number="tableData[$index].weight" placeholder=""></el-input> <el-input v-else v-model="tableData[$index].weight" placeholder="" type="number"></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数量" width="130px"> <el-table-column label="数量" width="130px">
<template v-slot:header>
<span style="color: red">*</span> 数量
</template>
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<el-form-item :rules="tableFormRules.quantityAll" :prop="$index + '.quantityAll'"> <el-form-item :rules="tableFormRules.quantityAll" :prop="$index + '.quantityAll'">
<span v-if="tableData[$index].id && !edit">{{ tableData[$index].quantityAll }}</span> <span v-if="tableData[$index].id && !edit">{{ tableData[$index].quantityAll }}</span>
...@@ -400,13 +415,13 @@ export default { ...@@ -400,13 +415,13 @@ export default {
recordMode: undefined recordMode: undefined
}, },
tableFormRules: { tableFormRules: {
cartonsNum: [{required: true, message: this.$t("箱数不能为空"), trigger: "blur"}], cartonsNum: [{required: true, message: this.$t("箱数不能为空"), trigger: "change"}],
boxGauge1: [{required: true, message: this.$t("货物长不能为空"), trigger: "blur"}], boxGauge1: [{required: true, message: this.$t("货物长不能为空"), trigger: "change"}],
boxGauge2: [{required: true, message: this.$t("货物宽不能为空"), trigger: "blur"}], boxGauge2: [{required: true, message: this.$t("货物宽不能为空"), trigger: "change"}],
boxGauge3: [{required: true, message: this.$t("货物高不能为空"), trigger: "blur"}], boxGauge3: [{required: true, message: this.$t("货物高不能为空"), trigger: "change"}],
volume: [{required: true, message: this.$t("体积不能为空"), trigger: "blur"}], volume: [{required: true, message: this.$t("体积不能为空"), trigger: "change"}],
weight: [{required: true, message: this.$t("重量不能为空"), trigger: "blur"}], weight: [{required: true, message: this.$t("重量不能为空"), trigger: "change"}],
quantityAll: [{required: true, message: "数量不能为空", trigger: "blur"}] quantityAll: [{required: true, message: "数量不能为空", trigger: "change"}]
}, },
form1: { form1: {
"brand": "0", "brand": "0",
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
label="入库货物属性"> label="入库货物属性">
<template v-slot="{row}"> <template v-slot="{row}">
<template v-if="row.warehouseInInfoVO"> <template v-if="row.warehouseInInfoVO">
品牌:{{ ['无牌', '有牌', '中性'][row.brandType] }}<br> 品牌:{{ ['无牌', '有牌', '中性'][row.feeType] }}<br>
箱数:{{ row.warehouseInInfoVO.cartonsNum }}<br> 箱数:{{ row.warehouseInInfoVO.cartonsNum }}<br>
体积:{{ row.warehouseInInfoVO.volume }}<br> 体积:{{ row.warehouseInInfoVO.volume }}<br>
重量:{{ row.warehouseInInfoVO.weight }}Kg 重量:{{ row.warehouseInInfoVO.weight }}Kg
...@@ -343,12 +343,14 @@ export default { ...@@ -343,12 +343,14 @@ export default {
if (r.code === 0) { if (r.code === 0) {
this.escapeBol = false; this.escapeBol = false;
this.finishVisible = false this.finishVisible = false
const message = !r.data ? '该订单已成功入仓,是否打印?' : "<h3>货物已入仓,存在异常</h3>该订单已成功入仓,是否打印?"
this.$confirm( this.$confirm(
'该订单已成功入仓,是否打印?', message,
'货物已入仓', '货物已入仓',
{ {
confirmButtonText: '', confirmButtonText: '',
cancelButtonText: '' cancelButtonText: '',
dangerouslyUseHTMLString: true
} }
).then(() => { ).then(() => {
this.isShowPrint = true this.isShowPrint = true
......
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