Commit 2f0c9a64 authored by 我在何方's avatar 我在何方

财务管理国际化

parents 94fe78fe 6c33ac08
...@@ -154,7 +154,6 @@ export function cancelBillService(id) { ...@@ -154,7 +154,6 @@ export function cancelBillService(id) {
export function downloadBillService(params) { export function downloadBillService(params) {
return request({ return request({
url: "/shipment/make-bill-of-lading/download", url: "/shipment/make-bill-of-lading/download",
responseType: "blob",
method: "get", method: "get",
params, params,
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
{{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i> {{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="edit">{{$t('编辑')}}</el-dropdown-item> <el-dropdown-item :disabled="scope.row.ldStatus>=46" command="edit">{{$t('编辑')}}</el-dropdown-item>
<el-dropdown-item command="sea">{{$t('操作-海运')}}</el-dropdown-item> <el-dropdown-item command="sea">{{$t('操作-海运')}}</el-dropdown-item>
<el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item> <el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item>
<el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item> <el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item>
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
{{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i> {{$t('操作')}}<i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="edit">{{$t('编辑')}}</el-dropdown-item> <el-dropdown-item :disabled="scope.row.ldStatus>=46" command="edit">{{$t('编辑')}}</el-dropdown-item>
<el-dropdown-item command="seaAir">{{$t('操作')}}-{{$t('海空联运')}}</el-dropdown-item> <el-dropdown-item command="seaAir">{{$t('操作')}}-{{$t('海空联运')}}</el-dropdown-item>
<el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item> <el-dropdown-item command="error">{{$t('异常登记')}}</el-dropdown-item>
<el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item> <el-dropdown-item command="cost">{{$t('费用登记')}}</el-dropdown-item>
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</el-row> </el-row>
<el-dialog :title="dialogCfg.title" :visible.sync="dialogCfg.visible" :width="dialogCfg.width" :fullscreen="dialogCfg.fullscreen" append-to-body class="shippingSea-dialog"> <el-dialog :title="dialogCfg.title" :visible.sync="dialogCfg.visible" :width="dialogCfg.width" :fullscreen="dialogCfg.fullscreen" append-to-body class="shippingSea-dialog">
<makeLadingBill v-if="['makeBill','queryBill','resetBill'].includes(dialogCfg.type)" :currData="currData" :currRow="currRow" :dialogCfg="dialogCfg" @closeDialog="closeDialog" /> <makeLadingBill v-if="['makeBill','queryBill','resetBill'].includes(dialogCfg.type)" :currData="currData" :currRow="currRow" :dialogCfg="dialogCfg" @closeDialog="closeDialog" :selfNo="shipmentObj.selfNo" />
<previewBill v-if="dialogCfg.type === 'previewBill'" :contentHtml="currData.billContent" :currRow="currRow" :type="dialogCfg.type" /> <previewBill v-if="dialogCfg.type === 'previewBill'" :contentHtml="currData.billContent" :currRow="currRow" :type="dialogCfg.type" />
</el-dialog> </el-dialog>
</el-row> </el-row>
......
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
currData: Object, currData: Object,
currRow: Object, currRow: Object,
dialogCfg: Object, dialogCfg: Object,
selfNo: String
}, },
data() { data() {
return { return {
...@@ -190,7 +191,9 @@ export default { ...@@ -190,7 +191,9 @@ export default {
/* doc.save("a4.pdf"); /* doc.save("a4.pdf");
return Promise.reject() */ return Promise.reject() */
let form = new FormData() let form = new FormData()
form.append('file', new File([doc.output('arraybuffer')], Date.now() + '.pdf', {type: 'application/pdf'})) let file = this.selfNo + '-' + this.currRow.tidanNo + '.pdf'
form.append('file', new File([doc.output('arraybuffer')], file, {type: 'application/pdf'}))
form.append('path', file)
return uploadFile(form) return uploadFile(form)
}).then(res => { }).then(res => {
return this.submit(res.data) return this.submit(res.data)
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<script> <script>
import lodop from "@/utils/lodop"; import lodop from "@/utils/lodop";
import { downloadFile } from "../shippingSea/utils"; import * as _BOX from "@/api/ecw/box";
import FileSaver from "file-saver";
export default { export default {
name: "previewBill", name: "previewBill",
...@@ -21,12 +22,11 @@ export default { ...@@ -21,12 +22,11 @@ export default {
}, },
methods: { methods: {
download() { download() {
downloadFile( _BOX["downloadBillService"]({ id: this.currRow.id }).then((res) => {
"downloadBillService", if (res.data && res.data.imgUrl) {
{ id: this.currRow.id }, FileSaver.saveAs(res.data.imgUrl, res.data.imgUrl.split('/').pop());
this.currRow.orderNo + ".pdf", }
"pdf" });
);
}, },
print() { print() {
lodop() lodop()
......
...@@ -89,9 +89,12 @@ ...@@ -89,9 +89,12 @@
<selector v-model="item.prodUnit" :options="unitList" label-field="titleZh" value-field="id" defaultable style="width:100px" /> <selector v-model="item.prodUnit" :options="unitList" label-field="titleZh" value-field="id" defaultable style="width:100px" />
</template> </template>
<!-- 特价只有一行,不显示增删 -->
<template v-if="form.type != 6">
<el-button class="el-icon-plus" size="mini" type="primary" @click="fee[1].push({type:1})" /> <el-button class="el-icon-plus" size="mini" type="primary" @click="fee[1].push({type:1})" />
<el-button v-if="fee[1].length > 1" class="el-icon-minus" size="mini" type="danger" @click="fee[1].splice(index,1)" /> <el-button v-if="fee[1].length > 1" class="el-icon-minus" size="mini" type="danger" @click="fee[1].splice(index,1)" />
<div class="red-tips" v-if="errTips[1] && errTips[1][index]">{{errTips[1][index]}}</div> </template>
<!-- <div class="red-tips" v-if="errTips[1] && errTips[1][index]">{{errTips[1][index]}}</div> -->
</div> </div>
</el-form-item> </el-form-item>
...@@ -127,9 +130,12 @@ ...@@ -127,9 +130,12 @@
/ /
<selector v-model="item.prodUnit" :options="unitList" label-field="titleZh" value-field="id" defaultable style="width:100px" /> <selector v-model="item.prodUnit" :options="unitList" label-field="titleZh" value-field="id" defaultable style="width:100px" />
</template> </template>
<!-- 特价只有一行,不显示增删 -->
<template v-if="form.type != 6">
<el-button class="el-icon-plus" size="mini" type="primary" @click="fee[2].push({type:2})" /> <el-button class="el-icon-plus" size="mini" type="primary" @click="fee[2].push({type:2})" />
<el-button v-if="fee[2].length > 1" class="el-icon-minus" size="mini" type="danger" @click="fee[2].splice(index,1)" /> <el-button v-if="fee[2].length > 1" class="el-icon-minus" size="mini" type="danger" @click="fee[2].splice(index,1)" />
</template>
<!-- <div class="red-tips" v-if="errTips[2] && errTips[1][index]">{{errTips[2][index]}}</div> --> <!-- <div class="red-tips" v-if="errTips[2] && errTips[1][index]">{{errTips[2][index]}}</div> -->
</div> </div>
...@@ -383,6 +389,12 @@ export default { ...@@ -383,6 +389,12 @@ export default {
} }
} }
// 没有优惠券ID的情况下才对特价做处理,有id则表示查看和编辑不做处理
if(!this.form.couponId && val == 6){
this.fee[1] = [{type:1}]
this.fee[2] = [{type:2}]
}
// 过一遍费用,禁用/启用、同步 部分货币单位 // 过一遍费用,禁用/启用、同步 部分货币单位
[1,2].forEach(index => { [1,2].forEach(index => {
this.fee[index].forEach(item => { this.fee[index].forEach(item => {
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
download(){ download(){
let blob = new Blob([this.pdfData], {type: "application/pdf"}) let blob = new Blob([this.pdfData], {type: "application/pdf"})
FileSaver.saveAs(blob, this.title + '.pdf'); FileSaver.saveAs(blob, this.detail.imgUrl.split("/").pop());
}, },
print(){ print(){
lodop().then(LODOP => { lodop().then(LODOP => {
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<el-form-item :label="$t('默认清关费')" v-if="form.priceType != 1" :prop="`priceStepList.${index}.transportPrice`" :rules="{validator: priceValidator, trigger: 'blur', message: '价格错误'}"> <el-form-item :label="$t('默认清关费')" v-if="form.priceType != 1" :prop="`priceStepList.${index}.transportPrice`" :rules="{validator: priceValidator, trigger: 'blur', message: '价格错误'}">
<inputor default2="0" v-model.number="item.clearancePrice" type="number" :placeholder="$t('整数或者两位小数')" class="w-100 mr-10" :rules="{validator: priceValidator, trigger: 'blur', message: '价格错误'}"/> <inputor default2="0" v-model.number="item.clearancePrice" type="number" :placeholder="$t('整数或者两位小数')" class="w-100 mr-10" :rules="{validator: priceValidator, trigger: 'blur', message: '价格错误'}"/>
<selector :disabled="index > 0" @input="syncAllUnit" v-model="item.clearancePriceUnit" :options="currencyList" :label-field="$l(null, 'title')" value-field="id" defaultable class="w-100" /> <selector :disabled="index > 0" @input="syncAllUnit" v-model="item.clearancePriceUnit" :options="currencyList" :label-field="$l(null, 'title')" value-field="id" defaultable class="w-100" />
/ <selector :disabled="index > 0" @input="syncAllUnit" v-model="item.clearanceVolumeUnit" :options="unitList" :label-field="$l(null, 'title')" value-field="id" defaultable class="w-100" /> / <selector disabled @input="syncAllUnit" v-model="item.clearanceVolumeUnit" :options="unitList" :label-field="$l(null, 'title')" value-field="id" defaultable class="w-100" />
</el-form-item> </el-form-item>
<el-form-item <el-form-item
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<selector v-model="form.clearancePriceUnit" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w-100 mr-10" /> <selector v-model="form.clearancePriceUnit" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable2 class="w-100 mr-10" />
<inputor default2="0" v-model.number="form.clearancePrice" type="number" :placeholder="$t('整数或者两位小数')" class="w-100 mr-10" /> <inputor default2="0" v-model.number="form.clearancePrice" type="number" :placeholder="$t('整数或者两位小数')" class="w-100 mr-10" />
<span class="mr-10">/</span> <span class="mr-10">/</span>
<selector v-model="form.clearanceVolumeUnit" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w-100" /> <selector disabled v-model="form.clearanceVolumeUnit" :options="unitList" :label-field="$l('title')" value-field="id" defaultable2 class="w-100" />
</el-form-item> </el-form-item>
</template> </template>
...@@ -436,6 +436,7 @@ export default { ...@@ -436,6 +436,7 @@ export default {
// 最小其计量 // 最小其计量
this.$set(this.form, 'minWeightUnit', transportVolumeUnit) this.$set(this.form, 'minWeightUnit', transportVolumeUnit)
this.syncSpecialUnit({transportVolumeUnit}) this.syncSpecialUnit({transportVolumeUnit})
this.form.clearanceVolumeUnit = transportVolumeUnit // 清关费体积单位同步运费体积单位
}, },
'form.clearanceVolumeUnit'(clearanceVolumeUnit){ 'form.clearanceVolumeUnit'(clearanceVolumeUnit){
this.syncSpecialUnit({clearanceVolumeUnit}) this.syncSpecialUnit({clearanceVolumeUnit})
...@@ -645,7 +646,7 @@ export default { ...@@ -645,7 +646,7 @@ export default {
transportPriceUnit: obj.transportPriceUnit, transportPriceUnit: obj.transportPriceUnit,
transportVolumeUnit: obj.transportVolumeUnit, transportVolumeUnit: obj.transportVolumeUnit,
clearancePriceUnit: obj.clearancePriceUnit, clearancePriceUnit: obj.clearancePriceUnit,
clearanceVolumeUnit: obj.clearanceVolumeUnit, clearanceVolumeUnit: obj.transportVolumeUnit, // 清关费和运费的体积单位同步
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<div v-for="item in helpData" :key="item.id"> <div v-for="item in helpData" :key="item.id">
<el-collapse-item :title="item.titleZh" :name="item.id"> <el-collapse-item :title="item.titleZh" :name="item.id">
<span v-html="item.contentZh">{{ item.contentZh }}</span> <div v-html="item.contentZh" class="img">{{ item.contentZh }}</div>
</el-collapse-item> </el-collapse-item>
</div> </div>
</el-collapse> </el-collapse>
...@@ -32,4 +32,7 @@ export default { ...@@ -32,4 +32,7 @@ export default {
.infoheader{ .infoheader{
padding:20px padding:20px
} }
::v-deep img{
max-width: 100%;
}
</style> </style>
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