Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 7 months ago
parent
commit
55ffe17b39
  1. 9
      src/components/Detail/src/Detail.vue
  2. 1
      src/views/qms/basicDataManage/dynamicRule/index.vue
  3. 1
      src/views/qms/basicDataManage/inspectionTemplate/index.vue
  4. 7
      src/views/qms/basicDataManage/selectedSet/index.vue
  5. 4
      src/views/qms/inspection/inspectionJob/index.vue
  6. 4
      src/views/qms/inspection/inspectionRecord/index.vue
  7. 3
      src/views/qms/inspectionMethod/index.vue
  8. 1
      src/views/qms/qualityNotice/components/notaicType.vue
  9. 4
      src/views/qms/qualityNotice/components/qualityBatch.vue
  10. 1
      src/views/qms/qualityNotice/components/qualityNotice.vue
  11. 2
      src/views/qms/qualityNotice/index.vue
  12. 14
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
  13. 96
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
  14. 224
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts
  15. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  16. 16
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  17. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue
  18. 27
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  19. 22
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  20. 4
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

9
src/components/Detail/src/Detail.vue

@ -54,6 +54,7 @@
:pagination="{ total: tableObjectRef.total }"
v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort"
>
<!-- <template #action="{ row }">
<ButtonBase
@ -70,6 +71,7 @@
:pagination="{ total: tableObjectRef.total }"
v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort"
>
<template #photos="{ row }">
<div v-for="(item,index) in row.photos.split(',')" :key="index" style="color:#409eff ; cursor: pointer;" @click="openImage(item)">{{ item }}</div> </template>
@ -118,6 +120,7 @@
:pagination="{ total: annexItem.subDetailTableData.tableList.length }"
v-model:pageSize="tableObjectRef.pageSize"
v-model:currentPage="tableObjectRef.currentPage"
v-model:sort="tableObjectRef.sort"
/>
</ContentWrap>
@ -548,18 +551,18 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
titleNameRef.value = titleName
titleValueRef.value = titleValue
remarksData.data = {
tableId: row.id,
tableId: row.masterId||row.id,
tableName: tableName
}
count.value++
//
if (!props.isBasic) {
// id
masterParmas.value.masterId = row.id
masterParmas.value.masterId = row.masterId||row.id
masterParmas.value.number = row.number
masterParmas.value.status = row.status
tableObjectRef.value.params = {
masterId: row.id
masterId: row.masterId||row.id
}
await getList()
}

1
src/views/qms/basicDataManage/dynamicRule/index.vue

