|
|
@@ -208,6 +208,28 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
+ <!-- 第三方sku编号 -->
|
|
|
+ <el-table-column
|
|
|
+ prop="thirdSkuNo"
|
|
|
+ label="第三方sku编号"
|
|
|
+ width="220px"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-autocomplete
|
|
|
+ class="inline-input"
|
|
|
+ v-model="scope.row.thirdSkuNo"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ item }">
|
|
|
+ <div class="name">{{ item.label }}</div>
|
|
|
+<!-- <span class="addr">{{ item.label }}</span>-->
|
|
|
+ </template>
|
|
|
+ </el-autocomplete>
|
|
|
+ <!-- :class="{'err-tips': scope.row.partyCodeSame}" -->
|
|
|
+ <!-- <el-input v-model="scope.row.partyCode" size="small" maxlength="100" class="tag-input-width"></el-input> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<!--起订量-->
|
|
|
<el-table-column prop="setNum" label="起订量">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -438,6 +460,25 @@ import Big from 'big.js'
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ skuList: [
|
|
|
+ {value: '1', label: '1:高透亮膜'},
|
|
|
+ {value: '2', label: '2:哑膜'},
|
|
|
+ {value: '3', label: '3:七彩镭射膜'},
|
|
|
+ {value: '4', label: '4:斜杠镭射膜'},
|
|
|
+ {value: '5', label: '5:满天星膜'},
|
|
|
+ {value: '6', label: '6:玻璃碎膜'},
|
|
|
+ {value: '7', label: '7:珠光纸'},
|
|
|
+ {value: '8', label: '8:不覆膜'},
|
|
|
+ {value: '9', label: '9:印象磨砂膜'},
|
|
|
+ {value: '10', label: '10:星光拉丝膜'},
|
|
|
+ {value: '21', label: '21:镜面光膜'},
|
|
|
+ {value: '22', label: '22:星星镭射膜'},
|
|
|
+ {value: '23', label: '23:爱心镭射膜'},
|
|
|
+ {value: '160', label: '160:相片膜'},
|
|
|
+ {value: '195', label: '195:透明拍立得(几个款'},
|
|
|
+ {value: '197', label: '197:绒毛徽章'},
|
|
|
+ {value: '198', label: '198:变换卡'}
|
|
|
+ ],
|
|
|
// 表格数据
|
|
|
lists: [],
|
|
|
rowspan: [],
|
|
|
@@ -559,6 +600,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ querySearch (queryString, cb) {
|
|
|
+ var restaurants = this.skuList
|
|
|
+ var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results)
|
|
|
+ },
|
|
|
+ createFilter (queryString) {
|
|
|
+ return (restaurant) => {
|
|
|
+ return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ handleSelect (item) {
|
|
|
+ console.log(item)
|
|
|
+ },
|
|
|
init (skuList) {
|
|
|
this.initing = true
|
|
|
this.lists = genFlatten(this.skuTags, skuList, this.defalutSku)
|