Browse Source

批量修改备注保存失败bug,因为少传了一个参数

hella_online_20240829
TengXF 4 months ago
parent
commit
dce8b993b5
  1. 4
      src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
  2. 14
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  3. 14
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
  4. 14
      src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
  5. 14
      src/views/wms/countManage/count/countJobMain/index.vue
  6. 2
      src/views/wms/countManage/count/countPlanMain/index.vue
  7. 2
      src/views/wms/countManage/count/countRecordMain/index.vue
  8. 6
      src/views/wms/countManage/count/countRequestMain/index.vue
  9. 4
      src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue
  10. 6
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  11. 2
      src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue
  12. 16
      src/views/wms/inventoryManage/package/index.vue
  13. 2
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  14. 4
      src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue
  15. 2
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
  16. 10
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue
  17. 4
      src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue
  18. 2
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  19. 2
      src/views/wms/issueManage/pick/pickJobMain/index.vue
  20. 2
      src/views/wms/issueManage/pick/pickRecordMain/index.vue
  21. 2
      src/views/wms/issueManage/pick/pickRequestMain/index.vue
  22. 2
      src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue
  23. 4
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  24. 2
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  25. 4
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue
  26. 12
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  27. 10
      src/views/wms/moveManage/itemChange/index.vue
  28. 2
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue
  29. 44
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  30. 4
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  31. 94
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  32. 42
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/index.vue

4
src/views/wms/basicDataManage/labelManage/locationLabel/index.vue

