|
|
@ -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.创建供应商发货申请'), |
|
|
|