Commit 792a9147 by wangql

修改第二轮测试BUG

1 parent 65b1fcc1
......@@ -26,10 +26,10 @@ export const LISTDEVICEGPSPREIMPORT = params => {
}
//GPS出库-模板下载
export const GPSDEVICEDOWNLOADTEMPLATE = BASEURL + 'gpsDeviceInfo/gpsDeviceDownloadTemplate';
export const GPSDEVICEDOWNLOADTEMPLATE = BASEURL + '/gpsDeviceInfo/gpsDeviceDownloadTemplate';
//GPS出库-导入模板-校验模板
export const PREGPSDEVICEIMPORTCHECK = BASEURL + 'gpsDeviceInfo/preGpsDeviceImportCheck';
export const PREGPSDEVICEIMPORTCHECK = BASEURL + '/gpsDeviceInfo/preGpsDeviceImportCheck';
//GPS出库-导入
export const DEVICEIMPORT = params => {
......
......@@ -79,6 +79,10 @@ export function dbGet({
defaultValue = '',
user = false
}) {
console.log(dbName,
path,
user,
defaultValue)
return new Promise(resolve => {
resolve(_.cloneDeep(db.get(pathInit({
dbName,
......
......@@ -136,7 +136,7 @@ export default {
formatter: function(row, column, cellValue) {
if(cellValue){
if(cellValue == '未知' || cellValue == "'未知'"){
return '//'
return '--'
}else{
return cellValue
}
......
......@@ -283,7 +283,7 @@ export default {
formatter: function(row, column, cellValue) {
if(cellValue){
if(cellValue == '未知' || cellValue == "'未知'"){
return '//'
return '--'
}else{
return cellValue
}
......
......@@ -68,7 +68,7 @@
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="merchantOrder" label="子订单号" width="200" />
<el-table-column prop="channelName" label="商户渠道" :width="tdWidth" />
<el-table-column prop="merchantName" label="下单客户" width="80" />
<el-table-column prop="merchantLoginName" label="下单客户" width="80" />
<el-table-column prop="materialCode" label="审核物料编号" :width="tdWidth" />
<el-table-column prop="materialName" label="审核物料名称" width="250" />
<el-table-column prop="deviceTypeName" label="设备类型" width="80" />
......@@ -84,19 +84,19 @@
<el-table-column prop="checkTime" label="审核时间" width="140" >
<template slot-scope="scope">{{ scope.row.checkTime ? DATEFORMATE(scope.row.checkTime, 'YYYY/MM/DD HH:mm:ss') : '' }}</template>
</el-table-column>
<el-table-column prop="checkRemark" label="审核备注" :width="tdWidth" />
<el-table-column prop="bsAddressDto.address" label="收货地址" :width="tdWidth" />
<el-table-column prop="checkRemark" label="审核备注" width="200" show-overflow-tooltip />
<el-table-column prop="bsAddressDto.address" label="收货地址" width="200" show-overflow-tooltip />
<el-table-column prop="bsAddressDto.name" label="收货联系人" :width="tdWidth" />
<el-table-column prop="bsAddressDto.mobile" label="收货联系电话" :width="tdWidth" />
<el-table-column prop="subjectName" label="项目" :width="tdWidth" />
<el-table-column label="操作" fixed="right" align="center" width="360">
<template slot-scope="scope">
<el-button type="primary" size="mini" v-if="scope.row.status == '8'" @click="assignShipment(scope.row)">分配发货</el-button>
<el-button type="primary" size="mini" v-if="scope.row.status == '8'" @click="directDelivery(scope.row)">直接发货</el-button>
<el-button type="primary" size="mini" v-if="scope.row.status == '8' && scope.row.deviceScanType == 'N'" @click="directDelivery(scope.row)">直接发货</el-button>
<el-button type="danger" size="mini" v-if="scope.row.status == '8'" @click="reject(scope.row)">驳回</el-button>
<el-button type="danger" size="mini" v-if="scope.row.status == '2'" @click="withdraw(scope.row)">撤回</el-button>
<el-button type="success" size="mini" v-if="scope.row.status == '3'" @click="advanceOver(scope.row)">提前结束</el-button>
<el-button type="info" size="mini" @click="downloadInvoice(scope.row)">下载发货单</el-button>
<el-button type="info" size="mini" v-if="scope.row.urlDispatchBills" @click="downloadInvoice(scope.row)">下载发货单</el-button>
</template>
</el-table-column>
</el-table>
......@@ -461,6 +461,13 @@ export default {
},
/**
* 下载发货单
*/
downloadInvoice: function(row){
window.location.href = row.urlDispatchBills
},
/**
* 分配发货
*/
assignShipment: function(row){
......
......@@ -11,7 +11,7 @@
<el-form-item label="设备类型" prop="deviceTypeId">
<el-select v-model="form.deviceTypeId" placeholder="请选择" class="el_select" @change="getDevice(form.deviceTypeId)">
<!-- <el-option value="" label="全部">全部</el-option> -->
<el-option v-for="item in deviceTypeList" :key="item.id" :value="item.id" :label="item.name" >item.name</el-option>
<el-option v-for="item in deviceTypeList" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</el-form-item>
</div>
......@@ -355,6 +355,8 @@ export default {
},
mounted: function() {
this.init()
// this.maxNumber = this.info.totalCheck;
if(this.info.bsAddressDto){
this.info.contacts = this.info.bsAddressDto.name
......@@ -372,14 +374,17 @@ export default {
// this.form.sendMerchantNo = this.form.merchantCode + '/' + this.form.merchantName
// this.attribCode = this.form.materialCode
this.radio = this.form.materialCode
console.log(this.form)
if(this.info.deviceScanType == 'Y'){
this.disabled_notNeed = true
// this.getMerchant(this.form.merchantCode)
this.merchantList = [{'merchantId':this.form.merchantCode,'merchantName':this.form.merchantName}]
// this.form.sendMerchantNo = this.form.merchantCode
// this.form.sendMerchantName = this.form.merchantName
}else if(this.info.deviceScanType == 'N'){
this.disabled_need = true
}
this.init()
},
methods: {
......@@ -641,15 +646,15 @@ export default {
oParams.listOrderWarehouseVo = listOrderWarehouseVo
console.log(oParams)
DISPATCHSPORDERSCANY(oParams).then(res => {
if (res.returnCode == 0) {
this.$message({
type: 'success',
message: '操作成功!'
});
_this.$emit('closed',true)
}
})
// DISPATCHSPORDERSCANY(oParams).then(res => {
// if (res.returnCode == 0) {
// this.$message({
// type: 'success',
// message: '操作成功!'
// });
// _this.$emit('closed',true)
// }
// })
}else if(this.info.deviceScanType == 'N'){//子订单不扫码模式分配发货
/**不扫码时物料编号和名称不变 */
oParams.materialCode = _this.form.materialCode
......
......@@ -38,13 +38,13 @@
<div v-if="form.deviceScanType == 'N'">
<el-form-item label="物料编码">
<el-input v-model="form.auditAttribCode" disabled/>
<el-input v-model="form.materialCode" disabled/>
</el-form-item>
<el-form-item label="物料名称">
<el-input v-model="form.auditAttribName" disabled/>
<el-input v-model="form.materialName" disabled/>
</el-form-item>
<el-form-item label="物料类型">
<el-input v-model="form.deviceType" disabled/>
<el-input v-model="form.deviceTypeName" disabled/>
</el-form-item>
</div>
<hr style="background-color: blue;border: none;height: 2px;opacity: .1;" /><br />
......@@ -283,7 +283,7 @@ export default {
formatter: function(row, column, cellValue) {
if(cellValue){
if(cellValue == '未知' || cellValue == "'未知'"){
return '//'
return '--'
}else{
return cellValue
}
......@@ -310,7 +310,7 @@ export default {
getDevice: function(e) {
const _this = this
const oParams = {}
oParams.deviceTypeId = e || _this.form.deviceTypeId
oParams.typeId = e || _this.form.deviceTypeId
if (e) {
delete _this.form.deviceId
delete _this.form.packageOne
......
<template>
<div>
<div style="text-align:right">
<!-- <div style="text-align:right">
<el-button type="primary" icon="el-icon-download" :loading="exportLoading" @click="exportInfo()">导出列表</el-button>
</div>
</div> -->
<!-- 表格区域 开始 -->
<div class="table_box">
<el-table v-loading="tableLoading" :data="tableData" stripe style="width: 100%" size="small" border>
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" />
<el-table-column prop="iccid" label="ICCID" :width="tdWidth" />
<el-table-column prop="sn" label="SN" :width="tdWidth" />
<el-table-column prop="imei" label="IMEI" :width="tdWidth" />
<el-table-column prop="attribCode" label="设备类型编号" :width="tdWidth" />
<el-table-column prop="dispatchOrderCode" label="订单号" :width="tdWidth" />
<el-table-column prop="updatedDate" label="出库时间" :width="tdWidth" >
<el-table-column type="index" :index="index => {return index+1}" label="序号" width="80" v-if="ndScan == 'Y'" />
<el-table-column prop="iccid" label="ICCID" :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="sn" label="SN" :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="imei" label="IMEI" :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="attribCode" label="物料编码" :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="dispatchOrderCode" label="订单号" :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="updatedDate" label="出库时间" :width="tdWidth" v-if="ndScan == 'Y'">
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
</el-table-column>
<el-table-column prop="dispatchOrderCode" label="发货单号" :width="tdWidth" v-if="ndScan == 'N'" />
<el-table-column prop="updatedDate" label="发货时间" :width="tdWidth" v-if="ndScan == 'N'">
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
</el-table-column>
<el-table-column prop="logisticsCompany" label="物料公司" :width="tdWidth" v-if="ndScan == 'N'" />
<el-table-column prop="logisticsNum" label="物流单号" :width="tdWidth" v-if="ndScan == 'N'" />
<el-table-column prop="sendQulities" label="发货数量" :width="tdWidth" v-if="ndScan == 'N'" />
</el-table>
<div class="pagination_list">
<el-pagination
......@@ -46,6 +53,10 @@ export default {
orderCode: {
type: [String, Number],
default: ''
},
ndScan: {
type: [String],
default: ''
}
},
data() {
......
......@@ -30,8 +30,8 @@
filterable
remote
:remote-method="getMerchant"
placeholder="请输入关键词">
<el-option value="" label="全部">全部</el-option>
placeholder="请输入关键词" clearable>
<!-- <el-option value="" label="全部">全部</el-option> -->
<el-option
v-for="item in merchantList"
:key="item.merchantId"
......@@ -76,8 +76,12 @@
<el-table-column prop="total" label="需求总数" width="70" />
<el-table-column prop="sendQuantities" label="已发货数" width="70" >
<template slot-scope="scope">
<el-link type="primary" :underline="false" @click="getAlreadyShippedDetail(scope.row)">{{scope.row.sendQuantities}}</el-link>
<el-link type="primary" :underline="false" v-if="scope.row.sendQuantities && scope.row.sendQuantities > 0" @click="getAlreadyShippedDetail(scope.row)">{{scope.row.sendQuantities}}</el-link>
<span v-else>{{scope.row.sendQuantities}}</span>
</template>
<!-- <template slot-scope="scope" v-if="scope.row.sendQuantities == 0">
{{scope.row.sendQuantities}}
</template> -->
</el-table-column>
<el-table-column prop="status" label="订单状态" width="70" >
<template slot-scope="scoped">
......@@ -127,7 +131,7 @@
</glsx-dialog>
<glsx-dialog :show="showDetailDialog" v-if="showDetailDialog" title="出货明细" usefooter v-on:closed="closeDetailDialog">
<already-shipped-detail :orderCode="orderCode" v-if="showDetailDialog" v-on:closed="closeDetailDialog" />
<already-shipped-detail :orderCode="orderCode" :ndScan="ndScan" v-if="showDetailDialog" v-on:closed="closeDetailDialog" />
<div slot="footer">
<el-button @click="showDetailDialog = false">关 闭</el-button>
</div>
......@@ -172,6 +176,7 @@ export default {
editId: '',
showDetailDialog:false,
orderCode:'',
ndScan: '',
statusShow: {
'UF': '未完成',
'OV': '完成',
......@@ -341,6 +346,7 @@ export default {
*/
getAlreadyShippedDetail: function(row){
this.orderCode = row.dispatchOrderCode
this.ndScan = row.ndScan
this.showDetailDialog = true
},
......
<template>
<div class="page-login">
<dialog-reg :isVisible="registerDialogVisible" />
<!-- <dialog-reg :isVisible="registerDialogVisible" /> -->
<div class="page-login--layer page-login--layer-area">
<ul class="circles">
<li v-for="n in 10" :key="n"></li>
......@@ -87,9 +87,9 @@ import dayjs from 'dayjs'
import { mapActions } from 'vuex'
import { LOGIN_TYPE } from '@/common/constants'
export default {
components: {
DialogReg: () => import('./dialogReg')
},
// components: {
// DialogReg: () => import('./dialogReg')
// },
data() {
return {
registerDialogVisible: false,
......
......@@ -43,7 +43,7 @@
:mapping="mapping"
></auth-button>
</d2-table>
<dialog-reg :isVisible="registerDialogVisible" :editData="editData" :key="key"/>
<!-- <dialog-reg :isVisible="registerDialogVisible" :editData="editData" :key="key"/> -->
</d2-container>
</template>
......@@ -63,9 +63,9 @@ import { mapActions } from 'vuex'
import util from '@/libs/util'
export default {
name: 'FimsUsers',
components: {
DialogReg: () => import('./dialogReg')
},
// components: {
// DialogReg: () => import('./dialogReg')
// },
data() {
return {
getListApi: UserList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!