@ -68,7 +68,7 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/** /**
* PurchasePackage type = PurchaseLabel 采购件标签记录页面 * PurchasePackage type = PurchaseLabel 采购件标签记录页面
* ManufacturePackage type = MakeLabel 制造件标签记录页面 * ManufacturePackage type = MakeLabel 制造件标签记录页面
* UtensilPackage type = ContainerLabel 器具标签记录页面 * UtensilPackage type = ContainerLabel 器具标签记录页面
* SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签) * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
@ -150,7 +150,7 @@ const openForm = (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"labelBarbasic")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

14
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -39,11 +39,11 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="formsSuccess" @success="formsSuccess"
:rules="PackageRulesInventor" :rules="PackageRulesInventor"
:formAllSchemas="PackageInventory.allSchemas" :formAllSchemas="PackageInventory.allSchemas"
:apiUpdate="PackageApi.updatePackage" :apiUpdate="PackageApi.updatePackage"
:apiCreate="PackageApi.createPackageLabel" :apiCreate="PackageApi.createPackageLabel"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -81,7 +81,7 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/** /**
* PurchasePackage type = PurchaseLabel 采购件标签记录页面 * PurchasePackage type = PurchaseLabel 采购件标签记录页面
* ManufacturePackage type = MakeLabel 制造件标签记录页面 * ManufacturePackage type = MakeLabel 制造件标签记录页面
* UtensilPackage type = ContainerLabel 器具标签记录页面 * UtensilPackage type = ContainerLabel 器具标签记录页面
* SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签) * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
@ -219,7 +219,7 @@ const openForm = (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"labelBarbasic")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

14
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -39,11 +39,11 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="formsSuccess" @success="formsSuccess"
:rules="PackageRulesInventor" :rules="PackageRulesInventor"
:formAllSchemas="PackageInventory.allSchemas" :formAllSchemas="PackageInventory.allSchemas"
:apiUpdate="PackageApi.updatePackage" :apiUpdate="PackageApi.updatePackage"
:apiCreate="PackageApi.createPackageLabel" :apiCreate="PackageApi.createPackageLabel"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -82,7 +82,7 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/** /**
* PurchasePackage type = PurchaseLabel 采购件标签记录页面 * PurchasePackage type = PurchaseLabel 采购件标签记录页面
* ManufacturePackage type = MakeLabel 制造件标签记录页面 * ManufacturePackage type = MakeLabel 制造件标签记录页面
* UtensilPackage type = ContainerLabel 器具标签记录页面 * UtensilPackage type = ContainerLabel 器具标签记录页面
* SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签) * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
@ -220,7 +220,7 @@ const openForm = (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"labelBarbasic")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

14
src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue

@ -39,11 +39,11 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="getList" @success="getList"
:rules="PackageRules" :rules="PackageRules"
:formAllSchemas="Package.allSchemas" :formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiUpdate="BarbasicApi.updateBarbasic" :apiUpdate="BarbasicApi.updateBarbasic"
:apiCreate="BarbasicApi.createBarbasic" :apiCreate="BarbasicApi.createBarbasic"
@ -78,7 +78,7 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/** /**
* PurchasePackage type = PurchaseLabel 采购件标签记录页面 * PurchasePackage type = PurchaseLabel 采购件标签记录页面
* ManufacturePackage type = MakeLabel 制造件标签记录页面 * ManufacturePackage type = MakeLabel 制造件标签记录页面
* UtensilPackage type = ContainerLabel 器具标签记录页面 * UtensilPackage type = ContainerLabel 器具标签记录页面
* SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签) * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
@ -202,7 +202,7 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"labelBarbasic")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

14
src/views/wms/countManage/count/countJobMain/index.vue

@ -65,11 +65,11 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportDetailForm <ImportDetailForm
ref="importFormRef" ref="importFormRef"
url="/wms/count-job-main/import" url="/wms/count-job-main/import"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
:updateIsDisable="true" :updateIsDisable="true"
:coverIsDisable="true" :coverIsDisable="true"
:mode="1" :mode="1"
@ -251,7 +251,7 @@ const buttonTableClick = async (val, row) => {
} else if( val == 'done'){ // } else if( val == 'done'){ //
handleDone(row.id) handleDone(row.id)
} }
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
@ -270,7 +270,7 @@ const handleDone = async (id: number) => {
await CountJobMainApi.doneCountJobMain(id) await CountJobMainApi.doneCountJobMain(id)
await getList() await getList()
} catch { } catch {
} }
} }
@ -282,7 +282,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"jobCountMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

2
src/views/wms/countManage/count/countPlanMain/index.vue

@ -457,7 +457,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
// getAreaAllList() // getAreaAllList()
// getLocationgroupAllList() // getLocationgroupAllList()
// getLocationAllList() // getLocationAllList()
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"planCountMain")
} }
// //
const detailOpenForm = (type, row) => { const detailOpenForm = (type, row) => {

2
src/views/wms/countManage/count/countRecordMain/index.vue

@ -154,7 +154,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordCountMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

6
src/views/wms/countManage/count/countRequestMain/index.vue

@ -97,7 +97,7 @@
<SearchTableCount <SearchTableCount
ref="searchTableRef" ref="searchTableRef"
@searchTableSuccess="searchTableSuccessCount" @searchTableSuccess="searchTableSuccessCount"
/> />
</template> </template>
@ -284,7 +284,7 @@ const isShowGenerateMainButton = (row, val) => {
const searchTableRef = ref() const searchTableRef = ref()
// - // -
const butttondata = (row,$index) => { const butttondata = (row,$index) => {
return [ return [
defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), // defaultButtons.mainListCloseBtn({hide: isShowMainButton(row, ['1', '2', '3', '4', '6']),hasPermi: 'wms:count-request-main:close'}), //
defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), // defaultButtons.mainListReAddBtn({hide: isShowMainButton(row, ['5']),hasPermi: 'wms:count-request-main:reAdd'}), //
@ -458,7 +458,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestCountMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

4
src/views/wms/countManage/countadjust/countadjustRecordMain/index.vue

@ -126,7 +126,7 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = (row,$index) => { const butttondata = (row,$index) => {
return [] return []
} }
@ -140,7 +140,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordCountadjustMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

6
src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue

@ -76,7 +76,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/countadjust-request-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/countadjust-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
</template> </template>
@ -266,7 +266,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)
@ -288,7 +288,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestCountadjustMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

2
src/views/wms/inventoryManage/containerinit/containerinitadd/index.vue

@ -245,7 +245,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"transactionContainerMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

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

@ -39,11 +39,11 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="basicFormRef" ref="basicFormRef"
@success="formsSuccess" @success="formsSuccess"
:rules="PackageRules" :rules="PackageRules"
:formAllSchemas="Package.allSchemas" :formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiUpdate="PackageApi.updatePackage" :apiUpdate="PackageApi.updatePackage"
:apiCreate="PackageApi.createPackageLabel" :apiCreate="PackageApi.createPackageLabel"
@ -185,7 +185,7 @@ const openForm =async (type: string, row?: number) => {
if (item.field == 'itemName') { if (item.field == 'itemName') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
}) })
}else { }else {
Package.allSchemas.formSchema.forEach((item) => { Package.allSchemas.formSchema.forEach((item) => {
if (item.field == 'number') { if (item.field == 'number') {
@ -197,7 +197,7 @@ const openForm =async (type: string, row?: number) => {
if (item.field == 'itemName') { if (item.field == 'itemName') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
}) })
} }
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
} }
@ -205,7 +205,7 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"transactionPackage")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

2
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -197,7 +197,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordContainerMain")
} }
/** 添加/修改操作 */ /** 添加/修改操作 */

