Browse Source

时间问题

master_hella_20240701
wangyufei 5 months ago
parent
commit
50fa8ad38c
  1. 21
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

21
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -161,14 +161,17 @@
if(formField == 'supplierCode'){ if(formField == 'supplierCode'){
setV['supplierCode'] = val[0]['code'] setV['supplierCode'] = val[0]['code']
await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => { await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => {
let beginTime = res.beginTime
var ms = beginTime.substring(0, 2) // let beginTime = res.beginTime
var me = beginTime.substring(3) // var ms = beginTime.substring(0, 2)
setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) // var me = beginTime.substring(3)
let endTime = res.endTime // setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
var ms = endTime.substring(0, 2) // let endTime = res.endTime
var me = endTime.substring(3) // var ms = endTime.substring(0, 2)
setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) // var me = endTime.substring(3)
// setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
setV['beginTime'] = res.beginTime
setV['endTime'] = res.endTime
setV['contacts'] = res.contacts setV['contacts'] = res.contacts
setV['phone'] = res.phone setV['phone'] = res.phone
}) })
@ -329,7 +332,7 @@ const getSearchTableData = async (number,formField,searchField)=>{
defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), // defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), // defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanModBtn({ hide: isShowMainButton(row, ['5']) }), // defaultButtons.mainListPurchasePlanModBtn({ hide: isShowMainButton(row, ['5']) }), //
// defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']), hasPermi: 'wms:purchase-plan-main:update' }), // defaultButtons.mainListEditBtn({ hide: !isShowMainButton(row, ['2']), hasPermi: 'wms:purchase-plan-main:update' }), //
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), // // defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), //
{ {
label: t('ts.创建供应商发货申请'), label: t('ts.创建供应商发货申请'),

Loading…
Cancel
Save