diff --git a/src/PagesStatistics/customer/detail.vue b/src/PagesStatistics/customer/detail.vue index f1eac9a..cd451df 100644 --- a/src/PagesStatistics/customer/detail.vue +++ b/src/PagesStatistics/customer/detail.vue @@ -104,7 +104,7 @@ const gridList2 = reactive([ isBefore: false, }, { - name: "货款金额", + name: "实际付款", enName: "totalPrice", num: "", unit: "元", diff --git a/src/PagesStatistics/index.vue b/src/PagesStatistics/index.vue index df5ab86..ce8c809 100644 --- a/src/PagesStatistics/index.vue +++ b/src/PagesStatistics/index.vue @@ -48,7 +48,7 @@ :text="'暂无相关权限, 请联系管理员'" > - + + diff --git a/src/components/Dialog/TimeDialog.vue b/src/components/Dialog/TimeDialog.vue new file mode 100644 index 0000000..f7f3a7e --- /dev/null +++ b/src/components/Dialog/TimeDialog.vue @@ -0,0 +1,169 @@ + + + diff --git a/src/components/Photo/index.vue b/src/components/Photo/index.vue new file mode 100644 index 0000000..a3d3632 --- /dev/null +++ b/src/components/Photo/index.vue @@ -0,0 +1,52 @@ + + + + diff --git a/src/components/TabBar/index.vue b/src/components/TabBar/index.vue index 4f11f60..3c0a681 100644 --- a/src/components/TabBar/index.vue +++ b/src/components/TabBar/index.vue @@ -1,153 +1,107 @@ diff --git a/src/pages.json b/src/pages.json index 91e9320..b07de0e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -18,6 +18,13 @@ "navigationStyle": "custom", // 控制头部是否显示 "navigationBarTitleText": "工作台" } + }, + { + "path": "pagesHome/index1", + "style": { + "navigationStyle": "custom", // 控制头部是否显示 + "navigationBarTitleText": "工作台" + } } //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages ], @@ -58,9 +65,8 @@ { "path": "profile/index", "style": { - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarTitleText": "个人中心" - } }, { @@ -106,6 +112,12 @@ "navigationBarTitleText": "付款审核" } }, + { + "path": "payList", + "style": { + "navigationBarTitleText": "已付款" + } + }, { "path": "form/pricingForm", "style": { @@ -178,7 +190,7 @@ { "path": "index", "style": { - "navigationStyle": "custom", + "navigationStyle": "custom", "navigationBarTitleText": "数据统计" } }, @@ -453,6 +465,27 @@ // ] // } ], + "tabbar": { + "custom": true, //隐藏官方选项卡 + "list": [ + { + "pagePath": "pagesHome/index", + "text": "工作台" + }, + { + "pagePath": "pagesStatistics/index", + "text": "统计" + }, + { + "pagePath": "pagesHome/index", + "text": "配置" + }, + { + "pagePath": "pagesLogin/profile/index", + "text": "我的" + } + ] + }, "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "智能回收", diff --git a/src/pagesApp/receiveSpl.vue b/src/pagesApp/receiveSpl.vue index 3f4c2c9..3bd577d 100644 --- a/src/pagesApp/receiveSpl.vue +++ b/src/pagesApp/receiveSpl.vue @@ -162,7 +162,7 @@ const changeProduct = (obj: any) => { model1.order.maxPrice = obj.maxPrice; }; -// 毛重 皮重 杂质扣除校验 净重 单价 预估总价 货款金额 +// 毛重 皮重 杂质扣除校验 净重 单价 预估总价 实际付款 const handleInput = (e: any, item: any) => { if ( ["grossWeight", "tare", "price", "balanceTotalPrice"].indexOf(item.key) > -1 @@ -275,7 +275,7 @@ const rules = reactive({ "order.balanceTotalPrice": { type: "number", required: true, - message: "货款金额为空或输入错误", + message: "实际付款为空或输入错误", trigger: ["blur", "change"], }, }); @@ -403,7 +403,7 @@ const formAttrList = reactive([ disabled: true, }, { - name: "货款金额", + name: "实际付款", key: "balanceTotalPrice", type: "input", required: true, @@ -450,7 +450,7 @@ watch( } model1.order.totalPrice = Math.floor((model1.order.price || 0) * (model1.order.netWeight || 0)) ; - // 货款金额默认=预估总价,当系统自动算出预估总价时,值需同步 + // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步 model1.order.balanceTotalPrice = model1.order.totalPrice; } ); diff --git a/src/pagesHome/AvaSwiper/AvaSwiper.vue b/src/pagesHome/AvaSwiper/AvaSwiper.vue deleted file mode 100644 index 16c6866..0000000 --- a/src/pagesHome/AvaSwiper/AvaSwiper.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - - diff --git a/src/pagesHome/index.vue b/src/pagesHome/index.vue index d8ea157..f05a8c5 100644 --- a/src/pagesHome/index.vue +++ b/src/pagesHome/index.vue @@ -8,13 +8,21 @@ height: navbarRect.safeHeight + 'px', }" > + + + + - - - - - - - - 收货入库 - - - - - - {{ item.num }} - - - {{ item.title }} - - - - - - - - - - 出货销售 - - - - - - {{ item.num }} - - - {{ item.title }} - - - - - - - - - - - - - - 常用应用 - - + + + 收货入库 + + + - {{ item.title }} - - + {{ item.title }} + + + + + 出货销售 + + + + + {{ item.title }} + + - - - + --> + + diff --git a/src/pagesLogin/login/index.vue b/src/pagesLogin/login/index.vue index 601d0cf..a26df8a 100644 --- a/src/pagesLogin/login/index.vue +++ b/src/pagesLogin/login/index.vue @@ -9,23 +9,6 @@ ref="loginForm" :labelWidth="0" > - - - - - - { const handleSelect = (v: any) => { state.isShow = false; state.dpObj = v; - model1.userInfo.dpName = v.name; store.setChildPath(v.dbIp); }; diff --git a/src/pagesLogin/profile/index.vue b/src/pagesLogin/profile/index.vue index c208a8d..17f6388 100644 --- a/src/pagesLogin/profile/index.vue +++ b/src/pagesLogin/profile/index.vue @@ -49,7 +49,7 @@ - + + + + - - { (model1.order as any)[item.key] = ""; }; @@ -145,7 +141,6 @@ const showDialog = < [key: string]: boolean; } >reactive({ - showSupplier: false, showProduct: false, }); @@ -153,11 +148,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; // 收货产品名称 @@ -232,7 +222,7 @@ const rules = reactive({ "order.userName": { type: "string", required: true, - message: "请选择供应商", + message: "请输入供应商", trigger: ["blur", "change"], }, "order.productName": { @@ -287,18 +277,12 @@ const formAttrList = reactive([ { name: "供应商", key: "userName", - type: "select", + type: "input", unit: "", - childKey: "userSelect", required: true, - fn: () => { - uni.navigateTo({ - url: - "/pagesApp/components/addSupplier?title=编辑供应商&item=" + - model1.order.userId, // 要跳转到的页面路径 - }); - - uni.hideKeyboard(); + fn: () => {}, + blur: () => { + updateSupplierUserName(); }, }, { @@ -406,13 +390,11 @@ const formAttrList1 = reactive([ { name: "供应商", key: "userName", - type: "select", + type: "input", unit: "", - childKey: "userSelect", required: true, - fn: () => { - // handleDialog("showSupplier", true); - uni.hideKeyboard(); + blur: () => { + updateSupplierUserName(); }, }, { @@ -495,7 +477,7 @@ const formAttrList1 = reactive([ disabled: true, }, { - name: "货款金额", + name: "实际付款", key: "balanceTotalPrice", type: "input", required: true, @@ -550,34 +532,14 @@ watch( model1.order.netWeight * ((100 - model1.order.subtractNum) / 100); } } - // 定价的时候不对totalPrice 进行处理 - // model1.order.totalPrice = - // Math.round( - // (model1.order.price || 0) * (model1.order.netWeight || 0) * 100 - // ) / 100; - // 货款金额默认=预估总价,当系统自动算出预估总价时,值需同步 + // 实际付款默认=预估总价,当系统自动算出预估总价时,值需同步 if (model1.order.balanceTotalPrice <= 0) { model1.order.balanceTotalPrice = model1.order.totalPrice; } } ); -// SupplierApi.getSupplierUserList({}).then((res) => { -// if (res.code === 200) { -// contrlModalParams.userSelect.list = res.data; -// } -// }); -// ReceiveProductApi.getAllReProducts().then((res) => { -// if (res.code === 200) { -// contrlModalParams.productSelect.list = _.map( -// res.data as any, -// function (item: any) { -// return { name: item.reProductsName, ...item }; -// } -// ); -// } -// }); const handleSelect = (key: string, v: any) => { contrlModalParams[key].isShow = false; if (key === "userSelect") { @@ -635,6 +597,17 @@ const handleDelete = (e: any) => { } }; +const updateSupplierUserName = () => { + const { userId, userName } = model1.order; + SupplierApi.updateSupplierUserName({ id: userId, name: userName }).then( + (res) => { + if (res.code === 200) { + uni.showToast({ title: "供应商名称已更新" }); + } + } + ); +}; + /** * 点击保存 先执行upload接口 * 上传成功后 保存图片资源 和更新订单数据 @@ -701,20 +674,16 @@ const save = () => { } check().then((res) => { if (res) { + // 保存前先更新供应商名称 startSave(); } }); }; const startSave = () => { Promise.all(handleUpload()).then((res) => { - console.log("***** 所有文件已经上传成功", res); if (res.filter((item) => item).length > 0) { PictureApi.addListAnnex({ annexPos: res.filter((item) => item) }).then( (res1) => { - console.log( - "***** 关联的内容是", - res.filter((item) => item) - ); if (res1.code === 200) { console.log("*** 资源文件更新成功"); } diff --git a/src/pagesReceive/payList.vue b/src/pagesReceive/payList.vue new file mode 100644 index 0000000..d386228 --- /dev/null +++ b/src/pagesReceive/payList.vue @@ -0,0 +1,203 @@ + + + diff --git a/src/pagesReceive/payReview.vue b/src/pagesReceive/payReview.vue index a104e81..680263f 100644 --- a/src/pagesReceive/payReview.vue +++ b/src/pagesReceive/payReview.vue @@ -1,25 +1,29 @@