update: 更新出货入库
This commit is contained in:
parent
5b43226d3f
commit
136f99b639
|
@ -356,6 +356,78 @@ const appList = reactive([
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: "app1.png",
|
||||||
|
title: "收货产品",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/receiveSpl", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app2.png",
|
||||||
|
title: "收货分类",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/shipmentSpl", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app4.png",
|
||||||
|
title: "出货产品",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/receiveDetail", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app3.png",
|
||||||
|
title: "支付明细",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/shipmentDetail", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app5.png",
|
||||||
|
title: "收入明细",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/receiveCl", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app6.png",
|
||||||
|
title: "人员管理",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/shipmentCl", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app7.png",
|
||||||
|
title: "权限管理",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/supplierMgt", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "app8.png",
|
||||||
|
title: "库存卡管理",
|
||||||
|
fn: () => {
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/pagesApp/customerMgt", // 要跳转到的页面路径
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const tabMenuList = reactive([
|
const tabMenuList = reactive([
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<u-form-item
|
<u-form-item
|
||||||
:prop="`order[${item.key}]`"
|
:prop="`order[${item.key}]`"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
required
|
:required="item.required"
|
||||||
v-for="(item, index) in formAttrList"
|
v-for="(item, index) in formAttrList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@click="item.fn"
|
@click="item.fn"
|
||||||
|
@ -38,18 +38,20 @@
|
||||||
<text v-else>
|
<text v-else>
|
||||||
{{ item.unit }}
|
{{ item.unit }}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</u-input>
|
</u-input>
|
||||||
<!-- @afterRead="afterRead"
|
<!-- @afterRead="afterRead"
|
||||||
@delete="deletePic" -->
|
@delete="deletePic" -->
|
||||||
<u-upload
|
<uni-file-picker
|
||||||
v-if="item.type === 'upload'"
|
v-if="item.type === 'upload'"
|
||||||
:fileList="[]"
|
v-model="model1.order.fileList"
|
||||||
name="1"
|
limit="10"
|
||||||
multiple
|
title="最多可上传10张图片"
|
||||||
:maxCount="10"
|
:auto-upload="false"
|
||||||
></u-upload>
|
fileMediatype="image"
|
||||||
|
mode="grid"
|
||||||
|
ref="filesRef"
|
||||||
|
></uni-file-picker>
|
||||||
|
|
||||||
<u-radio-group
|
<u-radio-group
|
||||||
v-if="item.type === 'radio'"
|
v-if="item.type === 'radio'"
|
||||||
|
@ -69,24 +71,33 @@
|
||||||
:show="contrlModalParams.isShowSplTime"
|
:show="contrlModalParams.isShowSplTime"
|
||||||
v-model="contrlModalParams.spltime"
|
v-model="contrlModalParams.spltime"
|
||||||
mode="datetime"
|
mode="datetime"
|
||||||
@confirm="contrlModalParams.isShowSplTime = false"
|
@confirm="(v: any) => {handleTime(v)}"
|
||||||
@cancel="contrlModalParams.isShowSplTime = false"
|
@cancel="contrlModalParams.isShowSplTime = false"
|
||||||
></u-datetime-picker>
|
></u-datetime-picker>
|
||||||
<u-action-sheet
|
<block v-for="(item, index) in formAttrList" :key="index">
|
||||||
:actions="contrlModalParams.select.selectList"
|
<!-- <u-action-sheet
|
||||||
:title="contrlModalParams.select.title"
|
v-if="item.type === 'select'"
|
||||||
:show="contrlModalParams.select.isShow"
|
:actions="contrlModalParams[item.childKey].list"
|
||||||
@select="contrlModalParams.select.isShow = false"
|
:title="contrlModalParams[item.childKey].title"
|
||||||
@close="contrlModalParams.select.isShow = false"
|
:show="contrlModalParams[item.childKey].isShow"
|
||||||
></u-action-sheet>
|
@select="(v: any) => handleSelect(item.childKey, v)"
|
||||||
|
@close="contrlModalParams[item.childKey].isShow = false"
|
||||||
|
:closeOnClickAction="true"
|
||||||
|
></u-action-sheet> -->
|
||||||
|
</block>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-box">
|
<view class="btn-box">
|
||||||
<u-button type="primary" text="保存"></u-button>
|
<u-button type="primary" text="保存" @click="save()"></u-button>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const model1 = reactive({
|
import { PictureApi, ReceiveApi } from "@/services";
|
||||||
|
import { formatDate } from "@/utils";
|
||||||
|
import { ImagesType, OrderType } from "@/utils/enum";
|
||||||
|
|
||||||
|
const model1 = reactive<any>({
|
||||||
order: {
|
order: {
|
||||||
|
fileList: [],
|
||||||
splTime: "",
|
splTime: "",
|
||||||
subtractType: 1,
|
subtractType: 1,
|
||||||
},
|
},
|
||||||
|
@ -105,10 +116,10 @@ const rules = ref({
|
||||||
trigger: ["blur", "change"],
|
trigger: ["blur", "change"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const contrlModalParams = reactive({
|
const contrlModalParams = reactive<any>({
|
||||||
isShowSplTime: false,
|
isShowSplTime: false,
|
||||||
spltime: "",
|
spltime: "",
|
||||||
select: {
|
device: {
|
||||||
isShow: false,
|
isShow: false,
|
||||||
title: "标题",
|
title: "标题",
|
||||||
selectList: [
|
selectList: [
|
||||||
|
@ -120,22 +131,35 @@ const contrlModalParams = reactive({
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
user: {
|
||||||
|
isShow: false,
|
||||||
|
title: "标题",
|
||||||
|
list: [],
|
||||||
|
},
|
||||||
|
product: {
|
||||||
|
isShow: false,
|
||||||
|
title: "标题",
|
||||||
|
list: [],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const formAttrList = reactive([
|
const formAttrList = reactive([
|
||||||
{
|
{
|
||||||
name: "补单时间",
|
name: "补单时间",
|
||||||
key: "splTime",
|
key: "repairTime",
|
||||||
type: "select",
|
type: "select",
|
||||||
unit: "",
|
unit: "",
|
||||||
|
required: true,
|
||||||
fn: () => {
|
fn: () => {
|
||||||
contrlModalParams.isShowSplTime = true;
|
contrlModalParams.isShowSplTime = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "站点磅秤",
|
name: "站点磅秤",
|
||||||
key: "stationScale",
|
key: "deviceName",
|
||||||
type: "select",
|
type: "select",
|
||||||
|
childKey: 'device',
|
||||||
|
required: true,
|
||||||
unit: "",
|
unit: "",
|
||||||
fn: () => {
|
fn: () => {
|
||||||
contrlModalParams.select.isShow = true;
|
contrlModalParams.select.isShow = true;
|
||||||
|
@ -144,8 +168,10 @@ const formAttrList = reactive([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "供应商",
|
name: "供应商",
|
||||||
key: "supplier",
|
key: "userName",
|
||||||
type: "select",
|
type: "select",
|
||||||
|
childKey: 'user',
|
||||||
|
required: true,
|
||||||
unit: "",
|
unit: "",
|
||||||
fn: () => {
|
fn: () => {
|
||||||
contrlModalParams.select.isShow = true;
|
contrlModalParams.select.isShow = true;
|
||||||
|
@ -154,14 +180,16 @@ const formAttrList = reactive([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "车牌号",
|
name: "车牌号",
|
||||||
key: "carNo",
|
key: "carNumber",
|
||||||
type: "input",
|
type: "input",
|
||||||
unit: "",
|
unit: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "收货产品",
|
name: "收货产品",
|
||||||
key: "receiveProduct",
|
key: "productName",
|
||||||
type: "select",
|
type: "select",
|
||||||
|
childKey: 'product',
|
||||||
|
required: true,
|
||||||
unit: "",
|
unit: "",
|
||||||
fn: () => {
|
fn: () => {
|
||||||
contrlModalParams.select.isShow = true;
|
contrlModalParams.select.isShow = true;
|
||||||
|
@ -172,17 +200,19 @@ const formAttrList = reactive([
|
||||||
name: "毛重",
|
name: "毛重",
|
||||||
key: "grossWeight",
|
key: "grossWeight",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
required: true,
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "皮重",
|
name: "皮重",
|
||||||
key: "tare",
|
key: "tare",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
required: true,
|
||||||
unit: "KG",
|
unit: "KG",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "扣杂",
|
name: "扣杂",
|
||||||
key: "subtractType",
|
key: "buttonType",
|
||||||
type: "radio",
|
type: "radio",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -199,25 +229,27 @@ const formAttrList = reactive([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "单价",
|
name: "单价",
|
||||||
key: "unitPrice",
|
key: "price",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
required: true,
|
||||||
unit: "元/KG",
|
unit: "元/KG",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "预估总价",
|
name: "预估总价",
|
||||||
key: "estimatedTotalPrice",
|
key: "totalPrice",
|
||||||
type: "input",
|
type: "input",
|
||||||
unit: "元",
|
unit: "元",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "贷款金额",
|
name: "贷款金额",
|
||||||
key: "loanAmount",
|
key: "balanceTotalPrice",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
required: true,
|
||||||
unit: "元",
|
unit: "元",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "备注",
|
name: "备注",
|
||||||
key: "remark",
|
key: "notes",
|
||||||
type: "textarea",
|
type: "textarea",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -226,6 +258,59 @@ const formAttrList = reactive([
|
||||||
type: "upload",
|
type: "upload",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
const filesRef = ref();
|
||||||
|
const handleUpload = () => {
|
||||||
|
// console.log(event.tempFilePaths)
|
||||||
|
const list = filesRef.value[0].filesList;
|
||||||
|
return list.map((item: any) => {
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
PictureApi.upload({
|
||||||
|
files: item,
|
||||||
|
path: item.path,
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
resolve({
|
||||||
|
...(res.data as any),
|
||||||
|
businessId: (model1.order as any).id,
|
||||||
|
imagesType: ImagesType.NORMARL, // 普通资源
|
||||||
|
orderType: OrderType.Receive, // 入库单
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const save = () => {
|
||||||
|
Promise.all(handleUpload()).then((res) => {
|
||||||
|
// 上传多个资源
|
||||||
|
if (res.length > 0) {
|
||||||
|
PictureApi.addListAnnex({ annexPos: res }).then((res1) => {
|
||||||
|
if (res1.code === 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "图片资源上传成功",
|
||||||
|
icon: "success",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (model1.order.buttonType === 0) {
|
||||||
|
model1.order.buckleMiscellaneous = model1.order.subtractNum;
|
||||||
|
} else if (model1.order.buttonType === 1) {
|
||||||
|
model1.order.points = model1.order.subtractNum;
|
||||||
|
}
|
||||||
|
ReceiveApi.addOrderIn(model1.order).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/index/index", // 要跳转到的页面路径
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
const handleTime = (v: any) => {
|
||||||
|
model1.order.repairTime = formatDate(v.value, "{y}-{m}-{d} {h}:{i}:{s}");
|
||||||
|
contrlModalParams.isShowSplTime = false;
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.c-card {
|
.c-card {
|
||||||
|
|
|
@ -291,7 +291,7 @@ onLoad((option) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
PictureApi.getAnnex({
|
PictureApi.getAnnex({
|
||||||
businessId: model1.order.id,
|
businessId: model1.order.id.toString(),
|
||||||
orderType: 1,
|
orderType: 1,
|
||||||
imagesType: ImagesType.NORMARL,
|
imagesType: ImagesType.NORMARL,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
border: '1px solid #00DCEE',
|
border: '1px solid #00DCEE',
|
||||||
'border-radius': '43rpx',
|
'border-radius': '43rpx',
|
||||||
}"
|
}"
|
||||||
|
@click="handleReWeight()"
|
||||||
></u-button>
|
></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="state.order.scaleStatus === 3">
|
<view v-if="state.order.scaleStatus === 3">
|
||||||
|
@ -309,6 +310,16 @@ const handleUpdateOrder = () => {
|
||||||
url: "/pagesReceive/form/pricingForm?id=" + state.order.id, // 要跳转到的页面路径
|
url: "/pagesReceive/form/pricingForm?id=" + state.order.id, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 重新过皮
|
||||||
|
const handleReWeight = () => {
|
||||||
|
ReceiveApi.reTare({ id: state.order.id }).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesReceive/tareing", // 要跳转到的页面路径
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
state.order.id = parseInt((option as any).id);
|
state.order.id = parseInt((option as any).id);
|
||||||
state.scaleStatus = parseInt((option as any).scaleStatus);
|
state.scaleStatus = parseInt((option as any).scaleStatus);
|
||||||
|
|
|
@ -30,7 +30,10 @@
|
||||||
></u-tag
|
></u-tag
|
||||||
></view>
|
></view>
|
||||||
<!-- 点击待出货结算-->
|
<!-- 点击待出货结算-->
|
||||||
<view v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement"
|
<view
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement
|
||||||
|
"
|
||||||
><u-tag
|
><u-tag
|
||||||
text="编辑信息"
|
text="编辑信息"
|
||||||
plain
|
plain
|
||||||
|
@ -44,7 +47,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 出库 过磅时间对应过皮时间 -->
|
<!-- 出库 过磅时间对应过皮时间 -->
|
||||||
<view class="flex-box" v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement || state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay">
|
<view
|
||||||
|
class="flex-box"
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement ||
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay
|
||||||
|
"
|
||||||
|
>
|
||||||
<text>审核人:{{ state.order.pricingUserName || "-" }}</text>
|
<text>审核人:{{ state.order.pricingUserName || "-" }}</text>
|
||||||
<text>过磅时间:{{ state.order.tareTime }}</text>
|
<text>过磅时间:{{ state.order.tareTime }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -58,8 +67,22 @@
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
<view class="more">
|
<view class="more">
|
||||||
<view v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement || state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay"> 出货单号:{{ state.order.orderNumber }} </view>
|
<view
|
||||||
<view v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement || state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay"></view>
|
v-if="
|
||||||
|
state.scaleStatusBtnType ===
|
||||||
|
ScaleStatusBtnType.ShipmentSettlement ||
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay
|
||||||
|
"
|
||||||
|
>
|
||||||
|
出货单号:{{ state.order.orderNumber }}
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType ===
|
||||||
|
ScaleStatusBtnType.ShipmentSettlement ||
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay
|
||||||
|
"
|
||||||
|
></view>
|
||||||
<view v-for="(item, index) in gridList1" :key="index">
|
<view v-for="(item, index) in gridList1" :key="index">
|
||||||
<text v-if="item.name">{{ item.name }}:</text
|
<text v-if="item.name">{{ item.name }}:</text
|
||||||
><text
|
><text
|
||||||
|
@ -74,7 +97,12 @@
|
||||||
<view class="mt-30">
|
<view class="mt-30">
|
||||||
<u-line></u-line>
|
<u-line></u-line>
|
||||||
</view>
|
</view>
|
||||||
<view class="more" v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement">
|
<view
|
||||||
|
class="more"
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement
|
||||||
|
"
|
||||||
|
>
|
||||||
<view v-for="(item, index) in gridList2" :key="index">
|
<view v-for="(item, index) in gridList2" :key="index">
|
||||||
<text v-if="item.name">{{ item.name }}:</text
|
<text v-if="item.name">{{ item.name }}:</text
|
||||||
><text
|
><text
|
||||||
|
@ -85,7 +113,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="more" v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay || state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay">
|
<view
|
||||||
|
class="more"
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentNoPay ||
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay
|
||||||
|
"
|
||||||
|
>
|
||||||
<view v-for="(item, index) in gridList3" :key="index">
|
<view v-for="(item, index) in gridList3" :key="index">
|
||||||
<text v-if="item.name">{{ item.name }}:</text
|
<text v-if="item.name">{{ item.name }}:</text
|
||||||
><text
|
><text
|
||||||
|
@ -97,11 +131,20 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="op-btn">
|
<view class="op-btn">
|
||||||
<view class="c-btn-review" v-if="state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement">
|
<view
|
||||||
|
class="c-btn-review"
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement
|
||||||
|
"
|
||||||
|
>
|
||||||
<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.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement">
|
<view
|
||||||
|
v-if="
|
||||||
|
state.scaleStatusBtnType === ScaleStatusBtnType.ShipmentSettlement
|
||||||
|
"
|
||||||
|
>
|
||||||
<u-button
|
<u-button
|
||||||
text="重新过毛"
|
text="重新过毛"
|
||||||
plain
|
plain
|
||||||
|
@ -110,6 +153,7 @@
|
||||||
border: '1px solid #00DCEE',
|
border: '1px solid #00DCEE',
|
||||||
'border-radius': '43rpx',
|
'border-radius': '43rpx',
|
||||||
}"
|
}"
|
||||||
|
@click="handleReWeight()"
|
||||||
></u-button>
|
></u-button>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
|
@ -209,10 +253,9 @@ const state = reactive<{
|
||||||
[attrName: string]: any;
|
[attrName: string]: any;
|
||||||
}>({
|
}>({
|
||||||
order: {
|
order: {
|
||||||
id: '',
|
id: "",
|
||||||
buttonType: 0,
|
buttonType: 0,
|
||||||
netWeight: 0,
|
netWeight: 0,
|
||||||
|
|
||||||
},
|
},
|
||||||
sheetList: [
|
sheetList: [
|
||||||
{
|
{
|
||||||
|
@ -402,9 +445,12 @@ const gridList3 = reactive([
|
||||||
// 立即结算 // 先填写结算信息后更新状态为4
|
// 立即结算 // 先填写结算信息后更新状态为4
|
||||||
const handleSettlement = () => {
|
const handleSettlement = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesShipment/form/settlementForm?id=" + state.order.id + `&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentPay}`, // 要跳转到的页面路径
|
url:
|
||||||
|
"/pagesShipment/form/settlementForm?id=" +
|
||||||
|
state.order.id +
|
||||||
|
`&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentPay}`, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
const handleScenePhoto = (imagesId: number) => {
|
const handleScenePhoto = (imagesId: number) => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesScenePhoto/index?orderType=1&id=" + imagesId, // 要跳转到的页面路径
|
url: "/pagesScenePhoto/index?orderType=1&id=" + imagesId, // 要跳转到的页面路径
|
||||||
|
@ -413,7 +459,10 @@ const handleScenePhoto = (imagesId: number) => {
|
||||||
// 出货未结算 // 先填写结算信息后更新状态为3
|
// 出货未结算 // 先填写结算信息后更新状态为3
|
||||||
const handleReviewNoPay = () => {
|
const handleReviewNoPay = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesShipment/form/settlementForm?id=" + state.order.id + `&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentNoPay}`, // 要跳转到的页面路径
|
url:
|
||||||
|
"/pagesShipment/form/settlementForm?id=" +
|
||||||
|
state.order.id +
|
||||||
|
`&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentNoPay}`, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
// ShipmentApi.updateOrderIn({ ...state.order, scaleStatus: 3 }).then((res) => {
|
// ShipmentApi.updateOrderIn({ ...state.order, scaleStatus: 3 }).then((res) => {
|
||||||
// if (res.code === 200) {
|
// if (res.code === 200) {
|
||||||
|
@ -426,7 +475,10 @@ const handleReviewNoPay = () => {
|
||||||
// 审核立即支付
|
// 审核立即支付
|
||||||
const handleReviewPay = () => {
|
const handleReviewPay = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesShipment/form/settlementForm?id=" + state.order.id + `&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentPay}`, // 要跳转到的页面路径
|
url:
|
||||||
|
"/pagesShipment/form/settlementForm?id=" +
|
||||||
|
state.order.id +
|
||||||
|
`&scaleStatusBtnType=${ScaleStatusBtnType.ShipmentPay}`, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -474,8 +526,18 @@ const handleUpdateOrder = () => {
|
||||||
url: "/pagesShipment/form/shipmentForm?id=" + state.order.id, // 要跳转到的页面路径
|
url: "/pagesShipment/form/shipmentForm?id=" + state.order.id, // 要跳转到的页面路径
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
onLoad((option) => {
|
|
||||||
|
|
||||||
|
// 重新过毛
|
||||||
|
const handleReWeight = () => {
|
||||||
|
ShipmentApi.reGrossWeight({ id: state.order.id }).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pagesShipment/grossWeight", // 要跳转到的页面路径
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
onLoad((option) => {
|
||||||
state.order.id = (option as any).id;
|
state.order.id = (option as any).id;
|
||||||
state.scaleStatusBtnType = parseInt((option as any).scaleStatusBtnType);
|
state.scaleStatusBtnType = parseInt((option as any).scaleStatusBtnType);
|
||||||
if (state.order.id) {
|
if (state.order.id) {
|
||||||
|
@ -500,8 +562,10 @@ onLoad((option) => {
|
||||||
item.num = state.order[item.enName as string];
|
item.num = state.order[item.enName as string];
|
||||||
});
|
});
|
||||||
gridList3.map((item) => {
|
gridList3.map((item) => {
|
||||||
if (item.name === '净重误差') {
|
if (item.name === "净重误差") {
|
||||||
item.num = (state.order as any).netWeight - (state.order as any).settlementNet
|
item.num =
|
||||||
|
(state.order as any).netWeight -
|
||||||
|
(state.order as any).settlementNet;
|
||||||
}
|
}
|
||||||
item.num = state.order[item.enName as string];
|
item.num = state.order[item.enName as string];
|
||||||
});
|
});
|
||||||
|
|
|
@ -30,8 +30,8 @@ export const getDetailById = (data: {id: number}) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// 新增收货单
|
// 新增收货单
|
||||||
export const addOrderIn = (data: any) => {
|
export const addOrderIn = (data: Order) => {
|
||||||
return http<Result>({
|
return http({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "/api/orderIn/addOrderIn",
|
url: "/api/orderIn/addOrderIn",
|
||||||
data,
|
data,
|
||||||
|
@ -97,6 +97,14 @@ export const OrderInRanking = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 重新过皮
|
||||||
|
export const reTare = (data: any) => {
|
||||||
|
return http({
|
||||||
|
method: "POST",
|
||||||
|
url: "/api/orderIn/skinning",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,14 @@ export const updateOrderIn = (data: any) => {
|
||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
// 重新过毛
|
||||||
|
export const reGrossWeight = (data: any) => {
|
||||||
|
return http({
|
||||||
|
method: "POST",
|
||||||
|
url: "/api/orderOut/hairdressing",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue