Commit d461fb49 authored by 李苏's avatar 李苏 💬

基础功能调整

parent 9cd1bd16
...@@ -149,11 +149,11 @@ const permission = { ...@@ -149,11 +149,11 @@ const permission = {
newmenus.push(mi) newmenus.push(mi)
} }
}) })
res.data=[... // res.data=[...
newCommonList, ...newErpList, ...newPowerRoutes] // newCommonList, ...newErpList, ...newPowerRoutes]
// res.data = dynamicRouter([...newCommonList, ...newErpList, ...newPowerRoutes], asymenus) || [... res.data = dynamicRouter([...newCommonList, ...newErpList, ...newPowerRoutes], asymenus) || [...
// newCommonList, ...newErpList, ...newPowerRoutes newCommonList, ...newErpList, ...newPowerRoutes
// ] ]
/* 重置首页路由*/ /* 重置首页路由*/
// let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid')) // let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid'))
let ttlist = treeToList([...newCommonList, ...newErpList, ...newPowerRoutes]) let ttlist = treeToList([...newCommonList, ...newErpList, ...newPowerRoutes])
......
...@@ -20,17 +20,12 @@ ...@@ -20,17 +20,12 @@
</template> --> </template> -->
</editTableForEdit> </editTableForEdit>
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
...@@ -14,17 +14,12 @@ ...@@ -14,17 +14,12 @@
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow' :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail" /> :editTableData="formDetail" />
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
...@@ -23,17 +23,12 @@ ...@@ -23,17 +23,12 @@
</template> </template>
</editTableForEdit> </editTableForEdit>
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
...@@ -15,17 +15,12 @@ ...@@ -15,17 +15,12 @@
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow' :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail" /> :editTableData="formDetail" />
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
...@@ -21,17 +21,12 @@ ...@@ -21,17 +21,12 @@
</template> </template>
</editTableForEdit> </editTableForEdit>
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
<template> <template>
<RelDialog bigTitle detailTable='KCSW' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp' <RelDialog @getForm='getForm' bigTitle detailTable='KCSW' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
:app='app' :buttonApp='buttonApp'> :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this" class="editRow"> <el-row :gutter="20" :app="this" class="editRow">
...@@ -15,17 +15,12 @@ ...@@ -15,17 +15,12 @@
ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit" ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit"
:computedRow='computedRow' :editTableData="formDetail" /> :computedRow='computedRow' :editTableData="formDetail" />
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
...@@ -45,7 +40,17 @@ ...@@ -45,7 +40,17 @@
export default { export default {
mixins: [editMixin, editMixin_expand], mixins: [editMixin, editMixin_expand],
mounted() {
this.$nextTick(()=>{
this.form.whr=this.username
this.form.rkr=this.username
})
},
methods: { methods: {
getForm(row){
row.transrkd=row.rktzDjid||row.dbrkDjid
},
/* 需要整体row时的回调 */ /* 需要整体row时的回调 */
computedRow(row) { computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate() // this.$refs.editTableForEdit.$forceUpdate()
...@@ -92,10 +97,43 @@ ...@@ -92,10 +97,43 @@
}, },
data() { data() {
return { return {
editColItemList2:[
{
"label": "状态",
"prop": "zt",
"span": 8,
"type": "RelSelect",
"value": "",
readonly:true,
"typeConfig": {
"src": "wms/rkgl/rktz/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '维护人',
prop: 'whr',
type: 'input',
span: 8,
readonly:true,
},
{
label: '维护时间',
prop: 'whsj',
span: 8,
type: 'datetime',
readonly:true,
value:new Date().getTime()
}
],
/* 常规edit数据 */ /* 常规edit数据 */
editColItemList: [{ editColItemList: [{
label: '入库单号', label: '入库单号',
prop: 'lydjid', prop: 'transrkd',
span: 8, span: 8,
type: 'input', type: 'input',
"required": true, "required": true,
...@@ -159,10 +197,9 @@ ...@@ -159,10 +197,9 @@
} }
} }
}, },
{ {
label: '保管员', label: '保管员',
prop: 'rkr', prop: 'bgy',
span: 8, span: 8,
type: 'input', type: 'input',
...@@ -173,10 +210,6 @@ ...@@ -173,10 +210,6 @@
span: 16, span: 16,
type: 'input', type: 'input',
}, },
], ],
/* 从表编辑数据 */ /* 从表编辑数据 */
editTableTitle: [{ editTableTitle: [{
...@@ -186,47 +219,55 @@ ...@@ -186,47 +219,55 @@
align: "center" align: "center"
}, },
{ {
title: "物料编", title: "物料编",
field: "code", field: "wlxxCode",
width: 240, width: 180,
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
"code": "MATERIAL", "code": "MATERIAL",
"label": "wlcode", "label": "wlxxCode",
"transform": { "transform": {
"value": "code", "value": "code",
"label": "code" "label": "code"
}, },
give(data) { give(data) {
this.form.wlid = data.id this.form.wlid = data.id
this.form.wlmc = data.name this.form.wlxxName = data.name
this.form.wlcode = data.code this.form.w;xxCode = data.code
} }
} }
}, },
{ {
title: "物料名称", title: "物料名称",
field: "wlmc", field: "wlxxName",
width: 160 width: 160
}, },
{ {
title: "规格", title: "规格",
field: "gg", field: "wlxxGg",
width: 140 width: 140
}, },
{
title: "批号",
field: "wlph",
type: 'inputText',
width: 200,
},
{
title: "制令号",
field: "zlh",
type: 'inputText',
width: 200,
},
{ {
title: "应入库数量", title: "应入库数量",
field: "yssl",
width: 100,
allowEdit: false, allowEdit: false,
show: this.type != 'view' show: this.type != 'view'
}, },
{ {
title: "已入库数量", title: "已入库数量",
field: "yrksl", field: "yrksl",
width: 100,
allowEdit: false, allowEdit: false,
show: this.type != 'view' show: this.type != 'view'
}, },
...@@ -236,78 +277,17 @@ ...@@ -236,78 +277,17 @@
field: "rksl", field: "rksl",
allowEdit: true, allowEdit: true,
type: 'inputNumber', type: 'inputNumber',
width: 200,
blur: toFixed(null), blur: toFixed(null),
change: row => doRkdChange(row, 'rksl') change: row => doRkdChange(row, 'rksl')
}, },
{ {
title: "计量单位", title: "计量单位",
field: "jldwname", field: "jldwName",
width: 100, width: 100,
allowEdit: false allowEdit: false
}, },
{
title: "含税价格",
field: "hsjg",
fieldType: 'price',
type: "inputNumber",
blur: toFixed(null),
change: row => doRkdChange(row, 'hsjg')
},
{
title: "含税金额",
field: "hsje",
fieldType: 'money',
type: "inputNumber",
blur: toFixed(null),
change: row => doRkdChange(row, 'hsje')
},
{
title: "增值税率%",
field: "zzsl",
fieldType: 'zzsl',
type: "inputNumber",
blur: toFixed(null),
change: row => doRkdChange(row, 'zzsl')
},
{
title: "入库价格",
field: "wsjg",
fieldType: "price",
type: "inputNumber",
blur: toFixed(null),
change: row => doRkdChange(row, 'wsjg'),
show: this.type != 'view'
},
{
title: "入库金额",
field: "wsje",
fieldType: "money",
type: "inputNumber",
blur: toFixed(null),
change: row => doRkdChange(row, 'wsje'),
show: this.type != 'view'
},
{
title: "入库价格",
field: "jyjg",
type: "inputNumber",
show: this.type == 'view',
},
{
title: "入库金额",
field: "rkje",
type: "inputNumber",
show: this.type == 'view'
},
{
title: "物料批号",
field: "wlph",
type: 'inputText',
width: 200,
show: JSON.parse(localStorage.getItem('isPhgl'))
},
{ show: JSON.parse(localStorage.getItem('isKwgl')), { show: JSON.parse(localStorage.getItem('isKwgl')),
title: "库位", title: "库位",
field: "kwid", field: "kwid",
......
<template> <template>
<BasePage addRename='选择入库单入库' class="min_full" :config="config"> <BasePage :power='power' addRename='选择入库单入库' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -12,6 +12,21 @@ ...@@ -12,6 +12,21 @@
export default { export default {
data() { data() {
return { return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: { config: {
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
...@@ -19,12 +34,16 @@ ...@@ -19,12 +34,16 @@
tableTitle: [ tableTitle: [
{title: "库存单号", field: "djid", width: 140}, {title: "库存单号", field: "djid", width: 140},
{title: "入库日期", field: "ywrq", fieldType: 'ftDate'}, {title: "入库日期", field: "ywrq", fieldType: 'ftDate'},
{title: "仓库", field: "ckmc", width: 140}, {title: "仓库", field: "ckName", width: 140},
{title: "事务类型", field: "swlxmc", width: 100}, {title: "事务类型", field: "swlxName", width: 100},
{title: "入库部门", field: "bmName", width: 130}, {title: "部门", field: "bmName", width: 130},
{title: "入库人", field: "rkr", width: 120}, {title: "入库人", field: "jsr", width: 120},
{title: "保管员", field: "bgy", width: 120}, {title: "保管员", field: "bgy", width: 120},
{title: "入库单号", field: "lydjid", width: 140}, {title: "入库单号", field: "lydjid", width: 140,
formatter(a, b, c) {
return a.rktzDjid || a.dbrkDjid
}},
{title: "上架单号", field: "sjtzDjid", width: 140},
{title: "备注", field: "bz", width: 220}, {title: "备注", field: "bz", width: 220},
{title: "维护人", field: "whr"}, {title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType: 'ftDateTime'} {title: "维护时间", field: "whsj", fieldType: 'ftDateTime'}
......
...@@ -20,17 +20,12 @@ ...@@ -20,17 +20,12 @@
</template> </template>
</editTableForEdit> </editTableForEdit>
</div> </div>
<el-row class="bottomInfo" :gutter="20"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<el-col class="center" :span="12"> <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
创建人:{{ v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
form.cjr||localUser :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
}} :rule="item.rule" />
</el-col> <!-- 额外数据 -->
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> </el-row>
</el-form> </el-form>
......
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