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

adjust baseUrl of a little pages

parent bca613a6
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
</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">
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
<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>
...@@ -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"
...@@ -180,7 +181,7 @@ ...@@ -180,7 +181,7 @@
}, },
{ {
label: '货主', label: '货主',
readonly:true, readonly: true,
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
required: true, required: true,
......
...@@ -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"
:power='power' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -12,8 +13,8 @@ ...@@ -12,8 +13,8 @@
</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>
...@@ -21,14 +22,12 @@ ...@@ -21,14 +22,12 @@
</DefaultDialog> </DefaultDialog>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
app: { app: {
type: Object, type: Object,
default: ()=>{ default: () => {
return {} return {}
} }
} }
...@@ -53,8 +52,8 @@ ...@@ -53,8 +52,8 @@
}, },
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",
...@@ -108,19 +107,17 @@ ...@@ -108,19 +107,17 @@
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: [ queryParams: [
[{ [{
...@@ -156,22 +153,22 @@ ...@@ -156,22 +153,22 @@
} }
}, },
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是否重复*/ /* 判定list wlid是否重复*/
let hzid=list.map(item=>item.hzid) let hzid = list.map(item => item.hzid)
hzid=[...new Set(hzid)] hzid = [...new Set(hzid)]
if(hzid.length>1){ if (hzid.length > 1) {
this.$warning('所选项货主不唯一,请选择相同货主的数据。') this.$warning('所选项货主不唯一,请选择相同货主的数据。')
}else{ } else {
this.$emit('save',obj) this.$emit('save', obj)
this.app.showDialog=false 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