Commit abbfce70 by 前端

Merge branch 'SAAS+V5.1.0' into 'master'

上线合并

See merge request !24
2 parents b34f04b4 4bc4910f
......@@ -18,6 +18,7 @@
"glsx-components": "^1.5.7",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vue-signature-pad": "^2.0.5",
"vuex": "^3.1.2"
},
"devDependencies": {
......
......@@ -64,4 +64,30 @@ export function exportExcel(params) {
})
}
export default { getTypeList, getDeliveryList, addPurchaseOrder, exportExcel, getDeliveryDetail }
\ No newline at end of file
// 采购订单-签收-详情查看
const deliverySignDetail = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = 'dj.api.smarcarlife.purchaseOrder.delivery.detail'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 采购订单-签收
const deliverySign = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = 'dj.api.smarcarlife.purchaseOrder.delivery.sign'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getTypeList, getDeliveryList, addPurchaseOrder, exportExcel, getDeliveryDetail, deliverySignDetail, deliverySign }
\ No newline at end of file
......@@ -14,6 +14,8 @@ import './public-path'
import '@/assets/css/public.scss'
import '@/components'
import '@/filter'
import VueSignaturePad from 'vue-signature-pad'
Vue.use(VueSignaturePad)
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
Vue.config.productionTip = false
......
......@@ -65,19 +65,23 @@ export const putStatusOptions = [
]
// 入库状态
export const defaultPutStatusOptions = [
{
id: 1,
label: '未入库'
},
{
id: 2,
label: '已入库'
}
// {
// id: 3,
// label: "部分入库"
// },
]
{
id: 0,
label: '待签收'
},
{
id: 1,
label: '未入库'
},
{
id: 2,
label: '已入库'
}
// {
// id: 3,
// label: "部分入库"
// },
]
//采购类型
export const purchaseTypeList = [
{
......
<template>
<GLDialog v-if="dialogShow" bigTitle="确认签收" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onCancel="handleDetailClose" @onOk="save">
<div class="detail-info">
<div>
发货单号:
<span>{{ detailInfo.deliveryNumber }}</span>
</div>
<div>
承运公司:
<span>{{ detailInfo.deliveryCompany }}</span>
</div>
<div>
发货时间:
<span>{{ dayjs(detailInfo.deliveryDate).format('YYYY-MM-DD HH:mm:ss') }}</span>
</div>
</div>
<!-- <template v-for="(item, index) in detailInfo.deliveryDetailList"> -->
<div class="table-wrap">
<!-- <div class="detail-info">
<div>
商品名称:
<span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{ detailInfo.specificationData }}</span>
</div>
<div>
发货数量:
<span>{{ membraneTypeList.includes(detailInfo.goodsType) ? `${detailInfo.purchaseNumber}卷` : `${detailInfo.purchaseNumber}件` }}</span>
</div>
<div>
可用库存数量:
<span>{{ detailInfo.stockNum }}{{ membraneTypeList.includes(detailInfo.goodsType) ? `米` : `件` }}</span>
</div>
</div> -->
<!-- <el-form ref="addForm" :model="detailInfo" size="small" v-if="detailInfo.deliveryCardList === null || detailInfo.deliveryCardList.length == 0"> -->
<el-form ref="addForm" :model="detailInfo" size="small">
<GLTable :tableData="detailInfo.deliveryDetailList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
<!-- <template slot="increaseStockNum" slot-scope="scope">
<span>{{ scope.scope.increaseStockNum || scope.scope.increaseStockNum == 0 ?
(membraneTypeList.includes(scope.scope.goodsType) ? parseFloat(scope.scope.increaseStockNum /
scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) +
(membraneTypeList.includes(scope.scope.goodsType) ? '卷' : '件') : '-' }}</span>
</template> -->
</GLTable>
</el-form>
<!-- <div v-else class="message">
已自动入库至商户的权益卡管理中,可前往“库存管理-权益卡管理”中查询
</div> -->
<div class="sign-box">
<div class="red-txt">*请在区域内签字完成</div>
<div class="background-text">签字区</div>
<div class="signature-container">
<VueSignaturePad width="100%" height="100%" ref="signaturePad" :options="options" />
</div>
<div class="btns">
<!-- <el-button type="text" size="mini" @click="save">保存</el-button> -->
<el-button type="text" size="mini" @click="clear">清除</el-button>
<el-button type="text" size="mini" @click="undo">撤销</el-button>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
import * as dayjs from 'dayjs'
import { membraneTypeList } from '@/utils/constants.js'
export default {
name: 'DeliverAdd',
props: {
visible: {
type: Boolean,
default: false
},
info: {
type: Object,
default: () => { }
}
},
computed: {
dialogShow: {
get() {
if (this.visible) {
this.getDetail()
}
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
},
data() {
return {
options: {
penColor: '#000',
minWidth: 1,
maxWidth: 2,
dotSize: 1,
velocityFilterWeight: 0.7,
backgroundColor: 'rgba(255, 255, 255, 0.0)'
},
membraneTypeList: membraneTypeList,
dayjs: dayjs,
goodsList: [],
storeUsageList: [],
refByYqShopList: [],
tableParams: {
tableOption: false,
tableColumns: [
{
label: '商品名称',
prop: 'upgradeGoodsName'
},
{
label: '商品编号',
prop: 'type'
},
{
label: '发货数量',
prop: '',
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
}
},
{
label: '可用库存数量',
prop: '',
formatter: cellValue => {
return cellValue.stockNum + (membraneTypeList.includes(cellValue.goodsType) ? '米' : '件')
}
}
// {
// label: '入库数量',
// prop: 'increaseStockNum',
// addHtml: 'increaseStockNum'
// },
// {
// label: '入库仓库',
// prop: 'yqMerchantName'
// },
// {
// label: '入库门店',
// prop: 'merchantName'
// }
]
},
tableData: [],
detailInfo: {}
}
},
created() { },
methods: {
undo() {
this.$refs.signaturePad.undoSignature()
},
clear() {
this.$refs.signaturePad.clearSignature()
},
save() {
// if (!this.$refs.signaturePad) {
// this.$message.warning('签名组件未加载')
// return
// }
const { isEmpty, data } = this.$refs.signaturePad.saveSignature()
if (isEmpty) {
this.$message({
message: '请先完成签名',
type: 'warning',
customClass: 'message-Z-zinde'
})
return
}
console.log(data, '保存图片----')
const base64 = 'png@' + data.split('base64,')[1]
this.loading = true
this.$apis.sysBase.uploadImg({ file: base64, fileType: 'image' }).then(res => {
console.log(res, 'res----')
this.deliverySign(res)
}).catch(() => {
this.loading = false
})
},
deliverySign(url) {
const params = {
id: this.info.orderDeliveryId,
signFileUrl: url
}
console.log(params, 'params----')
this.$apis.delivery.deliverySign(params)
.then(res => {
if (res.code == 0) {
this.$message({
message: '签收成功',
type: 'success',
customClass: 'message-Z-zinde'
})
this.$emit('handleConfirm')
} else {
this.$message({
type: 'error',
message: res.message,
customClass: 'message-Z-zinde'
})
}
})
.finally(() => {
this.loading = false
})
},
handleDetailClose() {
this.$emit('handleClose')
},
getDetail() {
this.$apis.delivery.deliverySignDetail({ id: this.info.orderDeliveryId }).then(res => {
const { data } = res
if (res.code == 0) {
this.detailInfo = data
}
})
}
}
}
</script>
<style lang="scss" scoped>
.detail-info {
display: flex;
align-items: center;
justify-content: space-between;
color: #666666ff;
font-size: 14px;
margin-bottom: 16px;
span {
color: #333333ff;
}
.add-btn {
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
}
.table-wrap {
border: 1px solid #e5e5e5;
padding: 16px;
box-sizing: border-box;
margin-top: 16px;
::v-deep .el-form-item__error {
padding-top: 2px;
z-index: 9999999;
position: static;
}
.sign-box {
position: relative;
width: 640px;
height: 226px;
border-radius: 4px;
opacity: 1;
border: 1px solid #e5e5e5;
background: #fafafa;
margin: 24px auto 19px;
.signature-container {
position: relative;
width: 640px;
height: 226px;
}
.background-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
text-align: center;
color: #ededed;
font-size: 88px;
pointer-events: none;
letter-spacing: 32px;
}
::v-deep .vue-signature-pad {
position: relative;
z-index: 2;
}
.red-txt {
position: absolute;
top: 8px;
left: 262.5px;
text-align: center;
color: #eb4e4e;
font-size: 12px;
}
.btns {
position: absolute;
bottom: 8px;
right: 12px;
display: flex;
flex-direction: row-reverse;
.el-button--mini {
margin-left: 0px !important;
}
}
}
}
.look-card-wrap {
max-height: 600px;
overflow-y: scroll;
overflow-x: hidden;
::v-deep.el-table th.el-table__cell > .cell {
padding: 0 16px;
text-align: center;
}
::v-deep.el-table__body td.el-table__cell {
text-align: center;
}
}
</style>
......@@ -25,32 +25,32 @@
<div>
发货数量:
<span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件`
}}</span>
<span class="lookNumber" @click="lookNumber(item.deliveryCardList)"
v-if="item.deliveryCardList && item.deliveryCardList.length > 0">查看卡号</span>
}}</span>
<span class="lookNumber" @click="lookNumber(item.deliveryCardList)"
v-if="item.deliveryCardList && item.deliveryCardList.length > 0">查看卡号</span>
</div>
<div>
可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div>
<div class="add-btn" @click="addLineTable(index)"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
<div class="add-btn" @click="addLineTable(index)"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
</div>
<el-form ref="addForm" :model="item" size="small" :rules="rules"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams"
:hasPage="false">
<el-form ref="addForm" :model="item" size="small" :rules="rules"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams"
:hasPage="false">
<template slot="increaseStockNum" slot-scope="scope">
<el-form-item style="margin-bottom: 0px"
:prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum">
<el-input v-model="scope.scope.increaseStockNum" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'increaseStockNum', index)"></el-input>
<el-form-item style="margin-bottom: 0px"
:prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum">
<el-input v-model="scope.scope.increaseStockNum" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'increaseStockNum', index)"></el-input>
</el-form-item>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && filmTypeList.includes(detailInfo.goodsType)">
<el-button v-if="!scope.scope.filmRollList" type="text"
@click="handleSelectFilm(scope.scope, index, scope.index)">请选择</el-button>
<el-button v-if="!scope.scope.filmRollList" type="text"
@click="handleSelectFilm(scope.scope, index, scope.index)">请选择</el-button>
<div v-else>
<span class="film-txt">...({{ scope.scope.filmRollList.length }})</span>
<el-button type="text" @click="handleSelectFilm(scope.scope, index, scope.index)">重新选择</el-button>
......@@ -61,22 +61,22 @@
<!-- 入库仓库 -->
<template slot="yqMerchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.yqMerchantId'"
:rules="rules.shopMerchantName">
:rules="rules.shopMerchantName">
<el-select style="width: 100%" v-model="scope.scope.yqMerchantId" placeholder="请选择"
@change="handleSelect(scope.scope, scope.scope.yqMerchantId)">
@change="handleSelect(scope.scope, scope.scope.yqMerchantId)">
<el-option v-for="item in storeUsageList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo"></el-option>
:value="item.merchantNo"></el-option>
</el-select>
</el-form-item>
</template>
<!-- 入库门店 -->
<template slot="merchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.merchantId'"
:rules="rules.merchantId">
:rules="rules.merchantId">
<el-select style="width: 100%" v-model="scope.scope.merchantId" placeholder="请选择"
@change="handleStoreSelect(scope.scope, scope.scope.merchantId)">
@change="handleStoreSelect(scope.scope, scope.scope.merchantId)">
<el-option v-for="item in refByYqShopList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
</template>
......@@ -90,7 +90,7 @@
</template>
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams"
:hasPage="false">
:hasPage="false">
</GLTable>
</el-dialog>
<span slot="footer" class="dialog-footer">
......@@ -381,26 +381,29 @@ export default {
for (let i = 0; i < params.deliveryDetailList.length; i++) {
item = params.deliveryDetailList[i]
item.id = this.detailInfo.id
item.purchaseOrderGoodsId = this.detailInfo.purchaseOrderGoodsId
for (let j = 0; j < item.goodsWarehousingList.length; j++) {
let subItem = item.goodsWarehousingList[j]
if (this.manageMode) {
// 校验:膜卷号必填
if (!subItem.filmRollList || (subItem.filmRollList && subItem.filmRollList.length == 0)) {
this.$message({
message: item.upgradeGoodsName + '请选择膜卷号',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
}
// 校验:入库数量和膜卷号数量相等
if (subItem.filmRollList && subItem.filmRollList.length != Math.ceil(subItem.increaseStockNum)) {
this.$message({
message: item.upgradeGoodsName + '的入库数量和膜卷号数量不相等',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
if (this.membraneTypeList.includes(item.goodsType)) {
// 校验:膜卷号必填
if (!subItem.filmRollList || (subItem.filmRollList && subItem.filmRollList.length == 0)) {
this.$message({
message: item.upgradeGoodsName + '请选择膜卷号',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
}
// 校验:入库数量和膜卷号数量相等
if (subItem.filmRollList && subItem.filmRollList.length != Math.ceil(subItem.increaseStockNum)) {
this.$message({
message: item.upgradeGoodsName + '的入库数量和膜卷号数量不相等',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
}
}
}
subItem.increaseStockNum = subItem.increaseStockNum * (item.stockNum / item.purchaseNumber)
......@@ -414,14 +417,16 @@ export default {
if (res.code == 0) {
this.$message({
type: 'success',
message: '操作成功!'
message: '操作成功!',
customClass: 'message-Z-zinde'
})
this.dialogShow = false
this.$emit('handleSuccess')
} else {
this.$message({
type: 'error',
message: res.message
message: res.message,
customClass: 'message-Z-zinde'
})
}
})
......
......@@ -45,6 +45,15 @@
scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) +
(membraneTypeList.includes(scope.scope.goodsType) ? '卷' : '件') : '-' }}</span>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && membraneTypeList.includes(scope.scope.goodsType)">
<el-button v-if="!scope.scope.filmRollList" type="text">--</el-button>
<div v-else>
<span class="film-txt">{{ scope.scope.filmRollList.join(',') }}</span>
</div>
</div>
<div v-else>--</div>
</template>
</GLTable>
</el-form>
<div v-else class="message">
......@@ -105,6 +114,11 @@ export default {
addHtml: 'increaseStockNum'
},
{
label: '膜卷号',
prop: 'filmRollList',
addHtml: 'film'
},
{
label: '入库仓库',
prop: 'yqMerchantName'
},
......@@ -124,15 +138,23 @@ export default {
}
]
},
manageMode: false,
tableData: [],
detailInfo: {}
}
},
created() { },
created() {
this.getManageMode()
},
methods: {
handleDetailClose() {
this.dialogShow = false
},
getManageMode() {
this.$apis.purchaseShopping.getManageMode({}).then(res => {
this.manageMode = res
})
},
getDetail() {
this.$apis.delivery.getDeliveryDetail({ id: this.id }).then(res => {
const { data } = res
......
......@@ -2,8 +2,7 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>发货单列表</h2>
<div>
......@@ -12,20 +11,17 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="putStatus" slot-scope="scope">
<div>
<span
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span :class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | puStatus }}</span>
</div>
</template>
<template slot="carName" slot-scope="scope">
<!-- <div>{{ JSON.stringify(scope.scope.suitCarTypeList) }}</div> -->
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content">
<div slot="content" style="max-height: 200px; overflow-y: scroll;">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ item.carTypeName }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
......@@ -40,6 +36,7 @@
</div>
<deliver-add v-if="addVisible" :visible.sync="addVisible" :id="id" @handleSuccess="handleSearch"></deliver-add>
<deliver-detail :visible.sync="detailVisible" :id="id"></deliver-detail>
<sign-dialog v-if="signVisible" :visible.sync="signVisible" :info="signInfo" @handleClose="signVisibleChange" @handleConfirm="handleSignConfirm"></sign-dialog>
</div>
</template>
......@@ -48,17 +45,19 @@ import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import DeliverAdd from './deliverAdd'
import DeliverDetail from './deliverDetail'
import SignDialog from './SignDialog'
import { membraneTypeList } from '@/utils/constants.js'
import { defaultStatusOptions, defaultDeliveryStatusOptions, defaultPutStatusOptions, purchaseTypeList } from '@/utils/constants.js'
export default {
name: 'PurchaseOrder',
components: {
DeliverAdd,
DeliverDetail
DeliverDetail,
SignDialog
},
filters: {
formatCar(list) {
console.log(list, 'list')
// console.log(list, 'list')
let str = list.map(item => {
return item.carTypeName
}).join(',')
......@@ -83,6 +82,8 @@ export default {
// 查看门店
addVisible: false,
detailVisible: false,
signVisible: false,
signInfo: {},
showFormData: [
{
label: '商品名称',
......@@ -184,6 +185,21 @@ export default {
listeners: {
click: this.handleWarehousing
}
},
{
type: 'GLButton',
name: '签收',
attrs: {
type: 'text',
fn: '签收'
},
condition: row => {
return row.putStatus == 0
},
listeners: {
click: this.handleSign
}
}
],
// 表格
......@@ -196,11 +212,13 @@ export default {
tableColumns: [
{
label: '商品名称',
prop: 'upgradeGoodsName'
prop: 'upgradeGoodsName',
width: '120px'
},
{
label: '商品编码',
prop: 'type'
prop: 'type',
width: '120px'
},
{
label: '规格',
......@@ -210,7 +228,7 @@ export default {
{
label: '适用车型',
addHtml: 'carName',
width: 200,
width: 200
},
{
label: '系列',
......@@ -218,11 +236,13 @@ export default {
},
{
label: '所属分类',
prop: 'goodsTypeName'
prop: 'goodsTypeName',
width: '120px'
},
{
label: '发货数量',
prop: '',
width: '120px',
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
}
......@@ -238,6 +258,7 @@ export default {
{
label: '承运单号',
prop: 'deliveryNumber',
width: '120px',
formatter: cellValue => {
return cellValue.deliveryNumber || '--'
}
......@@ -245,6 +266,7 @@ export default {
{
label: '承运公司',
prop: 'deliveryCompany',
width: '120px',
formatter: cellValue => {
return cellValue.deliveryCompany || '--'
}
......@@ -253,17 +275,20 @@ export default {
{
label: '发货时间',
prop: 'deliveryDate',
width: '180px',
formatter: cellValue => {
return cellValue.deliveryDate ? dayjs(cellValue.deliveryDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
label: '所属订单',
prop: 'orderCode'
prop: 'orderCode',
width: '170px'
},
{
label: '所属商户',
prop: 'merchantName'
prop: 'merchantName',
width: '120px'
},
{
label: '备注',
......@@ -273,6 +298,7 @@ export default {
{
label: '状态',
prop: 'putStatus',
width: '120px',
addHtml: 'putStatus'
}
]
......@@ -292,6 +318,7 @@ export default {
},
mounted() {
this.getOptionsList('showFormData')
this.getTypeList()
this.$apis.purchaseShopping.getMerchantList({}).then(res => {
this.baseData.merchantName = res
......@@ -326,6 +353,19 @@ export default {
})
},
signVisibleChange() {
this.signVisible = !this.signVisible
},
handleSign(row) {
this.signInfo = row
this.signVisibleChange()
},
handleSignConfirm() {
this.signVisibleChange()
this.$refs.orderRef.refreshTable()
},
// 入库
handleWarehousing(row) {
this.id = row.id
......
......@@ -553,7 +553,7 @@ export default {
this.goodsSelectTotalNumber = goodsSelectTotalNumber
this.goodsTotalNumber = goodsTotalNumber
this.isAllCheck = checkoutFlag
this.totalPrice = totalPrice
this.totalPrice = totalPrice.toFixed(2)
},
handleGoodsNumChange(goodsNumber, id, upgradeGoodsId, suitCarTypeList) {
goodsNumber = parseInt(goodsNumber)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!