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