采购lng
This commit is contained in:
@ -400,8 +400,8 @@
|
||||
const userStore = useUserStore();
|
||||
const userInfo = userStore.getUserInfo;
|
||||
|
||||
const tableName = 'ShipSchedule';
|
||||
const columnName = 'ShipSchedule'
|
||||
const tableName = 'OpsPurInt';
|
||||
const columnName = 'OpsPurInt'
|
||||
|
||||
const formType = ref('2'); // 0 新建 1 修改 2 查看
|
||||
const formRef = ref();
|
||||
@ -423,13 +423,14 @@
|
||||
const formId = ref(currentRoute.value?.params?.id);
|
||||
const pageType = ref(currentRoute.value.query?.type);
|
||||
const pageId = ref(currentRoute.value.query?.id)
|
||||
|
||||
const pageSource = ref(currentRoute.value.query?.pageSource)
|
||||
const spinning = ref(false);
|
||||
const { notification } = useMessage();
|
||||
const { t } = useI18n()
|
||||
|
||||
const formState = reactive({
|
||||
approCode: 'WTJ'
|
||||
approCode: 'WTJ',
|
||||
frtSign: 'N'
|
||||
});
|
||||
const [register, { openModal:openModal}] = useModal();
|
||||
const [registerContractPurInt, { openModal:openModalContractPurInt}] = useModal();
|
||||
@ -486,7 +487,7 @@
|
||||
isDisable.value = pageType.value == 'view'
|
||||
getOption()
|
||||
if (pageId.value) {
|
||||
getInfo(pageId.value)
|
||||
pageSource.value ? getLngShipInfo(pageId.value) :getInfo(pageId.value)
|
||||
} else {
|
||||
formState.empName = userInfo.name
|
||||
formState.empId = userInfo.id
|
||||
@ -663,6 +664,8 @@
|
||||
spinning.value = true
|
||||
let data = await getLngShipSchedule(id)
|
||||
spinning.value = false
|
||||
formState.ssNo = data.ssNo
|
||||
formState.ssId = data.id
|
||||
formState.comId = data.comId
|
||||
formState.kId = data.kId
|
||||
formState.kName = data.kName
|
||||
|
||||
Reference in New Issue
Block a user