Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
7766dd8ad8
  1. 5
      src/api/wms/package/index.ts
  2. 2
      src/directives/permission/clientTable.ts
  3. 39
      src/layout/components/CategoryHeader.vue
  4. 42
      src/layout/components/Logo/src/Logo.vue
  5. 2
      src/layout/components/Menu/src/Menu.vue
  6. 100
      src/layout/components/useRenderLayout.tsx
  7. 17
      src/store/modules/app.ts
  8. 4
      src/styles/var.css
  9. 2
      src/views/wms/inventoryManage/balance/balance.data.ts
  10. 23
      src/views/wms/inventoryManage/balance/index.vue
  11. 53
      src/views/wms/inventoryManage/package/index.vue
  12. 6
      src/views/wms/issueManage/issue/issueJobMain/index.vue
  13. 14
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  14. 6
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue
  15. 6
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue
  16. 16
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  17. 16
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
  18. 18
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  19. 18
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  20. 18
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  21. 18
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

5
src/api/wms/package/index.ts

@ -105,3 +105,8 @@ export const batchPrintingLable = async (data: any) => {
export const getLabel = async (id: number) => {
return await request.get({ url: `/wms/package/getLabel?id=` + id })
}
// 根据库存余额获取包装信息进行打印标签
export const getBalanceToPackage = async (packingNumber: String) => {
return await request.get({ url: `/wms/package/getBalanceToPackage?packingNumber=` + packingNumber})
}

2
src/directives/permission/clientTable.ts

@ -8,7 +8,7 @@ export function clientTable(app: App<Element>) {
nextTick(() => {
const top = el.getBoundingClientRect().top
////--top-tool-height:50 --tags-view-height:35
const qustionHeight = 85
const qustionHeight = 20
let paginationHeight = 0
if(el.children&&el.children.length>1){
paginationHeight = 70

39
src/layout/components/CategoryHeader.vue

@ -56,11 +56,12 @@ export default defineComponent({
appStore.setCategoryRoutePath(currentPath)
}
}
const activeMenu = computed(() => {
return appStore.getCategoryRoutePath
})
return () => (
<div class="category-container">
<div class="line"></div>
<ElMenu
defaultActive={unref(activeMenu)}
id={`${variables.namespace}-tool-header`}
@ -69,9 +70,7 @@ export default defineComponent({
prefixCls,
'h-[var(--top-category-height)] relative px-[var(--top-tool-p-x)] flex items-center ',
'dark:bg-[var(--el-bg-color)]',
{
'width':'200px'
}
]}
mode="horizontal"
backgroundColor="white"
@ -102,6 +101,7 @@ export default defineComponent({
}
}}
</ElMenu>
</div>
)
}
})
@ -115,8 +115,24 @@ $prefix-cls: #{$namespace}-tool-header;
.#{$prefix-cls} {
transition: left var(--transition-time-02);
}
.category-container{
background-color: transparent;
position: relative;
.line{
position: absolute;
width: 1px;
height:20px;
background: #fff;
top:calc(50% - 10px);
left:0;
z-index: 999;
}
}
.categoryheader{
padding-left: 20px;
background: #0069ef;
border:1px solid #0069ef;
}
@ -125,11 +141,20 @@ $prefix-cls: #{$namespace}-tool-header;
height: 40px;
margin-right: 10px;
margin-bottom: 2px;
background: rgb(242, 245, 248);
border: 1px solid #ccc;
// background: rgb(242, 245, 248);
background-color: hsla(0, 100%, 100%, 0.3);
color:#fff;
&:hover{
background: #fff !important;
color:#0069ef !important;
}
// border: 1px solid #ccc;
}
::v-deep(.el-menu-item.is-active){
background: var(--el-menu-hover-bg-color)
// background: var(--el-menu-hover-bg-color)
// background: #085cf4;
color:#0069ef !important;
background: #fff;
}
</style>

42
src/layout/components/Logo/src/Logo.vue

