update: 修复问题
This commit is contained in:
parent
426640fc6a
commit
f3fd202083
|
@ -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();
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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:多品类
|
||||||
|
|
Loading…
Reference in New Issue