Commit 35b9e1e1 authored by 我在何方's avatar 我在何方
parents 36e14a23 bbf73680
# 开发环境配置
NODE_ENV = 'production'
# 页面标题
VUE_APP_TITLE = 捷道管理系统
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'http://jd.admtest.jdshangmen.com'
# VUE_APP_BASE_API = '/api'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 多租户的开关
VUE_APP_TENANT_ENABLE = false
# 文档的开关
VUE_APP_DOC_ENABLE = true
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
捷道项目管理后台-前端 捷道项目管理后台-前端
后台:
本地运行:npm run dev
测试环境:npm run build:dev
生产环境:npm run build:prod
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build:dev": "vue-cli-service build --mode dev",
"build:prod": "vue-cli-service build", "build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
"build:demo1024": "vue-cli-service build --mode demo1024", "build:demo1024": "vue-cli-service build --mode demo1024",
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<el-option v-for="(item, index) in countryList" <el-option v-for="(item, index) in countryList"
:key="index" :label="item.nameShort + item.nameZh + '(' + item.tel + ')'" :value="item.tel" /> :key="index" :label="item.nameShort + item.nameZh + '(' + item.tel + ')'" :value="item.tel" />
</el-select> </el-select>
<el-input v-model="form.customerContacts[0].phoneNew" placeholder="请输入联系方式" class="w-150 ml-10"/> <el-input v-model="form.customerContacts[0].phoneNew" maxlength="11" placeholder="请输入联系方式" class="w-150 ml-10"/>
</el-form-item> </el-form-item>
<el-form-item label="客户来源" prop="source"> <el-form-item label="客户来源" prop="source">
......
...@@ -11,8 +11,12 @@ const i18n = new VueI18n({ ...@@ -11,8 +11,12 @@ const i18n = new VueI18n({
'zh_CN': require('./languages/zh_CN.json') 'zh_CN': require('./languages/zh_CN.json')
} }
}) })
// 自动提取脚本只匹配$t,所以给个别名
i18n.$t = i18n.t
/*
window.i18n = i18n window.i18n = i18n
console.log({i18n}) console.log({i18n}) */
/* /*
用法 用法
$l('title') => titleZh $l('title') => titleZh
......
...@@ -99,14 +99,10 @@ ...@@ -99,14 +99,10 @@
<el-input v-model="form.titleEn" placeholder="请输入英文标题" /> <el-input v-model="form.titleEn" placeholder="请输入英文标题" />
</el-form-item> </el-form-item>
<el-form-item label="有效期" prop="validateStart"> <el-form-item label="有效期" prop="validateStart">
<el-date-picker v-model="form.validateStart" @change="startChange" <el-date-picker type="datetime" :placeholder="$t('请选择日期')" value-format="yyyy-MM-dd HH:mm:ss" v-model="form.validateStart" @change="startChange">
type="date"
placeholder="选择日期" value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
~ ~
<el-date-picker v-model="form.validateEnd" <el-date-picker type="datetime" :placeholder="$t('请选择日期')" value-format="yyyy-MM-dd HH:mm:ss" v-model="form.validateEnd">
type="date"
placeholder="选择日期" value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
<span style="color:red;font-size:14px;">注意:留空则表示永久有效</span> <span style="color:red;font-size:14px;">注意:留空则表示永久有效</span>
</el-form-item> </el-form-item>
...@@ -223,7 +219,7 @@ export default { ...@@ -223,7 +219,7 @@ export default {
formatTime() { formatTime() {
return millisecond => { return millisecond => {
if(millisecond) { if(millisecond) {
return new Date(millisecond).format('yyyy-MM-dd'); return new Date(millisecond).format('yyyy-MM-dd hh:mm:ss');
} }
return ''; return '';
} }
...@@ -317,6 +313,9 @@ export default { ...@@ -317,6 +313,9 @@ export default {
const id = row.id; const id = row.id;
getBannerPop(id).then(response => { getBannerPop(id).then(response => {
this.form = response.data; this.form = response.data;
this.form.validateStart = this.parseTime(response.data.validateStart);
this.form.validateEnd = this.parseTime(response.data.validateEnd);
console.log(this.form);
this.open = true; this.open = true;
this.title = "修改广告弹窗"; this.title = "修改广告弹窗";
}); });
......
...@@ -46,7 +46,7 @@ import { listUser } from "@/api/system/user"; ...@@ -46,7 +46,7 @@ import { listUser } from "@/api/system/user";
// 这里引入的数据切换语言后要刷新才生效,优化办法是label同时配备labelEn字段,然后再页面上用$l函数调用 // 这里引入的数据切换语言后要刷新才生效,优化办法是label同时配备labelEn字段,然后再页面上用$l函数调用
import { getSeaStatus, getStatusName, seaBaseData } from "./utils"; import { getSeaStatus, getStatusName, seaBaseData } from "./utils";
console.log(seaBaseData())
/** /**
* 海运操作主页面 * 海运操作主页面
*/ */
......
This diff is collapsed.
...@@ -862,10 +862,10 @@ export default { ...@@ -862,10 +862,10 @@ export default {
const dollarList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 1) const dollarList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 1)
const dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0) const dollar = dollarList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0)
const rmbList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 2) const rmbList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 3)
const rmb = rmbList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0) const rmb = rmbList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0)
const nairaList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 3) const nairaList = this.form.receiptAccountList.filter(v => v.collectionCurrencyId == 2)
const naira = nairaList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0) const naira = nairaList.reduce((total, currentValue) => NP.plus(total, currentValue.collectionAmount), 0)
this.form.receiptAccountList[this.form.receiptAccountList.length -1].collectionAmount = [dollar, rmb, naira] this.form.receiptAccountList[this.form.receiptAccountList.length -1].collectionAmount = [dollar, rmb, naira]
......
...@@ -460,7 +460,8 @@ export default { ...@@ -460,7 +460,8 @@ export default {
if (that.$route.query.payableId && that.$route.query.payableId !== '0') { if (that.$route.query.payableId && that.$route.query.payableId !== '0') {
this.payableId = this.$route.query.payableId; this.payableId = this.$route.query.payableId;
getPayableInfoByIds({ id: this.payableId }).then(res => { getPayableInfoByIds({ id: this.payableId }).then(res => {
this.list = [{...res.data}] this.handleSelectionChange([res.data])
this.list = this.multipleSelection
this.$set(this.form, 'supplierId', res.data.supplierId) this.$set(this.form, 'supplierId', res.data.supplierId)
}) })
} }
......
...@@ -885,7 +885,7 @@ export default { ...@@ -885,7 +885,7 @@ export default {
console.log('选择联系人', contact) console.log('选择联系人', contact)
if(!this.contactChooseType && !this.quickCreateType) return if(!this.contactChooseType && !this.quickCreateType) return
if(!this.contactChooseType && this.quickCreateType){ if(!this.contactChooseType && this.quickCreateType){
this.contactChooseType = this.quickCreateType == 1 ? 'consignor' : 'consignee' this.contactChooseType = this.quickCreateType == 0 ? 'consignor' : 'consignee'
} }
this.$set(this.form, this.contactChooseType + 'Company', contact.company) this.$set(this.form, this.contactChooseType + 'Company', contact.company)
this.$set(this.form, this.contactChooseType + 'Id', contact.customerContactsId) this.$set(this.form, this.contactChooseType + 'Id', contact.customerContactsId)
......
...@@ -209,7 +209,7 @@ ...@@ -209,7 +209,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item :label="$t('预付商品货值占佣金额比例')+':'" label-width="200px"> <el-form-item :label="$t('预付商品货值占总货值比例')+':'" label-width="200px">
{{orderFee.paymentGoodsWorthScale}}% {{orderFee.paymentGoodsWorthScale}}%
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<el-table-column :label="$t('入仓货物属性')" align="center"> <el-table-column :label="$t('入仓货物属性')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{$t('合计')}}</span> <span>{{$t('合计')}}</span>
<span>{{scope.row.sumNum+this.$t('')+' '+scope.row.sumVolume+''+scope.row.sumWeight+'kg'}}</span> <span>{{scope.row.sumNum+$t('')+' '+scope.row.sumVolume+''+scope.row.sumWeight+'kg'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('入仓时间')" align="center"> <el-table-column :label="$t('入仓时间')" align="center">
...@@ -221,6 +221,7 @@ export default { ...@@ -221,6 +221,7 @@ export default {
// 执行查询 // 执行查询
getMergeListByOrderNo(this.queryParams).then(response => { getMergeListByOrderNo(this.queryParams).then(response => {
this.loading = false; this.loading = false;
console.log('(response.data',response.data)
if(response.data.mergedList){ if(response.data.mergedList){
this.mergedList = response.data.mergedList; this.mergedList = response.data.mergedList;
} }
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</el-form> </el-form>
<warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList" <warehouse-area-dialog ref="area" :visible.sync="areaVisible" v-model="form.orderLocationCreateReqVOList"
:order-id="orderId" :city-id="cityId"></warehouse-area-dialog> :order-id="orderId" :warehouse-id="warehouseId"></warehouse-area-dialog>
<edit-dialog :title="title" :order-id="order.orderId" :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="isEdit"></edit-dialog> <edit-dialog :title="title" :order-id="order.orderId" :visible.sync="warehousingVisible" :warehousing="warehousing" :edit="isEdit"></edit-dialog>
...@@ -431,8 +431,8 @@ export default { ...@@ -431,8 +431,8 @@ export default {
}) })
return result return result
}, },
cityId(){ warehouseId(){
return this.order?.departureVO?.departureId return this.order?.logisticsInfoDto?.startWarehouseId
} }
} }
} }
......
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