Browse Source

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

master_hella_20240701
liuchen864 6 months ago
parent
commit
864e3ca274
  1. 9
      src/api/wms/productreceiptRecordMain/index.ts
  2. 22
      src/views/wms/inventoryManage/balance/index.vue
  3. 2
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  4. 20
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

9
src/api/wms/productreceiptRecordMain/index.ts

@ -111,3 +111,12 @@ export const exportProductreceiptRecordAssembleMain = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/productreceipt-record-main/get-import-template' }) return request.download({ url: '/wms/productreceipt-record-main/get-import-template' })
} }
// 创建上架申请
export const createPutawayRequest = async (number:string) => {
return await request.post({ url: `/wms/productreceipt-record-main/createPutawayRequest?number=`+number })
}
// 创建检验申请
export const createInspectRequest = async (number:string) => {
return await request.post({ url: `/wms/productreceipt-record-main/createInspectRequest?number=`+number })
}

22
src/views/wms/inventoryManage/balance/index.vue

@ -193,17 +193,17 @@ const handleSelectionPoint = async ()=>{
} }
// - // -
const butttondata = [ const butttondata = [
{ // {
label: '标签信息', // label: '',
name: 'bqxx', // name: 'bqxx',
hide: false, // hide: false,
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
link: true, // link: true,
float:'right', // float:'right',
hasPermi: '' // hasPermi: ''
}, // },
defaultButtons.mainListPointBtn(null), // defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

2
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -285,9 +285,9 @@ const handleHandle = async (id: number) => {
tableObject.loading = true tableObject.loading = true
await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id) await InventoryinitRequestMainApi.handleInventoryinitRequestMain(id)
message.success(t('common.handleSuccess')) message.success(t('common.handleSuccess'))
tableObject.loading = false
await getList() await getList()
} catch {} } catch {}
tableObject.loading = false
} }

20
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -177,12 +177,15 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
] ]
} }
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if(val == 'inspectRequest'){//
handleCreateInspectRequest(row.number)
}
} }
// //
const { wsCache } = useCache() const { wsCache } = useCache()
@ -194,6 +197,19 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'recordProductreceiptMain') detailRef.value.openDetail(row, titleName, titleValue,'recordProductreceiptMain')
} }
/** 生成到货检验申请按钮操作 */
const handleCreateInspectRequest = async (number:string) => {
try{
await message.confirm(t('ts.确认生成到货检验申请吗?'))
tableObject.loading = true
await ProductreceiptRecordMainApi.createInspectRequest(number)
message.success(t('ts.到货检验申请生成成功'))
await getList()
}catch{}finally{
tableObject.loading = false
}
}
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) // const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {

Loading…
Cancel
Save