Commit 2bad7f9b authored by 李苏's avatar 李苏 💬

领料组接收

parent 860e4bf7
<template> <template>
<BasePage <BasePage @getRow="getRow" :power="power" class="min_full" style="height: 100%" :config="config">
@getRow="getRow"
:power="power"
class="min_full"
style="height: 100%"
:config="config"
>
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">直接入库</el-button> --> <el-button @click="llzjs(ctx.basePage)" size='mini' type="primary">领料组接收</el-button>
<!-- <ImportButton @success="()=>{ <!-- <ImportButton @success="()=>{
ctx.basePage.refresh() ctx.basePage.refresh()
}" :url="'wms/ckgl/jhtz/import'" /> --> }" :url="'wms/ckgl/jhtz/import'" /> -->
...@@ -19,187 +13,204 @@ ...@@ -19,187 +13,204 @@
</template> </template>
<script> <script>
import Edit from "./edit.vue"; import Edit from "./edit.vue";
export default { export default {
data() { data() {
return { return {
power: { power: {
add: true, add: true,
copy: false, copy: false,
/* 手动控制删除 */ /* 手动控制删除 */
delButton: true, delButton: true,
/* 手动控制编辑按钮权限 */ /* 手动控制编辑按钮权限 */
editButton: true, editButton: true,
/* 是否渲染右侧操作按钮 */ /* 是否渲染右侧操作按钮 */
operateButtons: true, operateButtons: true,
/* 是否开启工作流按钮 */ /* 是否开启工作流按钮 */
workFlow: false, workFlow: false,
/* 表格开启选择,以及记住选择 */ /* 表格开启选择,以及记住选择 */
showSelection: false, showSelection: false,
saveSelected: false, saveSelected: false,
}, },
config: { config: {
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: "lxyl/ckgl/ubldj", url: "lxyl/ckgl/ubldj",
tableTitle: [ tableTitle: [{
{ title: "状态",
title: "状态", field: "zt",
field: "zt", width: 80,
width: 80, transform: {
transform: { "url": "lxyl/ckgl/ubldj/init/zt",
"url": "lxyl/ckgl/ubldj/init/zt", "label": "name",
"label": "name", "value": "id"
"value": "id" }
} },
},
{
title: "备料单号",
field: "djid",
width: 140,
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate",
},
{
title: "仓库编码",
field: "ckCode",
width: 140,
},
{
title: "仓库",
field: "ckName",
width: 140,
},
{
title: "容器",
field: "rqCode",
width: 140,
},
{
title: "库位",
field: "kwName",
width: 140,
},
{
title: "出库单号",
field: "lydjDjid",
width: 140,
},
// {
// title: "责任人",
// field: "fzrName",
// width:80
// },
{
title: "维护人",
field: "whr",
width: 160,
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime",
},
],
queryParams: [
[
{ {
label: "日期", title: "备料单号",
startProp: "start", field: "djid",
endProp: "end", width: 140,
span: 8,
type: "RelDaterangeV2",
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
}, },
{ {
label: "备料单号", title: "业务日期",
prop: "djid", field: "ywrq",
span: 4, fieldType: "ftDate",
type: "input",
value: "",
}, },
{ {
label: "仓库", title: "仓库编码",
prop: "ckid", field: "ckCode",
span: 4, width: 140,
type: "RelSelect", },
value: "", {
typeConfig: { title: "仓库",
src: "jcsj/common/ck/queryCkid", field: "ckName",
match: { width: 140,
value: "id",
label: "name",
},
},
}, },
{ {
label: "拣货单号", title: "容器",
prop: "jhtzDjid", field: "rqCode",
span: 4, width: 140,
type: "input",
value: "",
}, },
{ {
label: "出库单号", title: "库位",
prop: "cktzDjid", field: "kwName",
span: 4, width: 140,
type: "input", },
value: "", {
title: "出库单号",
field: "lydjDjid",
width: 140,
}, },
// { // {
// "label": "库区", // title: "责任人",
// "prop": "kqid", // field: "fzrName",
// "span": 4, // width:80
// "type": "RelSelect",
// "value": "",
// "typeConfig": {
// linkParams:['ckid'],
// linkage:true,
// "src": "wms/jcsj/kq/query",
// "match": {
// "value": "id",
// "label": "name"
// }
// }
// }, // },
],
[
{ {
label: "状态", title: "维护人",
prop: "zt", field: "whr",
span: 4, width: 160,
type: "RelSelect",
typeConfig: {
src: "lxyl/ckgl/ubldj/init/zt",
},
}, },
{ {
label: "责任人", title: "维护时间",
prop: "zrrInfo", field: "whsj",
span: 4, fieldType: "ftDateTime",
type: "input",
value: "",
}, },
], ],
], queryParams: [
/* 默认启停用 */ [{
label: "日期",
startProp: "start",
endProp: "end",
span: 8,
type: "RelDaterangeV2",
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: "备料单号",
prop: "djid",
span: 4,
type: "input",
value: "",
},
{
label: "仓库",
prop: "ckid",
span: 4,
type: "RelSelect",
value: "",
typeConfig: {
src: "jcsj/common/ck/queryCkid",
match: {
value: "id",
label: "name",
},
},
},
{
label: "拣货单号",
prop: "jhtzDjid",
span: 4,
type: "input",
value: "",
},
{
label: "出库单号",
prop: "cktzDjid",
span: 4,
type: "input",
value: "",
},
// {
// "label": "库区",
// "prop": "kqid",
// "span": 4,
// "type": "RelSelect",
// "value": "",
// "typeConfig": {
// linkParams:['ckid'],
// linkage:true,
// "src": "wms/jcsj/kq/query",
// "match": {
// "value": "id",
// "label": "name"
// }
// }
// },
],
[{
label: "状态",
prop: "zt",
span: 4,
type: "RelSelect",
typeConfig: {
src: "lxyl/ckgl/ubldj/init/zt",
},
},
{
label: "责任人",
prop: "zrrInfo",
span: 4,
type: "input",
value: "",
},
],
],
/* 默认启停用 */
},
};
},
methods: {
llzjs(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续该操作?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(res => {
this.$post('lxyl/ckgl/ubldj/llck', {
id: ctx.singleItem.id
}).then(res => {
if (res.success) {
this.$success('操作成功')
ctx.refreshId(ctx.singleItem.id)
}
})
})
} else {
this.$warning('请选中一条数据')
}
},
getRow(val) {
this.$emit("getRow", val);
}, },
};
},
methods: {
getRow(val) {
this.$emit("getRow", val);
}, },
}, components: {
components: { Edit,
Edit, },
}, };
};
</script> </script>
<style> <style>
......
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