update: 更新问题
This commit is contained in:
parent
9c225b6bc6
commit
6118bbeccf
|
@ -29,7 +29,7 @@
|
||||||
>{{ obj.paymentType === 0 ? "收货" : "出货" }}单号:
|
>{{ obj.paymentType === 0 ? "收货" : "出货" }}单号:
|
||||||
<text>{{ obj.orderNumber }}</text></view
|
<text>{{ obj.orderNumber }}</text></view
|
||||||
>
|
>
|
||||||
<up-image :show-loading="true" v-for="(item, index) in obj.fileLists" :key="index" :src="item.url" width="80px" height="80px"></up-image>
|
<up-image :show-loading="true" v-for="(item, index) in state.fileLists" :key="index" :src="item.url" width="80px" height="80px"></up-image>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
@ -37,6 +37,9 @@ import { FinanceApi, PictureApi } from "@/services";
|
||||||
import { ImagesType, OrderType } from "@/utils/enum";
|
import { ImagesType, OrderType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
const obj = ref<any>({});
|
const obj = ref<any>({});
|
||||||
|
const state = reactive<any>({
|
||||||
|
fileLists: []
|
||||||
|
})
|
||||||
const getPayment = (item: any) => {
|
const getPayment = (item: any) => {
|
||||||
return ["供应商付款", "客户付款", "客户(手动)", "供应商(手动)"][
|
return ["供应商付款", "客户付款", "客户(手动)", "供应商(手动)"][
|
||||||
item.paymentType
|
item.paymentType
|
||||||
|
@ -58,7 +61,7 @@ onLoad((option: any) => {
|
||||||
imagesType: ImagesType.NORMARL,
|
imagesType: ImagesType.NORMARL,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
obj.value.fileLists = res.data;
|
state.fileLists = res.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -222,6 +222,7 @@ const model1 = reactive<{ order: Order }>({
|
||||||
fileLists: [],
|
fileLists: [],
|
||||||
scaleStatus: 1,
|
scaleStatus: 1,
|
||||||
netWeight: 0,
|
netWeight: 0,
|
||||||
|
balanceTotalPrice: 0
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,8 @@
|
||||||
<view @click="handleReviewNoPay"> 审核暂不支付 </view>
|
<view @click="handleReviewNoPay"> 审核暂不支付 </view>
|
||||||
<view class="active" @click="handleReviewPay"> 审核立即支付 </view>
|
<view class="active" @click="handleReviewPay"> 审核立即支付 </view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="state.order.scaleStatus === 2">
|
<!-- 零皮重不需要重新过皮 -->
|
||||||
|
<view v-if="state.order.scaleStatus === 2 && state.order.weighingMethod === 0">
|
||||||
<u-button
|
<u-button
|
||||||
text="重新过皮"
|
text="重新过皮"
|
||||||
plain
|
plain
|
||||||
|
|
|
@ -474,7 +474,7 @@ const handleSettlement = () => {
|
||||||
};
|
};
|
||||||
const handleScenePhoto = (id: string) => {
|
const handleScenePhoto = (id: string) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesScenePhoto/index?orderType=1&imagesType=2&id=" + id, // 要跳转到的页面路径
|
url: "/pagesScenePhoto/index?orderType=2&imagesType=1&id=" + id, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 出货未结算 // 先填写结算信息后更新状态为3
|
// 出货未结算 // 先填写结算信息后更新状态为3
|
||||||
|
|
|
@ -123,6 +123,7 @@
|
||||||
import { ShipmentApi } from "@/services/index";
|
import { ShipmentApi } from "@/services/index";
|
||||||
import { ScaleStatus, ScaleStatusBtnType } from "@/utils/enum";
|
import { ScaleStatus, ScaleStatusBtnType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
|
import { onShow } from "@dcloudio/uni-app";
|
||||||
import PageView from "@/components/PageView/index.vue";
|
import PageView from "@/components/PageView/index.vue";
|
||||||
// scaleStatus
|
// scaleStatus
|
||||||
const pageList: PageResult<Shipment> = reactive({
|
const pageList: PageResult<Shipment> = reactive({
|
||||||
|
@ -251,7 +252,7 @@ const getList = (v?: boolean) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onShow(() => {
|
||||||
getList();
|
getList();
|
||||||
});
|
});
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
|
|
Loading…
Reference in New Issue