webmain/main/goods/rock_goods_pandian.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php if(!defined('HOST'))die('not access');?>
<script >
$(document).ready(function(){
var lbefe = false;
var at = $('#optionview_{rand}').bootstree({
url:js.getajaxurl('gettreedata','option','system',{'num':'goodstype'}),
columns:[{
text:'物品分类',dataIndex:'name',align:'left',xtype:'treecolumn',width:'79%'
},{
text:'ID',dataIndex:'id',width:'20%'
}],
load:function(d){
c.loadfile('0','所有物品');
},
itemdblclick:function(d){
c.loadfile(d.id,d.name);
}
});
var columns = [{
text:'编号',dataIndex:'num'
},{
text:'名称',dataIndex:'name',align:'left'
},{
text:'分类',dataIndex:'typeid',align:'left'
},{
text:'单价',dataIndex:'price',sortable:true
},{
text:'单位',dataIndex:'unit'
},{
text:'规格',dataIndex:'guige'
},{
text:'型号',dataIndex:'xinghao'
},{
text:'ID',dataIndex:'id',sortable:true
},{
text:'总库存',dataIndex:'stock',sortable:true
}];
var a = $('#view_{rand}').bootstable({
tablename:'goods',celleditor:true,fanye:true,modenum:'goods',autoLoad:false,
url:publicstore('{mode}','{dir}'),params:{'atype':'pan'},storebeforeaction:'beforeshow',storeafteraction:'aftershow',
columns:columns,
loadbefore:function(d){
if(!lbefe && d.depotarr){
for(var i=0;i<d.depotarr.length;i++)columns.push({text:d.depotarr[i].namea,dataIndex:'stockdepotid'+d.depotarr[i].id+''});
a.setColumns(columns);
}
lbefe = true;
},
itemdblclick:function(d){
openxiangs('【'+d.name+'】详情','goods',d.id);
}
});
var c = {
search:function(){
var s=get('key_{rand}').value;
a.setparams({key:s,dt:get('dt1_{rand}').value},true);
},
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
