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'){
setV['supplierCode'] = val[0]['code']
await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => {
let beginTime = res.beginTime
var ms = beginTime.substring(0, 2)
var me = beginTime.substring(3)
setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
let endTime = res.endTime
var ms = endTime.substring(0, 2)
var me = endTime.substring(3)
setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
// let beginTime = res.beginTime
// var ms = beginTime.substring(0, 2)
// var me = beginTime.substring(3)
// setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me))
// let endTime = res.endTime
// var ms = endTime.substring(0, 2)
// 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['phone'] = res.phone
})
@ -329,7 +332,7 @@ const getSearchTableData = async (number,formField,searchField)=>{
defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), //
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'}), //
{
label: t('ts.创建供应商发货申请'),

Loading…
Cancel
Save