|
@@ -41,13 +41,21 @@
|
|
|
<el-form-item label="订单状态" prop="orderState">
|
|
<el-form-item label="订单状态" prop="orderState">
|
|
|
<el-select v-model="searchForm.orderState" :size="sizeType" filterable placeholder="订单状态" value-key="id">
|
|
<el-select v-model="searchForm.orderState" :size="sizeType" filterable placeholder="订单状态" value-key="id">
|
|
|
<el-option
|
|
<el-option
|
|
|
- label="正常"
|
|
|
|
|
|
|
+ label="全部"
|
|
|
|
|
+ value="-1">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ label="待审核"
|
|
|
value="0">
|
|
value="0">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
<el-option
|
|
<el-option
|
|
|
- label="已作废"
|
|
|
|
|
|
|
+ label="已审核"
|
|
|
value="1">
|
|
value="1">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ label="已作废"
|
|
|
|
|
+ value="2">
|
|
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -273,7 +281,7 @@ import {
|
|
|
clientPayRequest,
|
|
clientPayRequest,
|
|
|
getOrderList,
|
|
getOrderList,
|
|
|
ifPermission,
|
|
ifPermission,
|
|
|
- voidPrintOrder,
|
|
|
|
|
|
|
+ voidPrintOrder
|
|
|
} from '@/api/order/orderList.js'
|
|
} from '@/api/order/orderList.js'
|
|
|
import {
|
|
import {
|
|
|
backPrintOrder
|
|
backPrintOrder
|
|
@@ -293,6 +301,7 @@ import DeliveryNotice from '@/components/deliveryNotice/deliveryNotice'
|
|
|
import new_badge from '@/assets/new_badge.gif';
|
|
import new_badge from '@/assets/new_badge.gif';
|
|
|
|
|
|
|
|
const searchForm = {
|
|
const searchForm = {
|
|
|
|
|
+ orderState: '-1',
|
|
|
orderCode: '',
|
|
orderCode: '',
|
|
|
printBillCode: '',
|
|
printBillCode: '',
|
|
|
clientCode: '',
|
|
clientCode: '',
|
|
@@ -302,7 +311,6 @@ const searchForm = {
|
|
|
endTime: '',
|
|
endTime: '',
|
|
|
createMan: '',
|
|
createMan: '',
|
|
|
idProduct: '-1',
|
|
idProduct: '-1',
|
|
|
- voidFlag: '0',
|
|
|
|
|
businessKind: '-1',
|
|
businessKind: '-1',
|
|
|
orderType: '-1',
|
|
orderType: '-1',
|
|
|
platformOrderID: '',
|
|
platformOrderID: '',
|
|
@@ -628,6 +636,7 @@ export default {
|
|
|
_that.searchForm.beginTime = _that.searchTime[0]
|
|
_that.searchForm.beginTime = _that.searchTime[0]
|
|
|
_that.searchForm.endTime = _that.searchTime[1]
|
|
_that.searchForm.endTime = _that.searchTime[1]
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
// if (_that.search.keyWord != '') {
|
|
// if (_that.search.keyWord != '') {
|
|
|
// if (_that.searchTime == null || _that.searchTime < 0) {
|
|
// if (_that.searchTime == null || _that.searchTime < 0) {
|
|
|
// _that.$message.error('请选择时间')
|
|
// _that.$message.error('请选择时间')
|
|
@@ -793,66 +802,20 @@ export default {
|
|
|
getUploadType1($event, row) {
|
|
getUploadType1($event, row) {
|
|
|
const _that = this
|
|
const _that = this
|
|
|
if ($event == 1) {
|
|
if ($event == 1) {
|
|
|
- _that.openFileDialog(5, row)
|
|
|
|
|
|
|
+ _that.openFileDialog(1, row)
|
|
|
} else if ($event == 2) {
|
|
} else if ($event == 2) {
|
|
|
- _that.openFileDialog(4, row)
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- // 上传文件方式选择
|
|
|
|
|
- getUploadType($event, row) {
|
|
|
|
|
- const _that = this
|
|
|
|
|
- var userAgent = navigator.userAgent
|
|
|
|
|
- if ($event == 1 || $event == 4 || $event == 5) {
|
|
|
|
|
- _that.openFileDialog($event, row)
|
|
|
|
|
- } else if ($event == 2) {
|
|
|
|
|
- if (userAgent.indexOf('DnyERPBrowser') > 0) {
|
|
|
|
|
- if (_that.configValue1 == undefined) {
|
|
|
|
|
- _that.configValue1 = ''
|
|
|
|
|
- }
|
|
|
|
|
- if (_that.configValue2 == undefined) {
|
|
|
|
|
- _that.configValue2 = ''
|
|
|
|
|
- }
|
|
|
|
|
- dyERP.sendOrderFile(row.id.toString(), row.orderCode, _that.configValue1, _that.configValue2, '0', '0', '0')
|
|
|
|
|
- } else {
|
|
|
|
|
- // alert('请使用开发商提供的ERP客户端')
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: '请使用开发商提供的ERP客户端',
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- } else if ($event == 3) {
|
|
|
|
|
- if (userAgent.indexOf('DnyERPBrowser') > 0) {
|
|
|
|
|
- // alert('关联文件')
|
|
|
|
|
- dyERP.sendOrderFile(row.id.toString(), row.orderCode, _that.configValue1, _that.configValue2, '1', '0', '0')
|
|
|
|
|
- } else {
|
|
|
|
|
- // alert('请使用开发商提供的ERP客户端')
|
|
|
|
|
- this.$message({
|
|
|
|
|
- message: '请使用开发商提供的ERP客户端',
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ _that.openFileDialog(2, row)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 上传文件
|
|
// 上传文件
|
|
|
openFileDialog($event, row) {
|
|
openFileDialog($event, row) {
|
|
|
var _that = this
|
|
var _that = this
|
|
|
- // _that.pluploadVisible = true
|
|
|
|
|
- // _that.upIdOrder = row.id
|
|
|
|
|
- // _that.upOrderCode = row.orderCode
|
|
|
|
|
- // _that.files = []
|
|
|
|
|
- // _that.$router.push('/order/upload')
|
|
|
|
|
- // _that.$nextTick(() => {
|
|
|
|
|
- // // _that.$refs.plupLoad.up.refresh()
|
|
|
|
|
- // _that.$refs.plupLoad.fileRawList = []
|
|
|
|
|
- // })
|
|
|
|
|
if ($event == 1) {
|
|
if ($event == 1) {
|
|
|
// window.open('/#/upload?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=1', '_blank')
|
|
// window.open('/#/upload?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=1', '_blank')
|
|
|
window.open(_that.configValue3 + '?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=1&idUser=' + _that.$store.state.user.user.id + '&supplierCode=' + _that.$store.state.user.indexInfo.supplierCode + '&dataSourceId=' + _that.$store.state.user.indexInfo.dataSourceId, '_blank')
|
|
window.open(_that.configValue3 + '?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=1&idUser=' + _that.$store.state.user.user.id + '&supplierCode=' + _that.$store.state.user.indexInfo.supplierCode + '&dataSourceId=' + _that.$store.state.user.indexInfo.dataSourceId, '_blank')
|
|
|
- } else if ($event == 4) {
|
|
|
|
|
|
|
+ } else if ($event == 2) {
|
|
|
// window.open('/#/upload?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=4', '_blank')
|
|
// window.open('/#/upload?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=4', '_blank')
|
|
|
- window.open(_that.configValue3 + '?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=4&idUser=' + _that.$store.state.user.user.id + '&supplierCode=' + _that.$store.state.user.indexInfo.supplierCode + '&dataSourceId=' + _that.$store.state.user.indexInfo.dataSourceId, '_blank')
|
|
|
|
|
- } else if ($event == 5) {
|
|
|
|
|
window.open(_that.configValue3 + '?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=2&idUser=' + _that.$store.state.user.user.id + '&supplierCode=' + _that.$store.state.user.indexInfo.supplierCode + '&dataSourceId=' + _that.$store.state.user.indexInfo.dataSourceId, '_blank')
|
|
window.open(_that.configValue3 + '?id=' + row.id + '&orderCode=' + row.orderCode + '&orderName=' + row.orderName + '&type=2&idUser=' + _that.$store.state.user.user.id + '&supplierCode=' + _that.$store.state.user.indexInfo.supplierCode + '&dataSourceId=' + _that.$store.state.user.indexInfo.dataSourceId, '_blank')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -876,6 +839,7 @@ export default {
|
|
|
var _that = this
|
|
var _that = this
|
|
|
var order = {
|
|
var order = {
|
|
|
'id': _that.voidId,
|
|
'id': _that.voidId,
|
|
|
|
|
+ 'voidFlag': 1,
|
|
|
'sMemo': _that.sMemo,
|
|
'sMemo': _that.sMemo,
|
|
|
'versionCode': _that.versionCode
|
|
'versionCode': _that.versionCode
|
|
|
}
|
|
}
|