Browse Source

完善旧件返厂及厂家确认

master
guoxing 10 months ago
parent
commit
93121011a3
  1. 78
      yxt-as-ui/src/api/storage/manufacturerconfirm.js
  2. 40
      yxt-as-ui/src/views/storage/manufacturerconfirm/manufacturerconfirmAdd.vue
  3. 19
      yxt-as-ui/src/views/storage/manufacturerconfirm/manufacturerconfirmInfo.vue
  4. 4
      yxt-as-ui/src/views/storage/oldPartsFactory/manufacturerconfirmInfo.vue
  5. 60
      yxt-as-ui/src/views/storage/oldPartsFactory/oldPartsFactoryAdd.vue
  6. 16
      yxt-as-ui/src/views/storage/oldPartsFactory/oldPartsFactoryInfo.vue

78
yxt-as-ui/src/api/storage/manufacturerconfirm.js

@ -5,7 +5,7 @@ export default {
// 查询分页列表 // 查询分页列表
listPage: function(params) { listPage: function(params) {
return request({ return request({
url: '/as/v1/asoldpartreturnapply/confirmListPage', url: '/as/v1/asoldpartreturnconfirm/listPage',
method: 'post', method: 'post',
data: params, data: params,
headers: { headers: {
@ -14,54 +14,18 @@ export default {
}) })
}, },
// 获取确认结果详情
saveConfirmResult: function(data) {
return request({
url: ' ',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
});
},
// 获取确认结果详情
fetchDetailsByMainSid: function(data) {
return request({
url: '/as/v1/asoldpartreturnconfirm/fetchDetailsByMainSid/' + data,
method: 'get'
});
},
// 初始化 // 初始化
init: function(data) { init: function(data) {
return request({ return request({
url: '/as/v1/asoldpartreturnapply/fetchDetailsBySid/' + data, url: '/as/v1/asoldpartreturnconfirm/fetchDetailsBySid/' + data,
method: 'get' method: 'get'
}); });
}, },
// 新增、保存 // 新增、保存
save: function(data) { save: function(data) {
return request({ return request({
url: '/as/v1/asoldpartreturnapply/save', url: '/as/v1/asoldpartreturnconfirm/confirm',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
});
},
// 提交
submit: function(data) {
return request({
url: '/as/v1/asoldpartreturnapply/submit',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {
@ -70,40 +34,4 @@ export default {
}); });
}, },
deleteBySids: function(data) {
return request({
url: '/as/v1/asoldpartreturnapply/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
// 查询分页列表
getGoodsListPage: function(params) {
return request({
url: '/wms/apiadmin/WmsOutBill/getInventoryList',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
// 下载模板
downloadExcel: function() {
return request({
url: '/as/v1/asoldpartreturnapply/downloadModPriceExcel',
method: 'post',
responseType: 'blob', // 表明返回服务器返回的数据类型
headers: {
'Content-Type': 'application/json'
}
})
},
} }

40
yxt-as-ui/src/views/storage/manufacturerconfirm/manufacturerconfirmAdd.vue

@ -3,7 +3,7 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<!-- 标题 --> <!-- 标题 -->
<div>{{title}}旧件返厂确认</div> <div>{{title}}确认</div>
<!-- start 添加修改按钮 --> <!-- start 添加修改按钮 -->
<div> <div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">确认</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">确认</el-button>
@ -15,7 +15,7 @@
<div class="listconadd"> <div class="listconadd">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02"> <el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<!-- <div class="title"> <!-- <div class="title">
<div>基础信息</div> <div>基础信息</div>
</div> --> </div> -->
@ -68,7 +68,7 @@
<el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;" <el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;"
:row-style="{height: '40px'}"> :row-style="{height: '40px'}">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> <el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column label="商品名称" prop="goodsSkuName" align="center" /> <el-table-column label="商品名称" prop="goodsSpuName" align="center" />
<el-table-column label="商品编码" prop="goodsSkuCode" align="center" /> <el-table-column label="商品编码" prop="goodsSkuCode" align="center" />
<el-table-column label="厂家" prop="manufacturerName" align="center" /> <el-table-column label="厂家" prop="manufacturerName" align="center" />
<el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" /> <el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" />
@ -106,6 +106,13 @@
submitdisabled: false, submitdisabled: false,
title: "新增", title: "新增",
formobj: {}, formobj: {},
rules: {
filePaths: [{
required: true,
message: '附件不能为空',
trigger: 'blur'
}],
}
} }
}, },
methods: { methods: {
@ -119,6 +126,9 @@
}, },
showAdd(sid) { showAdd(sid) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.init(sid) req.init(sid)
.then(resp => { .then(resp => {
if (resp.success) { if (resp.success) {
@ -130,7 +140,9 @@
}) })
}, },
showEdit(row) { showEdit(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
var params = { var params = {
sid: row.sid sid: row.sid
} }
@ -153,6 +165,26 @@
}, },
saveOrUpdate() { saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.save(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '保存成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
}, },
} }
} }

19
yxt-as-ui/src/views/storage/manufacturerconfirm/manufacturerconfirmInfo.vue

@ -3,7 +3,7 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<!-- 标题 --> <!-- 标题 -->
<div>旧件返</div> <div>家确认</div>
<!-- start 添加修改按钮 --> <!-- start 添加修改按钮 -->
<div> <div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
@ -55,14 +55,7 @@
</el-col> </el-col>
</el-row> --> </el-row> -->
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -74,6 +67,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row> </el-row>
<div class="title" <div class="title"
@ -83,7 +84,7 @@
<el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;" <el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;"
:row-style="{height: '40px'}"> :row-style="{height: '40px'}">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> <el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column label="商品名称" prop="goodsSkuName" align="center" /> <el-table-column label="商品名称" prop="goodsSpuName" align="center" />
<el-table-column label="商品编码" prop="goodsSkuCode" align="center" /> <el-table-column label="商品编码" prop="goodsSkuCode" align="center" />
<el-table-column label="厂家" prop="manufacturerName" align="center" /> <el-table-column label="厂家" prop="manufacturerName" align="center" />
<el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" /> <el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" />

4
yxt-as-ui/src/views/storage/oldPartsFactory/manufacturerconfirmInfo.vue

@ -3,7 +3,7 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<!-- 标题 --> <!-- 标题 -->
<div>旧件返</div> <div>家确认</div>
<!-- start 添加修改按钮 --> <!-- start 添加修改按钮 -->
<div> <div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
@ -83,7 +83,7 @@
<el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;" <el-table v-loading="listLoading" :data="formobj.asOldpartreturnList" border style="width: 100%;"
:row-style="{height: '40px'}"> :row-style="{height: '40px'}">
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> <el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" />
<el-table-column label="商品名称" prop="goodsSkuName" align="center" /> <el-table-column label="商品名称" prop="goodsSpuName" align="center" />
<el-table-column label="商品编码" prop="goodsSkuCode" align="center" /> <el-table-column label="商品编码" prop="goodsSkuCode" align="center" />
<el-table-column label="厂家" prop="manufacturerName" align="center" /> <el-table-column label="厂家" prop="manufacturerName" align="center" />
<el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" /> <el-table-column label="规格" prop="goodsSkuOwnSpec" align="center" />

60
yxt-as-ui/src/views/storage/oldPartsFactory/oldPartsFactoryAdd.vue

@ -8,7 +8,8 @@
<el-button type="primary" size="small" :disabled="submitdisabled" @click="importDetail">导入厂家返件明细</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="importDetail">导入厂家返件明细</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit">提交</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" @click="submit">提交</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="downLoadDetail">下载待出库旧件明细</el-button> <el-button type="primary" size="small" :disabled="submitdisabled" v-show="formobj.sid!=''"
@click="downLoadDetail">下载待出库旧件明细</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
<!-- end 添加修改按钮 --> <!-- end 添加修改按钮 -->
@ -59,14 +60,14 @@
</el-col> </el-col>
</el-row> --> </el-row> -->
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<div class="span-sty">备注</div> <div class="span-sty"><span class="must">*</span> 附件</div>
<el-form-item> <el-form-item prop="imgList">
<el-input v-model="formobj.remarks" placeholder="" class="addinputw addinputInfo" type="textarea" <upload-img ref="uploadImg" class="addinputw" v-model="imgList" :limit="50" bucket="map"
:rows="4" clearable /> :upload-data="{ type: '0001' }" @change="backData" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -75,14 +76,16 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<div class="span-sty"><span class="must">*</span> 附件</div> <div class="span-sty">备注</div>
<el-form-item prop="imgList"> <el-form-item>
<upload-img ref="uploadImg" class="addinputw" v-model="imgList" :limit="50" bucket="map" <el-input v-model="formobj.remarks" placeholder="" class="addinputw addinputInfo" type="textarea"
:upload-data="{ type: '0001' }" @change="backData" /> :rows="4" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div class="title titleOne"> <div class="title titleOne">
<div>返厂旧件列表</div> <div>返厂旧件列表</div>
<el-button type="primary" size="mini" @click="seleGoods3()">添加</el-button> <el-button type="primary" size="mini" @click="seleGoods3()">添加</el-button>
@ -202,7 +205,7 @@
<div class="tit" /> <div class="tit" />
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" <pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current"
:limit.sync="queryParams.size" class="pagination" @pagination="importDetail" /> :limit.sync="queryParams.size" class="pagination" @pagination="seleGoods" />
</div> </div>
@ -241,7 +244,7 @@
<div class="tit" /> <div class="tit" />
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" <pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current"
:limit.sync="queryParams.size" class="pagination" @pagination="importDetail" /> :limit.sync="queryParams.size" class="pagination" @pagination="seleGoods3" />
</div> </div>
@ -566,17 +569,13 @@
}, },
seleGoods(row) { seleGoods(row) {
this.itemInfo = row this.itemInfo = row
this.queryParams = { this.queryParams.params = {
current: 1, "vinNo": row.vinNo,
size: 10, "goodsSkuCode": row.goodsSkuCode,
total: 0, "sourceBillNo": row.sourceBillNo,
params: { "orgPath": window.sessionStorage.getItem('defaultOrgPath'),
"vinNo": row.vinNo,
"goodsSkuCode": row.goodsSkuCode,
"sourceBillNo": row.sourceBillNo,
"orgPath": window.sessionStorage.getItem('defaultOrgPath'),
}
} }
req.getGoodsListPage(this.queryParams).then(resp => { req.getGoodsListPage(this.queryParams).then(resp => {
if (resp.success) { if (resp.success) {
const data = resp.data const data = resp.data
@ -630,17 +629,12 @@
handleClose2() { handleClose2() {
this.dialogVisible2 = false this.dialogVisible2 = false
}, },
seleGoods3(row) { seleGoods3() {
this.queryParams = { this.queryParams.params = {
current: 1, "vinNo": '',
size: 10, "goodsSkuCode": '',
total: 0, "sourceBillNo": '',
params: { "orgPath": window.sessionStorage.getItem('defaultOrgPath'),
"vinNo": '',
"goodsSkuCode": '',
"sourceBillNo": '',
"orgPath": window.sessionStorage.getItem('defaultOrgPath'),
}
} }
req.getGoodsListPage(this.queryParams).then(resp => { req.getGoodsListPage(this.queryParams).then(resp => {
if (resp.success) { if (resp.success) {

16
yxt-as-ui/src/views/storage/oldPartsFactory/oldPartsFactoryInfo.vue

@ -55,14 +55,7 @@
</el-col> </el-col>
</el-row> --> </el-row> -->
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -76,6 +69,15 @@
</el-row> </el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title" <div class="title"
style="display: flex;align-items: center;justify-content: space-between;height:40px;margin-top: 10px;"> style="display: flex;align-items: center;justify-content: space-between;height:40px;margin-top: 10px;">
<div>商品列表</div> <div>商品列表</div>

Loading…
Cancel
Save