|
|
|
@ -84,7 +84,9 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
|
<!-- <a @click="handleEdit1(record,code)">编辑</a>--> |
|
|
|
|
|
|
|
|
|
<a @click="yongliang(record.id)">设置用量</a> |
|
|
|
|
<a-divider type="vertical" /> |
|
|
|
|
<a @click="handleDetail(record.fabricId,record.fabricId_dictText)">详情</a> |
|
|
|
|
|
|
|
|
|
<a-divider type="vertical" /> |
|
|
|
@ -113,6 +115,7 @@ |
|
|
|
|
import ZyProcessFabricModal from './ZyProcessFabricModal' |
|
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
|
import ZyFabricFormDetailModel from '@/views/erp/fabric/modules/ZyFabricFormDetailModel' |
|
|
|
|
import {httpAction} from "@api/manage"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'ZyProcessFabricList', |
|
|
|
@ -166,6 +169,11 @@ |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'fabricId_dictText' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title:'用量', |
|
|
|
|
align:"center", |
|
|
|
|
dataIndex: 'amount' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|
dataIndex: 'action', |
|
|
|
@ -181,7 +189,7 @@ |
|
|
|
|
deleteBatch: "/pro/zyProcessFabric/deleteBatch", |
|
|
|
|
exportXlsUrl: "/pro/zyProcessFabric/exportXls", |
|
|
|
|
importExcelUrl: "pro/zyProcessFabric/importExcel", |
|
|
|
|
|
|
|
|
|
edit:"pro/zyProcessFabric/edit" |
|
|
|
|
}, |
|
|
|
|
dictOptions:{}, |
|
|
|
|
superFieldList:[], |
|
|
|
@ -196,6 +204,31 @@ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
yongliang(id){ |
|
|
|
|
var a=window.prompt("请设置用量:") |
|
|
|
|
var guize=/^(([1-9]{1}\d*)|(0{1}))(\.\d{1})?$/ |
|
|
|
|
if(a!=null) |
|
|
|
|
{ |
|
|
|
|
if(guize.test(a)){ |
|
|
|
|
var model={}; |
|
|
|
|
model.id=id; |
|
|
|
|
model.amount=a; |
|
|
|
|
httpAction(this.url.edit,model,'put').then((res)=>{ |
|
|
|
|
if(res.success){ |
|
|
|
|
this.$message.success(res.message); |
|
|
|
|
this.loadData(); |
|
|
|
|
}else{ |
|
|
|
|
this.$message.warning(res.message); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
this.$message.warning("请输入保留一位小数"); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
return |
|
|
|
|
}, |
|
|
|
|
edit (record) { |
|
|
|
|
this.id = record; |
|
|
|
|
this.queryParam.processId=this.id; |
|
|
|
|