Commit d1753b87 by 前端

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

上线合并

See merge request !33
2 parents b0e83a1a 092bcaf2
......@@ -17,7 +17,7 @@
},
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": {
......@@ -2582,7 +2582,7 @@
},
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
......@@ -3220,7 +3220,7 @@
},
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-1.2.1.tgz",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
},
"caniuse-api": {
......@@ -3272,7 +3272,7 @@
},
"charenc": {
"version": "0.0.2",
"resolved": "https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz",
"resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
"integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
},
"check-types": {
......@@ -4089,7 +4089,7 @@
},
"crypt": {
"version": "0.0.2",
"resolved": "https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
"integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
},
"crypto-browserify": {
......@@ -6298,7 +6298,7 @@
},
"glsx-components": {
"version": "1.5.7",
"resolved": "https://registry.npmmirror.com/glsx-components/-/glsx-components-1.5.7.tgz",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.7.tgz",
"integrity": "sha512-WEWt1Ev7uf8VgILrEr15ZHxOreqWEVEY2WRP5EmZKzYKTVF/7dQU/oI84+Xo4vSmlz7ltblaATyrwm1U1LDnHg==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
......@@ -6312,7 +6312,7 @@
"dependencies": {
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmmirror.com/glsx-common/-/glsx-common-1.4.9.tgz",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
......@@ -7882,7 +7882,7 @@
},
"md5": {
"version": "2.3.0",
"resolved": "https://registry.npmmirror.com/md5/-/md5-2.3.0.tgz",
"resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
"integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
"requires": {
"charenc": "0.0.2",
......@@ -7929,6 +7929,11 @@
"integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==",
"dev": true
},
"merge-images": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/merge-images/-/merge-images-1.2.0.tgz",
"integrity": "sha512-hEGvgnTdXr08uzGvEArxRsKpy7WmozM73YaSi4s5IYF4LxrhANpqfHaz9CgBZ5+0+s2NsjPnPdStz3aCc0Yulw=="
},
"merge-source-map": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz",
......@@ -8341,7 +8346,7 @@
},
"node-sass": {
"version": "npm:dart-sass@1.25.0",
"resolved": "https://registry.npmjs.org/dart-sass/-/dart-sass-1.25.0.tgz",
"resolved": "https://registry.npmmirror.com/dart-sass/-/dart-sass-1.25.0.tgz",
"integrity": "sha512-syNOAstJXAmvD3RifcDk3fiPMyYE2fY8so6w9gf2/wNlKpG0zyH+oiXubEYVOy1WAWkzOc72pbAxwx+3OU4JJA==",
"dev": true,
"requires": {
......@@ -11107,7 +11112,7 @@
},
"sha1": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/sha1/-/sha1-1.1.1.tgz",
"resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz",
"integrity": "sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA==",
"requires": {
"charenc": ">= 0.0.1",
......@@ -11161,6 +11166,11 @@
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
"dev": true
},
"signature_pad": {
"version": "3.0.0-beta.4",
"resolved": "https://registry.npmmirror.com/signature_pad/-/signature_pad-3.0.0-beta.4.tgz",
"integrity": "sha512-cOf2NhVuTiuNqe2X/ycEmizvCDXk0DoemhsEpnkcGnA4kS5iJYTCqZ9As7tFBbsch45Q1EdX61833+6sjJ8rrw=="
},
"simple-swizzle": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
......@@ -11393,7 +11403,7 @@
},
"sortablejs": {
"version": "1.10.2",
"resolved": "https://registry.npmmirror.com/sortablejs/-/sortablejs-1.10.2.tgz",
"resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz",
"integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A=="
},
"source-list-map": {
......@@ -12432,7 +12442,7 @@
},
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
......@@ -12623,7 +12633,7 @@
},
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmmirror.com/vue-amap/-/vue-amap-0.5.10.tgz",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
......@@ -12783,6 +12793,16 @@
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
"integrity": "sha512-VYXZQLtjuvKxxcshuRAwjHnciqZVoXAjTjcqBTz4rKc8qih9g9pI3hbDjmqXaHdgL3v8pV6P8Z335XvHzESxLQ=="
},
"vue-signature-pad": {
"version": "2.0.5",
"resolved": "https://registry.npmmirror.com/vue-signature-pad/-/vue-signature-pad-2.0.5.tgz",
"integrity": "sha512-FLvJRmhSP/DVkg0W/tGcPZ4D0ZQlFxHgN1mjph6jt/59yLeTSv0zGGU133lfq9CkYMQ5DqN6rWujjL7Gnx7UPA==",
"requires": {
"merge-images": "^1.1.0",
"signature_pad": "^3.0.0-beta.3",
"vue": "^2.6.14"
}
},
"vue-style-loader": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz",
......@@ -12839,7 +12859,7 @@
},
"vuedraggable": {
"version": "2.24.3",
"resolved": "https://registry.npmmirror.com/vuedraggable/-/vuedraggable-2.24.3.tgz",
"resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz",
"integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==",
"requires": {
"sortablejs": "1.10.2"
......
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2023-05-20 11:35:57
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-04-15 16:19:45
* @FilePath: \scrm-micro-purchase\src\api\modules\sysbase.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http, http_common } from '@/main'
const path = "dj.api."
......
// 订单状态
export const defaultStatusOptions = [
{
id: 1,
label: '运营审核'
},
{
id: 2,
label: '总监审核'
},
{
id: 8,
label: '商务审核'
},
{
id: 3,
label: '已取消'
},
{
id: 4,
label: '已驳回'
},
{
id: 5,
label: '已审核'
}
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
]
{
id: 1,
label: '运营审核'
},
{
id: 2,
label: '经理审核'
},
{
id: 10,
label: '总监审核'
},
{
id: 8,
label: '商务审核'
},
{
id: 3,
label: '已取消'
},
{
id: 4,
label: '已驳回'
},
{
id: 5,
label: '已审核'
}
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
]
// 发货状态
export const defaultDeliveryStatusOptions = [
{
......@@ -69,23 +74,23 @@ export const putStatusOptions = [
]
// 入库状态
export const defaultPutStatusOptions = [
{
id: 0,
label: '待签收'
},
{
id: 1,
label: '未入库'
},
{
id: 2,
label: '已入库'
}
// {
// id: 3,
// label: "部分入库"
// },
]
{
id: 0,
label: '待签收'
},
{
id: 1,
label: '已签收(未入库)'
},
{
id: 2,
label: '已入库'
}
// {
// id: 3,
// label: "部分入库"
// },
]
// 订单类型
export const orderTypeOptions = [
{
......
......@@ -24,7 +24,7 @@
<div class="title">已有签名预设</div>
<div v-if="signList.length" class="sign-img-box">
<div v-for="(item, index) in signList" :key="index">
<img :src="item.signFileUrl" @click="handleSignClick(item, index)" :class="{'active': activeSignIdx == index, 'sign-img': true}" alt="" />
<img :src="item.signFileUrl" @click="handleSignClick(item, index)" :class="{ active: activeSignIdx == index, 'sign-img': true }" alt="" />
</div>
</div>
<div class="emptyCom" v-else>
......@@ -53,7 +53,7 @@
<div class="upload-count">{{ uploadFileList.length }}/10</div>
</div>
</el-upload>
<div class="upload-tip">请上传小于2M的图片。</div>
<div class="upload-tip">请上传小于20M的图片。</div>
</div>
</el-form-item>
</el-form>
......@@ -63,7 +63,7 @@
<template slot="footer">
<span class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="clear" :disabled="loading || btnLoading">重写</el-button>
<el-button v-show="activeSignIdx == -1" plain size="small" class="btn-three" style="margin-left: 10px;" @click="undo" :disabled="loading ||btnLoading">撤销</el-button>
<el-button v-show="activeSignIdx == -1" plain size="small" class="btn-three" style="margin-left: 10px;" @click="undo" :disabled="loading || btnLoading">撤销</el-button>
<el-button type="primary" size="small" style="margin-left: 10px;" @click="save" v-loading="loading || btnLoading">确定</el-button>
</span>
</template>
......@@ -83,7 +83,7 @@ export default {
},
info: {
type: Object,
default: () => { }
default: () => {}
}
},
computed: {
......@@ -135,7 +135,7 @@ export default {
label: '发货数量',
prop: '',
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? this.detailInfo.orderType == 1 ? `${cellValue.purchaseNumber}米` : `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
return membraneTypeList.includes(cellValue.goodsType) ? (this.detailInfo.orderType == 1 ? `${cellValue.purchaseNumber}米` : `${cellValue.purchaseNumber}卷`) : `${cellValue.purchaseNumber}件`
}
},
{
......@@ -154,9 +154,7 @@ export default {
files: []
},
uploadRules: {
files: [
{ required: true, validator: this.validateFiles, trigger: 'change' }
]
files: [{ required: true, validator: this.validateFiles, trigger: 'change' }]
}
}
},
......@@ -178,14 +176,14 @@ export default {
},
uploadRequest(param) {
const file = param.file
const isLt2M = file.size / 1024 / 1024 < 2
const isLt2M = file.size / 1024 / 1024 < 20
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
message: '上传图片大小不能超过 20MB!',
type: 'error',
customClass: 'message-Z-zinde'
})
param.onError('上传图片大小不能超过 2MB!')
param.onError('上传图片大小不能超过 20MB!')
return
}
const reader = new FileReader()
......@@ -193,15 +191,18 @@ export default {
reader.onload = () => {
const extension = file.name.split('.').pop()
const base64 = extension + '@' + reader.result.split(',')[1]
this.$apis.sysBase.uploadImg({ file: base64, fileType: 'image' }).then(res => {
param.onSuccess(res)
}).catch(err => {
param.onError(err)
})
this.$apis.sysBase
.uploadImg({ file: base64, fileType: 'image' })
.then(res => {
param.onSuccess(res)
})
.catch(err => {
param.onError(err)
})
}
},
beforeUpload(file) {
const isLt2M = file.size / 1024 / 1024 < 2
const isLt2M = file.size / 1024 / 1024 < 20
const typeList = ['image/jpeg', 'image/png', 'image/jpg']
const isType = typeList.includes(file.type)
......@@ -214,7 +215,7 @@ export default {
}
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
message: '上传图片大小不能超过 20MB!',
type: 'error',
customClass: 'message-Z-zinde'
})
......@@ -276,16 +277,19 @@ export default {
} else {
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, uploadFileUrl)
}).catch(() => {
this.loading = false
})
this.$apis.sysBase
.uploadImg({ file: base64, fileType: 'image' })
.then(res => {
console.log(res, 'res----')
this.deliverySign(res, uploadFileUrl)
})
.catch(() => {
this.loading = false
})
}
} else {
console.log('error submit!!');
return false;
console.log('error submit!!')
return false
}
})
},
......@@ -311,8 +315,10 @@ export default {
}
this.btnLoading = true
console.log(params, 'params----')
this.$apis.delivery.deliverySign(params)
this.$apis.delivery
.deliverySign(params)
.then(res => {
console.log(res)
if (res.code == 0) {
this.$message({
message: '签收成功',
......@@ -321,6 +327,8 @@ export default {
})
this.$emit('handleConfirm')
} else {
this.btnLoading = false
this.loading = false
this.$message({
type: 'error',
message: res.message,
......
......@@ -28,8 +28,7 @@
<!-- <div>{{ JSON.stringify(scope.scope.suitCarTypeList) }}</div> -->
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content" style="max-height: 200px; overflow-y: scroll;">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{
`${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }}</div>
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}` }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
......@@ -65,9 +64,11 @@ export default {
filters: {
formatCar(list) {
// console.log(list, 'list')
let str = list.map(item => {
return `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
}).join(',')
let str = list
.map(item => {
return `${item.brandName}-${item.childName}-${item.seriesName}-${item.carTypeName}`
})
.join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
......@@ -79,7 +80,7 @@ export default {
goodsType: '',
deliveryNumber: '',
deliveryCompany: '',
putStatus: '',
putStatusList: [],
orderCode: this.$route.query.orderCode ? this.$route.query.orderCode : '',
merchantName: '',
placeOrderTimeStr: '',
......@@ -159,8 +160,9 @@ export default {
},
{
label: '状态',
name: 'putStatus',
name: 'putStatusList',
type: 'select',
multiple: true,
optionList: [],
optionId: 'id',
optionLabel: 'label',
......@@ -268,7 +270,7 @@ export default {
prop: '',
width: '120px',
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? cellValue.orderType == 1 ? `${cellValue.purchaseNumber}米` : `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
return membraneTypeList.includes(cellValue.goodsType) ? (cellValue.orderType == 1 ? `${cellValue.purchaseNumber}米` : `${cellValue.purchaseNumber}卷`) : `${cellValue.purchaseNumber}件`
}
},
{
......@@ -359,7 +361,7 @@ export default {
defaultPutStatusOptions: defaultPutStatusOptions,
orderTypeOptions: orderTypeOptions,
merchantName: [],
storeUsageList: [],
// storeUsageList: [],
purchaseTypeList: purchaseTypeList,
goodsTypeOptions: []
}
......@@ -369,11 +371,11 @@ export default {
mounted() {
this.getOptionsList('showFormData')
this.getTypeList()
this.$apis.purchaseShopping.getMerchantList({}).then(res => {
this.baseData.merchantName = res
this.baseData.storeUsageList = res
this.getOptionsList('showFormData')
})
// this.$apis.purchaseShopping.getMerchantList({}).then(res => {
// this.baseData.merchantName = res
// this.baseData.storeUsageList = res
// this.getOptionsList('showFormData')
// })
},
methods: {
......@@ -381,6 +383,7 @@ export default {
this.$apis.delivery.getTypeList({}).then(res => {
this.baseData.goodsTypeOptions = res
this.getOptionsList('showFormData', true, 'goodsType')
this.getOptionsList('showFormData', false, 'putStatusList')
})
},
getParams() {
......@@ -389,7 +392,10 @@ export default {
params.deliveryDateStart = dayjs(this.searchForm.placeOrderTimeStr[0]).format('YYYY-MM-DD') + ' 00:00:00'
params.deliveryDateEnd = dayjs(this.searchForm.placeOrderTimeStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchForm.putStatusList && this.searchForm.putStatusList.length) {
params.putStatusStr = this.searchForm.putStatusList.join(',')
}
delete params.putStatusList
delete params.placeOrderTimeStr
return params
},
......@@ -493,7 +499,7 @@ export default {
this.searchForm = {
deliveryNumber: '',
deliveryCompany: '',
putStatus: '',
putStatusList: [],
orderCode: '',
merchantName: '',
placeOrderTimeStr: '',
......
......@@ -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>
......@@ -14,9 +13,7 @@
</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="deliveryStatus" slot-scope="scope">
<div>
<span v-if="scope.scope.deliveryStatus" :class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span>
......@@ -25,15 +22,14 @@
</template>
<template slot="putStatus" slot-scope="scope">
<div>
<span v-if="scope.scope.putStatus"
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span v-if="scope.scope.putStatus" :class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | putOrderStatus }}</span>
</div>
</template>
<template slot="status" slot-scope="scope">
<div>
<span v-if="scope.scope.status" :class="Spot[scope.scope.status - 1]"></span>
<span v-if="scope.scope.status == 4 || scope.scope.status == 6 || scope.scope.status == 7 || scope.scope.status == 9">已驳回</span>
<span v-if="scope.scope.status == 4 || scope.scope.status == 6 || scope.scope.status == 7 || scope.scope.status == 9 || scope.scope.status == 11">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</span>
</div>
</template>
......@@ -44,8 +40,7 @@
<!-- 表格区域 end -->
</div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog>
<orderReturnDialog :visible.sync="detailReturnVisible" v-if="detailReturnVisible" :paramsObj="paramsObj"
@handleConfirm="handleDetailReturnConfirm"></orderReturnDialog>
<orderReturnDialog :visible.sync="detailReturnVisible" v-if="detailReturnVisible" :paramsObj="paramsObj" @handleConfirm="handleDetailReturnConfirm"></orderReturnDialog>
</div>
</template>
......@@ -327,10 +322,10 @@ export default {
purchaseTypeList: purchaseTypeList
},
deliveryStatusOpt: {
1: "ashSpot",
2: "greenSpot",
3: "yellowSpot",
4: "redSpot"
1: 'ashSpot',
2: 'greenSpot',
3: 'yellowSpot',
4: 'redSpot'
}
}
},
......@@ -366,7 +361,7 @@ export default {
this.tableSearchForm = this.getParams()
if (this.tableSearchForm.statuses) {
if (this.tableSearchForm.statuses == 4) {
this.tableSearchForm.statuses = [4, 6, 7]
this.tableSearchForm.statuses = [4, 6, 7, 9, 11]
} else {
this.tableSearchForm.statuses = [this.tableSearchForm.statuses]
}
......@@ -394,7 +389,7 @@ export default {
})
this.$refs.orderRef.refreshTable()
})
.catch(() => { })
.catch(() => {})
})
},
handleDispatch(data) {
......@@ -502,7 +497,6 @@ export default {
}).then(() => {
resolve(false)
})
} else {
resolve(true)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!