|
@@ -468,7 +468,7 @@ const rules = ref({
|
|
|
remark: [{ required: true, message: "请输入付款条件", trigger: "blur" }],
|
|
|
});
|
|
|
const getDict = () => {
|
|
|
- proxy.getDictOne(["account_currency", "funds_payment_method", "trade_methods", "shipping_method", "unit"]).then((res) => {
|
|
|
+ proxy.getDictOne(["account_currency", "funds_payment_method", "trade_mode", "shipping_method", "unit"]).then((res) => {
|
|
|
accountCurrency.value = res["account_currency"].map((x) => ({
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
@@ -477,7 +477,7 @@ const getDict = () => {
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
|
- tradeMethods.value = res["trade_methods"].map((x) => ({
|
|
|
+ tradeMethods.value = res["trade_mode"].map((x) => ({
|
|
|
label: x.dictValue,
|
|
|
value: x.dictKey,
|
|
|
}));
|
|
@@ -508,15 +508,6 @@ const getDict = () => {
|
|
|
};
|
|
|
});
|
|
|
});
|
|
|
- proxy.post("/customer/privateSeaPage", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
- customerList.value = res.rows.map((item) => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- label: item.name,
|
|
|
- value: item.id,
|
|
|
- };
|
|
|
- });
|
|
|
- });
|
|
|
};
|
|
|
getDict();
|
|
|
const changeTemplate = (val) => {
|
|
@@ -829,6 +820,27 @@ watch(
|
|
|
}
|
|
|
);
|
|
|
onMounted(() => {
|
|
|
+ if(!route.query.processType || route.query.processType == 30) {
|
|
|
+ proxy.post("/customer/privateSeaPage", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
+ customerList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ proxy.post("/customer/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
+ customerList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ label: item.name,
|
|
|
+ value: item.id,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
if (props.queryData.priceSheetId) {
|
|
|
proxy.post("/saleQuotation/detail", { id: props.queryData.priceSheetId }).then((res) => {
|
|
|
res.countryId = res.buyCountryId;
|