|
@@ -234,6 +234,25 @@
|
|
<!-- <div>—</div> -->
|
|
<!-- <div>—</div> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="settlementPrice" width='150' label="结算单价(元/吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div class="inputChenge">
|
|
|
|
+ <el-input v-model="scope.row.settlementPrice" v-if="scope.row.identification1 == 'true'">
|
|
|
|
+ </el-input>
|
|
|
|
+ <div v-if="scope.row.identification1 == 'false'" class="inputs">
|
|
|
|
+ <span>{{scope.row.settlementPrice}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div style='display:inline-block;' v-if="scope.row.identification1 == 'false'">
|
|
|
|
+ <img v-hasPermission="`report.goodsSaleOutReport.edit`" width="17" height="18"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
|
|
|
|
+ @click="whether(scope.row,2)" alt="" />
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
|
|
|
|
+ v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row)"></i>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
width="100"
|
|
width="100"
|
|
class="table_td"
|
|
class="table_td"
|
|
@@ -604,8 +623,42 @@ export default {
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //修改结算单价
|
|
|
|
+ weightClick(row,flag) {
|
|
|
|
+ var title=''
|
|
|
|
+ var data={}
|
|
|
|
+ title='确定要修改结算单价?'
|
|
|
|
+ data={
|
|
|
|
+ settlementPrice: row.settlementPrice,
|
|
|
|
+ id: row.id,
|
|
|
|
+ flag:flag
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(title, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ editSettlementWeight(data)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '结算单价修改成功',
|
|
|
|
+ })
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
whether(row) {
|
|
whether(row) {
|
|
- row.identification = 'true'
|
|
|
|
|
|
+ if(flag==1){
|
|
|
|
+ row.identification = 'true'
|
|
|
|
+ }else{
|
|
|
|
+ row.identification1 = 'true'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleRowClick(row) {
|
|
handleRowClick(row) {
|
|
if (row.approveStatus == null) {
|
|
if (row.approveStatus == null) {
|