@ -24,26 +24,26 @@ onMounted(() => {
if (unref(collapse)) show.value = false
})
watch(
() => collapse.value,
(collapse: boolean) => {
if (unref(layout) === 'topLeft' || unref(layout) === 'cutMenu') {
show.value = true
return
}
if (!collapse) {
timer.value = setTimeout(() => {
show.value = !collapse
if(timer.value){
clearTimeout(timer.value)
timer.value = 0
}
}, 400)
} else {
show.value = !collapse
}
}
)
// watch(
// () => collapse.value,
// (collapse: boolean) => {
// if (unref(layout) === 'topLeft' || unref(layout) === 'cutMenu') {
// show.value = true
// return
// }
// if (!collapse) {
// timer.value = setTimeout(() => {
// show.value = !collapse
// if(timer.value){
// clearTimeout(timer.value)
// timer.value = 0
// }
// }, 400)
// } else {
// show.value = !collapse
// }
// }
// )
onBeforeUnmount(() => {
if(timer.value){
clearTimeout(timer.value)
@ -78,7 +78,7 @@ watch(
to="/"
>
<img
class="h-[calc(var(--logo-height)-24px)] w-[calc(var(--logo-height)-10px)]"
class="h-24px w-[calc(var(--logo-height)-20px)]"
src="@/assets/imgs/logo.png"
/>
<div

2
src/layout/components/Menu/src/Menu.vue

@ -150,7 +150,7 @@ $prefix-cls: #{$namespace}-menu;
right: 0;
width: 4px;
height: 100%;
background-color: var(--el-color-primary);
// background-color: var(--el-color-primary);
content: '';
}

100
src/layout/components/useRenderLayout.tsx

@ -38,30 +38,41 @@ const mobile = computed(() => appStore.getMobile)
const fixedMenu = computed(() => appStore.getFixedMenu)
// 搜索图片
const search = computed(() => appStore.search)
const scrollBarHeight = computed(() => {
return (window.innerHeight - appStore.getCategoryMenuHeight - 85)+'px'
})
export const useRenderLayout = () => {
const renderClassic = () => {
return (
<>
<div
class={[
'absolute top-0 left-0 h-full layout-border__right',
{ '!fixed z-3000': mobile.value }
]}
>
{logo.value ? (
<Logo
<div style="display:flex;flex-direction:row;width:100%;background:#0069ef;" class={['h-[var(--top-category-height)]']}>
{logo.value ? (
<Logo
class={[
'bg-[var(--left-menu-bg-color)] relative',
'h-[var(--top-category-height)]',
'bg-[var(--el-color-primary)] relative',
'w-[var(--left-menu-max-width)]',
{
'!pl-0': mobile.value && collapse.value,
'w-[var(--left-menu-min-width)]': appStore.getCollapse,
'w-[var(--left-menu-max-width)]': !appStore.getCollapse
}
]}
style="transition: all var(--transition-time-02);"
style="transition: all var(--transition-time-02);background:#0069ef;"
></Logo>
) : undefined}
{appStore.getShowCategoryMenu?(<CategoryHeader class={[
'bg-[var(--top-header-bg-color)]',
{
'layout-border__bottom': !tagsView.value
}
]}></CategoryHeader>):undefined}
</div>
<div
class={[
'absolute top-[var(--top-category-height)] left-0 h-full layout-border__right1',
{ '!fixed z-3000': mobile.value }
]}
>
{/* {search.value && !appStore.getCollapse? (<div class={[
prefixCls,
'h-[var(--top-tool-height)] relative px-[var(--top-tool-p-x)] flex items-center justify-between'
@ -73,12 +84,12 @@ export const useRenderLayout = () => {
'w-[var(--left-menu-max-width)]': !appStore.getCollapse
}
]} isModal={false} /> </div>) : undefined} */}
<Menu class={[{ '!h-[calc(100%-var(--logo-height))]': logo.value }]}></Menu>
<Menu class={['top-0',{ '!h-[calc(100%-var(--logo-height))]': logo.value }]}></Menu>
</div>
<div
class={[
`${prefixCls}-content`,
'absolute top-[var(--top-category-height)] h-[calc(100%-var(--top-category-height))]',
'absolute top-[var(--top-category-height)]',
{
'w-[calc(100%-var(--left-menu-min-width))] left-[var(--left-menu-min-width)]':
collapse.value && !mobile.value && !mobile.value,
@ -89,49 +100,44 @@ export const useRenderLayout = () => {
]}
style="transition: all var(--transition-time-02);"
>
<ElScrollbar
v-loading={pageLoading.value}
<div
class={[
`${prefixCls}-content-scrollbar`,
{
'!h-[calc(100%-var(--top-tool-height)-var(--top-category-height)-var(--tags-view-height))] mt-[calc(var(--top-tool-height)+var(--tags-view-height))]':
fixedHeader.value
'top-[var(--top-category-height) left-0 z-10': fixedHeader.value,
'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)]':
collapse.value && fixedHeader.value && !mobile.value,
'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)]':
!collapse.value && fixedHeader.value && !mobile.value,
'!w-full !left-0': mobile.value
}
]}
style="transition: all var(--transition-time-02);width:100%;"
>
<div
<ToolHeader
class={[
'bg-[var(--top-header-bg-color)]',
{
'fixed top-0 left-0 z-10': fixedHeader.value,
'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)]':
collapse.value && fixedHeader.value && !mobile.value,
'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)]':
!collapse.value && fixedHeader.value && !mobile.value,
'!w-full !left-0': mobile.value
'layout-border__bottom': !tagsView.value
}
]}
style="transition: all var(--transition-time-02);"
>
{appStore.getShowCategoryMenu?(<CategoryHeader class={[
'bg-[var(--top-header-bg-color)]',
{
'layout-border__bottom': !tagsView.value
}
]}></CategoryHeader>):undefined}
<ToolHeader
class={[
'bg-[var(--top-header-bg-color)]',
{
'layout-border__bottom': !tagsView.value
}
]}
></ToolHeader>
{tagsView.value ? (
<TagsView class="layout-border__bottom layout-border__top"></TagsView>
) : undefined}
</div>
></ToolHeader>
{tagsView.value ? (
<TagsView class="layout-border__bottom layout-border__top"></TagsView>
) : undefined}
</div>
<ElScrollbar
v-loading={pageLoading.value}
height={scrollBarHeight.value}
class={[
`${prefixCls}-content-scrollbar`,
{
'!h-[calc(100%-var(--app-content-padding)-var(--top-tool-height)-var(--top-category-height)-var(--tags-view-height))] ':
fixedHeader.value
}
]}
>
<AppView></AppView>
</ElScrollbar>
</div>

17
src/store/modules/app.ts

@ -38,6 +38,7 @@ interface AppState {
fixedMenu: boolean
categoryRoutePath:string
showCategoryMenu: boolean
categoryMenuHeight:number
}
export const useAppStore = defineStore('app', {
@ -76,17 +77,17 @@ export const useAppStore = defineStore('app', {
// 左侧菜单边框颜色
leftMenuBorderColor: 'inherit',
// 左侧菜单背景颜色
leftMenuBgColor: '#001529',
leftMenuBgColor: 'rgb(241,243,244)',
// 左侧菜单浅色背景颜色
leftMenuBgLightColor: '#0f2438',
leftMenuBgLightColor: 'rgb(241,243,244)',
// 左侧菜单选中背景颜色
leftMenuBgActiveColor: 'var(--el-color-primary)',
leftMenuBgActiveColor: 'rgb(241,243,244)',
// 左侧菜单收起选中背景颜色
leftMenuCollapseBgActiveColor: 'var(--el-color-primary)',
// 左侧菜单字体颜色
leftMenuTextColor: '#bfcbd9',
leftMenuTextColor: '#666',
// 左侧菜单选中字体颜色
leftMenuTextActiveColor: '#fff',
leftMenuTextActiveColor: '#0069ef',
// logo字体颜色
logoTitleTextColor: '#fff',
// logo边框颜色
@ -101,7 +102,8 @@ export const useAppStore = defineStore('app', {
topToolBorderColor: '#eee'
},
categoryRoutePath:'',
showCategoryMenu:true // true:顶部展示一级菜单栏 false:只有左侧菜单栏
showCategoryMenu:true, // true:顶部展示一级菜单栏 false:只有左侧菜单栏
categoryMenuHeight:60 // true:顶部展示一级菜单栏 false:只有左侧菜单栏
}
},
getters: {
@ -186,6 +188,9 @@ export const useAppStore = defineStore('app', {
getShowCategoryMenu():boolean {
return this.showCategoryMenu
},
getCategoryMenuHeight():number {
return this.categoryMenuHeight
}
},
actions: {
setBreadcrumb(breadcrumb: boolean) {

4
src/styles/var.css

@ -1,5 +1,5 @@
:root {
--login-bg-color: #293146;
--login-bg-color: #0069ef;
--left-menu-max-width: 200px;
@ -19,7 +19,7 @@
/* left menu end */
/* logo start */
--logo-height: 50px;
--logo-height: 60px;
--logo-title-text-color: #fff;
/* logo end */

2
src/views/wms/inventoryManage/balance/balance.data.ts

@ -429,7 +429,7 @@ export const Balance = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 100,
width: 200,
fixed: 'right'
},
}

23
src/views/wms/inventoryManage/balance/index.vue

@ -59,12 +59,14 @@
<script setup lang="ts">
import download from '@/utils/download'
import * as BalanceApi from '@/api/wms/balance'
import * as PackageApi from '@/api/wms/package'
import BasicForm from '@/components/BasicForm/src/BasicForm.vue'
import { Balance, BalanceRules } from './balance.data'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { getAccessToken } from '@/utils/auth'
//
defineOptions({ name: 'Balance' })
@ -142,6 +144,7 @@ const butttondata = [
float:'right',
hasPermi: ''
},
defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //
]
@ -151,6 +154,8 @@ const buttonTableClick = async (val, row) => {
if (val == 'bqxx') {
let aaa = 'HPQ;V1.0;I'+row.itemCode+';P'+row.packingNumber+';B'+row.batch+';Q'+row.qty+';U'+row.uom
alert(aaa)
}else if (val == 'point') { //
handlePoint(row)
}
// if (val == 'edit') { //
// // const res = await BalanceApi.getItempackaging(row.id)
@ -172,6 +177,24 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'transactionBalance')
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
//
const handlePoint = async (row) => {
console.log(row.packingNumber,445555555555555);
PackageApi.getBalanceToPackage(row.packingNumber).then(res => {
console.log(res,66666666666);
//
if (res.asnNumber !== null && res.asnNumber !== '') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value+'&id='+res.id)
} else {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&id='+res.id)
}
})
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {

53
src/views/wms/inventoryManage/package/index.vue

@ -41,7 +41,7 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
@success="formsSuccess"
:rules="PackageRules"
:formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams"
@ -122,6 +122,8 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'update') { //
openForm('update')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
@ -149,18 +151,10 @@ const buttonBaseClick = (val, item) => {
// }
// }
// -
// const butttondata = (row) => {
// return [
// defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:package:delete'}), //
// defaultButtons.mainListPointBtn(null), //
// ]
// }
// -
const butttondata = [
// defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), //
defaultButtons.mainListEditBtn({hasPermi:'wms:package:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:package:delete'}), //
defaultButtons.mainListPointBtn(null), //
]
@ -179,6 +173,31 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm =async (type: string, row?: number) => {
if(type == "update"){
Package.allSchemas.formSchema.forEach((item) => {
if (item.field == 'number') {
item.componentProps.disabled = true
}
if (item.field == 'itemCode') {
item.componentProps.disabled = true
}
if (item.field == 'itemName') {
item.componentProps.disabled = true
}
})
}else {
Package.allSchemas.formSchema.forEach((item) => {
if (item.field == 'number') {
item.componentProps.disabled = false
}
if (item.field == 'itemCode') {
item.componentProps.disabled = true
}
if (item.field == 'itemName') {
item.componentProps.disabled = true
}
})
}
basicFormRef.value.open(type, row)
}
@ -221,8 +240,22 @@ const handleExport = async () => {
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
// form
const formsSuccess = async (formType,data) => {
if (formType === 'create') {
await PackageApi.createPackage(data)
message.success(t('common.createSuccess'))
} else {
await PackageApi.updatePackage(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
//
const handlePoint = async (row) => {
console.log(row,66666666666);
//
if (row.asnNumber !== null && row.asnNumber !== '') {
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())

6
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -270,11 +270,11 @@ const buttonTableClick = async (val, row) => {
}
IssueJobMainApi.executeIssueMain(aaa)
} else if (val == 'mainJobAba') { //
IssueJobMainApi.abandonIssueMain(row.id)
IssueJobMainApi.abandonIssueMain(row.masterId)
} else if (val == 'mainJobClo') { //
IssueJobMainApi.closeIssueMain(row.id)
IssueJobMainApi.closeIssueMain(row.masterId)
} else if (val == 'mainJobAcc') { //
IssueJobMainApi.acceptIssueMain(row.id)
IssueJobMainApi.acceptIssueMain(row.masterId)
}
}
//

14
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -218,7 +218,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
IssueRequestMainApi.close(row.id).then(() => {
IssueRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -229,7 +229,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
IssueRequestMainApi.reAdd(row.id).then(() => {
IssueRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -240,7 +240,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
IssueRequestMainApi.submit(row.id).then(() => {
IssueRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -251,7 +251,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
IssueRequestMainApi.refused(row.id).then(() => {
IssueRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -262,7 +262,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
IssueRequestMainApi.agree(row.id).then(() => {
IssueRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -273,7 +273,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainHandle') { //
await message.confirm('确认要处理吗?')
tableObject.loading = true
IssueRequestMainApi.handle(row.id).then(() => {
IssueRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -284,7 +284,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

6
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

@ -271,11 +271,11 @@ const buttonTableClick = async (val, row) => {
}
ProductionreceiptJobMainApi.executeIssueMain(aaa)
} else if (val == 'mainJobAba') { //
ProductionreceiptJobMainApi.abandonIssueMain(row.id)
ProductionreceiptJobMainApi.abandonIssueMain(row.masterId)
} else if (val == 'mainJobClo') { //
ProductionreceiptJobMainApi.closeIssueMain(row.id)
ProductionreceiptJobMainApi.closeIssueMain(row.masterId)
} else if (val == 'mainJobAcc') { //
ProductionreceiptJobMainApi.acceptIssueMain(row.id)
ProductionreceiptJobMainApi.acceptIssueMain(row.masterId)
}
}
//

6
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -243,11 +243,11 @@ const buttonTableClick = async (val, row) => {
}
ProductionreturnJobMainApi.executeProductionreturnMain(aaa)
} else if (val == 'mainJobAba') { //
ProductionreturnJobMainApi.abandonProductionreturnMain(row.id)
ProductionreturnJobMainApi.abandonProductionreturnMain(row.masterId)
} else if (val == 'mainJobClo') { //
ProductionreturnJobMainApi.closeProductionreturnMain(row.id)
ProductionreturnJobMainApi.closeProductionreturnMain(row.masterId)
} else if (val == 'mainJobAcc') { //
ProductionreturnJobMainApi.acceptProductionreturnMain(row.id)
ProductionreturnJobMainApi.acceptProductionreturnMain(row.masterId)
}
}
//

16
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -330,7 +330,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.close(row.id).then(() => {
ProductionreturnRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -341,7 +341,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.reAdd(row.id).then(() => {
ProductionreturnRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -352,7 +352,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.submit(row.id).then(() => {
ProductionreturnRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -363,7 +363,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.refused(row.id).then(() => {
ProductionreturnRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -374,7 +374,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductionreturnRequestMainApi.agree(row.id).then(() => {
ProductionreturnRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -397,7 +397,7 @@ const buttonTableClick = async (val, row) => {
return
}
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
await getDetailList()
//
@ -467,7 +467,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
ProductionreturnRequestMainApi.handle(row.id).then(() => {
ProductionreturnRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -478,7 +478,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
} else if (val == 'point') { //
handlePoint(row)
}

16
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -323,7 +323,7 @@ const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.close(row.id).then(() => {
ProductionreturnRequestMainNoApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -334,7 +334,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainReAdd') { //
await message.confirm('确认要重新添加吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.reAdd(row.id).then(() => {
ProductionreturnRequestMainNoApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -345,7 +345,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainSubmit') { //
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.submit(row.id).then(() => {
ProductionreturnRequestMainNoApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -356,7 +356,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.refused(row.id).then(() => {
ProductionreturnRequestMainNoApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -367,7 +367,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainApprove') { //
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
ProductionreturnRequestMainNoApi.agree(row.id).then(() => {
ProductionreturnRequestMainNoApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -390,7 +390,7 @@ const buttonTableClick = async (val, row) => {
return
}
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
await getDetailList()
//
@ -460,7 +460,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
ProductionreturnRequestMainNoApi.handle(row.id).then(() => {
ProductionreturnRequestMainNoApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -471,7 +471,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
} else if (val == 'point') { //
handlePoint(row)
}

18
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -238,7 +238,7 @@ const butttondata = (row,$index) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
await ProductionMainApi.open(row.id).then(() => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -249,7 +249,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
await ProductionMainApi.close(row.id).then(() => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -261,7 +261,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
await ProductionMainApi.submit(row.id).then(() => {
await ProductionMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -272,7 +272,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
await ProductionMainApi.reject(row.id).then(() => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -284,7 +284,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
await ProductionMainApi.agree(row.id).then(() => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -297,7 +297,7 @@ const buttonTableClick = async (val, row) => {
await message.confirm('确认要发布吗?')
//
let isAvailable = true
await ProductionMainApi.getProductionDetail(row.id).then(async res =>{
await ProductionMainApi.getProductionDetail(row.masterId).then(async res =>{
if (res.length > 0) {
let rs = ''
res.forEach(item => {
@ -312,7 +312,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
await ProductionMainApi.publish(row.id).then(() => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -323,7 +323,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?')
tableObject.loading = true
await ProductionMainApi.resetting(row.id).then(() => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -346,7 +346,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

18
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -237,7 +237,7 @@ const butttondata = (row,$index) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
await ProductionMainApi.open(row.id).then(() => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -248,7 +248,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
await ProductionMainApi.close(row.id).then(() => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -260,7 +260,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
await ProductionMainApi.submit(row.id).then(() => {
await ProductionMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -271,7 +271,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
await ProductionMainApi.reject(row.id).then(() => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -283,7 +283,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
await ProductionMainApi.agree(row.id).then(() => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -296,7 +296,7 @@ const buttonTableClick = async (val, row) => {
await message.confirm('确认要发布吗?')
//
let isAvailable = true
await ProductionMainApi.getProductionDetail(row.id).then(async res =>{
await ProductionMainApi.getProductionDetail(row.masterId).then(async res =>{
if (res.length > 0) {
let rs = ''
res.forEach(item => {
@ -311,7 +311,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
await ProductionMainApi.publish(row.id).then(() => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -322,7 +322,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?')
tableObject.loading = true
await ProductionMainApi.resetting(row.id).then(() => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -345,7 +345,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

18
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -237,7 +237,7 @@ const butttondata = (row,$index) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
await ProductionMainApi.open(row.id).then(() => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -248,7 +248,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
await ProductionMainApi.close(row.id).then(() => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -260,7 +260,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
await ProductionMainApi.submit(row.id).then(() => {
await ProductionMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -271,7 +271,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
await ProductionMainApi.reject(row.id).then(() => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -283,7 +283,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
await ProductionMainApi.agree(row.id).then(() => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -296,7 +296,7 @@ const buttonTableClick = async (val, row) => {
await message.confirm('确认要发布吗?')
//
let isAvailable = true
await ProductionMainApi.getProductionDetail(row.id).then(async res =>{
await ProductionMainApi.getProductionDetail(row.masterId).then(async res =>{
if (res.length > 0) {
let rs = ''
res.forEach(item => {
@ -311,7 +311,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
await ProductionMainApi.publish(row.id).then(() => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -322,7 +322,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?')
tableObject.loading = true
await ProductionMainApi.resetting(row.id).then(() => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -345,7 +345,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

18
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -237,7 +237,7 @@ const butttondata = (row,$index) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPlanOpe') { //
tableObject.loading = true
await ProductionMainApi.open(row.id).then(() => {
await ProductionMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -248,7 +248,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanClo') { //
await message.confirm('确认要关闭吗?')
tableObject.loading = true
await ProductionMainApi.close(row.id).then(() => {
await ProductionMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -260,7 +260,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?')
tableObject.loading = true
await ProductionMainApi.submit(row.id).then(() => {
await ProductionMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -271,7 +271,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanTur') { //
await message.confirm('确认要驳回吗?')
tableObject.loading = true
await ProductionMainApi.reject(row.id).then(() => {
await ProductionMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -283,7 +283,7 @@ const buttonTableClick = async (val, row) => {
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要审批通过吗?')
tableObject.loading = true
await ProductionMainApi.agree(row.id).then(() => {
await ProductionMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -296,7 +296,7 @@ const buttonTableClick = async (val, row) => {
await message.confirm('确认要发布吗?')
//
let isAvailable = true
await ProductionMainApi.getProductionDetail(row.id).then(async res =>{
await ProductionMainApi.getProductionDetail(row.masterId).then(async res =>{
if (res.length > 0) {
let rs = ''
res.forEach(item => {
@ -311,7 +311,7 @@ const buttonTableClick = async (val, row) => {
return
}
tableObject.loading = true
await ProductionMainApi.publish(row.id).then(() => {
await ProductionMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -322,7 +322,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainPlanRes') { //
await message.confirm('确认要重置吗?')
tableObject.loading = true
await ProductionMainApi.resetting(row.id).then(() => {
await ProductionMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
@ -345,7 +345,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

Loading…
Cancel
Save