|
@@ -434,6 +434,7 @@ import { initData } from '@/common/methods';
|
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice, handleDate } from './setup';
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice, handleDate } from './setup';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
import { getGoodsList } from '@/services/bus/goods';
|
|
import { getGoodsList } from '@/services/bus/goods';
|
|
|
|
|
+import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
name: 'add-spot-contract',
|
|
@@ -472,7 +473,7 @@ export default defineComponent({
|
|
|
// 日期
|
|
// 日期
|
|
|
const { deliveryDate, disabledDate } = handleDate();
|
|
const { deliveryDate, disabledDate } = handleDate();
|
|
|
// 现货商品列表
|
|
// 现货商品列表
|
|
|
- const goodsList = getGoodsList();
|
|
|
|
|
|
|
+ const goodsList = ref<Goods[]>([]);
|
|
|
function submit() {
|
|
function submit() {
|
|
|
loading.value = true;
|
|
loading.value = true;
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -483,6 +484,7 @@ export default defineComponent({
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
queryCustomList();
|
|
queryCustomList();
|
|
|
getDeliveryGoods();
|
|
getDeliveryGoods();
|
|
|
|
|
+ goodsList.value = getGoodsList();
|
|
|
});
|
|
});
|
|
|
return {
|
|
return {
|
|
|
visible,
|
|
visible,
|