@ -306,7 +306,6 @@ const submitForm = async (formType, data) => {
return
}
data.inspectionStageDOList = tableData.value//
console.log(data.subList)
try {
if (formType === 'create') {
await DynamicRuleApi.createDynamicRule(data)

1
src/views/qms/basicDataManage/inspectionTemplate/index.vue

@ -148,7 +148,6 @@ const openForm = (type: string, row?: any) => {
// form
const submitForm = async (formType,data) => {
console.log(data.value)
if (formType === 'create') {
await InspectionProcessPageApi.inspectionTemplateCreat(data.value)
message.success(t('common.createSuccess'))

7
src/views/qms/basicDataManage/selectedSet/index.vue

@ -110,9 +110,6 @@ const optionsList = ref()
routeName.value = route.name
const tableColumns = ref(SelectedSet.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
@ -324,7 +321,6 @@ const submitForm = async (formType, data) => {
dictionaryLabel
};
});
console.log(data.subList)
try {
if (formType === 'create') {
await SelectedSetApi.createSelectedSet(data)
@ -414,8 +410,6 @@ const detailOpenForm = (type, row, masterParmas) => {
const detailBasiFormOnChange = (field,val,detailFormRef) => {
console.log(field)
console.log(33,detailFormRef)
if(field == 'dictionaryTypeAndCode'){
// '-%%%-'' dictionaryCode
const [dictionaryCode, dictionaryValue] = val.split('-%%%-');
@ -432,7 +426,6 @@ const detailBasiFormOnChange = (field,val,detailFormRef) => {
}
const formSelectChange = (a,b,c,d) => {
console.log(111)
}
const getDicDetails = ()=>{

4
src/views/qms/inspection/inspectionJob/index.vue

@ -66,7 +66,6 @@
import TableHead from '@/components/TableHead/src/TableHead.vue'
import AddForm from './addForm.vue'
import Detail from './detail.vue'
console.log(InspectionJobMain)
//
defineOptions({ name: 'InspectionJobMain' })
@ -177,12 +176,10 @@ const listTableRef = ref()
const list = await InspectionJobMainApi.getInspectionJobPackageList(row.id)
listTableRef.value.openPackage(row,'包装信息',InspectionJobPackage.allSchemas.tableColumns,list)
}else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
handleAbandon(row.id)
} else if (val == 'mainJobClo') { //
handleClose(row.id)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
handleAccept(row.id)
}
}
@ -270,7 +267,6 @@ const listTableRef = ref()
//
const submitForm = async (formType, data) => {
console.log(data)
// return
try {
if (formType === 'create') {

4
src/views/qms/inspection/inspectionRecord/index.vue

@ -133,10 +133,7 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const listTableRef = ref()
const useDecisionList = getStrDictOptions(DICT_TYPE.USAGE_DECISION)
console.log(11,useDecisionList)
// console.log(55,InspectionRecordMain.allSchemas.formSchema)
// const useDecisionList = InspectionRecordMain.allSchemas.formSchema.filter(item=>item.field == "useDecision")
// console.log(11,useDecisionList)
// -
const buttonTableClick = async (val, row) => {
if (val == 'applyDecision') { //
@ -145,7 +142,6 @@ import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) =>{
if(itemColumn.field == "useDecision"){
itemColumn.componentProps.options=useDecisionList?.filter(item=>item.value==1)
console.log(88, useDecisionList)
}
})
}else if(row.estimateCode == 2){

3
src/views/qms/inspectionMethod/index.vue

@ -43,7 +43,6 @@
ref="basicFormRef"
@success="formsSuccess"
:sumFormDataByForm ="(formRef,formModel)=>{
console.log(formModel)
const {videoAddress} = formModel
formRef.value.setValues({
installPackageUrl:videoAddress
@ -156,8 +155,6 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
// debugger
console.log(row)
if(row && row.videoAddress.trim()){
row.filePathList = row.videoAddress.split(',')
}

1
src/views/qms/qualityNotice/components/notaicType.vue

@ -176,7 +176,6 @@ nextTick(()=>{
q1.value = props.data?.q1 ? props.data?.q1 :{}
q2.value = props.data?.q2 ? props.data?.q2 :{}
q3.value = props.data?.q3 ? props.data?.q3 :{},
console.log(998,props.data)
})
//

4
src/views/qms/qualityNotice/components/qualityBatch.vue

@ -548,7 +548,6 @@ const buttonBaseClick1 = (val) => {
}
dialogVisible.value = false
} else {
console.log('error submit!')
return false
}
})
@ -572,7 +571,6 @@ const buttonBaseClick1 = (val) => {
}
dialogVisible.value = false
} else {
console.log('error submit!')
return false
}
})
@ -592,7 +590,6 @@ const buttonBaseClick1 = (val) => {
}
dialogVisible.value = false
} else {
console.log('error submit!')
return false
}
})
@ -626,7 +623,6 @@ const buttonBaseClick1 = (val) => {
editableTabsValue.value = newTabName
dialogVisible.value = false
} else {
console.log('error submit!')
return false
}
})

1
src/views/qms/qualityNotice/components/qualityNotice.vue

@ -171,7 +171,6 @@ nextTick(()=>{
//
const changeHalt= (e)=>{
console.log(rules.value.machineHaltStartTime[0])
if(e){
rules.value.machineHaltStartTime[0].required = true
rules.value.machineHaltEndTime[0].required = true

2
src/views/qms/qualityNotice/index.vue

@ -183,8 +183,6 @@
//
const submitForm = async (formType, data) => {
console.log(data)
// return
try {
if (formType === 'create') {
await qualityNoticeApi.qualityNoticeCreat(data)

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

@ -68,6 +68,7 @@ import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { formatTime } from '@/utils/index'
import { getAccessToken } from '@/utils/auth'
import * as PackageApi from '@/api/wms/package'
defineOptions({ name: 'Callmaterials' })
@ -233,7 +234,7 @@ const handleExport = async () => {
} finally {
exportLoading.value = false
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
@ -243,12 +244,19 @@ const handlePoint = async (row) => {
window.open(src.value+'&relateNumber='+row.id)
}
//
const handleSelectionPoint = ()=>{
const handleSelectionPoint = async ()=>{
let rows:any = []
selectionRows.value.forEach(item=>{
rows = [...rows,...item.selectionRows.map(item1=>item1.id)]
})
console.log('批量打印',rows)
console.log('批量打印',rows.join(','))
await PackageApi.batchPrintingLable(rows.join(',')).then(res => {
console.log(res)
message.success('创建标签成功')
}).catch(err => {
console.log(err)
message.error('创建标签失败')
})
}
/** 导入 */
const importFormRef = ref()

96
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -56,6 +56,7 @@
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@formFormDateChange="formFormDateChange"
@onEnter="onEnter"
/>
<!-- 详情 -->
@ -115,6 +116,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { formatDate } from '@/utils/formatTime'
import * as SupplieritemApi from '@/api/wms/supplieritem'
import { getAccessToken } from '@/utils/auth'
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail'
import { PurchaseDetail } from '../../supplierdeliver/purchaseMain/purchaseMain.data'
//
defineOptions({ name: 'PurchasereceiptRequestMain' })
@ -147,17 +150,23 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} else if(formField == 'poNumber') {
row['poNumber'] = val[0]['number']
} else if(formField == 'poLine'){
row['poLine'] = val[0]['lineNumber']
row['itemCode'] = val[0]['itemCode']
row['uom'] = val[0]['uom']
let supplierCode = formRef.formModel.supplierCode;
let itemCode = val[0]['itemCode']
let queryData = {
supplierCode:supplierCode,
itemCode:itemCode
}
SupplieritemApi.getDefaultLocationCode(queryData as SupplieritemApi.SupplieritemVO).then(res =>{
row['defaultToLocationCode'] = res
//--
val.forEach(item=>{
if(tableData.value.find(item1=>item1['id'] == item['id'])) return
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...row}))
newRow['poLine'] = item['lineNumber']
newRow['itemCode'] = item['itemCode']
newRow['uom'] = item['uom']
newRow['poNumber'] = item['number']
let supplierCode = formRef.formModel.supplierCode;
let queryData = {
supplierCode:supplierCode,
itemCode: item['itemCode']
}
SupplieritemApi.getDefaultLocationCode(queryData as SupplieritemApi.SupplieritemVO).then(res =>{
newRow['defaultToLocationCode'] = res
tableData.value.push(newRow)
})
})
}else if (formField == 'packQty'){
row['packQty'] = val[0]['packQty']
@ -165,12 +174,59 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}
} else {
const setV = {}
if(formField == 'supplierCode'){
setV['supplierCode'] = val[0]['code']
}else if(formField == 'ppNumber') {
//----
setV['supplierCode'] = val[0]['supplierCode']
setV['poNumber'] = val[0]['number']
const newRow = val[0]
newRow['poNumber'] = val[0]['number']
//
getSearchTableData(val[0]['number'])
// tableData.value = [newRow]
// formRef.handleAddTable()
}
setV[formField] = val[0][searchField]
setV['supplierCode'] = val[0]['code']
formRef.setValues(setV)
}
})
}
const onEnter = async (field,value)=>{
console.log(field,value)
getSearchTableData(value,true)
}
const getSearchTableData = async (number,isEnter=false)=>{
const {tableObject ,tableMethods} = useTable({
defaultParams:{number},
getListApi: PurchaseDetailApi.getPurchaseDetailPage //
})
//
const { getList:getList1 } = tableMethods
await getList1()
const tableColumns = PurchaseDetail.allSchemas.tableFormColumns
tableColumns.forEach((item) => {
item.width = item.table?.width || 150
})
tableData.value = []
tableObject.tableList.forEach(row=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...row}))
newRow['poLine'] = row['lineNumber']
newRow['itemCode'] = row['itemCode']
newRow['uom'] = row['uom']
newRow['poNumber'] =row['number']
newRow['defaultToLocationCode'] =row['defaultLocation']
tableData.value.push(newRow)
if(isEnter){
//--
const setV = {}
setV['poNumber'] = number
setV['supplierCode'] = row.supplierCode
formRef.value.formRef.setValues(setV)
}
})
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
nextTick(() => {
@ -275,25 +331,25 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
handleClose(row.id)
handleClose(row.masterId)
} else if (val == 'mainReAdd') { //
handleReAdd(row.id)
handleReAdd(row.masterId)
} else if (val == 'mainSubmit') { //
handleSubmit(row.id)
handleSubmit(row.masterId)
} else if (val == 'mainTurnDown') { //
handleRefused(row.id)
handleRefused(row.masterId)
} else if (val == 'mainApprove') { //
handleAgree(row.id)
handleAgree(row.masterId)
} else if (val == 'mainHandle') { //
handleHandle(row.id)
handleHandle(row.masterId)
} else if (val == 'edit') { //
openForm('update', row)
} else if(val == 'ssbq'){ //
//
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
genLabelId.value = row.id
genLabelId.value = row.masterId
await getDetailList()
formLabelRef.value.open('create', row, null,'createLabel')// createLabel
}else if (val == 'point') {

224
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/sparereceiptRequestMain.data.ts

@ -51,24 +51,25 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isSearch: true,
},
{
label: '供应商代码',
field: 'supplierCode',
label: '采购订单',
field: 'ppNumber',
sort: 'custom',
table: {
width: 150
width: 180
},
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
searchListPlaceholder: '请选择采购订单', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '采购订单信息', // 查询弹窗标题
searchAllSchemas: PurchaseMain.allSchemas, // 查询弹窗所需类
searchPage: PurchaseMainApi.getPurchaseMainPage, // 查询弹窗所需分页方法
}
}
},
isForm: true,
},
{
label: '发货单号',
@ -80,42 +81,62 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
isForm: true,
},
{
label: '要货计划单号',
field: 'ppNumber',
label: '供应商代码',
field: 'supplierCode',
sort: 'custom',
table: {
width: 180
width: 150
},
isSearch: true,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择要货计划单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段
searchTitle: '要货计划信息', // 查询弹窗标题
searchAllSchemas: PurchasePlanMain.allSchemas, // 查询弹窗所需类
searchPage: PurchasePlanMainApi.getPurchasePlanMainPage, // 查询弹窗所需分页方法
searchCondition: [
{
key: 'supplierCode',
value: 'supplierCode',
message: '请填写供应商代码!',
isMainValue: true
},
{
key: 'status',
value: 4,
isMainValue: false
},
{
key: 'available',
value: "TRUE",
isMainValue: false
}]
searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '供应商信息', // 查询弹窗标题
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
}
},
isForm: true,
}
},
// {
// label: '要货计划单号',
// field: 'ppNumber',
// sort: 'custom',
// table: {
// width: 180
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择要货计划单号', // 输入框占位文本
// searchField: 'number', // 查询弹窗赋值字段
// searchTitle: '要货计划信息', // 查询弹窗标题
// searchAllSchemas: PurchasePlanMain.allSchemas, // 查询弹窗所需类
// searchPage: PurchasePlanMainApi.getPurchasePlanMainPage, // 查询弹窗所需分页方法
// searchCondition: [
// {
// key: 'supplierCode',
// value: 'supplierCode',
// message: '请填写供应商代码!',
// isMainValue: true
// },
// {
// key: 'status',
// value: 4,
// isMainValue: false
// },
// {
// key: 'available',
// value: "TRUE",
// isMainValue: false
// }]
// }
// },
// isForm: true,
// },
{
label: '承运商',
field: 'carrierCode',
@ -142,22 +163,22 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150
},
},
{
label: '数据来源',
field: 'sourceType',
dictType: DICT_TYPE.PURCHASERECEIPT_SOURCE_TYPE,
sort: 'custom',
table: {
width: 150
},
form: {
value: 'spare_PartsReceipt',
componentProps: {
disabled: true
}
},
isSearch: false,
},
// {
// label: '数据来源',
// field: 'sourceType',
// dictType: DICT_TYPE.PURCHASERECEIPT_SOURCE_TYPE,
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// value: 'spare_PartsReceipt',
// componentProps: {
// disabled: true
// }
// },
// isSearch: false,
// },
{
label: '从仓库代码',
field: 'fromWarehouseCode',
@ -304,50 +325,50 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
},
isForm: false,
},
{
label: '截止时间',
field: 'dueTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom',
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
},
{
label: '部门',
field: 'departmentCode',
sort: 'custom',
table: {
width: 150
},
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return userDeptArray.find((account) => account.id == cellValue)?.name
},
form: {
value: userDept.id,
component: 'Select',
api: () => userDeptArray,
componentProps: {
disabled: true,
optionsAlias: {
labelField: 'name',
valueField: 'id'
}
}
}
},
// {
// label: '截止时间',
// field: 'dueTime',
// formatter: dateFormatter,
// detail: {
// dateFormat: 'YYYY-MM-DD HH:mm:ss'
// },
// sort: 'custom',
// table: {
// width: 180
// },
// form: {
// component: 'DatePicker',
// componentProps: {
// style: {width:'100%'},
// type: 'datetime',
// dateFormat: 'YYYY-MM-DD HH:mm:ss',
// valueFormat: 'x',
// }
// },
// },
// {
// label: '部门',
// field: 'departmentCode',
// sort: 'custom',
// table: {
// width: 150
// },
// formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
// return userDeptArray.find((account) => account.id == cellValue)?.name
// },
// form: {
// value: userDept.id,
// component: 'Select',
// api: () => userDeptArray,
// componentProps: {
// disabled: true,
// optionsAlias: {
// labelField: 'name',
// valueField: 'id'
// }
// }
// }
// },
{
label: '状态',
field: 'status',
@ -477,6 +498,9 @@ export const PurchasereceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
//表单校验
export const PurchasereceiptRequestMainRules = reactive({
ppNumber: [
{ required: true, message: '请输入采购订单', trigger: 'blur' }
],
supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'blur' }
],
@ -486,9 +510,9 @@ export const PurchasereceiptRequestMainRules = reactive({
toAreaTypes: [
{ required: true, message: '请输入到库区类型范围', trigger: 'blur' }
],
departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
// departmentCode: [
// { required: true, message: '请输入部门', trigger: 'blur' }
// ],
autoCommit: [
{ required: true, message: '请选择是否自动提交', trigger: 'change' }
],

2
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -218,7 +218,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

16
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -289,23 +289,23 @@ const getSearchTableData = async (number,formField,searchField)=>{
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') { //
handleOpen(row.id)
handleOpen(row.masterId)
} else if (val == 'mainPurPlanClo') {//
handleClose(row.id)
handleClose(row.masterId)
} else if (val == 'mainPurPlanPub') { //
handlePublish(row.id)
handlePublish(row.masterId)
} else if (val == 'mainPurPlanAcc') { //
handleAcc(row.id)
handleAcc(row.masterId)
} else if (val == 'mainPurPlanRej') { //
handleRej(row.id)
handleRej(row.masterId)
} else if (val == 'mainPurPlanWit') { //
handleWit(row.id)
handleWit(row.masterId)
} else if(val == 'mainPurPlanMod'){ //
handleReOpen(row.id)
handleReOpen(row.masterId)
}else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}

2
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue

@ -157,7 +157,7 @@ const buttonTableClick = async (val, row) => {
handlerCreatePurchasereceiptRequest(row.number)
}else if (val == 'documentPrint') {
//
handleDocumentPrint(row.id)
handleDocumentPrint(row.masterId)
}
}

27
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -444,42 +444,42 @@ const butttondata = (row) => {
const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') {
//
handleOpe(row.id)
handleOpe(row.masterId)
} else if (val == 'mainPurPlanClo') {
//
handleClo(row.id)
handleClo(row.masterId)
} else if (val == 'mainPlanUploadQualityReport') {
//
handleUploadQualityReport(row)
} else if (val == 'mainPlanSub') {
//
handleSub(row.id)
handleSub(row.masterId)
} else if (val == 'mainPlanApp') {
//
handleApp(row.id)
handleApp(row.masterId)
} else if (val == 'mainPlanTur') {
//
handleTur(row.id)
handleTur(row.masterId)
} else if (val == 'genRecords') {
//
genRecords(row.id)
genRecords(row.masterId)
} else if (val == 'edit') {
//
openForm('update', row)
} else if (val == 'delete') {
//
handleDelete(row.id)
handleDelete(row.masterId)
} else if (val == 'ssbq') {
await SupplierdeliverRequestMainApi.selfCheckReport(row.id).then(async (res) => {
await SupplierdeliverRequestMainApi.selfCheckReport(row.masterId).then(async (res) => {
if(!res){
message.warning("请先上传自检报告!")
return
}else{
//
detatableData.params = {
masterId:row.id
masterId:row.masterId
}
genLabelId.value = row.id
genLabelId.value = row.masterId
await getDetailList()
formLabelRef.value.open('create', row, null,'createLabel')// createLabel
}
@ -491,7 +491,7 @@ const buttonTableClick = async (val, row) => {
labelPrint(row)
} else if (val == 'documentPrint') {
//
handleDocumentPrint(row.id)
handleDocumentPrint(row.masterId)
}
}
@ -598,9 +598,9 @@ const handleUploadQualityReport = async (row) => {
console.log('SupplierdeliverInspectionDetail',SupplierdeliverInspectionDetail.allSchemas)
const uploadFile = SupplierdeliverInspectionDetail.allSchemas.formSchema.find(item=>item.field=='uploadFile')
if(uploadFile){
uploadFile['componentProps']['upData']['tableId'] = row.id
uploadFile['componentProps']['upData']['tableId'] = row.masterId
}
ploadQualityReportRef.value.open('create', null, {masterId:row.id},'上传质量报告')// createLabel
ploadQualityReportRef.value.open('create', null, {masterId:row.masterId},'上传质量报告')// createLabel
const tableFormKeys = {}
SupplierdeliverInspectionDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
@ -736,6 +736,7 @@ const submitFormLabel = async (formType, data) => {
await SupplierdeliverRequestMainApi.genLabel(data)
isCreateLabel.value = true
message.success('创建标签成功')
getList()
} finally {
formLabelRef.value.formLoading = false
formLabelRef.value.dialogVisible = false

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

@ -329,27 +329,27 @@ const handleImport = () => {
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainPurPlanOpe') { //
handleOpe(row.id)
handleOpe(row.masterId)
} else if (val == 'mainPurPlanClo') {//
handleClo(row.id)
handleClo(row.masterId)
} else if (val == 'mainPlanSub') { //
handleSub(row.id)
handleSub(row.masterId)
} else if (val == 'purchase_mainPlanSub') { //
handleApp(row.id)
handleApp(row.masterId)
} else if (val == 'purchase_mainPlanTur') { //
handleTur(row.id)
handleTur(row.masterId)
} else if (val == 'invoice_sent_out') { //
handleInvoiceSentOut(row.id)
handleInvoiceSentOut(row.masterId)
} else if(val == 'finance_mainPlanSub'){ //
handleFinanceApp(row.id)
handleFinanceApp(row.masterId)
} else if(val == 'finance_mainPlanTur'){ //
handleFinaceTur(row.id)
handleFinaceTur(row.masterId)
} else if (val == 'genRecords') { //
genRecords(row.id)
genRecords(row.masterId)
} else if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
}
}
@ -368,7 +368,7 @@ const handleImport = () => {
const openDetail = (row : any, titleName : any, titleValue : any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
clicKRowId.value = row.id
clicKRowId.value = row.masterId
detailRef.value.openDetail(row, titleName, titleValue)
}

4
src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

@ -171,9 +171,9 @@ const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
handleDelete(row.masterId)
} else if(val == 'agree'){
handleAgree(row.id)
handleAgree(row.masterId)
}
}

Loading…
Cancel
Save