增加仓库和角色类型的数据权限控制
This commit is contained in:
@@ -150,7 +150,7 @@
|
|||||||
// 将首页添加到第一位
|
// 将首页添加到第一位
|
||||||
addIndexToFirst() {
|
addIndexToFirst() {
|
||||||
this.pageList.splice(0, 0, {
|
this.pageList.splice(0, 0, {
|
||||||
name: 'dashboard-analysis',
|
name: '首页',
|
||||||
path: indexKey,
|
path: indexKey,
|
||||||
fullPath: indexKey,
|
fullPath: indexKey,
|
||||||
meta: {
|
meta: {
|
||||||
|
|||||||
@@ -1,48 +1,48 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-breadcrumb class="breadcrumb">
|
<a-breadcrumb class="breadcrumb">
|
||||||
<a-breadcrumb-item v-for="(item, index) in breadList" :key="index">
|
<a-breadcrumb-item v-for="(item, index) in breadList" :key="index">
|
||||||
<router-link v-if="item.name != name" :to="{ path: item.path }">
|
<router-link v-if="item.name != name" :to="{ path: item.path }">
|
||||||
{{ item.meta.title }}
|
{{ item.meta.title }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<span v-else>{{ item.meta.title }}</span>
|
<span v-else>{{ item.meta.title }}</span>
|
||||||
</a-breadcrumb-item>
|
</a-breadcrumb-item>
|
||||||
</a-breadcrumb>
|
</a-breadcrumb>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
name: '',
|
name: '',
|
||||||
breadList: [],
|
breadList: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.getBreadcrumb()
|
this.getBreadcrumb()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getBreadcrumb() {
|
getBreadcrumb() {
|
||||||
|
|
||||||
console.log('this.$route.matched', this.$route.matched)
|
console.log('this.$route.matched', this.$route.matched)
|
||||||
|
|
||||||
this.breadList = []
|
this.breadList = []
|
||||||
this.breadList.push({ name: 'dashboard-analysis', path: '/dashboard/analysis', meta: { title: '首页' } })
|
this.breadList.push({ name: '首页', path: '/dashboard/analysis', meta: { title: '首页' } })
|
||||||
|
|
||||||
this.name = this.$route.name
|
this.name = this.$route.name
|
||||||
this.$route.matched.forEach((item) => {
|
this.$route.matched.forEach((item) => {
|
||||||
// item.meta.name === 'dashboard' ? item.path = '/dashboard' : this.$route.path === item.path
|
// item.meta.name === 'dashboard' ? item.path = '/dashboard' : this.$route.path === item.path
|
||||||
this.breadList.push(item)
|
this.breadList.push(item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route() {
|
$route() {
|
||||||
this.getBreadcrumb()
|
this.getBreadcrumb()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
// this.heartCheckFun();
|
// this.heartCheckFun();
|
||||||
},
|
},
|
||||||
destroyed: function () { // 离开页面生命周期函数
|
destroyed: function () { // 离开页面生命周期函数
|
||||||
this.websocketclose();
|
//this.websocketclose();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
timerFun() {
|
timerFun() {
|
||||||
|
|||||||
@@ -137,7 +137,6 @@ const user = {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
console.log(" menu show json ", menuData)
|
|
||||||
//update--end--autor:qinfeng-----date:20200109------for:JEECG-63 一级菜单的子菜单全部是隐藏路由,则一级菜单不显示------
|
//update--end--autor:qinfeng-----date:20200109------for:JEECG-63 一级菜单的子菜单全部是隐藏路由,则一级菜单不显示------
|
||||||
commit('SET_PERMISSIONLIST', menuData)
|
commit('SET_PERMISSIONLIST', menuData)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "AllocationOutList",
|
name: "AllocationOutList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "出库",
|
type: "出库",
|
||||||
subType: "调拨"
|
subType: "调拨",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "AssembleList",
|
name: "AssembleList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "其它",
|
type: "其它",
|
||||||
subType: "组装单"
|
subType: "组装单",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "DisassembleList",
|
name: "DisassembleList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "其它",
|
type: "其它",
|
||||||
subType: "拆卸单"
|
subType: "拆卸单",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "OtherInList",
|
name: "OtherInList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "入库",
|
type: "入库",
|
||||||
subType: "其它"
|
subType: "其它",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "OtherOutList",
|
name: "OtherOutList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "出库",
|
type: "出库",
|
||||||
subType: "其它"
|
subType: "其它",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "PurchaseBackList",
|
name: "PurchaseBackList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "出库",
|
type: "出库",
|
||||||
subType: "采购退货"
|
subType: "采购退货",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "PurchaseInList",
|
name: "PurchaseInList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "入库",
|
type: "入库",
|
||||||
subType: "采购"
|
subType: "采购",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -107,7 +107,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
materialParam: "",
|
materialParam: "",
|
||||||
type: "其它",
|
type: "其它",
|
||||||
subType: "采购订单"
|
subType: "采购订单",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "RetailBackList",
|
name: "RetailBackList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "入库",
|
type: "入库",
|
||||||
subType: "零售退货"
|
subType: "零售退货",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "RetailOutList",
|
name: "RetailOutList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "出库",
|
type: "出库",
|
||||||
subType: "零售"
|
subType: "零售",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "SaleBackList",
|
name: "SaleBackList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "入库",
|
type: "入库",
|
||||||
subType: "销售退货"
|
subType: "销售退货",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
|
|||||||
@@ -91,6 +91,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "SaleOrderList",
|
name: "SaleOrderList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -106,7 +107,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "其它",
|
type: "其它",
|
||||||
subType: "销售订单"
|
subType: "销售订单",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -84,6 +84,7 @@
|
|||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { BillListMixin } from './mixins/BillListMixin'
|
import { BillListMixin } from './mixins/BillListMixin'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "SaleOutList",
|
name: "SaleOutList",
|
||||||
mixins:[JeecgListMixin,BillListMixin],
|
mixins:[JeecgListMixin,BillListMixin],
|
||||||
@@ -99,7 +100,8 @@
|
|||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "出库",
|
type: "出库",
|
||||||
subType: "销售"
|
subType: "销售",
|
||||||
|
roleType: Vue.ls.get('roleType')
|
||||||
},
|
},
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
@@ -70,9 +70,6 @@ export const BillModalMixin = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.$nextTick(() => {
|
|
||||||
this.form.setFieldsValue({'payType': '现付'})
|
|
||||||
})
|
|
||||||
this.accountIdList = []
|
this.accountIdList = []
|
||||||
this.accountMoneyList = []
|
this.accountMoneyList = []
|
||||||
this.manyAccountBtnStatus = false
|
this.manyAccountBtnStatus = false
|
||||||
@@ -152,6 +149,19 @@ export const BillModalMixin = {
|
|||||||
this.manyAccountBtnStatus = false
|
this.manyAccountBtnStatus = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onAdded(event) {
|
||||||
|
const { row, target } = event
|
||||||
|
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
let arr = res.data
|
||||||
|
for (let i = 0; i < arr.length; i++) {
|
||||||
|
if(arr[i].isDefault){
|
||||||
|
target.setValues([{rowKey: row.id, values: {depotId: arr[i].id+''}}])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//单元值改变一个字符就触发一次
|
//单元值改变一个字符就触发一次
|
||||||
onValueChange(event) {
|
onValueChange(event) {
|
||||||
let that = this
|
let that = this
|
||||||
@@ -285,7 +295,6 @@ export const BillModalMixin = {
|
|||||||
},
|
},
|
||||||
//改变优惠率
|
//改变优惠率
|
||||||
onKeyUpDiscount(e) {
|
onKeyUpDiscount(e) {
|
||||||
debugger
|
|
||||||
const value = e.target.value-0
|
const value = e.target.value-0
|
||||||
let discountMoney = this.form.getFieldValue('discountMoney')-0
|
let discountMoney = this.form.getFieldValue('discountMoney')-0
|
||||||
let discountLastMoney = this.form.getFieldValue('discountLastMoney')-0
|
let discountLastMoney = this.form.getFieldValue('discountLastMoney')-0
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
|
import { getAction } from '@/api/manage'
|
||||||
import { getMpListShort } from "@/utils/util"
|
import { getMpListShort } from "@/utils/util"
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@@ -168,8 +169,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onAdded(event) {
|
onAdded(event) {
|
||||||
let that = this
|
|
||||||
const { row, target } = event
|
const { row, target } = event
|
||||||
|
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
let arr = res.data
|
||||||
|
for (let i = 0; i < arr.length; i++) {
|
||||||
|
if(arr[i].isDefault){
|
||||||
|
target.setValues([{rowKey: row.id, values: {depotId: arr[i].id+''}}])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
if(target.rows.length>=2) {
|
if(target.rows.length>=2) {
|
||||||
target.setValues([{rowKey: row.id, values: {mType: '普通子件'}}])
|
target.setValues([{rowKey: row.id, values: {mType: '普通子件'}}])
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
|
import { getAction } from '@/api/manage'
|
||||||
import { getMpListShort } from "@/utils/util"
|
import { getMpListShort } from "@/utils/util"
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@@ -167,8 +168,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onAdded(event) {
|
onAdded(event) {
|
||||||
let that = this
|
|
||||||
const { row, target } = event
|
const { row, target } = event
|
||||||
|
getAction('/depot/findDepotByCurrentUser').then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
let arr = res.data
|
||||||
|
for (let i = 0; i < arr.length; i++) {
|
||||||
|
if(arr[i].isDefault){
|
||||||
|
target.setValues([{rowKey: row.id, values: {depotId: arr[i].id+''}}])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
if(target.rows.length>=2) {
|
if(target.rows.length>=2) {
|
||||||
target.setValues([{rowKey: row.id, values: {mType: '普通子件'}}])
|
target.setValues([{rowKey: row.id, values: {mType: '普通子件'}}])
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
@@ -207,6 +208,7 @@
|
|||||||
//调用完edit()方法之后会自动调用此方法
|
//调用完edit()方法之后会自动调用此方法
|
||||||
editAfter() {
|
editAfter() {
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
|
let that = this
|
||||||
this.addInit("CGRK")
|
this.addInit("CGRK")
|
||||||
} else {
|
} else {
|
||||||
this.model.operTime = this.model.operTimeStr
|
this.model.operTime = this.model.operTimeStr
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
@@ -177,6 +178,9 @@
|
|||||||
editAfter() {
|
editAfter() {
|
||||||
if (this.action === 'add') {
|
if (this.action === 'add') {
|
||||||
this.addInit("LSCK")
|
this.addInit("LSCK")
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue({'payType': '现付'})
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.model.operTime = this.model.operTimeStr
|
this.model.operTime = this.model.operTimeStr
|
||||||
this.model.getAmount = this.model.changeAmount
|
this.model.getAmount = this.model.changeAmount
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
:rowSelection="true"
|
:rowSelection="true"
|
||||||
:actionButton="true"
|
:actionButton="true"
|
||||||
@valueChange="onValueChange"
|
@valueChange="onValueChange"
|
||||||
|
@added="onAdded"
|
||||||
@deleted="onDeleted" />
|
@deleted="onDeleted" />
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
|
|||||||
@@ -135,12 +135,9 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getSystemConfig() {
|
getSystemConfig() {
|
||||||
getCurrentSystemConfig().then((res) => {
|
getCurrentSystemConfig().then((res) => {
|
||||||
if(res.code === 200){
|
if(res.code === 200 && res.data){
|
||||||
let systemConfig = res.data
|
this.depotFlag = res.data.depotFlag
|
||||||
this.depotFlag = systemConfig.depotFlag
|
this.customerFlag = res.data.customerFlag
|
||||||
this.customerFlag = systemConfig.customerFlag
|
|
||||||
} else {
|
|
||||||
this.$message.warning(res.data);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
visible: false,
|
visible: false,
|
||||||
model: {},
|
model: {},
|
||||||
checked: false,
|
checked: false,
|
||||||
|
disableMixinCreated: true,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
form: this.$form.createForm(this),
|
form: this.$form.createForm(this),
|
||||||
/* 数据源 */
|
/* 数据源 */
|
||||||
|
|||||||
@@ -226,6 +226,7 @@
|
|||||||
let err = {};
|
let err = {};
|
||||||
if(res.data.msgTip == 'user can login'){
|
if(res.data.msgTip == 'user can login'){
|
||||||
Vue.ls.set('winBtnStrList', res.data.userBtn, 7 * 24 * 60 * 60 * 1000);
|
Vue.ls.set('winBtnStrList', res.data.userBtn, 7 * 24 * 60 * 60 * 1000);
|
||||||
|
Vue.ls.set('roleType', res.data.roleType, 7 * 24 * 60 * 60 * 1000);
|
||||||
this.loginSuccess()
|
this.loginSuccess()
|
||||||
} else if(res.data.msgTip == 'user is not exist'){
|
} else if(res.data.msgTip == 'user is not exist'){
|
||||||
err.message = '用户不存在';
|
err.message = '用户不存在';
|
||||||
|
|||||||
Reference in New Issue
Block a user