diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index 639e766d7..0f31f34ef 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -327,7 +327,7 @@ const butttondata = (row,$index) => { { label: '生成标签', name: 'ssbq', - hide: isShowMainButton(row, ['3']), + hide: isShowMainButton(row, ['3','6']), type: 'primary', icon: '', color: '', diff --git a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue index 25d4b91b0..c57778ac1 100644 --- a/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue @@ -117,6 +117,7 @@ import * as ItembasicApi from "@/api/wms/itembasic"; import * as PackageApi from "@/api/wms/package"; import { formatTime } from '@/utils/index' import { getAccessToken } from '@/utils/auth' +import * as StdcostpriceApi from '@/api/wms/stdcostprice' // 计划外入库申请 defineOptions({ name: 'UnplannedreceiptRequestMain' }) @@ -179,6 +180,7 @@ const isItemType = async (itemCode, labelTypeParams) => { // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { nextTick(async () => { + console.log('searchTableSuccess',formField, searchField, val, formRef, type, row ) if (type == 'tableForm') { // 明细查询页赋值 if(formField == 'toLocationCode'){ @@ -190,7 +192,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => } else { row['itemCode'] = val[0]['code'] row['uom'] = val[0]['uom'] - row['singlePrice'] = val[0]['price'] + StdcostpriceApi.queryStdcostpriceByItemCode({"itemCode":val[0]['code']}) + .then(res => { + row['singlePrice'] = res.price + }) } } else if(formField === 'costcentreCode'){ row['costcentreCode'] = val[0]['costcentreCode']