update: 修复问题

This commit is contained in:
admin 2024-05-11 09:55:51 +08:00
parent 426640fc6a
commit f3fd202083
5 changed files with 9 additions and 3 deletions

View File

@ -97,7 +97,7 @@ const handleSearch = () => {
const update = (item: any) => { const update = (item: any) => {
GoodsApi.EditReceiveProduct({ isDeleted: true, id: item.id }).then((res) => { GoodsApi.deleteReceiveProduct({ id: item.id }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
resetPageList(); resetPageList();
getList(); getList();

View File

@ -60,10 +60,12 @@
v-model="model1.order.fileLists" v-model="model1.order.fileLists"
@delete="handleDelete" @delete="handleDelete"
></uni-file-picker> ></uni-file-picker>
<!-- 当定价后编辑入库单 不能更改称重方式 -->
<u-radio-group <u-radio-group
v-if="item.type === 'radio'" v-if="item.type === 'radio'"
v-model="(model1.order as any)[item.key]" v-model="(model1.order as any)[item.key]"
placement="row" placement="row"
:disabled="model1.order.scaleStatus === 1 && item.key === 'weighingMethod'"
> >
<u-radio <u-radio
v-for="(c, index) in item.child" v-for="(c, index) in item.child"

View File

@ -74,7 +74,9 @@
> >
</view> </view>
<view class="flex-box"> <view class="flex-box">
<text>货款金额{{ item.balanceTotalPrice || 0 }}</text> <!-- 若是等待审核显示预估总价 其他显示货款金额 -->
<text v-if="currentTab === 2">预估总价{{ item.totalPrice || 0 }}</text>
<text v-else>货款金额{{ item.balanceTotalPrice || 0 }}</text>
</view> </view>
</view> </view>
<view> <view>

View File

@ -221,6 +221,7 @@ const state = reactive<{
}>({ }>({
order: { order: {
carNumber: "", carNumber: "",
balanceTotalPrice: 0
}, },
sheetList: [ sheetList: [
{ {
@ -317,6 +318,7 @@ const handleConfirm = () => {
], ],
}).then((res) => { }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
state.order.balanceTotalPrice = amount.value || 0
uni.showToast({ title: "修改成功" }); uni.showToast({ title: "修改成功" });
gridList1[gridList1.length - 1].num = amount.value || ""; gridList1[gridList1.length - 1].num = amount.value || "";
isInput.value = false; isInput.value = false;

View File

@ -29,7 +29,7 @@ interface Order {
points?: number; //扣点 points?: number; //扣点
buckleMiscellaneous?: number; //扣杂 buckleMiscellaneous?: number; //扣杂
price?: number; //单价 price?: number; //单价
balanceTotalPrice?: number; //结算总价 货款金额 balanceTotalPrice: number; //结算总价 货款金额
totalPrice?: number; //实际总价 预估价格 totalPrice?: number; //实际总价 预估价格
weighingMethod?: number; //称重方式0有皮重 1零皮重 weighingMethod?: number; //称重方式0有皮重 1零皮重
multiCategory?: number; //多品类0单品类 1多品类 multiCategory?: number; //多品类0单品类 1多品类