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

adjust baseUrl of a little pages

parent bca613a6
......@@ -11,8 +11,8 @@
</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">
......@@ -27,8 +27,7 @@
<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" />
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
......@@ -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"
......@@ -180,7 +181,7 @@
},
{
label: '货主',
readonly:true,
readonly: true,
prop: 'hzid',
span: 8,
required: true,
......
......@@ -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">
<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>
......@@ -12,8 +13,8 @@
</BasePage>
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<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>
......@@ -21,14 +22,12 @@
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
default: () => {
return {}
}
}
......@@ -53,8 +52,8 @@
},
config: {
/* 基本配置*/
url: 'wms/ckgl/dbck/query/kc',
queryUrl:'wms/ckgl/dbck/query/kc',
url: 'lxyl/rkgl/dbck/query/ukcjyqd',
queryUrl: 'lxyl/rkgl/dbck/query/ukcjyqd',
tableTitle: [{
title: "库位",
field: "kwName",
......@@ -108,19 +107,17 @@
field: "zlh",
width: 180,
},
{
title: "库存数量",
field: "kcsl",
width: 120,
fieldType: 'float'
},
// {
// title: "库存数量",
// field: "kcsl",
// width: 120,
// fieldType: 'float'
// },
{
title: "货主",
field: "hzName",
width: 180,
},
],
queryParams: [
[{
......@@ -156,22 +153,22 @@
}
},
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){
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
} 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