Browse Source

增加保存按钮与主表状态关联展示

master
zhaoxuebing 11 months ago
parent
commit
bc349accd9
  1. 11
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  2. 15
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  3. 11
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

11
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -140,10 +140,10 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT
}) })
const { getList:getDetailListBom } = detatableMethodsBom const { getList:getDetailListBom } = detatableMethodsBom
/** bom 列表 表单 按钮 */ /** bom 列表 表单 按钮 */
const ButttondataBom = [ const ButttondataBom = ref([
defaultButtons.formSaveBtn(null), // defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ])
// bom // bom
const buttonBaseClickBom = async (val) => { const buttonBaseClickBom = async (val) => {
// //
@ -399,8 +399,15 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const mainStatus = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
lsBomSave.value = false lsBomSave.value = false
mainStatus.value = row.status;
console.log("mainStatus.value:",mainStatus.value)
ButttondataBom.value = [
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

15
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -145,10 +145,11 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT
}) })
const { getList:getDetailListBom } = detatableMethodsBom const { getList:getDetailListBom } = detatableMethodsBom
/** bom 列表 表单 按钮 */ /** bom 列表 表单 按钮 */
const ButttondataBom = [
const ButttondataBom = ref([
defaultButtons.formSaveBtn(null), // defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ])
// bom // bom
const buttonBaseClickBom = (val) => { const buttonBaseClickBom = (val) => {
// //
@ -433,7 +434,15 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const mainStatus = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
mainStatus.value = row.status;
console.log("mainStatus.value:",mainStatus.value)
//
ButttondataBom.value = [
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
lsBomSave.value = false lsBomSave.value = false
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }
@ -550,7 +559,6 @@ const searchFormClick = (searchData) => {
// Bom // Bom
const tableFormButton = async (val , row) => { const tableFormButton = async (val , row) => {
console.log("BBBBB",row.id);
if (val == 'bom') { // bom if (val == 'bom') { // bom
bomModelVisible.value = true bomModelVisible.value = true
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息'
@ -559,7 +567,6 @@ const tableFormButton = async (val , row) => {
bomVersion: row.bomVersion, bomVersion: row.bomVersion,
masterId: row.id masterId: row.id
} }
console.log("AAAAA",row.id);
rowId.value = row.id rowId.value = row.id
await getDetailListBom() await getDetailListBom()
} }

11
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -145,10 +145,10 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT
}) })
const { getList:getDetailListBom } = detatableMethodsBom const { getList:getDetailListBom } = detatableMethodsBom
/** bom 列表 表单 按钮 */ /** bom 列表 表单 按钮 */
const ButttondataBom = [ const ButttondataBom = ref([
defaultButtons.formSaveBtn(null), // defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) // defaultButtons.formCloseBtn(null) //
] ])
// bom // bom
const buttonBaseClickBom = (val) => { const buttonBaseClickBom = (val) => {
// //
@ -437,8 +437,15 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const mainStatus = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
lsBomSave.value = false lsBomSave.value = false
mainStatus.value = row.status;
console.log("mainStatus.value:",mainStatus.value)
ButttondataBom.value = [
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), //
defaultButtons.formCloseBtn(null) //
]
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

Loading…
Cancel
Save