diff --git a/src/PagesStatistics/components/TimeDialog.vue b/src/PagesStatistics/components/TimeDialog.vue
deleted file mode 100644
index 4bf11dc..0000000
--- a/src/PagesStatistics/components/TimeDialog.vue
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
- 常用时间选择
-
- {{ item.name }}
- 其它时间选择自定义
-
-
-
-
- 取消
- 完成
-
- {{ state.startTime }} - {{ state.endTime }}
-
-
-
-
-
-
-
diff --git a/src/PagesStatistics/customerRanking.vue b/src/PagesStatistics/customerRanking.vue
index 5607584..2e8d4f1 100644
--- a/src/PagesStatistics/customerRanking.vue
+++ b/src/PagesStatistics/customerRanking.vue
@@ -60,7 +60,7 @@
/>
diff --git a/src/components/NavBar/NavBar.vue b/src/components/NavBar/NavBar.vue
index 46f1fe3..97ebcab 100644
--- a/src/components/NavBar/NavBar.vue
+++ b/src/components/NavBar/NavBar.vue
@@ -12,7 +12,7 @@
@@ -22,37 +22,36 @@
-
diff --git a/src/pagesApp/components/addCustomer.vue b/src/pagesApp/components/addCustomer.vue
index f312323..5d6c884 100644
--- a/src/pagesApp/components/addCustomer.vue
+++ b/src/pagesApp/components/addCustomer.vue
@@ -273,7 +273,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addIncomeDetail.vue b/src/pagesApp/components/addIncomeDetail.vue
index 2f200d6..4e0f447 100644
--- a/src/pagesApp/components/addIncomeDetail.vue
+++ b/src/pagesApp/components/addIncomeDetail.vue
@@ -309,7 +309,7 @@ const handleUpload = () => {
...(res.data as any),
businessId: model1.order.id,
imagesType: ImagesType.NORMARL, // 普通资源
- orderType: OrderType.Income, // 收入明细
+ orderType: OrderType.Income, // 收款明细
});
}
})
@@ -420,7 +420,8 @@ const handleTime = (v: any) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addPayment.vue b/src/pagesApp/components/addPayment.vue
index 76a5d2a..41151bd 100644
--- a/src/pagesApp/components/addPayment.vue
+++ b/src/pagesApp/components/addPayment.vue
@@ -428,7 +428,7 @@ const handleUpload = () => {
...(res.data as any),
businessId: model1.order.id,
imagesType: ImagesType.NORMARL, // 普通资源
- orderType: OrderType.Pay, // 收入明细
+ orderType: OrderType.Pay, // 收款明细
});
}
})
@@ -542,7 +542,8 @@ const handleTime = (v: any) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addReceiveProduct.vue b/src/pagesApp/components/addReceiveProduct.vue
index b726d62..b31244a 100644
--- a/src/pagesApp/components/addReceiveProduct.vue
+++ b/src/pagesApp/components/addReceiveProduct.vue
@@ -349,7 +349,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addReceiveType.vue b/src/pagesApp/components/addReceiveType.vue
index 547f017..4270bd8 100644
--- a/src/pagesApp/components/addReceiveType.vue
+++ b/src/pagesApp/components/addReceiveType.vue
@@ -190,7 +190,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addRole.vue b/src/pagesApp/components/addRole.vue
index fcf2380..6cc8720 100644
--- a/src/pagesApp/components/addRole.vue
+++ b/src/pagesApp/components/addRole.vue
@@ -259,7 +259,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addShipmentProduct.vue b/src/pagesApp/components/addShipmentProduct.vue
index c5a3615..61e2110 100644
--- a/src/pagesApp/components/addShipmentProduct.vue
+++ b/src/pagesApp/components/addShipmentProduct.vue
@@ -267,7 +267,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addShipmentType.vue b/src/pagesApp/components/addShipmentType.vue
index 02cb097..587e766 100644
--- a/src/pagesApp/components/addShipmentType.vue
+++ b/src/pagesApp/components/addShipmentType.vue
@@ -231,7 +231,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addStockCard.vue b/src/pagesApp/components/addStockCard.vue
index 812852f..81d3963 100644
--- a/src/pagesApp/components/addStockCard.vue
+++ b/src/pagesApp/components/addStockCard.vue
@@ -209,7 +209,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addSupplier.vue b/src/pagesApp/components/addSupplier.vue
index 00b0ce4..79068d9 100644
--- a/src/pagesApp/components/addSupplier.vue
+++ b/src/pagesApp/components/addSupplier.vue
@@ -412,7 +412,8 @@ onLoad((option: any) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addSupplierType.vue b/src/pagesApp/components/addSupplierType.vue
index ec358f3..8d3280c 100644
--- a/src/pagesApp/components/addSupplierType.vue
+++ b/src/pagesApp/components/addSupplierType.vue
@@ -190,7 +190,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/components/addUser.vue b/src/pagesApp/components/addUser.vue
index 0bfb50b..782cc37 100644
--- a/src/pagesApp/components/addUser.vue
+++ b/src/pagesApp/components/addUser.vue
@@ -3,7 +3,7 @@
+
+
+
+
-
+
{
model1.formData[item.key] = temp;
}, 10);
}
- if (item.key === "password") {
- const temp = e?.replace(valid.valid_no_cn, "");
- setTimeout(() => {
- (model1.formData as any)[item.key] = temp;
- }, 10);
- }
};
const model1 = reactive({
- formData: {},
+ formData: {
+ gender: 1
+ },
});
const rules1 = ref({
"formData.roleName": {
@@ -101,30 +112,16 @@ const rules1 = ref({
message: "请选择用户角色",
trigger: ["blur", "change"],
},
- "formData.userName": {
+ "formData.name": {
type: "string",
required: true,
- message: "请输入账号",
+ message: "请输入姓名",
trigger: ["blur", "change"],
},
- "formData.password": {
+ "formData.phone": {
type: "string",
required: true,
- message: "请输入密码",
- trigger: ["blur", "change"],
- },
-});
-const rules2 = ref({
- "formData.roleName": {
- type: "string",
- required: true,
- message: "请选择用户角色",
- trigger: ["blur", "change"],
- },
- "formData.userName": {
- type: "string",
- required: true,
- message: "请输入账号",
+ message: "请输入手机号",
trigger: ["blur", "change"],
},
});
@@ -155,16 +152,22 @@ const formAttrList1 = reactive([
name: "姓名",
key: "name",
type: "input",
+ required: true,
},
{
name: "性别",
- key: "genderName",
- type: "select",
- childKey: "gender",
- fn: () => {
- contrlModalParams.gender.isShow = true;
- contrlModalParams.gender.title = "选择性别";
- },
+ key: "gender",
+ type: "radio",
+ child: [
+ {
+ id: 1,
+ name: "男",
+ },
+ {
+ id: 2,
+ name: "女",
+ },
+ ],
},
{
name: "用户角色",
@@ -178,74 +181,18 @@ const formAttrList1 = reactive([
},
},
{
- name: "账号",
- key: "userName",
- type: "input",
- required: true,
- },
- {
- name: "密码",
- key: "password",
- type: "input",
- required: true,
- },
- {
- name: "联系手机",
+ name: "手机号",
key: "phone",
type: "input",
- },
-]);
-
-const formAttrList2 = reactive([
- {
- name: "姓名",
- key: "name",
- type: "input",
- },
- {
- name: "性别",
- key: "genderName",
- type: "select",
- childKey: "gender",
- fn: () => {
- contrlModalParams.gender.isShow = true;
- contrlModalParams.gender.title = "选择性别";
- },
- },
- {
- name: "用户角色",
- key: "roleName",
- type: "select",
- childKey: "role",
- required: true,
- fn: () => {
- contrlModalParams.role.isShow = true;
- contrlModalParams.role.title = "选择角色";
- },
- },
- {
- name: "账号",
- key: "userName",
- type: "input",
required: true,
},
- {
- name: "联系手机",
- key: "phone",
- type: "input",
- },
]);
-
const handleSelect = (key: string, v: any) => {
contrlModalParams[key].isShow = false;
if (key === "role") {
model1.formData.roleName = v.name;
model1.formData.roleIds = [v.id];
}
- if (key === "gender") {
- model1.formData.genderName = v.name;
- model1.formData.gender = v.id;
- }
};
const form = ref();
@@ -273,17 +220,6 @@ const save = () => {
return;
}
}
- if (!model1.formData.id) {
- if (model1.formData.password) {
- if (!valid.valid_password.pattern.test(model1.formData.password)) {
- uni.showToast({
- icon: "none",
- title: valid.valid_password.message,
- });
- return;
- }
- }
- }
check().then((res) => {
if (res) {
@@ -295,7 +231,7 @@ const save = () => {
const startSave = () => {
if (model1.formData.id) {
ProfileApi.updateUserById({
- name: model1.formData.name,
+ name: model1.formData.name,
id: model1.formData.id,
roleIds: model1.formData.roleIds,
userName: model1.formData.userName,
@@ -330,15 +266,19 @@ onMounted(() => {
getRoleList();
});
-onLoad((option) => {
+onLoad((option: any) => {
// 接收传递的标题参数;
- const title = (option as any).title;
- const obj = JSON.parse((option as any).item);
- model1.formData = { ...obj, genderName: ["未知", "男", "女"][obj.gender] };
- if (obj.roleVos.length > 0) {
- model1.formData.roleIds = [obj.roleVos[0].id];
- model1.formData.roleName = obj.roleVos[0].roleName;
+ const title = option.title;
+ if (option.item) {
+ const obj = JSON.parse(option.item);
+ model1.formData = { ...obj, genderName: ["未知", "男", "女"][obj.gender] };
+ debugger
+ if (obj.roleVos.length > 0) {
+ model1.formData.roleIds = [obj.roleVos[0].id];
+ model1.formData.roleName = obj.roleVos[0].roleName;
+ }
}
+
// 设置页面标题;
if (title) {
uni.setNavigationBarTitle({
@@ -368,7 +308,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+ width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesApp/customerMgt.vue b/src/pagesApp/customerMgt.vue
index 8f4dff5..b040951 100644
--- a/src/pagesApp/customerMgt.vue
+++ b/src/pagesApp/customerMgt.vue
@@ -11,7 +11,6 @@
@search="handleSearch()"
@clear="handleSearch()"
>
- 新增
+
+
+
+
{
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const add = () => {
uni.navigateTo({
diff --git a/src/pagesApp/incomeDetail.vue b/src/pagesApp/incomeDetail.vue
index 81b9460..2e869be 100644
--- a/src/pagesApp/incomeDetail.vue
+++ b/src/pagesApp/incomeDetail.vue
@@ -113,7 +113,7 @@
import { FinanceApi } from "@/services";
import PageView from "@/components/PageView/index.vue";
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
-import TimeDialog from "./components/TimeDialog.vue";
+import TimeDialog from "@/components/Dialog/TimeDialog.vue";
import FilterDialog from "./components/CustomFilterDialog.vue";
import { onShow } from "@dcloudio/uni-app";
@@ -190,7 +190,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleSearch = () => {
resetPageList();
diff --git a/src/pagesApp/paymentDetail.vue b/src/pagesApp/paymentDetail.vue
index 4835b19..d1cba4b 100644
--- a/src/pagesApp/paymentDetail.vue
+++ b/src/pagesApp/paymentDetail.vue
@@ -108,7 +108,7 @@
import { FinanceApi } from "@/services";
import PageView from "@/components/PageView/index.vue";
import { formatDate, getCurrentMonthStartAndEnd } from "@/utils";
-import TimeDialog from "./components/TimeDialog.vue";
+import TimeDialog from "@/components/Dialog/TimeDialog.vue";
import FilterDialog from "./components/CustomFilterDialog.vue";
import { onShow } from "@dcloudio/uni-app";
@@ -194,7 +194,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleSearch = () => {
resetPageList();
diff --git a/src/pagesApp/receiveCl.vue b/src/pagesApp/receiveCl.vue
index 62fa78e..8d4f956 100644
--- a/src/pagesApp/receiveCl.vue
+++ b/src/pagesApp/receiveCl.vue
@@ -160,7 +160,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleSearch = () => {
diff --git a/src/pagesApp/receiveDetail.vue b/src/pagesApp/receiveDetail.vue
index 3051d11..e24c6ce 100644
--- a/src/pagesApp/receiveDetail.vue
+++ b/src/pagesApp/receiveDetail.vue
@@ -159,7 +159,7 @@ import {
getCurrentMonthStartAndEnd,
filterNullUndefined,
} from "@/utils";
-import TimeDialog from "./components/TimeDialog.vue";
+import TimeDialog from "@/components/Dialog/TimeDialog.vue";
import FilterDialog from "./components/FilterDialog.vue";
const showDialog = <
{
@@ -350,7 +350,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleOk = (obj: any) => {
diff --git a/src/pagesApp/receiveProduct.vue b/src/pagesApp/receiveProduct.vue
index 1d4584d..2cab7fb 100644
--- a/src/pagesApp/receiveProduct.vue
+++ b/src/pagesApp/receiveProduct.vue
@@ -11,7 +11,6 @@
@search="handleSearch()"
@clear="handleSearch()"
>
- 新增
+
+
+
+
{
deleteId.value = id;
};
const handleOk = () => {
- update({id: deleteId.value})
+ update({ id: deleteId.value });
};
const state = reactive({
name: "",
@@ -74,7 +77,7 @@ const pageList: PageResult<{
reProductsName: string;
minPrice: number;
maxPrice: number;
- id: number
+ id: number;
}> = reactive({
isLoading: false,
noMoreData: false,
@@ -88,7 +91,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleSearch = () => {
resetPageList();
@@ -96,7 +99,6 @@ const handleSearch = () => {
};
const update = (item: any) => {
-
GoodsApi.deleteReceiveProduct({ id: item.id }).then((res) => {
if (res.code === 200) {
resetPageList();
@@ -127,7 +129,7 @@ const getList = (v?: boolean) => {
reProductsName: state.name,
};
pageList.isLoading = true;
- GoodsApi.getReceiveProductListByPage(params).then((res:any) => {
+ GoodsApi.getReceiveProductListByPage(params).then((res: any) => {
if (res.code === 200) {
pageList.isLoading = false;
(pageList as any).list = (pageList as any).list = pageList.list.concat(
@@ -143,7 +145,7 @@ const add = () => {
});
};
onShow(() => {
- resetPageList()
+ resetPageList();
getList();
});
diff --git a/src/pagesApp/receiveSpl.vue b/src/pagesApp/receiveSpl.vue
index 3bd577d..db24c65 100644
--- a/src/pagesApp/receiveSpl.vue
+++ b/src/pagesApp/receiveSpl.vue
@@ -32,7 +32,12 @@
:customStyle="{}"
border="none"
:disabled="item.disabled || item.type === 'select'"
- :disabledColor="['补单时间','站点磅秤','供应商','收货产品'].indexOf(item.name) > -1?'#ffffff':'#f5f7fa'"
+ :disabledColor="
+ ['补单时间', '站点磅秤', '供应商', '收货产品'].indexOf(item.name) >
+ -1
+ ? '#ffffff'
+ : '#f5f7fa'
+ "
@change="(e:any) => {handleInput(e, item)}"
@clear="handleClear(item)"
>
@@ -84,7 +89,9 @@
>
-
- {handleDialog('showSupplier', v)}"
- @changeUser="changeUser"
- :isShipment="false"
- >
{
- (model1.order as any)[item.key] = '';
-}
+const handleClear = (item: any) => {
+ (model1.order as any)[item.key] = "";
+};
// 供应商选择
const showDialog = <
{
[key: string]: boolean;
}
>reactive({
- showSupplier: false,
showProduct: false,
});
@@ -148,11 +146,6 @@ const handleDialog = (key: string, v: boolean) => {
showDialog[key] = v;
};
-const changeUser = (obj: any) => {
- model1.order.userName = obj.name; // 供应商名称
- model1.order.userId = obj.id; // 供应商Id,
-};
-
// 收货产品选择
const changeProduct = (obj: any) => {
model1.order.productName = obj.reProductsName; // 收货产品名称
@@ -226,7 +219,8 @@ const model1 = reactive({
splTime: "",
subtractType: 1,
netWeight: 0,
- totalPrice: 0
+ totalPrice: 0,
+ repairTime: formatDate(new Date(), "{y}-{m}-{d} {h}:{i}:{s}"),
},
});
const rules = reactive({
@@ -287,11 +281,6 @@ const contrlModalParams = reactive({
title: "标题",
list: [],
},
- user: {
- isShow: false,
- title: "标题",
- list: [],
- },
product: {
isShow: false,
title: "标题",
@@ -326,14 +315,12 @@ const formAttrList = reactive([
name: "供应商",
key: "userName",
type: "select",
- childKey: "user",
required: true,
unit: "",
fn: () => {
- // contrlModalParams.user.isShow = true;
- // contrlModalParams.user.title = "供应商";
- handleDialog("showSupplier", true);
- uni.hideKeyboard();
+ uni.navigateTo({
+ url: `/pagesApp/supplierOrCustomerList?isShipment=false`,
+ });
},
},
{
@@ -350,8 +337,6 @@ const formAttrList = reactive([
required: true,
unit: "",
fn: () => {
- // contrlModalParams.product.isShow = true;
- // contrlModalParams.product.title = "收货产品";
handleDialog("showProduct", true);
uni.hideKeyboard();
},
@@ -436,7 +421,9 @@ watch(
预估总价: 结算单价*结算重量
实际收入:实际结算金额-运费-杂费
*/
- model1.order.netWeight = ((parseFloat(grossWeightNew) || 0) - (parseFloat(tareNew) || 0)).toFixed(2);
+ model1.order.netWeight = (
+ (parseFloat(grossWeightNew) || 0) - (parseFloat(tareNew) || 0)
+ ).toFixed(2);
if (model1.order.buttonType === 0) {
if (model1.order.subtractNum) {
model1.order.netWeight =
@@ -448,9 +435,10 @@ watch(
model1.order.netWeight * ((100 - model1.order.subtractNum) / 100);
}
}
- model1.order.totalPrice =
- Math.floor((model1.order.price || 0) * (model1.order.netWeight || 0)) ;
- // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步
+ model1.order.totalPrice = Math.floor(
+ (model1.order.price || 0) * (model1.order.netWeight || 0)
+ );
+ // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步
model1.order.balanceTotalPrice = model1.order.totalPrice;
}
);
@@ -495,10 +483,7 @@ const handleUpload = () => {
};
const handleSelect = (key: string, v: any) => {
contrlModalParams[key].isShow = false;
- if (key === "user") {
- model1.order.userName = v.name;
- model1.order.userId = v.id;
- } else if (key === "product") {
+ if (key === "product") {
model1.order.productName = v.name;
model1.order.productId = v.id;
} else if (key === "device") {
@@ -506,12 +491,6 @@ const handleSelect = (key: string, v: any) => {
model1.order.deviceId = v.id;
}
};
-// 供应商信息
-SupplierApi.getSupplierUserList({}).then((res) => {
- if (res.code === 200) {
- contrlModalParams.user.list = res.data;
- }
-});
// 产品信息
ReceiveProductApi.getAllReProducts().then((res) => {
if (res.code === 200) {
@@ -598,7 +577,7 @@ const startSave = () => {
if (res.code === 200) {
model1.order.id = res.data;
upload();
- uni.navigateBack()
+ uni.navigateBack();
}
});
};
@@ -606,6 +585,17 @@ const handleTime = (v: any) => {
model1.order.repairTime = formatDate(v.value, "{y}-{m}-{d} {h}:{i}:{s}");
contrlModalParams.isShowSplTime = false;
};
+
+onLoad((option: any) => {
+ uni.$on("getSupplier", (data) => {
+ model1.order.userName = data.item.name; // 供应商名称
+ model1.order.userId = data.item.id; // 供应商Id,
+ });
+});
+
+onUnmounted(() => {
+ uni.$off("getSupplier", () => {});
+});
diff --git a/src/pagesApp/supplierType.vue b/src/pagesApp/supplierType.vue
index fe0bc20..bdb9e79 100644
--- a/src/pagesApp/supplierType.vue
+++ b/src/pagesApp/supplierType.vue
@@ -11,7 +11,6 @@
@search="handleSearch()"
@clear="handleSearch()"
>
- 新增
+
+
+
+
{
deleteId.value = id;
};
const handleOk = () => {
- deleteType({id: deleteId.value})
+ deleteType({ id: deleteId.value });
};
const state = reactive({
name: "",
@@ -77,7 +80,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const add = () => {
uni.navigateTo({
@@ -138,7 +141,7 @@ const getList = (v?: boolean) => {
};
onShow(() => {
- resetPageList()
+ resetPageList();
getList();
});
diff --git a/src/pagesApp/user.vue b/src/pagesApp/user.vue
index 7558c0b..832a18b 100644
--- a/src/pagesApp/user.vue
+++ b/src/pagesApp/user.vue
@@ -11,7 +11,6 @@
@search="handleSearch()"
@clear="handleSearch()"
>
- 新增
{{ item.name || item.userName }}
- {{ item.phone || "-" }}
- {{
+ 手机号:{{ item.phone || "-" }}
+ 关联角色:{{
item.roleVos.length > 0 ? item.roleVos[0].roleName : "-"
}}
@@ -43,6 +42,10 @@
+
+
+
+
{
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const handleSearch = () => {
resetPageList();
diff --git a/src/pagesConfig/components/avatar-input.vue b/src/pagesConfig/components/avatar-input.vue
new file mode 100644
index 0000000..edb1109
--- /dev/null
+++ b/src/pagesConfig/components/avatar-input.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pagesConfig/index.vue b/src/pagesConfig/index.vue
new file mode 100644
index 0000000..e6235ba
--- /dev/null
+++ b/src/pagesConfig/index.vue
@@ -0,0 +1,247 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ child.title
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pagesConfig/otherConfig.vue b/src/pagesConfig/otherConfig.vue
new file mode 100644
index 0000000..e285a55
--- /dev/null
+++ b/src/pagesConfig/otherConfig.vue
@@ -0,0 +1,251 @@
+
+
+ 终端机自动打单配置
+
+ 自动打印设置
+ 收货联单打印 {
+ console.log(v);
+ state.formData.machineOrderInConfig = v;
+ }
+ "
+ />张
+ 出货联单打印 {
+ state.formData.machineOrderOutConfig = v;
+ }
+ "
+ />张
+
+ 手动打单配置(小程序端 WEB端)
+
+ 收货-待审核联单打印 {
+ state.formData.manualPrintAudit = v;
+ }
+ "
+ />
+ 张
+ 收货-已审核联单打印 {
+ state.formData.manualPrintAudited = v;
+ }
+ "
+ />
+ 张
+ 出货-待结算联单打印 {
+ state.formData.manualPrintToBeSettled = v;
+ }
+ "
+ />
+ 张
+ 出货-已结算联单打印 {
+ state.formData.manualPrintSettled = v;
+ }
+ "
+ />
+ 张
+
+ 出货结算配置
+
+ 结算金额配置
+
+
+
+ 自动结算配置
+ {{ item.deviceName }}
+ {
+ item.expireConfig = v;
+ }
+ "
+ />
+ 天后自动结算
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pagesConfig/printDetail.vue b/src/pagesConfig/printDetail.vue
new file mode 100644
index 0000000..a86edf4
--- /dev/null
+++ b/src/pagesConfig/printDetail.vue
@@ -0,0 +1,72 @@
+
+ {{ title }}打印模版字段
+
+
+ {item.templateDeleted = v}"
+ >
+
+
+
+
+
+
+
+
+
diff --git a/src/pagesConfig/printTemplate.vue b/src/pagesConfig/printTemplate.vue
new file mode 100644
index 0000000..f7ddddc
--- /dev/null
+++ b/src/pagesConfig/printTemplate.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue
index f05a8c5..1cebd0d 100644
--- a/src/pagesHome/index.vue
+++ b/src/pagesHome/index.vue
@@ -25,7 +25,7 @@
{{ formatMoney(item.num, 2) }}
@@ -50,7 +50,7 @@
:offset="[10, 10]"
>
@@ -58,12 +58,13 @@
-
+
出货销售
@@ -97,7 +98,7 @@
diff --git a/src/pagesLogin/login/components/loginLayout.vue b/src/pagesLogin/login/components/loginLayout.vue
index 79fb891..97b9bdb 100644
--- a/src/pagesLogin/login/components/loginLayout.vue
+++ b/src/pagesLogin/login/components/loginLayout.vue
@@ -2,7 +2,7 @@
-
+
@@ -12,6 +12,7 @@
diff --git a/src/pagesLogin/login/index.vue b/src/pagesLogin/login/index.vue
index a26df8a..2bfaa4a 100644
--- a/src/pagesLogin/login/index.vue
+++ b/src/pagesLogin/login/index.vue
@@ -9,75 +9,41 @@
ref="loginForm"
:labelWidth="0"
>
-
+
{handleInput(e, 'userName')}"
- @clear="handleClear({ key: 'userName' })"
+ @focus="handleFocus('phone')"
+ @change="(e:any) => {handleInput(e, 'phone')}"
+ @clear="handleClear({ key: 'phone' })"
>
-
+
{handleInput(e, 'password')}"
- @clear="handleClear({ key: 'password' })"
>
-
-
+ 获取验证码
+ {{ seconds }}s后重新发送
-
-
-
-
-
-
- 忘记密码
-
-
-
-
+ {
+ checkGroup.agreeCheck = v;
+ }
+ "
+ >
我已阅读并同意用户
-
- handleSelect(v)"
- @close="state.isShow = false"
- :closeOnClickAction="true"
- >
diff --git a/src/pagesLogin/message/index.vue b/src/pagesLogin/message/index.vue
index 72410fb..781071b 100644
--- a/src/pagesLogin/message/index.vue
+++ b/src/pagesLogin/message/index.vue
@@ -69,7 +69,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const getList = (v?: boolean) => {
diff --git a/src/pagesLogin/profile/baseinfo.vue b/src/pagesLogin/profile/baseinfo.vue
index 46091b1..402212c 100644
--- a/src/pagesLogin/profile/baseinfo.vue
+++ b/src/pagesLogin/profile/baseinfo.vue
@@ -2,6 +2,7 @@
姓名: {{ profile.userName }}
+ 性别: {{ profile.gender ? (profile.gender === 1 ? '男' : '女') :'未知' }}
手机号码: {{ profile.phone }}
diff --git a/src/pagesLogin/profile/index.vue b/src/pagesLogin/profile/index.vue
index 17f6388..461a0ba 100644
--- a/src/pagesLogin/profile/index.vue
+++ b/src/pagesLogin/profile/index.vue
@@ -5,26 +5,26 @@
- {{ profile.userName || "-" }}
+ {{ profile.name || "-" }}
- {{ profile.factory_name || "-" }}
+ {{ profile.phone || "-" }}
-
+
@@ -67,8 +68,8 @@ import { useMemberStore } from "@/store/index";
import TabBar from "@/components/TabBar/index.vue";
import SmallModal from "@/components/Modal/smallModal.vue";
import Box from "@/components/Box/index.vue";
-import pinia from '@/store'
-
+import pinia from "@/store";
+import {url} from "@/utils/data";
const isShowCancelModal = ref(false);
@@ -88,18 +89,21 @@ const store = useMemberStore(pinia);
const profile = store.profile.userInfo;
const list = reactive([
{
- name: "基本信息",
- icon: "baseinfo.png",
+ name: "个人信息",
+ icon: "1.png",
path: "/pagesLogin/profile/baseinfo",
},
{
- name: "修改密码",
- icon: "modifyPwd.png",
- path: "/pagesLogin/profile/modifyPwd",
+ name: "用户协议",
+ icon: "4.png",
+ },
+ {
+ name: "隐私政策",
+ icon: "5.png",
},
{
name: "退出登录",
- icon: "logout.png",
+ icon: "3.png",
path: "",
},
]);
@@ -107,8 +111,42 @@ const list = reactive([
const hanldeClick = (item: any) => {
if (item.name === "退出登录") {
handleModal(true);
+ } else if (item.name === "用户协议") {
+ openDoc('爱梵达用户服务协议')
+ } else if (item.name === "隐私政策") {
+ openDoc(item.name)
}
};
+
+const openDoc = (item: string) => {
+ //文件预览
+ uni.downloadFile({
+ url: `${url}/static/pages/login/${item}.docx`,
+ success: function (res) {
+ setTimeout(
+ () =>
+ uni.openDocument({
+ filePath: res.tempFilePath,
+ showMenu: false,
+ success: function () {
+ console.log("打开文档成功");
+ },
+ fail: function () {
+ uni.showToast({
+ title: "暂不支持此类型",
+ duration: 2000,
+ icon: "none",
+ });
+ },
+ }),
+ 100
+ );
+ },
+ fail: function (res) {
+ console.log(res); //失败
+ },
+ });
+};
diff --git a/src/pagesReceive/components/detail.vue b/src/pagesReceive/components/detail.vue
new file mode 100644
index 0000000..e5e58db
--- /dev/null
+++ b/src/pagesReceive/components/detail.vue
@@ -0,0 +1,377 @@
+
+
+
+
+
+ {{ currentOrder.deviceName || "-" }}
+
+
+
+ {{ currentOrder.productName || "" }}
+
+
+
+
+
+
+
+
+ 过磅时间:{{ currentOrder.grossTime || "-" }}
+
+
+
+ 定价人:{{ currentOrder.pricingUserName || "-" }}
+ 审核人:{{ currentOrder.reviewerUserName || "-" }}
+
+
+
+ 收货单号:{{ currentOrder.receiptNumber }}
+
+
+ {{ item.name }}:
+
+ {{ item.isBefore ? item.unit : "" }}
+ {{ item.num }}
+ {{ item.isBefore ? "" : item.unit }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {handleModal(v, deleteId)}"
+ @handleOk="handleOk()"
+ />
+
+
+
+
+
+
+
diff --git a/src/pagesReceive/form/pricingForm.vue b/src/pagesReceive/form/pricingForm.vue
index 6f8b656..d8eee99 100644
--- a/src/pagesReceive/form/pricingForm.vue
+++ b/src/pagesReceive/form/pricingForm.vue
@@ -824,7 +824,8 @@ onUnmounted(() => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesReceive/payList.vue b/src/pagesReceive/payList.vue
index d386228..a50e54d 100644
--- a/src/pagesReceive/payList.vue
+++ b/src/pagesReceive/payList.vue
@@ -23,7 +23,6 @@
-
{
@@ -32,13 +31,12 @@
"
:noMoreData="pageList.noMoreData"
:list="pageList.list"
- :height="ScaleStatus.Paid === currentTab ? 160 : 240"
+ :height="40"
:isLoading="pageList.isLoading"
>
-
-
+
{
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
-const currentTab = ref(2);
const handleSearch = () => {
resetPageList();
@@ -117,10 +115,10 @@ const getList = (v?: boolean) => {
ReceiveApi.getOrderPage({
pageSize: pageList.pageSize,
pageNumber: pageList.pageNum,
- scaleStatus: currentTab.value,
+ scaleStatus: ScaleStatus.Paid,
userName: keyword.value,
- startTime: filterState.startTime ? `${filterState.startTime} 00:00:00` : '',
- endTime: filterState.startTime ? `${filterState.endTime} 00:00:00` : '',
+ startTime: filterState.startTime ? `${filterState.startTime} 00:00:00` : "",
+ endTime: filterState.startTime ? `${filterState.endTime} 00:00:00` : "",
}).then((res: any) => {
if (res.code === 200) {
pageList.isLoading = false;
@@ -136,9 +134,7 @@ const getList = (v?: boolean) => {
onMounted(() => {
getList();
});
-onLoad((option) => {
- currentTab.value = parseInt((option as any).scaleStatus);
-});
+onLoad((option) => {});
diff --git a/src/pagesReceive/payReview.vue b/src/pagesReceive/payReview.vue
index 680263f..088c7cb 100644
--- a/src/pagesReceive/payReview.vue
+++ b/src/pagesReceive/payReview.vue
@@ -56,7 +56,7 @@
value="cb"
:color="'#00D2E3'"
:checked="item.isChecked"
- style="transform: scale(0.5)"
+ style="transform: scale(0.7)"
@click="item.isChecked = !item.isChecked"
/>
@@ -66,7 +66,7 @@
收货单号:{{ item.receiptNumber }}
- {{ item.userName }} {{ item.cardNumber }}
+ {{ item.userName }} / {{ item.cardNumber }}
@@ -236,7 +236,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const currentTab = ref(2);
const handleTab = (item: any) => {
@@ -427,7 +427,7 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(5, 68, 37, 0.12);
border-radius: 13rpx;
margin: 0rpx 25rpx;
- margin-top: 35rpx;
+ margin-top: 22rpx;
font-family: Source Han Sans CN;
font-weight: 400;
font-size: 26rpx;
diff --git a/src/pagesReceive/pricing.vue b/src/pagesReceive/pricing.vue
index cb52792..869d2b6 100644
--- a/src/pagesReceive/pricing.vue
+++ b/src/pagesReceive/pricing.vue
@@ -39,7 +39,7 @@
收货单号:{{ item.receiptNumber }}
- {{ item.userName }} {{item.cardNumber}}
+ {{ item.userName }} / {{item.cardNumber}}
@@ -154,7 +154,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const state = reactive({
scaleStatus: 0,
diff --git a/src/pagesShipment/components/receivedDetail.vue b/src/pagesShipment/components/receivedDetail.vue
new file mode 100644
index 0000000..2179b75
--- /dev/null
+++ b/src/pagesShipment/components/receivedDetail.vue
@@ -0,0 +1,399 @@
+
+
+
+
+
+ {{ currentOrder.deviceName || "-" }}
+
+
+
+ {{ currentOrder.productName || "" }}
+
+
+
+
+
+
+
+
+ {{ item.name }}:{{ item.isBefore ? item.unit : "" }}
+ {{ item.num }}
+ {{ item.isBefore ? "" : item.unit }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}:{{ item.isBefore ? item.unit : "" }}
+
+ {{
+ (currentOrder.netWeight || 0) -
+ (currentOrder.settlementNet || 0)
+ }}
+
+
+ {{ payMethodMap[item.num] || "暂无" }}
+
+ {{ item.num }}
+
+ {{ item.isBefore ? "" : item.unit }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {handleModal(v, deleteId)}"
+ @handleOk="handleOk()"
+ />
+
+
+
+
diff --git a/src/pagesShipment/form/settlementForm.vue b/src/pagesShipment/form/settlementForm.vue
index 0ab8c9f..a7e81a4 100644
--- a/src/pagesShipment/form/settlementForm.vue
+++ b/src/pagesShipment/form/settlementForm.vue
@@ -40,10 +40,16 @@
>
- {{ model1.order.buttonType === 0 ? item.unit : "%" }}
+ {{
+ model1.order.buttonType === 0
+ ? isKg()
+ ? item.unit
+ : item.unit1 || item.unit
+ : "%"
+ }}
- {{ item.unit }}
+ {{ isKg() ? item.unit : item.unit1 || item.unit }}
@@ -184,8 +190,16 @@ const model1 = reactive<{
subtractNum: 0,
grossWeight: 0, //毛重
tare: 0, //皮重
+ unit: 1,
},
});
+const isKg = () => {
+ if (model1.order.unit === 1) {
+ return false;
+ } else {
+ return true;
+ }
+};
const rules = reactive({
"order.settlementGross": {
type: "number",
@@ -256,12 +270,28 @@ const contrlModalParams = reactive({
});
const formAttrList = reactive([
+ {
+ name: "称重单位",
+ key: "unit",
+ type: "radio",
+ child: [
+ {
+ id: 0,
+ name: "kg",
+ },
+ {
+ id: 1,
+ name: "吨",
+ },
+ ],
+ },
{
name: "毛重",
key: "settlementGross",
type: "input",
required: true,
unit: "kg",
+ unit1: "吨",
fn: () => {},
isNumber: true,
},
@@ -271,6 +301,7 @@ const formAttrList = reactive([
type: "input",
required: true,
unit: "kg",
+ unit1: "吨",
fn: () => {},
isNumber: true,
},
@@ -281,6 +312,7 @@ const formAttrList = reactive([
required: true,
disabled: true,
unit: "kg",
+ unit1: "吨",
fn: () => {},
isNumber: true,
},
@@ -290,6 +322,7 @@ const formAttrList = reactive([
type: "input",
required: true,
unit: "元/kg",
+ unit1: "元/吨",
fn: () => {},
isNumber: true,
},
@@ -319,7 +352,8 @@ const formAttrList = reactive([
name: "杂质扣除",
key: "subtractNum",
type: "input",
- unit: "KG",
+ unit: "kg",
+ unit1: "吨",
isNumber: true,
},
{
@@ -328,7 +362,8 @@ const formAttrList = reactive([
type: "input",
required: true,
disabled: true,
- unit: "KG",
+ unit: "kg",
+ unit1: "吨",
isNumber: true,
},
{
@@ -411,19 +446,6 @@ const formAttrList = reactive([
},
]);
-// const handleIsShowInput = (item: any) => {
-// if () {
-// return true
-// } else {
-// if (model1.order.deliveryMethod === 0 && ['freight', 'incidentals'].indexOf(item.key) > -1) {
-// return false
-// } {
-// return true
-// }
-// }
-
-// }
-
// 监听毛重 皮重
watch(
[
@@ -683,6 +705,7 @@ onLoad((option) => {
fileLists: model1.order.fileLists.map((item: any) => {
return { ...item, fileID: item.id };
}),
+ unit: 1,
};
}
});
@@ -720,11 +743,15 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
border-radius: 43rpx;
}
}
+:v-deep.u-radio-group {
+ justify-content: space-around;
+}
diff --git a/src/pagesShipment/form/shipmentForm.vue b/src/pagesShipment/form/shipmentForm.vue
index 7bc1994..c30756c 100644
--- a/src/pagesShipment/form/shipmentForm.vue
+++ b/src/pagesShipment/form/shipmentForm.vue
@@ -41,15 +41,6 @@
{{ item.unit }}
-
-
+
+
+
{
(model1.order as any)[item.key] = '';
}
@@ -517,7 +512,8 @@ onLoad((option) => {
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(0, 56, 93, 0.12);
border-radius: 13rpx 13rpx 0rpx 0rpx;
padding: 25rpx 50rpx;
- position: sticky;
+ position: fixed;
+width: calc(100vw - 100rpx);
bottom: 0rpx;
z-index: 999;
::v-deep button {
diff --git a/src/pagesShipment/grossWeight.vue b/src/pagesShipment/grossWeight.vue
index b6b16f5..583bdf0 100644
--- a/src/pagesShipment/grossWeight.vue
+++ b/src/pagesShipment/grossWeight.vue
@@ -65,7 +65,7 @@ const resetPageList = () => {
pageList.total = 0;
pageList.list = [];
pageList.pageNum = 1;
- pageList.pageSize = 10;
+ pageList.pageSize = 100;
};
const isShowCancelModal = ref(false);
const deleteId = ref(0);
diff --git a/src/pagesShipment/pendingPayment.vue b/src/pagesShipment/pendingPayment.vue
new file mode 100644
index 0000000..490e6e2
--- /dev/null
+++ b/src/pagesShipment/pendingPayment.vue
@@ -0,0 +1,462 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ filterState.startTime }} - {{ filterState.endTime }}
+
+
+
+ {
+ getList(v);
+ }
+ "
+ :noMoreData="pageList.noMoreData"
+ :list="pageList.list"
+ :height="130"
+ :isLoading="pageList.isLoading"
+ >
+
+
+
+
+
+
+
+ 出货单号:{{ item.orderNumber }}
+
+
+ {{ item.userName
+ }}
+ / {{ item.cardNumber }}
+
+
+
+
+
+
+ 过磅总净重:{{ item.netWeight || 0 }}KG
+
+
+
+
+
+
+ 结算皮重:{{ item.settlementTare }} KG
+ 结算毛重:{{ item.settlementGross }} KG
+
+ {{ item.buttonType === 0 ? "扣杂" : "扣点" }}:{{
+ item.buttonType === 0
+ ? item["buckleMiscellaneous"]
+ : item["points"]
+ }}
+ {{ item.buttonType === 0 ? "KG" : "%" }}
+ 结算净重:{{ item.settlementNet }} KG
+ 单价:{{ item.unitPrice }} 元/KG
+ 实际收款:{{ item.totalPrice }} 元
+
+
+ 去收款
+
+
+
+
+
+
+
+
+
+
+
+
+ handleSelect1('select', v)"
+ @close="contrlModalParams.select.isShow = false"
+ :closeOnClickAction="true"
+ >
+
+
+
+ {filterState.showTime = false}"
+ @changeTime="changeTime"
+ />
+
+
+
diff --git a/src/pagesShipment/receivedPayment.vue b/src/pagesShipment/receivedPayment.vue
new file mode 100644
index 0000000..71339c3
--- /dev/null
+++ b/src/pagesShipment/receivedPayment.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ filterState.startTime }} - {{ filterState.endTime }}
+
+
+
+ {
+ getList(v);
+ }
+ "
+ :noMoreData="pageList.noMoreData"
+ :list="pageList.list"
+ :height="80"
+ :isLoading="pageList.isLoading"
+ >
+
+
+
+
+
+
+
+
+
+
+ {filterState.showTime = false}"
+ @changeTime="changeTime"
+ />
+
+
+
diff --git a/src/pagesShipment/review/index.vue b/src/pagesShipment/review/index.vue
index fb8a400..7b5a605 100644
--- a/src/pagesShipment/review/index.vue
+++ b/src/pagesShipment/review/index.vue
@@ -58,14 +58,6 @@
过磅时间:{{ state.order.tareTime }}
-
-
+
+ 客户名称:{{ state.order.userName }}
+
+
{{ item.name }}:
-
-
-
-
-
- {{ item.name }}:{{ item.isBefore ? item.unit : "" }}
- {{ item.num }}
- {{ item.isBefore ? "" : item.unit }}
-
-
+
- 出货未结算
- 出货并结算
+ 暂不收款
+ 立即收款
@@ -242,28 +235,6 @@ const contrlModalParams = reactive<{ [attrName: string]: any }>({
},
],
},
- printSelect: {
- isShow: false,
- title: "请选择打印设备",
- list: [
- {
- name: "打印设备1",
- key: 1,
- },
- {
- name: "打印设备2",
- key: 2,
- },
- {
- name: "打印设备3",
- key: 3,
- },
- {
- name: "打印设备4",
- key: 4,
- },
- ],
- },
});
const state = reactive<{
order: Shipment;
@@ -278,9 +249,6 @@ const state = reactive<{
{
key: "paySelect",
},
- {
- key: "printSelect",
- },
],
scaleStatusBtnType: 0,
});
@@ -307,78 +275,6 @@ const gridList1 = reactive([
isBefore: false,
},
]);
-const gridList2 = reactive([
- {
- name: "客户名称",
- enName: "userName",
- num: "",
- isBefore: false,
- },
- {},
- {
- name: "签收时间",
- enName: "signTime",
- num: "",
- isBefore: false,
- },
- {},
- {
- name: "毛重",
- enName: "settlementGross",
- num: "",
- unit: "KG",
- isBefore: false,
- },
- {
- name: "皮重",
- enName: "settlementTare",
- num: "",
- unit: "KG",
- isBefore: false,
- },
- {
- name: "结算重量",
- enName: "settlementWeight",
- num: "",
- unit: "KG",
- isBefore: false,
- },
- {
- name: "单价",
- enName: "unitPrice",
- num: "",
- unit: "元/KG",
- isBefore: false,
- },
- {
- name: "预估总价",
- enName: "estimatePrice",
- num: "",
- unit: "元",
- isBefore: false,
- },
- {
- name: "结算金额",
- enName: "totalPrice",
- num: "",
- unit: "元",
- isBefore: false,
- },
- {
- name: "运费",
- enName: "freight",
- num: "",
- unit: "元",
- isBefore: false,
- },
- {
- name: "杂费",
- enName: "incidentals",
- num: "",
- unit: "元",
- isBefore: false,
- },
-]);
const gridList3 = reactive([
{
@@ -401,7 +297,7 @@ const gridList3 = reactive([
},
{},
{
- name: "结算重量",
+ name: "结算净重",
enName: "settlementWeight",
num: 0,
unit: "KG",
@@ -443,7 +339,7 @@ const gridList3 = reactive([
isBefore: false,
},
{
- name: "实际收入",
+ name: "实际收款",
enName: "realIncome",
num: "",
unit: "元",
@@ -465,7 +361,7 @@ const gridList3 = reactive([
isBefore: false,
},
]);
-// 立即结算 // 先填写结算信息后更新状态为4
+// 立即收款 // 先填写结算信息后更新状态为4
const handleSettlement = () => {
uni.navigateTo({
url:
@@ -479,7 +375,7 @@ const handleScenePhoto = (id: string) => {
url: "/pagesScenePhoto/index?orderType=2&imagesType=1&id=" + id, // 要跳转到的页面路径
});
};
-// 出货未结算 // 先填写结算信息后更新状态为3
+// 暂不收款 // 先填写结算信息后更新状态为3
const handleReviewNoPay = () => {
uni.navigateTo({
url:
@@ -487,13 +383,6 @@ const handleReviewNoPay = () => {
state.order.id +
`&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentNoPay}`, // 要跳转到的页面路径
});
- // ShipmentApi.updateOrderIn({ ...state.order, scaleStatus: 3 }).then((res) => {
- // if (res.code === 200) {
- // uni.navigateTo({
- // url: "/pagesShipment/shipmentSettlement?scaleStatus=3", // 要跳转到的页面路径
- // });
- // }
- // });
};
// 审核立即支付
const handleReviewPay = () => {
@@ -507,26 +396,6 @@ const handleReviewPay = () => {
const handleSelect = (key: string, v: any) => {
contrlModalParams[key].isShow = false;
- if (key === "paySelect") {
- // 修改订单状态
- // ShipmentApi.updateOne({
- // ...state.order,
- // scaleStatus: 4,
- // paymentMethod: v.key,
- // }).then((res) => {
- // if (res.code === 200) {
- // uni.showToast({
- // title: "支付成功",
- // icon: "success",
- // });
- // uni.navigateTo({
- // url: "/pagesReceive/payReview?scaleStatus=4", // 要跳转到的页面路径
- // });
- // }
- // });
- } else if (key === "printSelect") {
- // 打印
- }
};
const isShowCancelModal = ref(false);
const deleteId = ref("0");
@@ -540,8 +409,7 @@ const handleOk = () => {
if (res.code === 200) {
uni.navigateTo({
url:
- "/pagesShipment/shipmentSettlement?scaleStatus=" +
- state.scaleStatus, // 要跳转到的页面路径
+ "/pagesShipment/shipmentSettlement?scaleStatus=" + state.scaleStatus, // 要跳转到的页面路径
});
}
});
@@ -574,9 +442,6 @@ const init = () => {
gridList1.map((item) => {
item.num = state.order[item.enName as string];
});
- gridList2.map((item) => {
- item.num = state.order[item.enName as string];
- });
gridList3.map((item) => {
if (item.name === "净重误差") {
item.num =
@@ -605,7 +470,7 @@ const handlePrint = () => {
onShow(() => {
init();
});
-onLoad((option:any) => {
+onLoad((option: any) => {
state.order.id = (option as any).id;
state.scaleStatusBtnType = parseInt((option as any).scaleStatusBtnType);
state.scaleStatus = parseInt(option.scaleStatus);
diff --git a/src/pagesShipment/shipmentSettlement.vue b/src/pagesShipment/shipmentSettlement.vue
index e642f8a..2a3a783 100644
--- a/src/pagesShipment/shipmentSettlement.vue
+++ b/src/pagesShipment/shipmentSettlement.vue
@@ -1,33 +1,28 @@
-
-
- 请输入客户名称
+
+
+
-
+
+
+
+
+
+
+ {{ filterState.startTime }} - {{ filterState.endTime }}
-
-
- {{ item.name }}
-
-
@@ -64,7 +52,12 @@
出货单号:{{ item.orderNumber }}
- {{ item.userName }}
+ {{ item.userName
+ }}
+ / {{ item.cardNumber }}
@@ -81,7 +74,7 @@
出货结算去结算
+
+
+ {filterState.showTime = false}"
+ @changeTime="changeTime"
+ />