4
src/views/wms/inventoryjobManage/packageManage/packagemergeMain/index.vue

@ -128,7 +128,7 @@ const buttonTableClick = async (val, row) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordPackagemergeMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
@ -160,4 +160,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => { onMounted(async () => {
getList() getList()
}) })
</script> </script>

2
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

@ -172,7 +172,7 @@ const handlePoint = async (row) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordPackageoverMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

10
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/index.vue

@ -74,7 +74,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/packageover-request-main/import" :importTemplateData="importTemplateData" @success="importSuccess" <ImportForm ref="importFormRef" url="/wms/packageover-request-main/import" :importTemplateData="importTemplateData" @success="importSuccess"
:updateIsDisable="true" :coverIsDisable="true" :mode="2"/> :updateIsDisable="true" :coverIsDisable="true" :mode="2"/>
</template> </template>
@ -125,7 +125,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromPackQty'] = item['packQty'] newRow['fromPackQty'] = item['packQty']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else if (formField == 'toPackUnit') { } else if (formField == 'toPackUnit') {
row['toPackUnit'] = val[0]['packUnit'] row['toPackUnit'] = val[0]['packUnit']
row['toPackQty'] = val[0]['packQty'] row['toPackQty'] = val[0]['packQty']
@ -196,7 +196,7 @@ const HeadButttondata = [
// }, // },
] ]
const labelType = ref('') // const labelType = ref('') //
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
@ -317,7 +317,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.masterId) handleDelete(row.masterId)
@ -340,7 +340,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestPackageoverMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

4
src/views/wms/inventoryjobManage/packageManage/packagesplitMain/index.vue

@ -128,7 +128,7 @@ const buttonTableClick = async (val, row) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordPackagesplitMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
@ -160,4 +160,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => { onMounted(async () => {
getList() getList()
}) })
</script> </script>

2
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -240,7 +240,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestOnlinesettlementMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

2
src/views/wms/issueManage/pick/pickJobMain/index.vue

@ -203,7 +203,7 @@ const buttonTableClick = async (val, row) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"jobPickMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

2
src/views/wms/issueManage/pick/pickRecordMain/index.vue

@ -136,7 +136,7 @@ const buttonTableClick = async (val, row) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordStockupMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

2
src/views/wms/issueManage/pick/pickRequestMain/index.vue

@ -245,7 +245,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestStockupMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

2
src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/index.vue

@ -190,7 +190,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordInventorychangeMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

4
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -165,7 +165,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -378,7 +378,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestInventorychangeMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

2
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -288,7 +288,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"jobInventorymoveMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

4
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -60,7 +60,7 @@
:apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage" :apiPage="InventorymoveRecordDetailApi.getInventorymoveRecordDetailPage"
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/inventorymove-record-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/inventorymove-record-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :fromInventoryStatus= "fromInventoryStatus" :toInventoryStatus="toInventoryStatus" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :fromInventoryStatus= "fromInventoryStatus" :toInventoryStatus="toInventoryStatus" />
</template> </template>
@ -213,7 +213,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordInventorymoveMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

12
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -77,7 +77,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/inventorymove-request-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/inventorymove-request-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :fromInventoryStatus= "fromInventoryStatus" :toInventoryStatus="toInventoryStatus" /> @success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :fromInventoryStatus= "fromInventoryStatus" :toInventoryStatus="toInventoryStatus" />
</template> </template>
@ -611,7 +611,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
fromWarehouseCodeMain.value = row.fromWarehouseCode fromWarehouseCodeMain.value = row.fromWarehouseCode
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestInventorymoveMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -694,7 +694,7 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
data.subList = tableData.value // data.subList = tableData.value //
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber == item.fromPackingNumber) ) let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber == item.fromPackingNumber) )
@ -711,13 +711,13 @@ const submitForm = async (formType, submitData) => {
if(fromInventoryStatus.value){ if(fromInventoryStatus.value){
item.fromInventoryStatus = fromInventoryStatus.value item.fromInventoryStatus = fromInventoryStatus.value
item.toInventoryStatus = toInventoryStatus.value item.toInventoryStatus = toInventoryStatus.value
} }
if(item.qty == 0){ if(item.qty == 0){
message.error(`到数量不能为0!`) message.error(`到数量不能为0!`)
flag.value = true flag.value = true
return; return;
} }
}) })
if(flag.value){ if(flag.value){
formRef.value.formLoading = false formRef.value.formLoading = false
return return

10
src/views/wms/moveManage/itemChange/index.vue

@ -103,7 +103,7 @@ const HeadButttondata = [
// }, // },
] ]
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
@ -120,7 +120,7 @@ const buttonBaseClick = (val, item) => {
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
@ -131,7 +131,7 @@ const butttondata = [
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //
] ]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row) openForm('update', row)
@ -150,7 +150,7 @@ const openForm = (type: string, row?: any) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"transactionBalance")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -229,4 +229,4 @@ onMounted(async () => {
getList() getList()
// importTemplateData.templateUrl = await BalanceApi.importTemplate() // importTemplateData.templateUrl = await BalanceApi.importTemplate()
}) })
</script> </script>

