diff --git a/.env.development b/.env.development index 866b9f5..6c9218a 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV = 'development' VITE_NOW_TYPE = 'dist' # Base API -# VITE_APP_BASE_URL='http://192.168.1.21:8546' +# VITE_APP_BASE_URL='http://192.168.144.1:8546' VITE_APP_BASE_URL='https://erp.lihaink.cn' \ No newline at end of file diff --git a/src/api/opurchaseclass.ts b/src/api/opurchaseclass.ts index 7459697..1446c3c 100644 --- a/src/api/opurchaseclass.ts +++ b/src/api/opurchaseclass.ts @@ -38,4 +38,14 @@ export function apiOpurchaseclassGoodsOfferList(params: any) { // 采购详情报价列表 export function apiOpurchaseclassGoodsOfferUpdate(params: any) { return request.post({ url: '/operation/Opurchaseclass/goods_offer_update', params }) -} \ No newline at end of file +} + + +// 采购详情报价列表 +export function apiOpurchaseinfoListList(params: any) { + return request.get({ url: '/operation/opurchaseclass/opurchaseinfo_list', params }) +} + +export function apicreateSupplierGoods(params: any) { + return request.post({ url: '/operation/opurchaseclass/createSupplierGoods', params }) +} diff --git a/src/components/dialogTable/index.vue b/src/components/dialogTable/index.vue index 53dba56..92d3d78 100644 --- a/src/components/dialogTable/index.vue +++ b/src/components/dialogTable/index.vue @@ -2,7 +2,6 @@
- 查询 重置 + 重置
- @@ -91,6 +91,7 @@ const emits = defineEmits(["customEvent"]); // 选中数据子父传递 const handleCurrentChange = (value: any) => { + console.log(multipleSelection.value) if (props.multipleChoice) return emits("customEvent", value); }; @@ -102,6 +103,10 @@ const handleSelectionChange = (val: any) => { multipleSelection.value = val } +const test = () => { + multipleSelection.value = [] +} + const confirm = () => { emits("customEvent", multipleSelection.value); } diff --git a/src/views/data/supplier/supplier/edit.vue b/src/views/data/supplier/supplier/edit.vue index 313b40b..48bc417 100644 --- a/src/views/data/supplier/supplier/edit.vue +++ b/src/views/data/supplier/supplier/edit.vue @@ -41,12 +41,7 @@ - - - - - + - - @@ -168,6 +161,17 @@ + + + + {{ tag }} + + + 添加标签 + + + + diff --git a/src/views/goods/goods/detail.vue b/src/views/goods/goods/detail.vue index 9e02c8c..438aeee 100644 --- a/src/views/goods/goods/detail.vue +++ b/src/views/goods/goods/detail.vue @@ -62,9 +62,9 @@ - + + {{ formData.data }} +
diff --git a/src/views/goods/goods/edit.vue b/src/views/goods/goods/edit.vue index 7152f49..cb6b077 100644 --- a/src/views/goods/goods/edit.vue +++ b/src/views/goods/goods/edit.vue @@ -276,10 +276,10 @@ const formRules = reactive({ trigger: ["blur"], }, ], - buy: [ + sell: [ { required: true, - message: "请输入购货价格", + message: "请输入销货价格", trigger: ["blur"], }, ], diff --git a/src/views/opurchase/opurchaseclass/detail.vue b/src/views/opurchase/opurchaseclass/detail.vue index b30938b..cdd5962 100644 --- a/src/views/opurchase/opurchaseclass/detail.vue +++ b/src/views/opurchase/opurchaseclass/detail.vue @@ -26,11 +26,7 @@ {{ form.merchant_name }} - + @@ -46,7 +42,19 @@ - + + + 重新推送 + + + + + + + + + +
@@ -63,6 +71,7 @@ import { import { useRoute } from "vue-router"; import subOrder from "./component/subOrder.vue"; import goodsOffer from "./component/goodsOffer.vue"; +import { apiOpurchaseinfoListList, apicreateSupplierGoods } from "@/api/opurchaseclass"; const route = useRoute(); const form = ref({}); @@ -73,11 +82,9 @@ const activeMap = ref( ["detail", true], ["order", false], ["offer", false], + ["notPushedGoods", false], ]) ); -console.log(activeMap.value); - - const getDetail = async () => { const data = await apiOpurchaseclassDetail({ id: route.query.id, @@ -95,4 +102,21 @@ const tabChange = (type: any) => { activeMap.value.set(type, true); } }; + + +const { pager, getLists, resetParams, resetPage } = usePaging({ + fetchFun: apiOpurchaseinfoListList, + params: { is_push: 0, id: route.query.id }, +}); + + +const rePush = async () => { + await apicreateSupplierGoods({ id: route.query.id }) + getLists() + +} + +// 获取字典数据 + +getLists()