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

adjust baseUrl of a little pages

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