2
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRecordMain/index.vue

@ -144,7 +144,7 @@ const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordPurchaseclaimMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

44
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -29,35 +29,35 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="formRef" ref="formRef"
:rules="PurchaseclaimRequestMainRules" :rules="PurchaseclaimRequestMainRules"
:formAllSchemas="PurchaseclaimRequestMain.allSchemas" :formAllSchemas="PurchaseclaimRequestMain.allSchemas"
:tableAllSchemas="PurchaseclaimRequestDetail.allSchemas" :tableAllSchemas="PurchaseclaimRequestDetail.allSchemas"
:tableFormRules="PurchaseclaimRequestDetailRules" :tableData="tableData" :tableFormRules="PurchaseclaimRequestDetailRules" :tableData="tableData"
:apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain" :apiUpdate="PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain"
:apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain" :apiCreate="PurchaseclaimRequestMainApi.createPurchaseclaimRequestMain"
:isBusiness="true" :isBusiness="true"
@success="getList" @success="getList"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
:isShowReduceButtonSelection="true" :isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@inputStringBlur="inputStringBlur"/> @inputStringBlur="inputStringBlur"/>
<!-- 详情 --> <!-- 详情 -->
<Detail ref="detailRef" <Detail ref="detailRef"
:isBasic="false" :isBasic="false"
:allSchemas="PurchaseclaimRequestMain.allSchemas" :allSchemas="PurchaseclaimRequestMain.allSchemas"
:detailAllSchemas="PurchaseclaimRequestDetail.allSchemas" :detailAllSchemas="PurchaseclaimRequestDetail.allSchemas"
:detailAllSchemasRules="PurchaseclaimRequestDetailRules" :detailAllSchemasRules="PurchaseclaimRequestDetailRules"
:apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail" :apiCreate="PurchaseclaimRequestDetailApi.createPurchaseclaimRequestDetail"
:apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail" :apiUpdate="PurchaseclaimRequestDetailApi.updatePurchaseclaimRequestDetail"
:apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage" :apiPage="PurchaseclaimRequestDetailApi.getPurchaseclaimRequestDetailPage"
:apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail" :apiDelete="PurchaseclaimRequestDetailApi.deletePurchaseclaimRequestDetail"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -181,7 +181,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
// }, // },
] ]
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
openForm('create') openForm('create')
@ -198,7 +198,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
@ -241,7 +241,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
} }
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') { // if (val == 'mainPurPlanOpe') { //
handleOpe(row.id) handleOpe(row.id)
@ -283,7 +283,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
const openDetail = (row : any, titleName : any, titleValue : any) => { const openDetail = (row : any, titleName : any, titleValue : any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestPurchaseclaimMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -302,8 +302,8 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
const handleClo = async (id : number) => { const handleClo = async (id : number) => {
try { try {
@ -320,7 +320,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 打开按钮操作 */ /** 打开按钮操作 */
const handleOpe = async (id : number) => { const handleOpe = async (id : number) => {
try { try {
@ -337,7 +337,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 提交审批按钮操作 */ /** 提交审批按钮操作 */
const handleSub = async (id : number) => { const handleSub = async (id : number) => {
try { try {
@ -354,7 +354,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
const handleApp = async (id : number) => { const handleApp = async (id : number) => {
try { try {
@ -371,7 +371,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 驳回按钮操作 */ /** 驳回按钮操作 */
const handleTur = async (id : number) => { const handleTur = async (id : number) => {
try { try {
@ -388,7 +388,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
tableObject.loading = false tableObject.loading = false
} }
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
const genRecords = async (id : number) => { const genRecords = async (id : number) => {
try { try {

4
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

@ -17,7 +17,7 @@
<!-- 列表 --> <!-- 列表 -->
<ContentWrap> <ContentWrap>
<Table ref="tableRef" <Table ref="tableRef"
:selection="true" :selection="true"
v-clientTable v-clientTable
:columns="tableColumns" :columns="tableColumns"
:data="tableObject.tableList" :data="tableObject.tableList"
@ -270,7 +270,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any) => {
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"recordSupplierinvoiceMain")
} }
const searchList = (model)=>{ const searchList = (model)=>{
if(model.postingDate&&model.postingDate.length>1){ if(model.postingDate&&model.postingDate.length>1){

94
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -5,14 +5,14 @@
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead <TableHead
:HeadButttondata="HeadButttondata" :HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="SupplierinvoiceRequestMain.allSchemas" :allSchemas="SupplierinvoiceRequestMain.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -41,18 +41,18 @@
</ContentWrap> </ContentWrap>
<!-- 表单弹窗添加/修改 --> <!-- 表单弹窗添加/修改 -->
<BasicForm <BasicForm
ref="formRef" ref="formRef"
@success="getList" @success="getList"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="poLine" fieldTableColumn="poLine"
:showSearchTableQueryFields = "['poLine']" :showSearchTableQueryFields = "['poLine']"
:rules="SupplierinvoiceRequestMainRules" :rules="SupplierinvoiceRequestMainRules"
:formAllSchemas="SupplierinvoiceRequestMain.allSchemas" :formAllSchemas="SupplierinvoiceRequestMain.allSchemas"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:tableAllSchemas="SupplierinvoiceRequestDetail.allSchemas" :tableAllSchemas="SupplierinvoiceRequestDetail.allSchemas"
:tableFormRules="SupplierinvoiceRequestDetailRules" :tableFormRules="SupplierinvoiceRequestDetailRules"
:tableData="tableData" :tableData="tableData"
:sumFormDataByForm ="(formRef,formModel,tableData,formType,originFormModel,updateOriginFormModel,sumFormDataHandle1)=>{ :sumFormDataByForm ="(formRef,formModel,tableData,formType,originFormModel,updateOriginFormModel,sumFormDataHandle1)=>{
const {taxRate=0,amount=0,taxAmount=0,beforeTaxAmount=0,totalTaxAmount=0,discountAmount1=0,beforeTaxDiffAmount=0,taxAmountDiff=0} = formModel const {taxRate=0,amount=0,taxAmount=0,beforeTaxAmount=0,totalTaxAmount=0,discountAmount1=0,beforeTaxDiffAmount=0,taxAmountDiff=0} = formModel
// 2X*2 // 2X*2
@ -80,7 +80,7 @@
updateOriginFormModel(formModel) updateOriginFormModel(formModel)
} }
formRef.value.setValues({ formRef.value.setValues({
taxAmount:taxAmount_, taxAmount:taxAmount_,
afterTaxAmount:amount+taxAmount, // 3+ afterTaxAmount:amount+taxAmount, // 3+
adTaxAmount:beforeTaxAmount+totalTaxAmount, //6+ adTaxAmount:beforeTaxAmount+totalTaxAmount, //6+
beforeTaxDiffAmount:beforeTaxAmount-amount-discountAmount1,//-- beforeTaxDiffAmount:beforeTaxAmount-amount-discountAmount1,//--
@ -88,9 +88,9 @@
totalTaxDiffAmount:beforeTaxDiffAmount+taxAmountDiff // =+ totalTaxDiffAmount:beforeTaxDiffAmount+taxAmountDiff // =+
}) })
} }
}" }"
:sumFormDataByTableCustom ="(formRef,formModel,tableData)=>{ :sumFormDataByTableCustom ="(formRef,formModel,tableData)=>{
// 1 XX // 1 XX
const {taxRate=0} = formModel const {taxRate=0} = formModel
@ -100,19 +100,19 @@
} }
formRef.value.setValues(sumObject) formRef.value.setValues(sumObject)
}" }"
:apiUpdate="SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain" :apiUpdate="SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain"
:apiCreate="SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain" :apiCreate="SupplierinvoiceRequestMainApi.createSupplierinvoiceRequestMain"
:isBusiness="true" :isBusiness="true"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
:isShowReduceButtonSelection="true" :isShowReduceButtonSelection="true"
@tableSelectionDelete="tableSelectionDelete" @tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@sumFormDataHandle="sumFormDataHandle" @sumFormDataHandle="sumFormDataHandle"
> >
<template #selectionsActionspoLine="{selections}"> <template #selectionsActionspoLine="{selections}">
<div style="text-align: left;margin-right:10px"> <div style="text-align: left;margin-right:10px">
系统未税金额:{{Number(selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(4))*item['invoicableQuantity']).toFixed(2)),0)).toFixed(2)}} 系统未税金额:{{Number(selections.reduce((prev, item) => prev + Number(Number(Number(Number(item['purchasePrice']).toFixed(4))*item['invoicableQuantity']).toFixed(2)),0)).toFixed(2)}}
@ -129,26 +129,26 @@
</BasicForm> </BasicForm>
<!-- 财务通过窗口 finance_mainPlanSub --> <!-- 财务通过窗口 finance_mainPlanSub -->
<BasicForm <BasicForm
ref="formFinanceRef" ref="formFinanceRef"
:rules="SupplierinvoiceRequestFinanceRules" :rules="SupplierinvoiceRequestFinanceRules"
:formAllSchemas="SupplierinvoiceRequestFinance.allSchemas" :formAllSchemas="SupplierinvoiceRequestFinance.allSchemas"
:isBusiness="false" :isBusiness="false"
:footButttondata="undefined" :footButttondata="undefined"
@success="submitFormFinance" @success="submitFormFinance"
/> />
<!-- 采购通过窗口--> <!-- 采购通过窗口-->
<BasicForm <BasicForm
ref="formPurchasePassRef" ref="formPurchasePassRef"
:rules="PurchasePassRules" :rules="PurchasePassRules"
:formAllSchemas="PurchasePass.allSchemas" :formAllSchemas="PurchasePass.allSchemas"
:isBusiness="false" :isBusiness="false"
:footButttondata="undefined" :footButttondata="undefined"
@success="submitPurchasePass" @success="submitPurchasePass"
/> />
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
ref="detailRef" ref="detailRef"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="poLine" fieldTableColumn="poLine"
:annexTable="detailAnnexTable" :annexTable="detailAnnexTable"
@ -203,15 +203,15 @@
differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(4)) differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(4))
}) })
}" }"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierinvoiceRequestDetailMain.allSchemas" :allSchemas="SupplierinvoiceRequestDetailMain.allSchemas"
:detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas" :detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas"
:detailAllSchemasRules="SupplierinvoiceRequestDetailRules" :detailAllSchemasRules="SupplierinvoiceRequestDetailRules"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiCreate="SupplierinvoiceRequestDetailApi.createSupplierinvoiceRequestDetail" :apiCreate="SupplierinvoiceRequestDetailApi.createSupplierinvoiceRequestDetail"
:apiUpdate="SupplierinvoiceRequestDetailApi.updateSupplierinvoiceRequestDetail" :apiUpdate="SupplierinvoiceRequestDetailApi.updateSupplierinvoiceRequestDetail"
:apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage" :apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage"
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
:detailButtonIsShowEdit="true" :detailButtonIsShowEdit="true"
:detailButtonIsShowAddStatusArray="detailButtonIsShowAddStatusArray" :detailButtonIsShowAddStatusArray="detailButtonIsShowAddStatusArray"
@ -245,9 +245,9 @@ import dayjs from 'dayjs'
// //
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { SupplierinvoiceRequestMain, import { SupplierinvoiceRequestMain,
SupplierinvoiceRequestMainRules, SupplierinvoiceRequestMainRules,
SupplierinvoiceRequestDetail, SupplierinvoiceRequestDetail,
SupplierinvoiceRequestDetailRules, SupplierinvoiceRequestDetailRules,
SupplierinvoiceRequestFinance, SupplierinvoiceRequestFinance,
SupplierinvoiceRequestFinanceRules, SupplierinvoiceRequestFinanceRules,
@ -336,7 +336,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
// return `` // return ``
// }) // })
// //
const searchTableSuccess = (formField, searchField, val, searchFormRef, type, row) => { const searchTableSuccess = (formField, searchField, val, searchFormRef, type, row) => {
nextTick(() => { nextTick(() => {
@ -365,11 +365,11 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
newRow['arrivalQty'] = item['prhRcvd'] newRow['arrivalQty'] = item['prhRcvd']
newRow['id'] = item['id'] newRow['id'] = item['id']
newRow['currency'] = item['currency'] newRow['currency'] = item['currency']
} }
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
} else { } else {
// //
if(formField=='supplierCode'&&val[0][searchField]!=searchFormRef.formModel.supplierCode){ if(formField=='supplierCode'&&val[0][searchField]!=searchFormRef.formModel.supplierCode){
@ -388,7 +388,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
const Echo = [] const Echo = []
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: SupplierinvoiceRequestMainApi.getSupplierinvoiceRequestMainPage // getListApi: SupplierinvoiceRequestMainApi.getSupplierinvoiceRequestMainPage //
}) })
// //
@ -660,7 +660,7 @@ const handleImport = () => {
} }
console.log('defaultSupplierCode',defaultSupplierCode) console.log('defaultSupplierCode',defaultSupplierCode)
} }
// //
const { wsCache } = useCache() const { wsCache } = useCache()
@ -715,8 +715,8 @@ const handleImport = () => {
detailAnnexTable.value[1].hiddenDelete = true detailAnnexTable.value[1].hiddenDelete = true
detailAnnexTable.value[1].hiddenUpload = true detailAnnexTable.value[1].hiddenUpload = true
} }
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestSupplierinvoiceMain")
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
@ -808,7 +808,7 @@ const handleImport = () => {
const submitPurchasePass = async (id, submitData) => { const submitPurchasePass = async (id, submitData) => {
console.log(submitData) console.log(submitData)
const id1 =submitData?.id || id const id1 =submitData?.id || id
console.log(id1) console.log(id1)
try { try {
// //
@ -879,7 +879,7 @@ const handleImport = () => {
tableObject.loading = false tableObject.loading = false
} }
} }
/** 发票寄出确认按钮操作 */ /** 发票寄出确认按钮操作 */
const handleInvoiceSentOut = async (id : number) => { const handleInvoiceSentOut = async (id : number) => {
try { try {
@ -898,7 +898,7 @@ const handleImport = () => {
} }
const resonSubmit = async (val, row)=>{ const resonSubmit = async (val, row)=>{
ElMessageBox.prompt(t('ts.请输入驳回原因'), t('ts.提示'), { ElMessageBox.prompt(t('ts.请输入驳回原因'), t('ts.提示'), {
confirmButtonText: t('common.ok'), confirmButtonText: t('common.ok'),
cancelButtonText: t('common.cancel'), cancelButtonText: t('common.cancel'),
@ -1090,7 +1090,7 @@ const importSuccess = () => {
handleDocumentPrint(clicKRowId.value) handleDocumentPrint(clicKRowId.value)
}else if(val === 'printing-all'){ }else if(val === 'printing-all'){
// //
handlePrintAll(clicKRowId.value) handlePrintAll(clicKRowId.value)
}else if(val === 'export-detail'){ }else if(val === 'export-detail'){
console.log("导出明细:",clicKRowId.value) console.log("导出明细:",clicKRowId.value)
handleDetailExport(clicKRowId.value) handleDetailExport(clicKRowId.value)
@ -1130,7 +1130,7 @@ const importSuccess = () => {
const BASE_URL = getJmreportBaseUrl() const BASE_URL = getJmreportBaseUrl()
// //
const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken()) const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken())
const handleSupplierdeliverRecordPrint = async (id) => { const handleSupplierdeliverRecordPrint = async (id) => {
window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id) window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id)
@ -1188,7 +1188,7 @@ const handleSelectionPoint = async ()=>{
detailButtonIsShowAddStatusArray.value = [] detailButtonIsShowAddStatusArray.value = []
} }
} }
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

42
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMainDifference/index.vue

@ -11,14 +11,14 @@
</ContentWrap> </ContentWrap>
<!-- 列表头部 --> <!-- 列表头部 -->
<TableHead <TableHead
:HeadButttondata="HeadButttondata" :HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@updataTableColumns="updataTableColumns" @updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
:allSchemas="SupplierinvoiceRequestMain.allSchemas" :allSchemas="SupplierinvoiceRequestMain.allSchemas"
/> />
<!-- 列表 --> <!-- 列表 -->
@ -46,7 +46,7 @@
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
ref="detailRef" ref="detailRef"
:isOpenSearchTable="true" :isOpenSearchTable="true"
fieldTableColumn="poLine" fieldTableColumn="poLine"
:annexTable="detailAnnexTable" :annexTable="detailAnnexTable"
@ -101,15 +101,15 @@
differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(4)) differencePrice:Number((Number(singlePrice)-Number(purchasePrice)).toFixed(4))
}) })
}" }"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierinvoiceRequestDetailMain.allSchemas" :allSchemas="SupplierinvoiceRequestDetailMain.allSchemas"
:detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas" :detailAllSchemas="SupplierinvoiceRequestDetail.allSchemas"
:detailAllSchemasRules="SupplierinvoiceRequestDetailRules" :detailAllSchemasRules="SupplierinvoiceRequestDetailRules"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiCreate="SupplierinvoiceRequestDetailApi.createSupplierinvoiceRequestDetail" :apiCreate="SupplierinvoiceRequestDetailApi.createSupplierinvoiceRequestDetail"
:apiUpdate="SupplierinvoiceRequestDetailApi.updateSupplierinvoiceRequestDetail" :apiUpdate="SupplierinvoiceRequestDetailApi.updateSupplierinvoiceRequestDetail"
:apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage" :apiPage="SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage"
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
:detailButtonIsShowEdit="false" :detailButtonIsShowEdit="false"
:detailButtonIsShowDelete="false" :detailButtonIsShowDelete="false"
@ -132,9 +132,9 @@ import dayjs from 'dayjs'
// //
import download from '@/utils/download' import download from '@/utils/download'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { SupplierinvoiceRequestMain, import { SupplierinvoiceRequestMain,
SupplierinvoiceRequestMainRules, SupplierinvoiceRequestMainRules,
SupplierinvoiceRequestDetail, SupplierinvoiceRequestDetail,
SupplierinvoiceRequestDetailRules, SupplierinvoiceRequestDetailRules,
SupplierinvoiceRequestFinance, SupplierinvoiceRequestFinance,
SupplierinvoiceRequestFinanceRules, SupplierinvoiceRequestFinanceRules,
@ -177,8 +177,8 @@ import dayjs from 'dayjs'
} }
]) ])
const staDifferencePrice = ref() const staDifferencePrice = ref()
const endDifferencePrice = ref() const endDifferencePrice = ref()
const searchList = (model)=>{ const searchList = (model)=>{
model.staDifferencePrice = staDifferencePrice.value model.staDifferencePrice = staDifferencePrice.value
model.endDifferencePrice = endDifferencePrice.value model.endDifferencePrice = endDifferencePrice.value
@ -230,9 +230,9 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
defaultParams:{ defaultParams:{
balanceStatementStatus : 'TRUE' balanceStatementStatus : 'TRUE'
}, },
getListApi: SupplierinvoiceRequestMainApi.getSupplierinvoiceRequestMainPage // getListApi: SupplierinvoiceRequestMainApi.getSupplierinvoiceRequestMainPage //
}) })
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods
@ -302,7 +302,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
clicKRowId.value = row.id clicKRowId.value = row.id
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue,"requestSupplierinvoiceMain")
} }
/** 导出按钮操作 */ /** 导出按钮操作 */
@ -377,7 +377,7 @@ const importTemplateData = reactive({
handleDocumentPrint(clicKRowId.value) handleDocumentPrint(clicKRowId.value)
}else if(val === 'printing-all'){ }else if(val === 'printing-all'){
// //
handlePrintAll(clicKRowId.value) handlePrintAll(clicKRowId.value)
}else if(val === 'export-detail'){ }else if(val === 'export-detail'){
console.log("导出明细:",clicKRowId.value) console.log("导出明细:",clicKRowId.value)
handleDetailExport(clicKRowId.value) handleDetailExport(clicKRowId.value)
@ -417,7 +417,7 @@ const importTemplateData = reactive({
const BASE_URL = getJmreportBaseUrl() const BASE_URL = getJmreportBaseUrl()
// //
const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken()) const documentSupplierdeliverRecordSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken())
const handleSupplierdeliverRecordPrint = async (id) => { const handleSupplierdeliverRecordPrint = async (id) => {
window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id) window.open(documentSupplierdeliverRecordSrc.value + '&id=' + id)
@ -443,7 +443,7 @@ const importTemplateData = reactive({
} }
}) })
} }
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
@ -471,7 +471,7 @@ const importTemplateData = reactive({
::v-deep(.el-input-number .el-input__wrapper) { ::v-deep(.el-input-number .el-input__wrapper) {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
} }
</style> </style>

Loading…
Cancel
Save