Browse Source

生成标签展示

master_hella_20240701
chenfang 6 months ago
parent
commit
ade9096dbb
  1. 2
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  2. 7
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

2
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: '',

7
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']

Loading…
Cancel
Save