|
@@ -69,7 +69,7 @@
|
|
|
@saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)">
|
|
|
<template slot-scope="{scope,row}" slot="menuLeft">
|
|
|
<el-button type="primary" icon="el-icon-plus" size="small" :disabled="isAddBtn"
|
|
|
- @click="rowAdd(row)">添加轮胎</el-button>
|
|
|
+ @click="rowAdd(row)">添加商品</el-button>
|
|
|
<el-button type="primary" icon="el-icon-printer" size="small"
|
|
|
@click="handlePrint">打印</el-button>
|
|
|
</template>
|
|
@@ -194,7 +194,7 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
- <el-dialog title="选择轮胎" append-to-body class="el-dialogDeep" :visible.sync="dialogVisible" width="80%"
|
|
|
+ <el-dialog title="选择商品" append-to-body class="el-dialogDeep" :visible.sync="dialogVisible" width="80%"
|
|
|
:close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @close="closeGoods">
|
|
|
<el-row :style="{ height: rowHeight }">
|
|
|
<el-col :span="5" style="height: 100%;overflow-y: auto">
|
|
@@ -302,12 +302,12 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
reportName:'', // 打印传的名字
|
|
|
- SelectSearch:{}, // 添加轮胎检索
|
|
|
+ SelectSearch:{}, // 添加商品检索
|
|
|
// 编辑还是保存
|
|
|
mingxibaocun:true,
|
|
|
// 批次号请求到的数据
|
|
|
picihaolist:[],
|
|
|
- // 添加轮胎弹窗
|
|
|
+ // 添加商品弹窗
|
|
|
dialogVisible:false,
|
|
|
// 弹窗高度
|
|
|
rowHeight: '',
|
|
@@ -359,7 +359,7 @@ export default {
|
|
|
dataList: [],
|
|
|
dicUrlWithCustomId: '',
|
|
|
sharedCompanyId: 0,
|
|
|
- isAddBtn: true, // 添加轮胎的是否禁用
|
|
|
+ isAddBtn: true, // 添加商品的是否禁用
|
|
|
isSaveBtn: false, // 大保存的是否禁用
|
|
|
viewDisabled: false, // 大审批的是否禁用
|
|
|
isAdd: false, // 表格按钮的是否点击
|
|
@@ -623,7 +623,7 @@ export default {
|
|
|
border: true,
|
|
|
align: 'center',
|
|
|
index: true,
|
|
|
- addBtnText: "添加轮胎",
|
|
|
+ addBtnText: "添加商品",
|
|
|
updateBtnText: '保存',
|
|
|
refreshBtn: false,
|
|
|
dialogDrag: true,
|
|
@@ -663,7 +663,7 @@ export default {
|
|
|
type: "sum"
|
|
|
}],
|
|
|
column: [{
|
|
|
- label: '轮胎名称',
|
|
|
+ label: '商品名称',
|
|
|
prop: 'goodsId',
|
|
|
width: 250,
|
|
|
disabled: false,
|
|
@@ -680,7 +680,7 @@ export default {
|
|
|
dicUrl: `/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}&customId=&enableOrNot=1&stock=${this.goodsId}`
|
|
|
// dicUrl: "/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}"
|
|
|
},{
|
|
|
- label: '轮胎名称',
|
|
|
+ label: '商品名称',
|
|
|
prop: 'goodsName',
|
|
|
width: 250,
|
|
|
disabled: false,
|
|
@@ -763,7 +763,7 @@ export default {
|
|
|
dicUrl: "/api/blade-sales-part/stockDesc/dotList",
|
|
|
overHidden: true,
|
|
|
}, {
|
|
|
- label: '轮胎编码',
|
|
|
+ label: '商品编码',
|
|
|
prop: 'goodsNo',
|
|
|
overHidden: true,
|
|
|
disabled: false,
|
|
@@ -795,7 +795,7 @@ export default {
|
|
|
disabled: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
- label: '轮胎描述',
|
|
|
+ label: '商品描述',
|
|
|
prop: 'goodsDescription',
|
|
|
disabled: false,
|
|
|
overHidden: true,
|
|
@@ -1353,7 +1353,7 @@ export default {
|
|
|
this.tableData = this.goodsListSave
|
|
|
this.tableDataHandle()
|
|
|
},
|
|
|
- // 获取添加轮胎弹窗里的数据
|
|
|
+ // 获取添加商品弹窗里的数据
|
|
|
goodsPageXsfun(){
|
|
|
goodsPageXs({
|
|
|
customId: this.form.customerId,
|
|
@@ -1364,7 +1364,7 @@ export default {
|
|
|
this.goodsListShow = data.records;
|
|
|
})
|
|
|
},
|
|
|
- //导入轮胎弹窗列表查询
|
|
|
+ //导入商品弹窗列表查询
|
|
|
onLoadfun(page, params = { artsVision: this.form.belongToCorpId }) {
|
|
|
this.loading = true;
|
|
|
goodsPageXs({
|
|
@@ -1822,7 +1822,7 @@ export default {
|
|
|
let picihao = false
|
|
|
if (valid) {
|
|
|
if (this.form.orderItemsList.length == 0) {
|
|
|
- this.$message.warning("请添加轮胎");
|
|
|
+ this.$message.warning("请添加商品");
|
|
|
return
|
|
|
}
|
|
|
for(let i in this.form.orderItemsList) {
|
|
@@ -2312,7 +2312,7 @@ export default {
|
|
|
if (this.isStatus) {
|
|
|
done(form)
|
|
|
} else {
|
|
|
- this.$message.error('请选择相同公司的轮胎')
|
|
|
+ this.$message.error('请选择相同公司的商品')
|
|
|
}
|
|
|
console.log(form);
|
|
|
// this.form.sharedCompanyId = res.data.data.sharedCompanyId
|
|
@@ -2321,7 +2321,7 @@ export default {
|
|
|
rowUpdate(form, index, done, loading) {
|
|
|
done(form)
|
|
|
},
|
|
|
- // 新增轮胎
|
|
|
+ // 新增商品
|
|
|
rowAdd(row) {
|
|
|
if (!this.form.customerId) {
|
|
|
this.$message.error('请选择客户')
|