Commit d1753b87 by 前端

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

上线合并

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