|
@@ -217,6 +217,22 @@
|
|
|
<div v-else>{{scope.row.specification}}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="120" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.realMaterialNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="120" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.realMaterialOldNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)"></el-input>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-model="scope.row.realSpecification" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
@@ -432,7 +448,8 @@
|
|
|
<div class="tables">
|
|
|
<div class="table">
|
|
|
<el-table :data="leftGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="leftSelectionChange">
|
|
|
- <el-table-column align="center" type="selection" width="55" :selectable='checkboxSelect'></el-table-column>
|
|
|
+ <el-table-column align="center" type="selection" width="55" :selectable='checkboxSelect'></el-table-column>
|
|
|
+
|
|
|
<el-table-column align="center" label="销售类型" prop="saleName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
|
|
@@ -460,7 +477,7 @@
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table :data="rightGoodsList" element-loading-text="Loading" border fit highlight-current-row stripe height="400" @selection-change="rightSelectionChange">
|
|
|
- <el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
+ <el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
<el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
@@ -475,6 +492,71 @@
|
|
|
<el-button type="primary" @click="submitAddGoods">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="添加产品" :visible.sync="isSetMaterial" width="80%">
|
|
|
+ <el-form ref="goodsScreenForm" :model="goodsScreenForm" size="small" label-position="left">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
+ <el-form-item prop="proNum">
|
|
|
+ <el-input v-model="goodsScreenForm.proNum" placeholder="请输入产品编码"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
+ <el-form-item prop="proName">
|
|
|
+ <el-input v-model="goodsScreenForm.proName" placeholder="请输入产品名称"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
+ <el-form-item prop="proModel">
|
|
|
+ <el-input v-model="goodsScreenForm.proModel" placeholder="请输入产品型号"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="12" :sm="6" :lg="6">
|
|
|
+ <el-form-item prop="price1" style="display: flex">
|
|
|
+ <el-input v-model="goodsScreenForm.price1" placeholder="请输入价格" style="width: 46%"></el-input>
|
|
|
+ <span> - </span>
|
|
|
+ <el-input v-model="goodsScreenForm.price2" placeholder="请输入价格" style="width: 46%"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="24" :lg="24" class="tr">
|
|
|
+ <el-form-item label="">
|
|
|
+ <el-button size="small" @click="resetGoodsScreenForm">清空</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="submitGoodsScreenForm">搜索</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div >
|
|
|
+ <el-table :data="leftGoodsList" element-loading-text="Loading" border fit stripe height="400" >
|
|
|
+ <el-table-column align="center" width="55" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-radio v-model="currentRadio" :label="scope.row.id">{{''}}</el-radio>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="产品编码" prop="number" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="产品名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="产品型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="产品价格" prop="batchPrice" min-width="80" show-overflow-tooltip></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div class="pagination clearfix" style="margin-top: 10px">
|
|
|
+ <div class="fr">
|
|
|
+ <el-pagination
|
|
|
+ @current-change="handleTableCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="10"
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :total="listTotal">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="closeDialog">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitPushGoods">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
@@ -483,6 +565,7 @@
|
|
|
import { getOrderDetail, getHomeLoginList, getHomeLoginDetail, getWarehouseList, addHome, editHome, submitHome, checkStock, getRetailProductList } from "@/api/supply/engin";
|
|
|
import { getDictList, getTypeList, getSalesmanList } from '@/api/common'
|
|
|
import { findElem } from '@/utils/util'
|
|
|
+import ret from "bluebird/js/release/util";
|
|
|
|
|
|
let that
|
|
|
export default {
|
|
@@ -599,7 +682,10 @@ export default {
|
|
|
isFirst: false,
|
|
|
salesmanList: [],
|
|
|
oldSaleType: '',
|
|
|
- notInRefQueryGoodsList: ''
|
|
|
+ notInRefQueryGoodsList: '',
|
|
|
+ isSetMaterial:false,
|
|
|
+ currentId:'',
|
|
|
+ currentRadio:''
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1026,6 +1112,7 @@ export default {
|
|
|
// 关闭 弹窗
|
|
|
closeDialog() {
|
|
|
this.isShowGoodsDialog = false;
|
|
|
+ this.isSetMaterial = false
|
|
|
},
|
|
|
|
|
|
// 左侧列表选择
|
|
@@ -1092,7 +1179,32 @@ export default {
|
|
|
this.leftGoodsList = [];
|
|
|
this.rightGoodsList = [];
|
|
|
},
|
|
|
-
|
|
|
+ getRealMaterData(id){
|
|
|
+ this.currentId = id
|
|
|
+ this.isSetMaterial = true
|
|
|
+ this.getGoodsList();
|
|
|
+ },
|
|
|
+ submitPushGoods(){
|
|
|
+// realMaterialId
|
|
|
+// 实装金蝶物料id
|
|
|
+// realMaterialName
|
|
|
+// 实装金蝶物料名称
|
|
|
+// realMaterialNumber
|
|
|
+// 实装金蝶物料编码
|
|
|
+// realMaterialOldNumber
|
|
|
+// 实装金蝶物料旧编码
|
|
|
+// realSpecification
|
|
|
+// 实装规格型号
|
|
|
+ const currentData = this.leftGoodsList.find(e=>e.id===this.currentRadio)
|
|
|
+
|
|
|
+ this.$set(this.goodsList[this.currentId],'realMaterialId',currentData.materialId)
|
|
|
+ this.$set(this.goodsList[this.currentId],'realMaterialName',currentData.materialName)
|
|
|
+ this.$set(this.goodsList[this.currentId],'realMaterialNumber',currentData.materialNumber)
|
|
|
+ this.$set(this.goodsList[this.currentId],'realMaterialOldNumber',currentData.materialOldNumber)
|
|
|
+ this.$set(this.goodsList[this.currentId],'realSpecification',currentData.specification)
|
|
|
+ console.log(this.goodsList[this.currentId]);
|
|
|
+ this.isSetMaterial = false
|
|
|
+ },
|
|
|
// 检查库存
|
|
|
checkStock() {
|
|
|
if(!this.warehouseValue) {
|