Browse Source

Merge remote-tracking branch 'origin/master'

master
zhaoxuebing 11 months ago
parent
commit
619b8ead2f
  1. 4
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  2. 4
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  3. 27
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  4. 4
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

4
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -247,7 +247,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainSubmit') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要提交审批吗?')
DeliverRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()
@ -255,7 +255,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要驳回吗?')
DeliverRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()

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

@ -263,7 +263,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainSubmit') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要提交审批吗?')
ProductionreturnRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()
@ -271,7 +271,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要驳回吗?')
ProductionreturnRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()

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

@ -434,14 +434,27 @@ const handleDeleteTable = (item, index) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
try {
if (formType === 'create') {
await ProductdismantleRequestMainApi.createProductdismantleRequestMain(data)
message.success(t('common.createSuccess'))
} else {
await ProductdismantleRequestMainApi.updateProductdismantleRequestMain(data)
message.success(t('common.updateSuccess'))
// bom
let childListRs = true
//
tableData.value.forEach((item) => {
if (!item.childList) {
childListRs = false
}
})
if (!childListRs) {
message.warning('请填写Bom信息!')
formRef.value.dialogVisible = false
return
}
try {
if (formType === 'create') {
await ProductdismantleRequestMainApi.createProductdismantleRequestMain(data)
message.success(t('common.createSuccess'))
} else {
await ProductdismantleRequestMainApi.updateProductdismantleRequestMain(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
//
getList()

4
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -287,7 +287,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainSubmit') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要提交审批吗?')
ProductreceiptRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()
@ -295,7 +295,7 @@ const buttonTableClick = async (val, row) => {
console.log(err)
})
} else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?')
await message.confirm('确认要驳回吗?')
ProductreceiptRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess'))
getList()

Loading…
Cancel
Save