Commit c5cbbe68 authored by dcy's avatar dcy

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

parents 72f37957 7d08cf2c
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
data() { data() {
return { return {
unreadMessage, unreadMessage,
locale: getLocale(), // locale: getLocale(),
// 枚举 // 枚举
// langDatas: LangEnum.LANG, // langDatas: LangEnum.LANG,
notReadTotal:0,//要去取VUEX里面的未读数据总数,我不会,登录之后要调得到当前人未读记录总数接口放到VUEX中 notReadTotal:0,//要去取VUEX里面的未读数据总数,我不会,登录之后要调得到当前人未读记录总数接口放到VUEX中
...@@ -87,8 +87,10 @@ export default { ...@@ -87,8 +87,10 @@ export default {
} }
}, },
created() { created() {
this.$store.dispatch('getNotMessage'); setInterval(() => {
this.$store.dispatch('getToDoList'); this.$store.dispatch('getNotMessage');
this.$store.dispatch('getToDoList');
}, 3000)
}, },
components: { components: {
Breadcrumb, Breadcrumb,
...@@ -128,7 +130,6 @@ export default { ...@@ -128,7 +130,6 @@ export default {
matterNum(){ matterNum(){
return this.$store.state.user.matterNum return this.$store.state.user.matterNum
} }
}, },
watch:{ watch:{
lang(val){ lang(val){
......
...@@ -34,10 +34,10 @@ const user = { ...@@ -34,10 +34,10 @@ const user = {
SET_PERMISSIONS: (state, permissions) => { SET_PERMISSIONS: (state, permissions) => {
state.permissions = permissions state.permissions = permissions
}, },
NOt_MESSAGE:(state, notMessage)=>{ SET_UNREAD:(state, notMessage)=>{
state.notMessage = notMessage; state.notMessage = notMessage;
}, },
GET_MAATER:(state, matterNum) => { SET_TODO:(state, matterNum) => {
state.matterNum = matterNum; state.matterNum = matterNum;
} }
}, },
...@@ -161,7 +161,7 @@ const user = { ...@@ -161,7 +161,7 @@ const user = {
getNotMessage({commit}){ getNotMessage({commit}){
return new Promise((resolve, reject) =>{ return new Promise((resolve, reject) =>{
getNotReadInternalMessageTotal().then((r)=>{ getNotReadInternalMessageTotal().then((r)=>{
commit('NOt_MESSAGE',r.data); commit('SET_UNREAD',r.data);
resolve() resolve()
}).catch(error =>{ }).catch(error =>{
reject(error); reject(error);
...@@ -172,7 +172,7 @@ const user = { ...@@ -172,7 +172,7 @@ const user = {
getToDoList({commit}){ getToDoList({commit}){
return new Promise((resolve,reject) =>{ return new Promise((resolve,reject) =>{
taskTodoCount().then(r => { taskTodoCount().then(r => {
commit('GET_MAATER',r.data) commit('SET_TODO',r.data)
resolve() resolve()
}).catch(err => { }).catch(err => {
reject(err) reject(err)
......
...@@ -568,14 +568,14 @@ export default { ...@@ -568,14 +568,14 @@ export default {
if (pass) { if (pass) {
approveTask(data).then(response => { approveTask(data).then(response => {
let p = this.matterNum let p = this.matterNum
this.$store.commit('GET_MAATER', --p) //this.$store.commit('GET_MAATER', --p)
this.$modal.msgSuccess("审批通过成功!"); this.$modal.msgSuccess("审批通过成功!");
this.getDetail(); // 获得最新详情 this.getDetail(); // 获得最新详情
}); });
} else { } else {
rejectTask(data).then(response => { rejectTask(data).then(response => {
let p = this.matterNum let p = this.matterNum
this.$store.commit('GET_MAATER', --p) //this.$store.commit('GET_MAATER', --p)
this.$modal.msgSuccess("审批不通过成功!"); this.$modal.msgSuccess("审批不通过成功!");
this.getDetail(); // 获得最新详情 this.getDetail(); // 获得最新详情
}); });
...@@ -599,7 +599,7 @@ export default { ...@@ -599,7 +599,7 @@ export default {
updateTaskAssignee(this.updateAssignee.form).then(response => { updateTaskAssignee(this.updateAssignee.form).then(response => {
this.$modal.msgSuccess("转派任务成功!"); this.$modal.msgSuccess("转派任务成功!");
let p = this.matterNum let p = this.matterNum
this.$store.commit('GET_MAATER', --p) // this.$store.commit('GET_MAATER', --p)
this.updateAssignee.open = false; this.updateAssignee.open = false;
this.getDetail(); // 获得最新详情 this.getDetail(); // 获得最新详情
}); });
......
...@@ -82,13 +82,13 @@ ...@@ -82,13 +82,13 @@
<span>{{ parseTime(scope.row.endTime) }}</span> <span>{{ parseTime(scope.row.endTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" fixed="right" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" fixed="right" class-name="small-padding fixed-width" width="120px">
<template slot-scope="scope"> <div slot-scope="scope" style="white-space:nowrap">
<el-button type="text" size="small" icon="el-icon-delete" v-if="scope.row.result === 1" <el-button type="text" size="small" icon="el-icon-delete" v-if="scope.row.result === 1"
v-hasPermi="['bpm:process-instance:cancel']" @click="handleCancel(scope.row)">{{$t('取消')}}</el-button> v-hasPermi="['bpm:process-instance:cancel']" @click="handleCancel(scope.row)">{{$t('取消')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)"
v-hasPermi="['bpm:process-instance:query']">{{$t('详情')}}</el-button> v-hasPermi="['bpm:process-instance:query']">{{$t('详情')}}</el-button>
</template> </div>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
......
...@@ -481,6 +481,9 @@ export default { ...@@ -481,6 +481,9 @@ export default {
this.$set(this.dialogCfg, "width", "600px"); this.$set(this.dialogCfg, "width", "600px");
this.$set(this.dialogCfg, "fullscreen", false); this.$set(this.dialogCfg, "fullscreen", false);
this.$set(this.dialogCfg, "open", true); this.$set(this.dialogCfg, "open", true);
this.currRow = {
transportType: "4",
};
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form ref="form" :model="form" :rules="rules" label-width="120px" inline> <el-form ref="form" :model="form" :rules="rules" label-width="120px" inline :validate-on-rule-change="false">
<el-card> <el-card>
<div slot="header" class="card-title">{{$t('新建报价单')}}</div> <div slot="header" class="card-title">{{$t('新建报价单')}}</div>
<el-form-item :label="$t('所属人')" prop="relation"> <el-form-item :label="$t('所属人')" prop="relation">
...@@ -552,31 +552,7 @@ export default { ...@@ -552,31 +552,7 @@ export default {
transportVO: {} transportVO: {}
}, },
// 表单校验 // 表单校验
rules: {
marks: [
{
validator: (rule, value, callback) => {
if(value && !/[a-zA-Z]/.test(value.charAt(0))){
return callback(new Error(this.$t('唛头必须以字母开头')))
}
callback()
},
trigger: 'blur'
}
],
lineId: [{ required: true, message: "请选择线路"}],
consignorId: [{ required: true, message: "发货人不能为空",}],
consigneeId: [{ required: true, message: "收货人不能为空"}],
startTime: [{ required: true, message: "有效期开始时间不能为空"}],
endTime: [{ required: true, message: "有效期结束时间不能为空"}],
transportId: [{ required: true, message: "选择运输方式"}],
channelId: [{ required: true, message: "选择出货渠道"}],
stopTime: [{ required: true, message: "不能为空"}],
relation: [{ required: true, message: "请选择所属人"}],
control: [{ required: true, message: "请选择是否控货"}],
importance: [{ required: true, message: "请选择重要成都"}]
/*sendstatus: [{ required: true, message: "站内信状态,0未发送,1已发送不能为空", trigger: "blur" }], */
},
labelStyle: 'width:120px', labelStyle: 'width:120px',
productNames: {}, // 品名id和名称对应关系 productNames: {}, // 品名id和名称对应关系
couponAvailableGroupDtoList: [], // 可用优惠 couponAvailableGroupDtoList: [], // 可用优惠
...@@ -587,6 +563,39 @@ export default { ...@@ -587,6 +563,39 @@ export default {
}; };
}, },
computed:{ computed:{
rules(){
let rules = {
marks: [
{
validator: (rule, value, callback) => {
if(value && !/[a-zA-Z]/.test(value.charAt(0))){
return callback(new Error(this.$t('唛头必须以字母开头')))
}
callback()
},
trigger: 'blur'
}
],
lineId: [{ required: true, message: "请选择线路"}],
/* consignorId: [{ required: true, message: "发货人不能为空",}],
consigneeId: [{ required: true, message: "收货人不能为空"}], */
startTime: [{ required: true, message: "有效期开始时间不能为空"}],
endTime: [{ required: true, message: "有效期结束时间不能为空"}],
transportId: [{ required: true, message: "选择运输方式"}],
channelId: [{ required: true, message: "选择出货渠道"}],
stopTime: [{ required: true, message: "不能为空"}],
relation: [{ required: true, message: "请选择所属人"}],
control: [{ required: true, message: "请选择是否控货"}],
importance: [{ required: true, message: "请选择重要成都"}]
}
if(this.form.relation == 1){
rules.consignorId = [{ required: true, message: "发货人不能为空",}]
}
if(this.form.relation == 2){
rules.consigneeId = [{ required: true, message: "收货人不能为空",}]
}
return rules
},
exportCityList(){ exportCityList(){
return this.tradeCityList.filter(item => item.type == 2) return this.tradeCityList.filter(item => item.type == 2)
}, },
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('控货状态')" align="center" prop="transportId"> <el-table-column :label="$t('控货状态')" align="center" prop="transportId">
<template slot-scope="{row}"> <template slot-scope="{row}">
<template v-if="row.cargoControlStatus == 1 && row.isToReview">放货中</template> <template v-if="row.cargoControlStatus == 1 && row.isToReview">{{$t('放货中')}}</template>
<dict-tag v-else :type="DICT_TYPE.CONTROL_GOODS_STATUS" :value="row.cargoControlStatus" /> <dict-tag v-else :type="DICT_TYPE.CONTROL_GOODS_STATUS" :value="row.cargoControlStatus" />
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -94,7 +94,8 @@ ...@@ -94,7 +94,8 @@
{{order.isExternalWarehouse ? $t('外部仓') : $t('自有仓') }} {{order.isExternalWarehouse ? $t('外部仓') : $t('自有仓') }}
<template v-for="(item, index) in order.externalWarehouseDtoList" > <template v-for="(item, index) in order.externalWarehouseDtoList" >
<div v-if="item.estLoadingTime || item.loadingAddress" :key="index"> <div v-if="item.estLoadingTime || item.loadingAddress" :key="index">
{{$t('装柜时间')}}{{item.estLoadingTime}} {{$t('装柜地址')}}{{item.loadingAddress}} <!-- {{$t('装柜时间')}}{{item.estLoadingTime}} -->
{{$t('装柜地址')}}{{item.loadingAddress}}
</div> </div>
</template> </template>
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
</el-form-item> </el-form-item>
<div v-if="form.isExternalWarehouse" class="pl-50"> <div v-if="form.isExternalWarehouse" class="pl-50">
<div v-for="(item, index) in form.externalWarehouseDtoList" class="flex" :key="index"> <div v-for="(item, index) in form.externalWarehouseDtoList" class="flex" :key="index">
<div class="w-300"> <!-- <div class="w-300">
<el-form-item :label="$t('装货时间')" <el-form-item :label="$t('装货时间')"
:prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'" :prop="'externalWarehouseDtoList.' + index + '.estLoadingTime'"
:rules="{ :rules="{
...@@ -304,8 +304,8 @@ ...@@ -304,8 +304,8 @@
> >
<el-date-picker v-model="item.estLoadingTime" value-format="yyyy-MM-dd HH:mm:ss" class="w-200"></el-date-picker> <el-date-picker v-model="item.estLoadingTime" value-format="yyyy-MM-dd HH:mm:ss" class="w-200"></el-date-picker>
</el-form-item> </el-form-item>
</div> </div> -->
<div class="w-300 ml-10"> <div class="w-300">
<el-form-item :label="$t('装货地址')" <el-form-item :label="$t('装货地址')"
:prop="'externalWarehouseDtoList.' + index + '.loadingAddress'" :prop="'externalWarehouseDtoList.' + index + '.loadingAddress'"
:rules="{ :rules="{
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<el-table-column :label="$t('运输方式/目的地')" align="center"> <el-table-column :label="$t('运输方式/目的地')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span><dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="scope.row.transportId"></dict-tag> <span><dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="scope.row.transportId"></dict-tag>
{{'/'+scope.row.destinationZh}}</span> / {{$l(scope.row, 'destination')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('控货')" align="center"> <el-table-column :label="$t('控货')" align="center">
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName"> <el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{row.startWarehouseName}} {{row.startWarehouseName}}
<template v-if="row.isExternalWarehouse">({{$t('外部仓')}})</template> <span style="color:red" v-if="row.isExternalWarehouse">({{$t('外部仓')}})</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('运输方式/目的地')" align="center" prop="transportId"> <el-table-column :label="$t('运输方式/目的地')" align="center" prop="transportId">
......
...@@ -316,6 +316,11 @@ export default { ...@@ -316,6 +316,11 @@ export default {
item.clearancePriceUnit = val item.clearancePriceUnit = val
}) })
}, },
'form.allPriceUnit'(val){
this.specialProducts.forEach(item => {
item.allPriceUnit = val
})
},
'form.allVolumeUnit'(val){ 'form.allVolumeUnit'(val){
this.specialProducts.forEach(item => { this.specialProducts.forEach(item => {
item.allVolumeUnit = val item.allVolumeUnit = val
......
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