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

adjust baseUrl of a little pages

parent bca613a6
...@@ -11,33 +11,32 @@ ...@@ -11,33 +11,32 @@
</el-row> </el-row>
<div class="editTab"> <div class="editTab">
<editTableForEdit :AuxButton='false' code='WMSWLXX' :indexApp='app' :type='type' @save='save' ref="editTableForEdit" <editTableForEdit :AuxButton='false' code='WMSWLXX' :indexApp='app' :type='type' @save='save'
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow' ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail"> :editTableData="formDetail">
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="xzkc(ctx.basePage)" size='mini' type="primary">按检验单开</el-button> <el-button @click="xzkc(ctx.basePage)" size='mini' type="primary">按检验单开</el-button>
<!-- <AuxButton :queryParams="{ <!-- <AuxButton :queryParams="{
ckid:form.ckid ckid:form.ckid
}" rename='选择库存' code='WLKC' @save="savekc" /> --> }" rename='选择库存' code='WLKC' @save="savekc" /> -->
</template> </template>
</editTableForEdit> </editTableForEdit>
</div> </div>
<el-row :gutter="20" :app="this" class="editRow bottomInfo"> <el-row :gutter="20" :app="this" class="editRow bottomInfo">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <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" v-for="(item,index) in editColItemList2 " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
:rule="item.rule" /> <!-- 额外数据 -->
<!-- 额外数据 --> </el-row>
</el-row>
</el-form> </el-form>
<!-- editTab数据 --> <!-- editTab数据 -->
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import Jyd from './jyd.vue' import Jyd from './jyd.vue'
import { import {
toFixed, toFixed,
doRkdChange doRkdChange
...@@ -50,25 +49,27 @@ ...@@ -50,25 +49,27 @@
export default { export default {
mixins: [editMixin, editMixin_expand], mixins: [editMixin, editMixin_expand],
methods: { methods: {
jydSave(obj){ jydSave(obj) {
let {list}=obj let {
list
} = obj
this.form.ckid=list[0].ckid this.form.ckid = list[0].ckid
this.form.hzid=list[0].hzid this.form.hzid = list[0].hzid
this.form.hzName=list[0].hzName this.form.hzName = list[0].hzName
// this.form.ywrq=row.ywrq // this.form.ywrq=row.ywrq
let length = this.formDetail.length let length = this.formDetail.length
this.formDetail.splice(0, length) this.formDetail.splice(0, length)
list.forEach(item => { list.forEach(item => {
item.bcsl=item.kcsl item.bcsl = item.kcsl
item.lydjid = item.id item.lydjid = item.id
delete item.id delete item.id
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
}) })
}, },
xzkc(){ xzkc() {
this.showDialog=true this.showDialog = true
}, },
/* 需要整体row时的回调 */ /* 需要整体row时的回调 */
computedRow(row) { computedRow(row) {
...@@ -90,18 +91,18 @@ ...@@ -90,18 +91,18 @@
}) })
} }
}, },
components:{ components: {
Jyd Jyd
}, },
data() { data() {
return { return {
form:{ form: {
djly:'JYD' djly: 'JYD'
}, },
DialogWidth: '70vw', DialogWidth: '70vw',
DialogName: '', DialogName: '',
DialogTitle: '选择检验单', DialogTitle: '选择检验单',
showDialog:false, showDialog: false,
/* 常规edit数据 */ /* 常规edit数据 */
editColItemList: [{ editColItemList: [{
label: '出库单号', label: '出库单号',
...@@ -124,7 +125,7 @@ ...@@ -124,7 +125,7 @@
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"required": true, "required": true,
readonly:true, readonly: true,
"typeConfig": { "typeConfig": {
"src": "jcsj/common/ck/queryCkid", "src": "jcsj/common/ck/queryCkid",
"match": { "match": {
...@@ -156,7 +157,7 @@ ...@@ -156,7 +157,7 @@
"value": "", "value": "",
"required": true, "required": true,
"typeConfig": { "typeConfig": {
"src": "wms/ckgl/dbck/init/swlx", "src": "lxyl/ckgl/dbck/init/swlx",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
...@@ -179,22 +180,22 @@ ...@@ -179,22 +180,22 @@
} }
}, },
{ {
label: '货主', label: '货主',
readonly:true, readonly: true,
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
required: true, required: true,
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
isRequest: true, isRequest: true,
code: 'HZID', code: 'HZID',
label: 'hzName', label: 'hzName',
transform: { transform: {
value: 'id', value: 'id',
label: 'name' label: 'name'
} }
} }
}, },
{ {
label: '备注', label: '备注',
prop: 'bz', prop: 'bz',
...@@ -259,7 +260,7 @@ ...@@ -259,7 +260,7 @@
title: "物料批号", title: "物料批号",
field: "wlph", field: "wlph",
type: 'inputText', type: 'inputText',
allowEdit: false, allowEdit: false,
width: 180, width: 180,
}, },
{ {
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
"value": "", "value": "",
"required": true, "required": true,
"typeConfig": { "typeConfig": {
"src": "wms/ckgl/dbck/init/swlx", "src": "lxyl/ckgl/dbck/init/swlx",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
"value": "", "value": "",
"required": true, "required": true,
"typeConfig": { "typeConfig": {
"src": "wms/ckgl/dbck/init/swlx", "src": "lxyl/ckgl/dbck/init/swlx",
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
......
...@@ -43,14 +43,14 @@ ...@@ -43,14 +43,14 @@
config: { config: {
queryDetail:true, queryDetail:true,
/* 基本配置*/ /* 基本配置*/
url: 'wms/ckgl/dbck', url: 'lxyl/ckgl/dbck',
tableTitle: [ tableTitle: [
{ {
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 80, width: 80,
"transform": { "transform": {
"url": "wms/ckgl/dbck/init/zt", "url": "lxyl/ckgl/dbck/init/zt",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
span: 6, span: 6,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'wms/ckgl/dbck/init/zt' src: 'lxyl/ckgl/dbck/init/zt'
} }
} }
] ]
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('wms/ckgl/dbck/confirm', { this.$post('lxyl/ckgl/dbck/confirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('wms/ckgl/dbck/unconfirm', { this.$post('lxyl/ckgl/dbck/unconfirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
......
<template> <template>
<DefaultDialog :app='app'> <DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;"> <div slot="form" style="display: flex;height: 70vh;">
<BasePage ref="basePage" :power='power' class="min_full" style="height: 100%;" :config="config"> ref="basePage" :power='power' class="min_full" :config="config"> <BasePage ref="basePage" :power='power' class="min_full" style="height: 100%;" :config="config"> ref="basePage"
<template #dialog="ctx"> :power='power' class="min_full" :config="config">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <template #dialog="ctx">
</template> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<template #toolbar="ctx"> </template>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</BasePage>
</div> </div>
<div slot="reFooter" class="refooter" > <div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer" > <span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button> <el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button> <el-button type="primary" @click="save()">保 存</el-button>
</span> </span>
</div> </div>
</DefaultDialog> </DefaultDialog>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
app: { app: {
type: Object, type: Object,
default: ()=>{ default: () => {
return {} return {}
} }
} }
}, },
async mounted() { async mounted() {
...@@ -40,22 +39,22 @@ ...@@ -40,22 +39,22 @@
data() { data() {
return { return {
power: { power: {
add: false, add: false,
copy: false, copy: false,
delButton: false, delButton: false,
editButton: false, editButton: false,
operateButtons: false, operateButtons: false,
workFlow: false, workFlow: false,
/* 表格 */ /* 表格 */
showSelection: true, showSelection: true,
saveSelected: true saveSelected: true
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'wms/ckgl/dbck/query/kc', url: 'lxyl/rkgl/dbck/query/ukcjyqd',
queryUrl:'wms/ckgl/dbck/query/kc', queryUrl: 'lxyl/rkgl/dbck/query/ukcjyqd',
tableTitle: [{ tableTitle: [{
title: "库位", title: "库位",
field: "kwName", field: "kwName",
width: 100, width: 100,
...@@ -108,71 +107,69 @@ ...@@ -108,71 +107,69 @@
field: "zlh", field: "zlh",
width: 180, width: 180,
}, },
{ // {
title: "库存数量", // title: "库存数量",
field: "kcsl", // field: "kcsl",
width: 120, // width: 120,
fieldType: 'float' // fieldType: 'float'
}, // },
{ {
title: "货主", title: "货主",
field: "hzName", field: "hzName",
width: 180, width: 180,
}, },
],
queryParams: [
[{
label: '物料信息',
prop: 'wlinfo',
span: 6,
type: 'input',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
}
]
],
/* 默认启停用 */
showqt: false,
], }
queryParams: [
[{
label: '物料信息',
prop: 'wlinfo',
span: 6,
type: 'input',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
}
]
],
/* 默认启停用 */
showqt: false,
}
} }
}, },
methods: { methods: {
save(){ save() {
let list=this.$refs.basePage.$refs.TablePager.selectedList||[] let list = this.$refs.basePage.$refs.TablePager.selectedList || []
if(list.length==0){ if (list.length == 0) {
this.$warning('请至少勾选一条数据') this.$warning('请至少勾选一条数据')
}else{ } else {
let obj={ let obj = {
list:list list: list
}
/* 判定list wlid是否重复*/
let hzid = list.map(item => item.hzid)
hzid = [...new Set(hzid)]
if (hzid.length > 1) {
this.$warning('所选项货主不唯一,请选择相同货主的数据。')
} else {
this.$emit('save', obj)
this.app.showDialog = false
} }
/* 判定list wlid是否重复*/
let hzid=list.map(item=>item.hzid)
hzid=[...new Set(hzid)]
if(hzid.length>1){
this.$warning('所选项货主不唯一,请选择相同货主的数据。')
}else{
this.$emit('save',obj)
this.app.showDialog=false
}
} }
} }
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
config: { config: {
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'kc/kcpd', url: 'wms/kc/kcpd',
tableTitle: [{ tableTitle: [{
title: "状态", title: "状态",
field: "zt", field: "zt",
width: 70, width: 70,
"transform": { "transform": {
"url": "kc/kcpd/init/zt", "url": "wms/kc/kcpd/init/zt",
"label": "name", "label": "name",
"value": "id" "value": "id"
} }
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
"src": "kc/kcpd/init/zt", "src": "wms/kc/kcpd/init/zt",
} }
}, },
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('kc/kcpd/confirm', { this.$post('wms/kc/kcpd/confirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(res => { }).then(res => {
this.$post('kc/kcpd/unconfirm', { this.$post('wms/kc/kcpd/unconfirm', {
id: ctx.singleItem.id id: ctx.singleItem.id
}).then(res => { }).then(res => {
if (res.success) { if (res.success) {
......
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'kc/kcpd/getKchzmx', url: 'wms/kc/kcpd/getKchzmx',
queryUrl:'kc/kcpd/getKchzmx', queryUrl:'wms/kc/kcpd/getKchzmx',
tableTitle: [{ tableTitle: [{
title: "库位", title: "库位",
field: "kwName", field: "kwName",
......
...@@ -86,6 +86,18 @@ ...@@ -86,6 +86,18 @@
}, },
width: 140 width: 140
}, },
{
title: "是否开出库单",
field: "sfkckd",
formatter(a,b,c){
let map={
Y:'是',
N:'否'
}
return map[c]||'未知'
},
width: 140
},
], ],
queryParams: [], queryParams: [],
......
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