Browse Source

1233

master
lichong 9 months ago
parent
commit
587cf212d0
  1. 12
      front/src/renderer/src/views/dingdan.vue

12
front/src/renderer/src/views/dingdan.vue

@ -91,7 +91,7 @@
</template> </template>
<script> <script>
import _, { range } from 'lodash' import _ from 'lodash'
import tableHeaderLocal from '../assets/json/dingdan.json' import tableHeaderLocal from '../assets/json/dingdan.json'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import dingdantablecomponent from "../components/dingdantablecomponent.vue" import dingdantablecomponent from "../components/dingdantablecomponent.vue"
@ -477,6 +477,7 @@ export default {
}, },
// //
dealexportxiaoshou(list) { dealexportxiaoshou(list) {
let listCopy = _.sortBy(_.cloneDeep(list), "shunxu")
let isNotSaleGroupy = _.filter(list, o => o.isNotSale) let isNotSaleGroupy = _.filter(list, o => o.isNotSale)
let lowcaigoujia = _.filter(list, o => o.xiaoshoujine < o.zuigaocaigoujia) let lowcaigoujia = _.filter(list, o => o.xiaoshoujine < o.zuigaocaigoujia)
let duogechanpin = _.filter(list, o => o.pinmingxuanxiang.length > 1) let duogechanpin = _.filter(list, o => o.pinmingxuanxiang.length > 1)
@ -493,8 +494,8 @@ export default {
.then(async () => { .then(async () => {
let lilstLocal = [] let lilstLocal = []
let allMoney = 0 let allMoney = 0
for (let i = 0; i < list.length; i++) { for (let i = 0; i < listCopy.length; i++) {
let item = list[i]; let item = listCopy[i];
let listItem = {} let listItem = {}
allMoney += item.xiaoshoujine allMoney += item.xiaoshoujine
for (let j = 0; j < this.exportxiaoshou.length; j++) { for (let j = 0; j < this.exportxiaoshou.length; j++) {
@ -522,6 +523,7 @@ export default {
}, },
//S6 //S6
dealexportS6(list) { dealexportS6(list) {
let listCopy = _.sortBy(_.cloneDeep(list), "shunxu")
let isNotSaleGroupy = _.filter(list, o => o.isNotSale) let isNotSaleGroupy = _.filter(list, o => o.isNotSale)
let lowcaigoujia = _.filter(list, o => o.xiaoshoujine < o.zuigaocaigoujia) let lowcaigoujia = _.filter(list, o => o.xiaoshoujine < o.zuigaocaigoujia)
let duogechanpin = _.filter(list, o => o.pinmingxuanxiang.length > 1) let duogechanpin = _.filter(list, o => o.pinmingxuanxiang.length > 1)
@ -566,8 +568,8 @@ export default {
"预计开票日": "", "预计开票日": "",
"预订货编号": "", "预订货编号": "",
} }
for (let i = 0; i < list.length; i++) { for (let i = 0; i < listCopy.length; i++) {
let item = list[i]; let item = listCopy[i];
let listItem = {} let listItem = {}
allMoney += item.danjudanweishuliang allMoney += item.danjudanweishuliang
for (let j = 0; j < this.exportS6.length; j++) { for (let j = 0; j < this.exportS6.length; j++) {

Loading…
Cancel
Save