|
@@ -72,6 +72,19 @@
|
|
|
@click="handlePrint">打印</el-button>
|
|
|
</template>
|
|
|
|
|
|
+ <!--<template slot="goodsId" slot-scope="{ row }">-->
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <el-select v-model="value" filterable placeholder="请选择">-->
|
|
|
+ <!-- <el-option-->
|
|
|
+ <!-- v-for="item in options"-->
|
|
|
+ <!-- :key="item.value"-->
|
|
|
+ <!-- :label="item.label"-->
|
|
|
+ <!-- :value="item.value">-->
|
|
|
+ <!-- </el-option>-->
|
|
|
+ <!-- </el-select>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!--</template>-->
|
|
|
+
|
|
|
<template slot="goodsNum" slot-scope="{ row }">
|
|
|
<el-input v-if="!mingxibaocun" size="small" v-model="row.goodsNum" style="width: 100%"></el-input>
|
|
|
<span v-else>{{ row.goodsNum }}</span>
|
|
@@ -97,17 +110,20 @@
|
|
|
<template slot="inventory">{{ inventory }}吨</template>
|
|
|
</el-input>
|
|
|
</template> -->
|
|
|
- <!-- <template slot="goodsId" slot-scope="{ row, index }">
|
|
|
- <span style="display:flex">
|
|
|
- <el-select v-model="row.goodsId" placeholder="请选择" size="small" filterable
|
|
|
- style="width:60%" >
|
|
|
- <el-option v-for="item in goodsIdoptions" :key="item.id" :label="item.cname"
|
|
|
- :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- <el-button icon="el-icon-search" size="small" @click="rePick(row, index)"></el-button>
|
|
|
- </span>
|
|
|
- </template> -->
|
|
|
+ <!--<template slot="goodsId" slot-scope="{ row, index }">-->
|
|
|
+ <!-- <span v-if="!mingxibaocun" style="display:flex">-->
|
|
|
+ <!-- <el-select v-model="row.goodsId" placeholder="请选择" size="small" filterable-->
|
|
|
+ <!-- style="width:60%">-->
|
|
|
+ <!-- <el-option v-for="item in goodsListShow" :key="item.id" :label="item.cname"-->
|
|
|
+ <!-- :value="item.id">-->
|
|
|
+ <!-- </el-option>-->
|
|
|
+ <!-- </el-select>-->
|
|
|
+ <!-- <!–<el-button icon="el-icon-search" size="small" @click="canmefalse()"></el-button>–>-->
|
|
|
+ <!-- </span>-->
|
|
|
+ <!-- <span v-else>{{row.goodsName}}</span>-->
|
|
|
+ <!--</template>-->
|
|
|
+
|
|
|
+
|
|
|
<template slot-scope="{type,size,row,index,disabled}" slot="menu">
|
|
|
<el-button v-if="mingxibaocun" :size="size" :disabled="disabled || isAdd" :type="type"
|
|
|
:icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="hangeditBtn(row, index)">编辑
|
|
@@ -538,7 +554,7 @@ export default {
|
|
|
prop: "totalMoney",
|
|
|
disabled: true
|
|
|
}, {
|
|
|
- label: '结算金额',
|
|
|
+ label: '已收金额',
|
|
|
prop: "paymentAmountTl",
|
|
|
disabled: true
|
|
|
},{
|
|
@@ -609,15 +625,15 @@ export default {
|
|
|
column: [{
|
|
|
label: '轮胎名称',
|
|
|
prop: 'goodsId',
|
|
|
- width: 200,
|
|
|
+ width: 250,
|
|
|
disabled: false,
|
|
|
remote: true,
|
|
|
overHidden: true,
|
|
|
type: 'select',
|
|
|
dicData: [],
|
|
|
props: {
|
|
|
- label: 'cname',
|
|
|
- value: 'id'
|
|
|
+ label: 'goodsName',
|
|
|
+ value: 'goodsId'
|
|
|
},
|
|
|
// dicUrl: '/api/blade-sales-part/goodsDesc/goodsListAll?cname={{key}}'
|
|
|
dicUrl: `/api/blade-sales-part/goodsDesc/goodsListXs?cname={{key}}&customId=&enableOrNot=1&stock=${this.goodsId}`
|
|
@@ -1173,9 +1189,6 @@ export default {
|
|
|
//确认导入触发
|
|
|
async importGoods() {
|
|
|
this.surplusRouteQuantityOption.push({ storageQuantity: '0' });
|
|
|
- console.log(this.goodsListSave,'导入按钮')
|
|
|
- console.log(this.surplusRouteQuantityOption,'导入按钮2')
|
|
|
- console.log(this.tableData,'导入按钮3')
|
|
|
if (this.goodsListSave.length > 0) {
|
|
|
this.goodsListSaveHandle()
|
|
|
} else {
|
|
@@ -1228,7 +1241,17 @@ export default {
|
|
|
this.tableData = this.goodsListSave
|
|
|
this.tableDataHandle()
|
|
|
},
|
|
|
-
|
|
|
+ // 获取添加轮胎弹窗里的数据
|
|
|
+ goodsPageXsfun(){
|
|
|
+ goodsPageXs({
|
|
|
+ customId: this.form.customerId,
|
|
|
+ stock: this.form.storageId,
|
|
|
+ enableOrNot: 1
|
|
|
+ }).then(res=>{
|
|
|
+ const data = res.data.data;
|
|
|
+ this.goodsListShow = data.records;
|
|
|
+ })
|
|
|
+ },
|
|
|
//导入轮胎弹窗列表查询
|
|
|
onLoadfun(page, params = { artsVision: this.form.belongToCorpId }) {
|
|
|
this.loading = true;
|
|
@@ -1269,7 +1292,6 @@ export default {
|
|
|
},
|
|
|
// 采购明细行编辑
|
|
|
hangeditBtn(row,index){
|
|
|
- console.log(row)
|
|
|
this.picihaolistfun(row.id)
|
|
|
row.dotedittype = true
|
|
|
// 价格数量
|
|
@@ -1277,6 +1299,7 @@ export default {
|
|
|
row.pricetype = true
|
|
|
// 编辑和保存状态切换
|
|
|
this.mingxibaocun = false
|
|
|
+ this.goodsPageXsfun()
|
|
|
},
|
|
|
// 保存按钮
|
|
|
hangbaocun(row) {
|
|
@@ -1489,7 +1512,7 @@ export default {
|
|
|
// this.isDisabled = true
|
|
|
console.log('待确认');
|
|
|
this.optionForm.column.forEach(item => {
|
|
|
- if (item.label === '成本' || item.label === '毛利' || item.label === '销售金额' || item.label === '运费' || item.label === '总金额' || item.label === '结算金额' || item.label === '单据编号' || item.label === '来源编号') {
|
|
|
+ if (item.label === '成本' || item.label === '毛利' || item.label === '销售金额' || item.label === '运费' || item.label === '总金额' || item.label === '已收金额' || item.label === '单据编号' || item.label === '来源编号') {
|
|
|
this.$set(item, 'disabled', true)
|
|
|
} else {
|
|
|
this.$set(item, 'disabled', false)
|