no message
parent
13a87ca391
commit
95966d41d1
|
|
@ -21,8 +21,8 @@ import message from './business/message/message-const';
|
|||
import codeGeneratorConst from './support/code-generator-const';
|
||||
import changeLogConst from './support/change-log-const';
|
||||
import jobConst from './support/job-const';
|
||||
import USAGE_STATUS_ENUM from './business/base/usagestatus-const'
|
||||
import ASN_ORDER_TYPE_ENUM from '/@/api/business/receive/asn/asn-const'
|
||||
import USAGE_STATUS_ENUM from './business/wms/base/usagestatus-const'
|
||||
import ASN_ORDER_TYPE_ENUM from '/@/api/business/wms/receive/asn/asn-const'
|
||||
|
||||
export default {
|
||||
FLAG_NUMBER_ENUM,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
import _ from 'lodash';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { SmartLoading } from '/@/components/framework/smart-loading';
|
||||
import { addressApi } from '/@/api/business/base/address/address-api';
|
||||
import { addressApi } from '/@/api/business/wms/base/address/address-api';
|
||||
import { smartSentry } from '/@/lib/smart-sentry';
|
||||
|
||||
// ------------------------ 事件 ------------------------
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
// 是否显示
|
||||
const visibleFlag = ref(false);
|
||||
|
||||
function show(rowData) {
|
||||
function show(rowData: object) {
|
||||
Object.assign(form, formDefault);
|
||||
if (rowData && !_.isEmpty(rowData)) {
|
||||
Object.assign(form, rowData);
|
||||
|
|
@ -170,15 +170,15 @@
|
|||
</template>
|
||||
<script setup lang="ts">
|
||||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {message, Modal, UploadFile} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {addressApi} from '/@/api/business/base/address/address-api';
|
||||
import {addressApi} from '/@/api/business/wms/base/address/address-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import AddressForm from '/@/views/business/base/address/address-form.vue';
|
||||
import AddressForm from '/@/views/business/wms/base/address/address-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import AddressSelect from "/@/views/business/base/address/address-select.vue";
|
||||
import AddressSelect from "/@/views/business/wms/base/address/address-select.vue";
|
||||
import {fileApi} from "/@/api/support/file-api";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
|
@ -279,13 +279,13 @@ onMounted(queryData);
|
|||
// ---------------------------- 添加/修改 ----------------------------
|
||||
const formRef = ref();
|
||||
|
||||
function showForm(data) {
|
||||
function showForm(data:object) {
|
||||
formRef.value.show(data);
|
||||
}
|
||||
|
||||
// ---------------------------- 单个删除 ----------------------------
|
||||
//确认删除
|
||||
function onDelete(data) {
|
||||
function onDelete(data: object) {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
content: '确定要删除选吗?',
|
||||
|
|
@ -301,7 +301,7 @@ function onDelete(data) {
|
|||
}
|
||||
|
||||
//请求删除
|
||||
async function requestDelete(data) {
|
||||
async function requestDelete(data: any) {
|
||||
SmartLoading.show();
|
||||
try {
|
||||
await addressApi.delete(data.addressId);
|
||||
|
|
@ -319,7 +319,7 @@ async function requestDelete(data) {
|
|||
// 选择表格行
|
||||
const selectedRowKeyList = ref([]);
|
||||
|
||||
function onSelectChange(selectedRowKeys) {
|
||||
function onSelectChange(selectedRowKeys:any) {
|
||||
selectedRowKeyList.value = selectedRowKeys;
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {addressApi} from "/@/api/business/base/address/address-api";
|
||||
import {addressApi} from "/@/api/business/wms/base/address/address-api";
|
||||
|
||||
const props = defineProps({
|
||||
value: [Number, String, Object, Array],
|
||||
|
|
@ -49,7 +49,7 @@ import {reactive, ref, nextTick} from 'vue';
|
|||
import _ from 'lodash';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {areaApi} from '/@/api/business/base/area/area-api';
|
||||
import {areaApi} from '/@/api/business/wms/base/area/area-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import pinyin from 'pinyin';
|
||||
|
||||
|
|
@ -135,13 +135,13 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {areaApi} from '/@/api/business/base/area/area-api';
|
||||
import {areaApi} from '/@/api/business/wms/base/area/area-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import AreaForm from '/@/views/business/base/area/area-form.vue';
|
||||
import AreaForm from '/@/views/business/wms/base/area/area-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import AreaSelect from "/@/views/business/base/area/area-select.vue";
|
||||
import AreaSelect from "/@/views/business/wms/base/area/area-select.vue";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {areaApi} from '/@/api/business/base/area/area-api';
|
||||
import {areaApi} from '/@/api/business/wms/base/area/area-api';
|
||||
|
||||
const props = defineProps({
|
||||
value: [Number, String, Object, Array],
|
||||
|
|
@ -85,7 +85,7 @@ import _ from 'lodash';
|
|||
import pinyin from 'pinyin';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {customerApi} from '/@/api/business/base/customer/customer-api';
|
||||
import {customerApi} from '/@/api/business/wms/base/customer/customer-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
|
||||
// ------------------------ 事件 ------------------------
|
||||
|
|
@ -122,13 +122,13 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {customerApi} from '/@/api/business/base/customer/customer-api';
|
||||
import {customerApi} from '/@/api/business/wms/base/customer/customer-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import CustomerForm from '/@/views/business/base/customer/customer-form.vue';
|
||||
import CustomerForm from '/@/views/business/wms/base/customer/customer-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import CustomerSelect from "/@/views/business/base/customer/customer-select.vue";
|
||||
import CustomerSelect from "/@/views/business/wms/base/customer/customer-select.vue";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {customerApi} from "/@/api/business/base/customer/customer-api";
|
||||
import {customerApi} from "/@/api/business/wms/base/customer/customer-api";
|
||||
|
||||
const props = defineProps({
|
||||
value: [Number, String, Object, Array],
|
||||
|
|
@ -80,7 +80,7 @@ import {reactive, ref, nextTick} from 'vue';
|
|||
import _ from 'lodash';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {itemApi} from '/@/api/business/base/item/item-api.js';
|
||||
import {itemApi} from '/@/api/business/wms/base/item/item-api.js';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import DictSelect from "/@/components/support/dict-select/index.vue";
|
||||
|
||||
|
|
@ -175,17 +175,17 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {itemApi} from '/@/api/business/base/item/item-api.js';
|
||||
import {itemApi} from '/@/api/business/wms/base/item/item-api.js';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import ItemForm from '/@/views/business/base/item/item-form.vue';
|
||||
import ItemForm from '/@/views/business/wms/base/item/item-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import ItemSelect from "/@/views/business/base/item/item-select.vue";
|
||||
import ItemSelect from "/@/views/business/wms/base/item/item-select.vue";
|
||||
import {UploadFile} from 'ant-design-vue';
|
||||
import {fileApi} from "/@/api/support/file-api";
|
||||
import DictLabel from "/@/components/support/dict-label/index.vue";
|
||||
import {ITEM_TYPE_ENUM, ITEM_UNIT_ENUM} from "/@/api/business/base/item/item-const";
|
||||
import {ITEM_TYPE_ENUM, ITEM_UNIT_ENUM} from "/@/api/business/wms/base/item/item-const";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
const columns = ref([
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {itemApi} from '/@/api/business/base/item/item-api';
|
||||
import {itemApi} from '/@/api/business/wms/base/item/item-api';
|
||||
|
||||
const props = defineProps({
|
||||
value: [Number, String, Object, Array],
|
||||
|
|
@ -51,11 +51,11 @@ import {reactive, ref, nextTick} from 'vue';
|
|||
import _ from 'lodash';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {locationApi} from '/@/api/business/base/location/location-api';
|
||||
import {locationApi} from '/@/api/business/wms/base/location/location-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import {USAGE_STATUS_ENUM} from '/@/constants/business/base/usagestatus-const';
|
||||
import {USAGE_STATUS_ENUM} from '/@/constants/business/wms/base/usagestatus-const';
|
||||
import SmartEnumSelect from '/@/components/framework/smart-enum-select/index.vue';
|
||||
import AreaSelect from "/@/views/business/base/area/area-select.vue";
|
||||
import AreaSelect from "/@/views/business/wms/base/area/area-select.vue";
|
||||
import DictSelect from "/@/components/support/dict-select/index.vue";
|
||||
// ------------------------ 事件 ------------------------
|
||||
|
||||
|
|
@ -218,21 +218,21 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {locationApi} from '/@/api/business/base/location/location-api';
|
||||
import {locationApi} from '/@/api/business/wms/base/location/location-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import LocationForm from '/@/views/business/base/location/location-form.vue';
|
||||
import MultipleAdjust from "/@/views/business/base/location/multiple-adjust.vue";
|
||||
import LocationForm from '/@/views/business/wms/base/location/location-form.vue';
|
||||
import MultipleAdjust from "/@/views/business/wms/base/location/multiple-adjust.vue";
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import LocationSelect from "/@/views/business/base/location/location-select.vue";
|
||||
import AreaSelect from "/@/views/business/base/area/area-select.vue";
|
||||
import LocationSelect from "/@/views/business/wms/base/location/location-select.vue";
|
||||
import AreaSelect from "/@/views/business/wms/base/area/area-select.vue";
|
||||
import SmartEnumSelect from '/@/components/framework/smart-enum-select/index.vue';
|
||||
import DictLabel from '/@/components/support/dict-label/index.vue';
|
||||
import MultipleInsert from "/@/views/business/base/location/multiple-insert.vue";
|
||||
import MultipleInsert from "/@/views/business/wms/base/location/multiple-insert.vue";
|
||||
import {UploadFile} from 'ant-design-vue';
|
||||
import {fileApi} from "/@/api/support/file-api";
|
||||
import {LOC_TYPE_ENUM} from "/@/api/business/base/location/location-const";
|
||||
import {LOC_TYPE_ENUM} from "/@/api/business/wms/base/location/location-const";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {locationApi} from '/@/api/business/base/location/location-api';
|
||||
import {locationApi} from '/@/api/business/wms/base/location/location-api';
|
||||
|
||||
const props = defineProps({
|
||||
value: [Number, String, Object, Array],
|
||||
|
|
@ -65,9 +65,9 @@
|
|||
import {nextTick, reactive, ref} from 'vue';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {locationApi} from '/@/api/business/base/location/location-api';
|
||||
import {locationApi} from '/@/api/business/wms/base/location/location-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import LocationSelect from "/@/views/business/base/location/location-select.vue";
|
||||
import LocationSelect from "/@/views/business/wms/base/location/location-select.vue";
|
||||
|
||||
|
||||
const title = ref('批量调整');
|
||||
|
|
@ -103,9 +103,9 @@
|
|||
import {nextTick, reactive, ref} from 'vue';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {locationApi} from '/@/api/business/base/location/location-api';
|
||||
import {locationApi} from '/@/api/business/wms/base/location/location-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import AreaSelect from "/@/views/business/base/area/area-select.vue";
|
||||
import AreaSelect from "/@/views/business/wms/base/area/area-select.vue";
|
||||
import DictSelect from "/@/components/support/dict-select/index.vue";
|
||||
|
||||
|
||||
|
|
@ -55,12 +55,12 @@ import {reactive, ref, nextTick} from 'vue';
|
|||
import _ from 'lodash';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {stockApi} from '/@/api/business/base/stock/stock-api';
|
||||
import {stockApi} from '/@/api/business/wms/base/stock/stock-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import DictSelect from '/@/components/support/dict-select/index.vue';
|
||||
import SmartEnumSelect from '/@/components/framework/smart-enum-select/index.vue';
|
||||
import {USAGE_STATUS_ENUM} from "/@/constants/business/base/usagestatus-const";
|
||||
import LocationSelect from "/@/views/business/base/location/location-select.vue";
|
||||
import {USAGE_STATUS_ENUM} from "/@/constants/business/wms/base/usagestatus-const";
|
||||
import LocationSelect from "/@/views/business/wms/base/location/location-select.vue";
|
||||
|
||||
//选择库区
|
||||
function changeLocationSelect(selectValue: any) {
|
||||
|
|
@ -183,19 +183,19 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {stockApi} from '/@/api/business/base/stock/stock-api';
|
||||
import {stockApi} from '/@/api/business/wms/base/stock/stock-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import StockForm from '/@/views/business/base/stock/stock-form.vue';
|
||||
import StockForm from '/@/views/business/wms/base/stock/stock-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import {UploadFile} from 'ant-design-vue';
|
||||
import {fileApi} from "/@/api/support/file-api";
|
||||
import StockSelect from "/@/views/business/base/stock/stock-select.vue";
|
||||
import StockSelect from "/@/views/business/wms/base/stock/stock-select.vue";
|
||||
import SmartEnumSelect from "/@/components/framework/smart-enum-select/index.vue";
|
||||
import LocationSelect from "/@/views/business/base/location/location-select.vue";
|
||||
import LocationSelect from "/@/views/business/wms/base/location/location-select.vue";
|
||||
import DictLabel from "/@/components/support/dict-label/index.vue";
|
||||
import {STOCK_TYPE_ENUM} from "/@/api/business/base/stock/stock-const";
|
||||
import {STOCK_TYPE_ENUM} from "/@/api/business/wms/base/stock/stock-const";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
||||
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import {onMounted, ref, watch} from 'vue';
|
||||
import {stockApi} from "/@/api/business/base/stock/stock-api";
|
||||
import {STOCK_TYPE_ENUM} from "/@/api/business/base/stock/stock-const";
|
||||
import {stockApi} from "/@/api/business/wms/base/stock/stock-api";
|
||||
import {STOCK_TYPE_ENUM} from "/@/api/business/wms/base/stock/stock-const";
|
||||
import DictLabel from "/@/components/support/dict-label/index.vue";
|
||||
|
||||
const props = defineProps({
|
||||
|
|
@ -97,21 +97,20 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import {onMounted, reactive, ref} from 'vue';
|
||||
import {useRoute, useRouter} from 'vue-router';
|
||||
import DataTracer from '/@/components/support/data-tracer/index.vue';
|
||||
import {DATA_TRACER_TYPE_ENUM} from '/@/constants/support/data-tracer-const';
|
||||
import CustomerSelect from "/@/views/business/base/customer/customer-select.vue";
|
||||
import CustomerSelect from "/@/views/business/wms/base/customer/customer-select.vue";
|
||||
import SmartEnumSelect from "/@/components/framework/smart-enum-select/index.vue";
|
||||
import AddressSelect from "/@/views/business/base/address/address-select.vue";
|
||||
import AddressSelect from "/@/views/business/wms/base/address/address-select.vue";
|
||||
import dayjs from 'dayjs';
|
||||
import {message} from "ant-design-vue";
|
||||
import {SmartLoading} from "/@/components/framework/smart-loading";
|
||||
import {asnApi} from "/@/api/business/receive/asn/asn-api";
|
||||
import {asnApi} from "/@/api/business/wms/receive/asn/asn-api";
|
||||
import {smartSentry} from "/@/lib/smart-sentry";
|
||||
import ReceiveDetailList from "/@/views/business/receive/asn/receive-detail-list.vue";
|
||||
import AsnTaskList from "/@/views/business/receive/asnTask/asn-task-list.vue";
|
||||
import ReceiveDetailList from "/@/views/business/wms/receive/asn/receive-detail-list.vue";
|
||||
import AsnTaskList from "/@/views/business/wms/receive/asnTask/asn-task-list.vue";
|
||||
|
||||
// 表单
|
||||
const formRef = ref();
|
||||
|
|
@ -231,7 +230,7 @@ let router = useRouter();
|
|||
|
||||
function onBack() {
|
||||
router.push({
|
||||
path: '/receive/asn/asn-list',
|
||||
path: '/wms/receive/asn/asn-list',
|
||||
query: {refresh: '1'}
|
||||
});
|
||||
}
|
||||
|
|
@ -154,8 +154,8 @@ import {SmartLoading} from '/@/components/framework/smart-loading';
|
|||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import {asnApi} from '/@/api/business/receive/asn/asn-api';
|
||||
import {asnDetailApi} from '/@/api/business/receive/asnDetail/asn-detail-api'
|
||||
import {asnApi} from '/@/api/business/wms/receive/asn/asn-api';
|
||||
import {asnDetailApi} from '/@/api/business/wms/receive/asnDetail/asn-detail-api'
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
|
||||
|
|
@ -334,7 +334,7 @@ function showForm(data: any) {
|
|||
//将数据存储到sessionStorage中
|
||||
sessionStorage.setItem(id, JSON.stringify(data));
|
||||
router.push({
|
||||
path: '/receive/asn/asn-form',
|
||||
path: '/wms/receive/asn/asn-form',
|
||||
query: {
|
||||
id: id
|
||||
}
|
||||
|
|
@ -97,15 +97,14 @@
|
|||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import {reactive, ref, watch} from 'vue';
|
||||
import {PAGE_SIZE, PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import TableOperator from "/@/components/support/table-operator/index.vue";
|
||||
import {asnDetailApi} from "/@/api/business/receive/asnDetail/asn-detail-api";
|
||||
import {receiveApi} from "/@/api/business/receive/receive-api";
|
||||
import AsnDetailForm from "/@/views/business/receive/asnDetail/asn-detail-form.vue";
|
||||
import {asnDetailApi} from "/@/api/business/wms/receive/asnDetail/asn-detail-api";
|
||||
import {receiveApi} from "/@/api/business/wms/receive/receive-api";
|
||||
import AsnDetailForm from "/@/views/business/wms/receive/asnDetail/asn-detail-form.vue";
|
||||
import {message, Modal} from "ant-design-vue";
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
|
||||
|
|
@ -40,9 +40,9 @@ import {reactive, ref, nextTick} from 'vue';
|
|||
import _ from 'lodash';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {asnDetailApi} from '/@/api/business/receive/asnDetail/asn-detail-api';
|
||||
import {asnDetailApi} from '/@/api/business/wms/receive/asnDetail/asn-detail-api';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import ItemSelect from "/@/views/business/base/item/item-select.vue";
|
||||
import ItemSelect from "/@/views/business/wms/base/item/item-select.vue";
|
||||
|
||||
// ------------------------ 事件 ------------------------
|
||||
const emits = defineEmits(['reloadList']);
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
:total="total"
|
||||
@change="queryData"
|
||||
@showSizeChange="queryData"
|
||||
:show-total="(total) => `共${total}条`"
|
||||
:show-total="(total:number) => `共${total}条`"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
@ -114,11 +114,11 @@
|
|||
import {reactive, ref, onMounted} from 'vue';
|
||||
import {message, Modal} from 'ant-design-vue';
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
import {asnDetailApi} from '/@/api/business/receive/asnDetail/asn-detail-api';
|
||||
import {asnDetailApi} from '/@/api/business/wms/receive/asnDetail/asn-detail-api';
|
||||
import {PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import TableOperator from '/@/components/support/table-operator/index.vue';
|
||||
import AsnDetailForm from '/@/views/business/receive/asnDetail/asn-detail-form.vue';
|
||||
import AsnDetailForm from '/@/views/business/wms/receive/asnDetail/asn-detail-form.vue';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
|
||||
// ---------------------------- 表格列 ----------------------------
|
||||
|
|
@ -207,13 +207,13 @@ onMounted(queryData);
|
|||
// ---------------------------- 添加/修改 ----------------------------
|
||||
const formRef = ref();
|
||||
|
||||
function showForm(data) {
|
||||
function showForm(data:object) {
|
||||
formRef.value.show(data);
|
||||
}
|
||||
|
||||
// ---------------------------- 单个删除 ----------------------------
|
||||
//确认删除
|
||||
function onDelete(data) {
|
||||
function onDelete(data:object) {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
content: '确定要删除选吗?',
|
||||
|
|
@ -229,12 +229,9 @@ function onDelete(data) {
|
|||
}
|
||||
|
||||
//请求删除
|
||||
async function requestDelete(data) {
|
||||
async function requestDelete(data: any) {
|
||||
SmartLoading.show();
|
||||
try {
|
||||
let deleteForm = {
|
||||
goodsIdList: selectedRowKeyList.value,
|
||||
};
|
||||
await asnDetailApi.delete(data.asnDetailId);
|
||||
message.success('删除成功');
|
||||
await queryData();
|
||||
|
|
@ -250,7 +247,7 @@ async function requestDelete(data) {
|
|||
// 选择表格行
|
||||
const selectedRowKeyList = ref([]);
|
||||
|
||||
function onSelectChange(selectedRowKeys) {
|
||||
function onSelectChange(selectedRowKeys:any) {
|
||||
selectedRowKeyList.value = selectedRowKeys;
|
||||
}
|
||||
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
|
||||
<div class="smart-table-setting-block">
|
||||
<a-button class="button-style" type="primary" v-privilege="'receive:batchReturn'" @click="confirmBatchReceive"
|
||||
<a-button class="button-style" type="primary" v-privilege="'receive:batchReturn'" @click="confirmBatchReturn"
|
||||
:disabled="props.asnId==0 || selectedRowKeyList.length == 0">
|
||||
<template #icon>
|
||||
<EditOutlined/>
|
||||
|
|
@ -82,16 +82,15 @@
|
|||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import _ from 'lodash';
|
||||
import {reactive, ref, watch} from 'vue';
|
||||
import {PAGE_SIZE, PAGE_SIZE_OPTIONS} from '/@/constants/common-const';
|
||||
import {smartSentry} from '/@/lib/smart-sentry';
|
||||
import {TABLE_ID_CONST} from "/@/constants/support/table-id-const";
|
||||
import TableOperator from "/@/components/support/table-operator/index.vue";
|
||||
import {asnDetailApi} from "/@/api/business/receive/asnDetail/asn-detail-api";
|
||||
import {taskApi} from "/@/api/business/task/task-api";
|
||||
import {receiveApi} from "/@/api/business/receive/receive-api";
|
||||
import AsnDetailForm from "/@/views/business/receive/asnDetail/asn-detail-form.vue";
|
||||
import {asnDetailApi} from "/@/api/business/wms/receive/asnDetail/asn-detail-api";
|
||||
import {taskApi} from "/@/api/business/wms/task/task-api";
|
||||
import {receiveApi} from "/@/api/business/wms/receive/receive-api";
|
||||
import AsnDetailForm from "/@/views/business/wms/receive/asnDetail/asn-detail-form.vue";
|
||||
import {message, Modal} from "ant-design-vue";
|
||||
import {SmartLoading} from '/@/components/framework/smart-loading';
|
||||
|
||||
|
|
@ -236,51 +235,15 @@ async function requestDelete(data: any) {
|
|||
}
|
||||
}
|
||||
|
||||
//批量删除
|
||||
function confirmBatchDelete() {
|
||||
//批量退货
|
||||
function confirmBatchReturn() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
content: '确定要批量删除这些数据吗?',
|
||||
okText: '删除',
|
||||
okType: 'danger',
|
||||
onOk() {
|
||||
requestBatchDelete();
|
||||
},
|
||||
cancelText: '取消',
|
||||
onCancel() {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
//请求批量删除
|
||||
async function requestBatchDelete() {
|
||||
try {
|
||||
SmartLoading.show();
|
||||
const response = await asnDetailApi.batchDelete(selectedRowKeyList.value);
|
||||
const {error, success} = JSON.parse(response.msg);
|
||||
if (error) {
|
||||
message.error(error);
|
||||
}
|
||||
if (success) {
|
||||
message.success(success);
|
||||
}
|
||||
await queryData();
|
||||
} catch (e) {
|
||||
smartSentry.captureError(e);
|
||||
} finally {
|
||||
SmartLoading.hide();
|
||||
}
|
||||
}
|
||||
|
||||
//批量收货 confirmBatchReceive
|
||||
function confirmBatchReceive() {
|
||||
Modal.confirm({
|
||||
title: '提示',
|
||||
content: '确定是否批量收货?',
|
||||
content: '确定是否批量退货?',
|
||||
okText: '确认',
|
||||
okType: 'danger',
|
||||
onOk() {
|
||||
requestBatchReceive();
|
||||
requestBatchReturn();
|
||||
},
|
||||
cancelText: '取消',
|
||||
onCancel() {
|
||||
|
|
@ -289,7 +252,7 @@ function confirmBatchReceive() {
|
|||
}
|
||||
|
||||
//请求批量收货
|
||||
async function requestBatchReceive() {
|
||||
async function requestBatchReturn() {
|
||||
try {
|
||||
SmartLoading.show();
|
||||
const response = await receiveApi.batchReceive(selectedRowKeyList.value);
|
||||
Loading…
Reference in New Issue