Browse Source

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

hella_online_20240829
zhaoxuebing 2 months ago
parent
commit
e387492ca2
  1. 1
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  2. 11
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  3. 14
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  4. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  5. 1988
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  6. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

1
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -134,7 +134,6 @@ const butttondata = (row, $index)=>{
const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated', const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated',
'CreateBackflushRecordAfterProductreceiptRecordCreated', 'CreateBackflushRecordAfterProductreceiptRecordCreated',
'CreateProductputawayRequestAfterProductreceiptRecordCreated', 'CreateProductputawayRequestAfterProductreceiptRecordCreated',
'ExecuteProductreceiptJobPredictIsCreatePutawayRequest',
'CreatePurchasePlanAfterDiscretePurchaseOrderPublished', 'CreatePurchasePlanAfterDiscretePurchaseOrderPublished',
'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated', 'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated',
'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated' 'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated'

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

@ -453,17 +453,18 @@ const requestSwitch = ref(false)
const getSwitch = async ()=>{ const getSwitch = async ()=>{
let switch1 = await SwitchApi.getByCode('CreatePrepareToIssuePlanAfterProductionPlanPublished') let switch1 = await SwitchApi.getByCode('CreatePrepareToIssuePlanAfterProductionPlanPublished')
planSwitch.value = switch1=='TRUE' planSwitch.value = switch1=='TRUE'
let switch2 = await SwitchApi.getByCode('CreateProductReciptRequestAfterProductionPlanPublished') //
requestSwitch.value = switch2=='TRUE' // let switch2 = await SwitchApi.getByCode('CreateProductReciptRequestAfterProductionPlanPublished')
console.log('switch1',switch1) // requestSwitch.value = switch2=='TRUE'
console.log('switch2',switch2) requestSwitch.value = true
// console.log('switch1',switch1)
// console.log('switch2',switch2)
} }
// //
const autoCreatePlanRequest = async (row)=>{ const autoCreatePlanRequest = async (row)=>{
// //
try { try {
if(planSwitch.value) { if(planSwitch.value) {
// /generatePreparetoissue?number // /generatePreparetoissue?number
let PreparetoissueRes = await ProductionMainApi.generatePreparetoissue(row.number) let PreparetoissueRes = await ProductionMainApi.generatePreparetoissue(row.number)

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

@ -331,6 +331,8 @@ const buttonTableClick = async (val, row) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainPlanSub') { // } else if (val == 'mainPlanSub') { //
//
await getSwitch()
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
await message.confirm('确认要提交审批吗?') await message.confirm('确认要提交审批吗?')
tableObject.loading = true tableObject.loading = true
@ -384,6 +386,8 @@ const buttonTableClick = async (val, row) => {
}) })
// //
tableObject.loading = true tableObject.loading = true
//
await getSwitch()
autoCreatePlanRequest(row) autoCreatePlanRequest(row)
} }
}) })
@ -541,10 +545,12 @@ const tableSelectionDelete = (selection) => {
// //
const submitForm = async (formType, submitData) => { const submitForm = async (formType, submitData) => {
let data = {...submitData} //
if(data.masterId){ getSwitch()
data.id = data.masterId let data = {...submitData}
} if(data.masterId){
data.id = data.masterId
}
if(tableData.value.find(item => (item.planQty <= 0))) { if(tableData.value.find(item => (item.planQty <= 0))) {
message.warning('数量必须大于0') message.warning('数量必须大于0')
return return

2
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -329,7 +329,7 @@ const searchTableSuccess1 = async (formField, searchField, val, formRef, type, r
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res) window.open(src.value+'&asn_number='+res)
} else { } else {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken()) const src = ref(BASE_URL + '/jmreport/view/979553753876811776?token=' + getAccessToken())
window.open(src.value+'&asn_number='+res) window.open(src.value+'&asn_number='+res)
} }
}).catch(err => { }).catch(err => {

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

File diff suppressed because it is too large

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -16,6 +16,7 @@ const queryParams = {
pageNo: 1, pageNo: 1,
code: 'PurchaseInvoiceRequest' code: 'PurchaseInvoiceRequest'
} }
console.log(34343)
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData = data?.list[0] || {} const requestsettingData = data?.list[0] || {}
@ -784,7 +785,6 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
form: { form: {
component: 'Select', component: 'Select',
api: () => procurementCreators.list, api: () => procurementCreators.list,
value:procurementCreators?.list.length>0?procurementCreators.list[0].id:'',
componentProps: { componentProps: {
optionsAlias: { optionsAlias: {
labelField: 'nickname', labelField: 'nickname',

Loading…
Cancel
Save